/* Copyright 2026 nowtour.net. NowTour site customization. */
[hidden] { display: none !important; }
html { background: #0f1115; color-scheme: dark; }
.watch-header { width: 100%; max-width: 420px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.watch-brand { color: #fff; font-size: 24px; font-weight: 800; text-decoration: none; letter-spacing: -.6px; }
.watch-brand.nowtour-image-logo { display: block; flex-shrink: 0; width: 160px; height: 44px; overflow: hidden; border-radius: 6px; background: #ff3131; }
.watch-brand.nowtour-image-logo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.watch-header .back { margin: 0; padding: 10px 0; }
#watch-title { font-size: 17px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.watch-meta { max-width: 420px; margin: -4px 0 18px; font-size: 12px; line-height: 1.6; color: var(--text-dim); text-align: center; }
.lang-switch a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; }
.language-flag { display: block; flex-shrink: 0; width: 22px; height: 22px; object-fit: contain; }
#player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.controls { width: 100%; max-width: 420px; }
.controls button { min-height: 44px; }
button:disabled { opacity: .45; cursor: default; }
.watch-status { max-width: 420px; margin: 12px 0; font-size: 13px; line-height: 1.6; color: var(--text-dim); text-align: center; }
.watch-status:empty { display: none; }
.cta-tour-name { overflow-wrap: anywhere; }
.cta-rating { line-height: 1.7; }
.cta-fixed.show { max-height: 40vh; overflow-y: auto; }
.cta-fixed:not(.show) { pointer-events: none; }
.video-navigation { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; width: 100%; max-width: 380px; margin: 12px 0 0; }
.video-navigation button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; min-width: 0; padding: 10px; line-height: 1.4; }
.video-navigation .video-nav-label { overflow-wrap: anywhere; }
a:focus-visible,button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 768px) {
  body { padding: 16px 0 calc(36px + env(safe-area-inset-bottom,0px)); min-width: 0; }
  .watch-header,#watch-title,.watch-meta,.lang-switch,.controls,.cta-bar,.watch-status {
    width: calc(100% - 24px); max-width: none; margin-inline: 12px; min-width: 0;
  }
  .player-wrap { width: 100%; max-width: none; border-radius: 0; flex-shrink: 0; }
  .nav-btn { width: 44px; height: 44px; }
  .lang-switch { gap: 6px; }
  .lang-switch a { padding-inline: 10px; }
  .controls { gap: 8px; }
  .controls button { flex: 1 1 auto; white-space: normal; }
  .subtitle-box { left: 4%; right: 4%; }
  .subtitle-box p { font-size: clamp(14px,4vw,18px); }
}
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1024px) {
  .player-wrap { width: min(100%,max(200px,calc((100svh - 32px) * 9 / 16))); max-width: 380px; border-radius: 12px; }
}
@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) and (max-width: 1024px) {
  .video-navigation { width: calc(100% - 24px); max-width: 480px; margin-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-fixed { transition: none; }
  .cta-fixed a.cta-btn-inline,.cta-bar a.cta-btn-inline.pulse { animation: none; }
}

/* Language options use SVG flags on every device. */
.watch-header { display:grid; grid-template-columns:160px minmax(0,1fr); gap:8px 16px; }
.watch-header .back { grid-column:1 / -1; justify-self:start; padding:4px 0; }
.watch-language-picker { position:relative; min-width:0; justify-self:end; width:100%; max-width:220px; z-index:20; }
#watch-languages { display:flex; align-items:center; gap:8px; min-width:0; width:100%; min-height:44px; padding:8px 10px; background:var(--panel); color:var(--text); font:inherit; font-size:13px; text-align:left; }
#watch-language-name { flex:1; min-width:0; }
.watch-language-chevron { margin-left:auto; }
#watch-language-options { position:absolute; top:calc(100% + 6px); right:0; width:max(100%,200px); max-width:calc(100vw - 24px); max-height:60svh; overflow-y:auto; padding:5px; box-sizing:border-box; background:#171b23; border:1px solid #343a46; border-radius:10px; box-shadow:0 10px 30px #0008; }
#watch-language-options [role=option] { display:flex; align-items:center; gap:10px; width:100%; min-height:44px; padding:10px; border:0; border-radius:6px; background:transparent; color:#fff; text-align:left; font-size:14px; }
#watch-language-options [role=option]:hover,#watch-language-options [role=option]:focus-visible { background:#303745; }
#watch-language-options [aria-selected=true] { background:#303745; color:var(--accent); }
@media(max-width:768px) {
  .watch-header { grid-template-columns:140px minmax(0,1fr); gap:8px 10px; }
  .watch-brand.nowtour-image-logo { width:140px; height:38.5px; }
  #watch-languages { padding-inline:7px; gap:5px; font-size:12px; }
}
