* { margin: 0; padding: 0; box-sizing: border-box; }
    html, body {
      width: 100%;
      height: 100%;
      overflow: hidden;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: #000;
      color: #fff;
    }

    /* Layout tổng */
    .app-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 50px;
      background: rgba(0,0,0,0.8);
      display: flex;
      align-items: center;
      padding: 0 12px 0 180px; /* chừa chỗ cho sidebar */
      z-index: 20;
      backdrop-filter: blur(8px);
      border-bottom: 1px solid rgba(255,255,255,0.06);
      font-size: 14px;
    }
    .app-header-title {
      font-weight: 600;
      color: #ffe08a;
    }
    .app-header-sub {
      margin-left: 8px;
      font-size: 13px;
      opacity: .85;
    }

    .app-sidebar {
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      width: 170px;
      padding-top: 50px; /* tránh header */
      background: rgba(0,0,0,0.9);
      border-right: 1px solid rgba(255,255,255,0.06);
      z-index: 20;
      backdrop-filter: blur(8px);
      display: flex;
      flex-direction: column;
    }

    .sidebar-title {
      padding: 10px 10px 6px;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      opacity: .7;
    }

    .scene-list {
      flex: 1;
      overflow-y: auto;
    }

    .scene-btn {
      width: 100%;
      text-align: left;
      padding: 8px 12px;
      border: none;
      outline: none;
      background: transparent;
      color: #ddd;
      font-size: 13px;
      cursor: pointer;
      border-radius: 8px;
      margin: 2px 6px;
      display: flex;
      align-items: flex-start;
      gap: 5px;
    }
    .scene-btn span.icon {
      font-size: 15px;
      width: 18px;
    }
    .scene-btn span.label {
      flex: 1;
      line-height: 1.4;
    }
    .scene-btn.active {
      background: linear-gradient(135deg, #f6c453, #f2a93b);
      color: #000;
      font-weight: 600;
    }

    .sidebar-footer {
      padding: 8px 10px 12px;
      font-size: 11px;
      opacity: .7;
    }

    /* [MUA VÉ] nút mua vé trong sidebar */
    .ticket-cta {
      padding: 6px 8px 10px;
      border-top: 1px solid rgba(255,255,255,0.06);
    }
    .ticket-btn {
      width: 100%;
      border-radius: 999px;
      border: none;
      padding: 7px 10px;
      font-size: 13px;
      cursor: pointer;
      background: linear-gradient(135deg, #f6c453, #f08a24);
      color: #000;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }
    .ticket-btn.disabled {
      opacity: .6;
      cursor: default;
    }

    /* Vùng nội dung chính (video + canvas 3D đặt full màn) */
    #videoWrapper,
    #threeCanvas {
      position: fixed;
      top: 50px;  /* dưới header */
      left: 170px; /* bên phải sidebar */
      right: 0;
      bottom: 0;
      background: #000;
    }

    #videoWrapper {
      display: block; /* mặc định mở cảnh video */
    }
    #threeCanvas {
      display: none;
    }

    #videoWrapper iframe {
      width: 100%;
      height: 100%;
      border: none;
    }

    /* Overlay cho hướng dẫn từng chế độ */
    .overlay-box {
      position: fixed;
      z-index: 30;
      background: rgba(0,0,0,0.7);
      backdrop-filter: blur(6px);
      border-radius: 12px;
      padding: 10px 14px;
      font-size: 12px;
      line-height: 1.5;
      max-width: 280px;
    }
    #overlayVideo {
      top: 60px;
      left: 185px;
    }
    #overlay3D {
      top: 60px;
      left: 185px;
      display: none;
    }
    .overlay-box b { color: #ffd86b; }

    .location-tag {
      position: fixed;
      right: 10px;
      top: 58px;
      background: rgba(0,0,0,0.7);
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 12px;
      z-index: 30;
      opacity: .9;
      display: none; /* chỉ bật khi ở chế độ 3D */
    }

    .message-bottom {
      position: fixed;
      left: 50%;
      bottom: 14px;
      transform: translateX(-50%);
      background: rgba(0,0,0,0.8);
      padding: 8px 16px;
      border-radius: 999px;
      font-size: 12px;
      z-index: 30;
      opacity: 0;
      transition: opacity .4s;
      pointer-events: none;
      max-width: 90%;
      text-align: center;
    }
    .message-bottom.show {
      opacity: 1;
    }

    @media (max-width: 768px) {
      .app-header {
        padding-left: 10px;
      }
      .app-sidebar {
        width: 150px;
      }
      #videoWrapper,
      #threeCanvas {
        left: 150px;
      }
      #overlayVideo,
      #overlay3D {
        left: 160px;
        max-width: 220px;
      }
      .app-header-sub {
        display: none;
      }
    }

    /* [MUA VÉ] Modal mua vé */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(6px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 40;
    }
    .modal-backdrop.show {
      display: flex;
    }
    .modal {
      background: #111;
      border-radius: 16px;
      padding: 16px 18px 14px;
      max-width: 320px;
      width: calc(100% - 40px);
      border: 1px solid rgba(255,255,255,0.12);
      box-shadow: 0 18px 40px rgba(0,0,0,0.6);
      font-size: 13px;
    }
    .modal h3 {
      font-size: 15px;
      margin-bottom: 4px;
      color: #ffe08a;
    }
    .modal .modal-sub {
      font-size: 12px;
      opacity: .85;
      margin-bottom: 8px;
    }
    .modal label {
      display: block;
      font-size: 12px;
      margin-top: 6px;
      margin-bottom: 2px;
    }
    .modal input {
      width: 100%;
      padding: 6px 8px;
      border-radius: 6px;
      border: 1px solid rgba(255,255,255,0.2);
      background: #181818;
      color: #fff;
      font-size: 13px;
    }
    .modal .row {
      display: flex;
      gap: 6px;
    }
    .modal .row > div {
      flex: 1;
    }
    .modal .ticket-total {
      margin-top: 6px;
      font-size: 13px;
      font-weight: 600;
      color: #f6c453;
    }
    .modal .modal-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      margin-top: 10px;
    }
    .btn-outline {
      background: transparent;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.3);
      color: #fff;
      font-size: 13px;
      padding: 6px 10px;
      cursor: pointer;
    }
    .btn-primary-small {
      border-radius: 999px;
      border: none;
      padding: 6px 12px;
      font-size: 13px;
      cursor: pointer;
      background: linear-gradient(135deg, #f6c453, #f08a24);
      color: #000;
      font-weight: 600;
    }
    .badge-paid {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      padding: 3px 7px;
      border-radius: 999px;
      background: rgba(88, 214, 141, 0.12);
      color: #58d68d;
      border: 1px solid rgba(88,214,141,0.4);
      margin-top: 5px;
    }