
  :root { --bg:#0f1115; --panel:#171a21; --accent:#55c6ff; --cta:#ffb454; --text:#f4f4f4; --text-dim:#9aa0ab; }
  * { box-sizing: border-box; }
  body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: "Segoe UI", -apple-system, sans-serif;
    display: flex; flex-direction: column; align-items: center;
    padding: 20px 16px 50px; min-height: 100vh;
  }
  h1 { font-size: 15px; font-weight: 600; color: var(--text-dim); margin: 0 0 14px; text-align: center; max-width: 420px; }
  .lang-switch { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; justify-content: center; max-width: 420px; }
  .lang-switch a {
    background: var(--panel); color: var(--text-dim); border: 1px solid #2a2f3a;
    border-radius: 20px; padding: 6px 14px; font-size: 12px; text-decoration: none;
  }
  .lang-switch a.active { color: var(--bg); background: var(--accent); border-color: var(--accent); font-weight: 600; }
  .player-wrap {
    position: relative; width: 100%; max-width: 380px; aspect-ratio: 9 / 16;
    background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  }
  #player { width: 100%; height: 100%; }
  .swipe-capture { position: absolute; inset: 0; z-index: 4; background: transparent; pointer-events: none; }
  .subtitle-box {
    position: absolute; left: 5%; right: 5%; bottom: 10%;
    background: rgba(0,0,0,0.72); border-radius: 10px; padding: 10px 14px;
    display: flex; flex-direction: column; gap: 4px;
    align-items: center; justify-content: center; text-align: center;
    pointer-events: none; z-index: 5;
  }
  .subtitle-box.hidden { background: transparent; }
  .subtitle-box p { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 700; color: #ffffff; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
  .subtitle-box p.gloss-vi { font-size: 12px; font-weight: 400; color: #d8d8d8; font-style: italic; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }
  .controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
  button { background: var(--panel); color: var(--text); border: 1px solid #2a2f3a; border-radius: 8px; padding: 8px 16px; font-size: 13px; cursor: pointer; }
  button:hover { border-color: var(--accent); }
  .note { max-width: 380px; margin-top: 18px; font-size: 11px; color: var(--text-dim); line-height: 1.6; text-align: center; }
  .back { display: inline-block; margin-bottom: 12px; color: var(--text-dim); font-size: 12px; text-decoration: none; }
  .nav-arrows { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; z-index: 6; }
  .nav-btn {
    width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,0.65);
    border: 2px solid var(--cta); color: #fff; font-size: 22px; font-weight: 900;
    display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  }
  .nav-btn:hover { background: rgba(0,0,0,0.8); border-color: var(--cta); }
  .nav-btn:disabled { opacity: 0.3; cursor: default; border-color: rgba(255,180,84,0.4); }
  .nav-btn:disabled:hover { border-color: rgba(255,180,84,0.4); }
  .cta-bar { width: 100%; max-width: 380px; margin-top: 14px; }
  .cta-tour-name {
    text-align: center; font-size: 13px; font-weight: 600; color: var(--text);
    margin-bottom: 4px; line-height: 1.3;
  }
  .cta-fixed {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(10,11,15,0.95); border-top: 1px solid rgba(255,180,84,0.4);
    transform: translateY(100%); transition: transform .25s ease;
  }
  .cta-fixed.show { transform: translateY(0); }
  .cta-fixed a.cta-btn-inline {
    display: block; max-width: 420px; margin: 0 auto; text-align: center;
    background: var(--cta); color: #3a2200; font-weight: 700; font-size: 15px;
    padding: 13px 18px; border-radius: 10px; text-decoration: none; box-sizing: border-box;
    animation: cta-pulse 0.9s ease-in-out infinite;
  }
  .cta-fixed a.cta-back-btn {
    display: block; max-width: 420px; margin: 0 auto 8px; text-align: center;
    background: var(--cta); color: #3a2200; font-weight: 700; font-size: 13px;
    padding: 8px 18px; border-radius: 10px; text-decoration: none; box-sizing: border-box;
  }
  .cta-bar a.cta-btn-inline {
    display: block; width: 100%; text-align: center; background: var(--cta); color: #3a2200;
    font-weight: 700; font-size: 15px; padding: 12px 18px; border-radius: 10px; text-decoration: none;
    box-sizing: border-box; transition: transform .2s, box-shadow .2s;
  }
  .cta-bar a.cta-btn-inline.pulse {
    animation: cta-pulse 0.9s ease-in-out infinite;
    box-shadow: 0 0 0 4px rgba(255,180,84,0.35);
  }
  @keyframes cta-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
  }
  .cta-overlay {
    position: absolute; inset: 0; background: rgba(10,11,15,0.9);
    display: none; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px; padding: 24px; text-align: center; z-index: 10;
  }
  .cta-overlay.show { display: flex; }
  .cta-overlay p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.5; }
  .cta-overlay a.cta-btn {
    display: inline-block; background: var(--cta); color: #3a2200; font-weight: 700;
    font-size: 15px; padding: 12px 26px; border-radius: 999px; text-decoration: none;
  }
  .cta-rating {
    text-align: center; font-size: 12px; font-weight: 600; color: var(--cta);
    margin-bottom: 6px;
  }
  .cta-rating .stars { letter-spacing: 1px; }
  .cta-rating .count { color: var(--text-dim); font-weight: 400; margin-left: 4px; }
  .cta-rating .price { margin-left: 8px; padding-left: 8px; border-left: 1px solid rgba(255,180,84,0.4); }
  .free-cancellation { font-size: 11px; color: #6fd68a; margin-top: 3px; font-weight: 600; }

.cta-tour-name,.cta-overlay a.cta-btn { white-space:normal; overflow-wrap:anywhere; }
