:root {
  --brand: #6366f1;
  --bg-dark: #080716;
  --panel-dark: #0f0e26;
  --border-dark: #1f1b4b;
  --text-primary: #e2e1f5;
  --text-secondary: #9f9dbb;
}

* { -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

/* Custom Scrollbar in Dark Theme */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #2e2a5e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4f46e5; }

.line-clamp-1 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 1; }
.line-clamp-2 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 2; }
.line-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 3; }

/* Custom layouts */
.sidebar-minimized {
  width: 4.5rem !important;
}
.sidebar-minimized .sidebar-text,
.sidebar-minimized .sidebar-header-text,
.sidebar-minimized .sidebar-badge {
  display: none !important;
}
.sidebar-minimized .sidebar-menu-item {
  justify-content: center;
  padding: 0.75rem 0 !important;
}
.content-expanded {
  margin-left: 4.5rem !important;
}

/* Hero animated background */
.hero-mesh {
  background:
    radial-gradient(at 15% 20%, rgba(99,102,241,.15) 0px, transparent 50%),
    radial-gradient(at 85% 10%, rgba(217,70,239,.12) 0px, transparent 50%),
    radial-gradient(at 70% 80%, rgba(6,182,212,.10) 0px, transparent 50%),
    radial-gradient(at 20% 90%, rgba(244,63,94,.08) 0px, transparent 50%);
}
.hero-grid {
  background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}
@keyframes float-slow { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
.animate-float { animation: float-slow 6s ease-in-out infinite; }

/* Marquee logos */
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.marquee-track { animation: marquee 26s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

/* Fade in on scroll */
.reveal { opacity: 0; transform: translateY(15px); transition: opacity .45s ease, transform .45s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Prose in Dark Theme */
.prose-vn { color: var(--text-secondary); line-height: 1.8; font-size: 15px; }
.prose-vn h2 { font-size: 1.35rem; font-weight: 800; color: #fff; margin: 1.8rem 0 .8rem; padding-left: .7rem; border-left: 4px solid var(--brand); }
.prose-vn h3 { font-size: 1.12rem; font-weight: 700; color: #f1f0fc; margin: 1.5rem 0 .6rem; }
.prose-vn p { margin: .8rem 0; }
.prose-vn ul { margin: .8rem 0; padding-left: 0; list-style: none; }
.prose-vn ul li { position: relative; padding-left: 1.6rem; margin: .5rem 0; }
.prose-vn ul li::before { content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: .1rem; color: #10b981; font-size: .9rem; }
.prose-vn ol { margin: .8rem 0 .8rem 1.3rem; list-style: decimal; }
.prose-vn ol li { margin: .5rem 0; padding-left: .3rem; }
.prose-vn b, .prose-vn strong { color: #fff; font-weight: 700; }
.prose-vn code { background: #16143c; color: #a5b4fc; padding: .12rem .4rem; border-radius: .3rem; font-size: .88em; font-family: ui-monospace, monospace; }
.prose-vn a { color: var(--brand); text-decoration: underline; }
.prose-vn img { border-radius: .75rem; margin: 1rem 0; max-width: 100%; border: 1px solid var(--border-dark); }
.prose-vn i { color: var(--text-secondary); }

/* Custom Video Demo Modal (Vertical player like Shorts/TikTok) */
.vertical-player-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background-color: #000;
  border: 4px solid #1f1b4b;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* Custom Web Mockup Player Controls */
.video-mockup-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 15%, transparent 80%, rgba(0,0,0,0.6) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  z-index: 10;
}
.video-mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}
.video-mockup-actions {
  display: flex;
  gap: 12px;
}
.video-mockup-btn {
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.video-mockup-btn:hover {
  background: rgba(0,0,0,0.8);
}
.video-mockup-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
}
.video-mockup-info {
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.video-mockup-progress {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.video-mockup-progress-bar {
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
  width: 45%;
}
.video-mockup-play-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 11;
}
.video-mockup-play-center:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(99,102,241,0.8);
}

/* Toast */
.toast {
  min-width: 260px; max-width: 340px;
  background: var(--panel-dark) !important;
  border-color: var(--border-dark) !important;
  animation: toast-in .3s cubic-bezier(.2,.9,.3,1.2);
}
.toast div { color: var(--text-primary) !important; }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px) } to { opacity: 1; transform: none } }
.toast.out { animation: toast-out .25s ease forwards; }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px) } }

/* Loading spinner */
.spinner { border: 2.5px solid rgba(255,255,255,.2); border-top-color: var(--brand); border-radius: 50%; width: 16px; height: 16px; animation: spin .6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg) } }

/* Countdown pulse */
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(244,63,94,.4) } 70% { box-shadow: 0 0 0 8px rgba(244,63,94,0) } 100% { box-shadow: 0 0 0 0 rgba(244,63,94,0) } }
.pulse-ring { animation: pulse-ring 2s infinite; }

/* Admin table in Dark Theme */
.admin-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); font-weight: 700; border-bottom: 1px solid var(--border-dark); }
.admin-table td, .admin-table th { padding: .75rem 1rem; }
.admin-table tbody tr { border-bottom: 1px solid rgba(31, 27, 75, 0.4); }
.admin-table tbody tr:hover { background: rgba(31, 27, 75, 0.2); }

/* Glow Effects */
.glow-brand {
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}
.glow-text-brand {
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   GLOBAL DARK MODE OVERRIDES FOR CUSTOMER PORTAL
   Translates tailwind light-mode classes on the fly for premium dark theme.
   ========================================================================== */
body.bg-\[\#080716\] .bg-white {
  background-color: #0f0e26 !important;
  color: #e2e1f5 !important;
}

body.bg-\[\#080716\] .border-slate-200,
body.bg-\[\#080716\] .border-slate-100,
body.bg-\[\#080716\] .divide-slate-200 > *,
body.bg-\[\#080716\] .divide-slate-100 > * {
  border-color: #1f1b4b !important;
}

body.bg-\[\#080716\] .text-slate-900,
body.bg-\[\#080716\] .text-slate-800,
body.bg-\[\#080716\] .text-gray-900,
body.bg-\[\#080716\] .text-gray-800 {
  color: #ffffff !important;
}

body.bg-\[\#080716\] .text-slate-700,
body.bg-\[\#080716\] .text-slate-600,
body.bg-\[\#080716\] .text-gray-700,
body.bg-\[\#080716\] .text-gray-600 {
  color: #c7c6e1 !important;
}

body.bg-\[\#080716\] .text-slate-500,
body.bg-\[\#080716\] .text-slate-400,
body.bg-\[\#080716\] .text-gray-500,
body.bg-\[\#080716\] .text-gray-400 {
  color: #9f9dbb !important;
}

body.bg-\[\#080716\] .bg-slate-50,
body.bg-\[\#080716\] .bg-slate-100,
body.bg-\[\#080716\] .bg-gray-50,
body.bg-\[\#080716\] .bg-gray-100 {
  background-color: #161533 !important;
}

body.bg-\[\#080716\] .hover\:bg-slate-50:hover,
body.bg-\[\#080716\] .hover\:bg-slate-100:hover,
body.bg-\[\#080716\] .hover\:bg-gray-50:hover,
body.bg-\[\#080716\] .hover\:bg-gray-100:hover {
  background-color: #242254 !important;
}

/* Inputs & Form Fields overrides for Dark Theme */
body.bg-\[\#080716\] input[type="text"],
body.bg-\[\#080716\] input[type="email"],
body.bg-\[\#080716\] input[type="password"],
body.bg-\[\#080716\] input[type="url"],
body.bg-\[\#080716\] input[type="number"],
body.bg-\[\#080716\] select,
body.bg-\[\#080716\] textarea {
  background-color: #141332 !important;
  border-color: #25215c !important;
  color: #ffffff !important;
}

body.bg-\[\#080716\] input[type="text"]:focus,
body.bg-\[\#080716\] input[type="email"]:focus,
body.bg-\[\#080716\] input[type="password"]:focus,
body.bg-\[\#080716\] input[type="url"]:focus,
body.bg-\[\#080716\] input[type="number"]:focus,
body.bg-\[\#080716\] select:focus,
body.bg-\[\#080716\] textarea:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
}

/* Active links and dynamic tags overrides */
body.bg-\[\#080716\] .hover\:text-brand-600:hover {
  color: #818cf8 !important;
}

body.bg-\[\#080716\] .text-brand-600 {
  color: #818cf8 !important;
}

body.bg-\[\#080716\] .bg-brand-50 {
  background-color: rgba(99, 102, 241, 0.15) !important;
  color: #818cf8 !important;
}

body.bg-\[\#080716\] .hover\:bg-brand-50:hover {
  background-color: rgba(99, 102, 241, 0.15) !important;
}

body.bg-\[\#080716\] .hover\:bg-rose-50:hover {
  background-color: rgba(244, 63, 94, 0.1) !important;
}

body.bg-\[\#080716\] .hover\:bg-amber-50:hover {
  background-color: rgba(245, 158, 11, 0.1) !important;
}

/* ==========================================================================
   HERO 3D MULTI-PHONE STAGE (1clickvn style - Phone dọc chuẩn)
   ========================================================================== */
.hero-stage-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.hero-stage {
  position: relative;
  height: clamp(480px, 58vw, 560px);
  width: 100%;
}
.phone {
  position: absolute;
  aspect-ratio: 9 / 16;
  border-radius: 38px;
  padding: 8px;
  background: #0b1220;
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.7), inset 0 0 0 1.5px rgba(255, 255, 255, 0.16), inset 0 0 0 3px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  user-select: none;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.45s, filter 0.45s;
}
.phone video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Giữ nguyên tỉ lệ video gốc (ngang hoặc dọc), không crop */
  border-radius: 30px;
  background: #000;
  display: block;
}
.phone-front {
  width: 270px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  animation: hero-bob 6s ease-in-out infinite;
  box-shadow: 0 35px 85px rgba(0, 0, 0, 0.85), 0 0 45px rgba(99, 102, 241, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}
.phone-back {
  width: 240px;
  top: 50%;
  z-index: 2;
  opacity: 0.82;
  filter: saturate(0.9) brightness(0.78);
  cursor: pointer;
}
.phone-left {
  left: 0%;
  transform: translate(0, -50%) rotate(-8deg) scale(0.92);
}
.phone-right {
  right: 0%;
  transform: translate(0, -50%) rotate(8deg) scale(0.92);
}
.phone-back:hover {
  filter: saturate(1) brightness(1.05);
  transform: translate(0, -50%) rotate(0deg) scale(0.97);
  z-index: 4;
}

@keyframes hero-bob {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-10px); }
}

/* Smartphone dynamic notch */
.phone-notch {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 18px;
  background: #000;
  border-radius: 20px;
  z-index: 12;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone-notch::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111e38;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Center play/pause overlay - Tự động ẩn hoàn toàn khi video đang phát, không che mặt nhân vật khi hover */
.phone-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s, background 0.2s;
  z-index: 12;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
/* CHỈ HIỆN KHI BỊ TẠM DỪNG (is-paused), TUYỆT ĐỐI KHÔNG HIỆN KHI RÊ CHUỘT (HOVER) */
.phone-front.is-paused .phone-play-btn {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.phone-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(99, 102, 241, 0.85);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Phone navigation arrows */
.phone-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 14, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  z-index: 25;
  backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.phone-nav-arrow:hover {
  background: #6366f1;
  border-color: #818cf8;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}
.phone-nav-prev {
  left: -22px;
}
.phone-nav-next {
  right: -22px;
}
@media (max-width: 640px) {
  .phone-nav-prev { left: 4px; }
  .phone-nav-next { right: 4px; }
}

.phone-side-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  pointer-events: none;
  opacity: 0.9;
  transition: all 0.2s;
}
.phone-back:hover .phone-side-hint {
  opacity: 1;
  background: rgba(99, 102, 241, 0.9);
  border-color: rgba(99, 102, 241, 0.6);
  transform: translateX(-50%) scale(1.05);
}

/* ==========================================================================
   SHORT VIDEO GUI OVERLAY (TikTok / Reels / Instagram)
   ========================================================================== */
.short-gui-overlay {
  position: absolute;
  inset: 8px;
  border-radius: 30px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 22%, transparent 68%, rgba(0, 0, 0, 0.8) 100%);
}

/* Top bar */
.short-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 12px 6px 12px;
  z-index: 15;
}
.short-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.short-badge-live {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.short-top-pill {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  position: relative;
}
.short-top-pill::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}
.short-sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}
.short-sound-btn:hover {
  background: rgba(99, 102, 241, 0.85);
  border-color: rgba(99, 102, 241, 0.6);
}
.short-sound-btn.is-unmuted {
  background: #10b981;
  border-color: #059669;
}

/* Right Actions Column */
.short-actions {
  position: absolute;
  right: 8px;
  bottom: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 15;
  pointer-events: auto;
}
.short-avatar-box {
  position: relative;
  width: 36px;
  height: 36px;
  margin-bottom: 2px;
}
.short-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  background: #1e1b4b;
}
.short-follow-plus {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f43f5e;
  color: #fff;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
  cursor: pointer;
  transition: transform 0.2s;
}
.short-follow-plus:hover {
  transform: translateX(-50%) scale(1.15);
}
.short-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  cursor: pointer;
}
.short-action-btn .action-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  transition: transform 0.15s ease;
}
.short-action-btn:hover .action-icon-circle {
  transform: scale(1.18);
}
.short-action-btn.liked .action-icon-circle i {
  color: #f43f5e !important;
}
.short-action-btn.saved .action-icon-circle i {
  color: #fbbf24 !important;
}
.short-action-btn .action-count {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Vinyl disc */
.short-disc-box {
  margin-top: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.short-disc-spin {
  animation: disc-spin 3.5s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes disc-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Bottom info */
.short-bottom-info {
  position: absolute;
  left: 10px;
  right: 56px;
  bottom: 12px;
  z-index: 15;
  pointer-events: auto;
  text-align: left;
}
.short-author-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}
.short-author-handle {
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.short-verified-badge {
  font-size: 11px;
}
.short-follow-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  background: #f43f5e;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, background-color 0.2s;
}
.short-follow-pill:hover {
  opacity: 0.9;
}
.short-caption {
  font-size: 10.5px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
}
.short-music-track {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  overflow: hidden;
}

/* Scrubber */
.short-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  z-index: 20;
  pointer-events: auto;
}
.short-progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  transition: width 0.1s linear;
}

/* Platform-specific GUI variants */
.short-gui-overlay[data-platform="tiktok"] .short-follow-pill {
  background: #f43f5e;
}
.short-gui-overlay[data-platform="reels"] .short-follow-pill {
  background: #1877f2;
}
.short-gui-overlay[data-platform="reels"] .short-badge-live {
  color: #1877f2;
}
.short-gui-overlay[data-platform="instagram"] .short-follow-pill {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   VIDEO WALL MARQUEE (1clickvn style)
   ========================================================================== */
.wall {
  padding: 24px 0 36px;
  background: #060512;
  border-top: 1px solid rgba(31, 27, 75, 0.8);
  border-bottom: 1px solid rgba(31, 27, 75, 0.8);
  overflow: hidden;
  position: relative;
}
.wall-head {
  max-width: 80rem;
  margin: 0 auto 16px;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.wall-kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #818cf8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wall-note {
  font-size: 0.8rem;
  color: #9f9dbb;
}
.wall-track-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.wall-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: wall-marquee 50s linear infinite;
  padding: 6px 0;
}
.wall:hover .wall-track {
  animation-play-state: paused;
}
@keyframes wall-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.wall-card {
  position: relative;
  width: 260px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #0f0e26;
  border: 1px solid rgba(31, 27, 75, 0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  flex: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s, box-shadow 0.25s;
}
.wall-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 20px 45px rgba(99, 102, 241, 0.25);
  z-index: 10;
}
.wall-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}
.wall-card .card-dur {
  position: absolute;
  right: 10px;
  top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  padding: 3px 7px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.wall-card .card-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: rgba(99, 102, 241, 0.85);
  padding: 3px 7px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.wall-card .card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 12px 12px;
  background: linear-gradient(to top, rgba(8, 7, 22, 0.95) 0%, rgba(8, 7, 22, 0.65) 60%, transparent 100%);
  z-index: 2;
}
.wall-card .card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.3;
}
.wall-card .card-action {
  font-size: 0.68rem;
  color: #a5b4fc;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.wall-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
}
.wall-card:hover .wall-card-play {
  opacity: 1;
}
.wall-card-play-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.25);
}

/* ==========================================================================
   THEATER SECTION (1clickvn #theater)
   ========================================================================== */
.theater-section {
  padding: 70px 0 90px;
  background: radial-gradient(circle at 50% 0%, #16143c 0%, #080716 75%);
  border-top: 1px solid #1f1b4b;
  position: relative;
}
.theater-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 28px;
  align-items: start;
}
.cinema-box {
  background: #0f0e26;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #1f1b4b;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.7);
}
.player-frame {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
/* Blurred background ambient effect behind video */
.player-frame .video-ambient-bg {
  position: absolute;
  inset: -20px;
  filter: blur(28px) brightness(0.4);
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
  background-size: cover;
  background-position: center;
}
.player-frame video.main-video {
  position: relative;
  z-index: 2;
}
.player-big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 0 0 10px rgba(99, 102, 241, 0.3), 0 20px 40px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.2s, opacity 0.25s;
  z-index: 10;
}
.player-big-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}
.cinema-box.is-playing .player-big-play {
  opacity: 0;
  pointer-events: none;
}
.player-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 10;
}
.player-frame:hover .player-bar,
.cinema-box:not(.is-playing) .player-bar {
  opacity: 1;
}
.theater-ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.theater-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.theater-progress {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  position: relative;
}
.theater-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  transition: width 0.1s linear;
}
.theater-timecode {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  color: #e2e1f5;
  white-space: nowrap;
}
.player-info {
  padding: 22px 24px 24px;
}
.playlist-panel {
  background: #0f0e26;
  border-radius: 24px;
  padding: 20px;
  border: 1px solid #1f1b4b;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.playlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.playlist-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #080716;
  border: 1px solid rgba(31, 27, 75, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  align-items: center;
}
.playlist-item:hover {
  background: #16143c;
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateX(4px);
}
.playlist-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.15));
  border-color: #6366f1;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}
.playlist-thumb-wrap {
  position: relative;
  width: 65px;
  aspect-ratio: 9 / 14;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}
.playlist-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.playlist-thumb-wrap .thumb-dur {
  position: absolute;
  right: 4px;
  bottom: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  padding: 1px 4px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 1023px) {
  .hero-stage {
    height: clamp(420px, 60vw, 520px);
  }
  .phone-left {
    left: 2%;
    transform: rotate(-6deg) scale(0.92);
  }
  .phone-right {
    right: 2%;
    transform: rotate(6deg) scale(0.92);
  }
  .theater-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .hero-stage {
    height: 480px;
  }
  .phone-back {
    display: none;
  }
  .phone-front {
    height: 96%;
    top: 2%;
    width: 250px;
    transform: translateX(-50%);
  }
  .phone-nav-prev {
    left: 2px;
  }
  .phone-nav-next {
    right: 2px;
  }
  .wall-card {
    width: 165px;
  }
}


