﻿/* ========================================
   CinemaKhmer CMS â€” Main Stylesheet
   Style: Dark streaming platform (Khmer)
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Kantumruy+Pro:wght@300;400;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Outfit:wght@400;600;700;800;900&display=swap');

/* â”€â”€ Variables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
  --bg:        #07090E;
  --bg2:       #0B0F19;
  --surface:   #0C1018;
  --surface2:  #111827;
  --surface3:  #1C2333;
  --border:    rgba(255,255,255,.07);
  --gold:      #F5A623;
  --gold-dim:  rgba(245,166,35,.13);
  --gold-glow: rgba(245,166,35,.4);
  --red:       #EF4444;
  --red-dim:   rgba(239,68,68,.15);
  --green:     #22C55E;
  --green-dim: rgba(34,197,94,.15);
  --blue:      #3B82F6;
  --text:      #EFF2F7;
  --text2:     #8B9AB5;
  --text3:     #4A5568;
  --radius:    8px;
  --shadow:    0 12px 40px rgba(0,0,0,.7);
  --transition:.2s ease;
  --ck-container: 1440px;
  --ck-pad: 40px;
}

/* â”€â”€ Reset â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse at 18% 8%, rgba(245,166,35,.055) 0px, transparent 45%),
    radial-gradient(ellipse at 82% 85%, rgba(99,102,241,.04) 0px, transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', 'Kantumruy Pro', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; }

/* â”€â”€ Typography â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
h1,h2,h3,h4,h5 { text-wrap: balance; line-height: 1.25; }

.km { font-family: 'Kantumruy Pro', sans-serif; }

/* â”€â”€ Scrollbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════ */
.ck-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(7,9,14,.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  height: 64px;
  display: flex; align-items: center; justify-content: center;
}
.ck-nav-inner {
  max-width: var(--ck-container); width: 100%;
  margin: 0 auto; padding: 0 var(--ck-pad);
  display: flex; align-items: center; gap: 0; height: 100%;
}

/* ── Logo ── */
.ck-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; text-decoration: none; color: var(--text);
  margin-right: 20px;
}
.ck-logo-icon {
  width: 36px; height: 36px;
  background: var(--gold); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #0a0c12; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(251,191,36,.25), 0 4px 14px rgba(245,166,35,.3);
}
.ck-logo-text {
  display: flex; flex-direction: column; gap: 1px;
}
.ck-logo-word {
  font-size: 15px; font-weight: 900; letter-spacing: .05em; color: var(--text);
  text-transform: uppercase; display: flex; align-items: center; gap: 5px;
  line-height: 1.2;
}
.ck-logo-vip {
  background: var(--gold); color: #0a0c12;
  font-size: 8px; font-weight: 900; letter-spacing: .06em;
  padding: 2px 5px; border-radius: 4px; line-height: 1.4;
}
.ck-logo-sub {
  font-size: 9.5px; color: var(--text3); font-weight: 500;
  letter-spacing: .01em; line-height: 1; white-space: nowrap;
}
/* Language toggle */
.ck-lang-toggle {
  display: flex; align-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px; padding: 3px; gap: 2px;
  flex-shrink: 0; margin-left: auto; margin-right: 6px;
}
.ck-lang-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: none;
  color: var(--text3); padding: 4px 9px; border-radius: 6px;
  font-size: 11.5px; font-weight: 700; cursor: pointer; font-family: inherit;
  white-space: nowrap; transition: all .15s; line-height: 1;
}
.ck-lang-btn:hover { color: var(--text); background: rgba(255,255,255,.08); }
.ck-lang-btn.active { background: var(--gold); color: #0a0c12; }
/* KHQR nav button (logged-out) */
.ck-nav-khqr {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: var(--text2); padding: 7px 12px; border-radius: 9px;
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  font-family: inherit; white-space: nowrap; flex-shrink: 0;
  transition: all .15s;
}
.ck-nav-khqr:hover { background: rgba(255,255,255,.12); color: var(--text); border-color: rgba(255,255,255,.22); }
.ck-nav-khqr span { display: inline; }
.ck-kh-btn { display: none; }
.ck-topup-nav-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gold); color: #0a0c12;
  padding: 7px 13px; border-radius: 9px;
  font-size: 12px; font-weight: 800; cursor: pointer; border: none;
  font-family: inherit; white-space: nowrap; flex-shrink: 0;
  transition: background .15s;
}
.ck-topup-nav-btn:hover { background: #fcd34d; }

/* ── Center nav links ── */
.ck-nav-links {
  display: flex; align-items: center; gap: 2px; flex-shrink: 0;
}
.ck-nl {
  position: relative;
  padding: 6px 13px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--text3);
  transition: color .15s, background .15s; text-decoration: none; white-space: nowrap;
}
.ck-nl:hover { color: var(--text); background: rgba(255,255,255,.05); }
.ck-nl-active {
  color: var(--text) !important;
  background: transparent;
}
/* gold dot indicator under active link */
.ck-nl-active::after {
  content: '';
  position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 2.5px;
  background: var(--gold); border-radius: 2px;
}

/* ── Divider between links and search ── */
.ck-nav-sep {
  width: 1px; height: 22px; background: rgba(255,255,255,.08);
  margin: 0 18px; flex-shrink: 0;
}

/* ── Center nav links (hidden on desktop, visible in mobile drawer) ── */
.ck-nav-links { display: none; }
.ck-nav-sep   { display: none; }

/* ── Search ── */
.ck-search {
  flex: 1; max-width: 520px; position: relative; margin: 0 8px;
}
.ck-search-ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text3); pointer-events: none; flex-shrink: 0;
}
.ck-search input {
  width: 100%; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1); border-radius: 24px;
  color: var(--text); padding: 0 80px 0 38px; height: 40px;
  font-family: inherit; font-size: 13px; outline: none;
  transition: background .2s, border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.ck-search input::placeholder { color: var(--text3); }
.ck-search input:focus {
  background: rgba(255,255,255,.1);
  border-color: rgba(251,191,36,.4);
  box-shadow: 0 0 0 3px rgba(251,191,36,.08);
  outline: none;
}
.ck-search-kbd {
  position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09);
  color: var(--text3); font-size: 9.5px; font-weight: 700; letter-spacing: .04em;
  padding: 2px 5px; border-radius: 4px;
  pointer-events: none; white-space: nowrap; transition: opacity .15s;
}
.ck-search input:focus ~ .ck-search-kbd,
.ck-search input:not(:placeholder-shown) ~ .ck-search-kbd { opacity: 0; pointer-events: none; }
.ck-search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: none; border-radius: 50%;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text2); transition: all .15s;
}
.ck-search-clear:hover { background: rgba(255,255,255,.18); color: var(--text); }
.search-results-dropdown {
  position: absolute; top: calc(100% + 7px); left: 0; right: 0;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; max-height: 320px; overflow-y: auto;
  display: none; z-index: 999; box-shadow: var(--shadow);
}
.search-results-dropdown.open { display: block; }
.search-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; transition: background .15s;
  text-decoration: none; color: var(--text);
}
.search-item:hover { background: var(--surface3); }
.search-item img { width: 34px; height: 48px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.search-item .s-info .s-title { font-size: 13.5px; font-weight: 600; }
.search-item .s-info .s-meta { font-size: 12px; color: var(--text3); margin-top: 2px; }

/* ── Right section ── */
.ck-nav-right {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0; margin-left: 0;
}

/* Wallet group — KHQR + Balance share a visual container */
.ck-wallet-group {
  display: flex; align-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  overflow: hidden;
}
.ck-khqr-btn {
  display: flex; align-items: center; gap: 5px;
  background: transparent; border: none; border-right: 1px solid rgba(255,255,255,.08);
  color: #ef9a9a; padding: 6px 11px; height: 36px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: background .15s, color .15s; white-space: nowrap;
}
.ck-khqr-btn:hover { background: rgba(198,40,40,.18); color: #ffcdd2; }
.ck-balance-btn {
  display: flex; align-items: center; gap: 5px;
  background: transparent; border: none;
  color: var(--gold); padding: 6px 12px; height: 36px;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: background .15s; white-space: nowrap;
}
.ck-balance-btn:hover { background: rgba(251,191,36,.1); }

/* ── Icon button ── */
.ck-icon-btn {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  color: var(--text3); cursor: pointer; transition: all .15s;
}
.ck-icon-btn:hover { background: rgba(255,255,255,.09); color: var(--text); border-color: rgba(255,255,255,.12); }

/* ── User avatar + dropdown ── */
.ck-user-wrap { position: relative; }
.ck-avatar-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #e09b1c 100%);
  color: #0a0c12; font-size: 14px; font-weight: 800;
  border: 2px solid rgba(251,191,36,.4);
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.ck-avatar-btn:hover { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(251,191,36,.18); }
.ck-user-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--surface2); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; min-width: 220px; z-index: 9999;
  box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);
  overflow: hidden;
}
.ck-user-menu.open { display: block; animation: menuFadeIn .15s ease; }
@keyframes menuFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ck-um-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 12px;
}
.ck-um-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold) 0%, #e09b1c 100%);
  color: #0a0c12; font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.ck-um-name  { font-size: 13.5px; font-weight: 700; color: var(--text); }
.ck-um-email {
  font-size: 11px; color: var(--text3); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px;
}
.ck-um-divider { height: 1px; background: var(--border); margin: 3px 0; }
.ck-um-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; font-size: 13px; color: var(--text2);
  transition: all .15s; text-decoration: none; cursor: pointer;
  background: none; border: none; width: 100%; text-align: left;
  font-family: inherit;
}
.ck-um-item:hover { background: var(--surface3); color: var(--text); }
.ck-um-item.gold   { color: var(--gold); }
.ck-um-item.gold:hover { background: var(--gold-dim); }
.ck-um-item.danger { color: #f87171; }
.ck-um-item.danger:hover { background: rgba(239,68,68,.12); color: #fca5a5; }

/* ── Logged-out buttons ── */
.ck-btn-ghost {
  background: transparent; border: 1px solid rgba(255,255,255,.14);
  color: var(--text2); padding: 7px 15px; border-radius: 9px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: all .15s; white-space: nowrap;
}
.ck-btn-ghost:hover { border-color: rgba(255,255,255,.28); color: var(--text); background: rgba(255,255,255,.06); }
.ck-btn-solid {
  background: var(--gold); border: none;
  color: #0a0c12; padding: 7px 16px; border-radius: 9px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all .15s; white-space: nowrap;
}
.ck-btn-solid:hover { background: #fcd34d; box-shadow: 0 0 0 3px rgba(251,191,36,.18); }

/* ── Mobile hamburger ── */
.ck-ham {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px; cursor: pointer; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ck-ham span { display: block; width: 18px; height: 1.5px; background: var(--text2); border-radius: 2px; }

/* ── Mobile search icon button (hidden on desktop) ── */
.ck-mob-search-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: none; border: none; color: var(--text2);
  cursor: pointer; transition: color .15s, background .15s;
}
.ck-mob-search-btn:hover,
.ck-mob-search-btn.active { background: rgba(255,255,255,.08); color: var(--gold); }

/* ── Responsive breakpoints ── */
@media (max-width: 960px) {
  .ck-nav-links { display: none; }
  .ck-nav-sep   { display: none; }
}
@media (max-width: 768px) {
  .ck-mob-search-btn { display: flex; }

  /* Slide-down search bar when mob-search-open */
  .ck-nav.mob-search-open .ck-search {
    display: flex !important;
    position: fixed;
    top: 64px; left: 0; right: 0;
    max-width: unset; flex: unset;
    padding: 10px 16px;
    background: rgba(7,9,14,.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.07);
    z-index: 998;
    box-shadow: 0 8px 24px rgba(0,0,0,.45);
  }
  .ck-nav.mob-search-open .ck-search input  { font-size: 15px; }
  .ck-nav.mob-search-open .ck-search-kbd    { display: none; }
  /* Dropdown extends full-width below the fixed search bar */
  .ck-nav.mob-search-open .search-results-dropdown {
    border-radius: 0 0 12px 12px;
  }
}
@media (max-width: 720px) {
  .ck-logo { margin-right: 0; }
  .ck-search { max-width: none; flex: 1; margin-left: 12px; }
  .ck-search-kbd { display: none; }
}
@media (max-width: 680px) {
  .ck-lang-toggle { display: none; }
  .ck-nav-khqr span { display: none; }
  .ck-nav-khqr { padding: 7px 10px; }
  .ck-btn-ghost { display: none; }
}
@media (max-width: 580px) {
  .ck-khqr-btn span { display: none; }
  .ck-khqr-btn { padding: 6px 9px; }
  .ck-ham { display: flex; }
  .ck-topup-nav-btn span { display: none; }
  .ck-nav-khqr { display: none; }
  .ck-btn-solid { display: none; }
}
@media (max-width: 440px) {
  .ck-balance-btn { display: none; }
  .ck-icon-btn { display: none; }
  .ck-wallet-group { border: none; background: transparent; }
  .ck-topup-nav-btn { display: none; }
}


/* ========================================
   PAGE WRAPPER
   ======================================== */
.page-wrap { padding-top: 64px; min-height: 100vh; }

/* â”€â”€ Global max-width container â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ck-container {
  max-width: var(--ck-container);
  margin: 0 auto;
  width: 100%;
  padding-inline: var(--ck-pad);
}

/* ========================================
   HERO BANNER
   ======================================== */
.hero-banner {
  position: relative;
  min-height: clamp(520px, 72vh, 680px);
  overflow: hidden;
}
.hero-backdrop {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 20%;
  filter: brightness(.42) saturate(1.15);
  transform: scale(1.03);
}
.hero-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(7,9,14,.98) 0%, rgba(7,9,14,.82) 38%, rgba(7,9,14,.28) 68%, rgba(7,9,14,.05) 100%),
    linear-gradient(to top, var(--bg) 0%, rgba(7,9,14,.6) 22%, transparent 55%);
}

/* ── Two-column inner ── */
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--ck-container);
  margin: 0 auto;
  padding: 0 var(--ck-pad);
  height: 100%;
  min-height: clamp(520px, 72vh, 680px);
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-left {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 56px;
  max-width: 580px;
}
.hero-right {
  flex: 0 0 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0 40px;
}

/* ── Chips ── */
.hero-chips {
  display: flex; align-items: center; gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hchip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .05em;
}
.hchip-gold {
  background: var(--gold); color: #0b0c11;
  box-shadow: 0 3px 14px rgba(245,166,35,.40);
}
.hchip-glass {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  color: var(--text2);
}
.hchip-live {
  background: rgba(220,38,38,.18);
  border: 1px solid rgba(220,38,38,.45);
  color: #f87171;
  animation: hero-live-pulse 2s ease-in-out infinite;
}
.hchip-live-dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: #f87171;
}
@keyframes hero-live-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.3); }
  50%      { box-shadow: 0 0 0 5px rgba(220,38,38,0); }
}

/* ── Title & EN ── */
.hero-title {
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 6px;
  text-shadow: 0 2px 24px rgba(0,0,0,.75);
  letter-spacing: -.015em;
  text-wrap: balance;
}
.hero-en-title {
  font-size: 13px; color: var(--text3);
  font-weight: 500; margin-bottom: 14px;
  letter-spacing: .01em;
}

/* ── Stats row ── */
.hero-stats-row {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hstat {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--text2); font-weight: 600;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  padding: 4px 10px; border-radius: 20px;
}
.hstat-rating { color: #f5a623; background: rgba(245,166,35,.12); border-color: rgba(245,166,35,.25); }
.hstat-free   { color: #4ade80; background: rgba(74,222,128,.1);  border-color: rgba(74,222,128,.25); }

/* ── Description ── */
.hero-desc {
  font-size: 13.5px; color: var(--text2); line-height: 1.65;
  margin-bottom: 24px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── CTA buttons ── */
.hero-actions { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.hbtn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--radius);
  font-size: 14.5px; font-weight: 700;
  transition: all .18s ease;
  cursor: pointer; border: none;
  letter-spacing: .01em;
}
.hbtn-play {
  background: var(--gold); color: #0b0c11;
  padding: 13px 26px;
  box-shadow: 0 4px 22px rgba(245,166,35,.42);
}
.hbtn-play:hover { opacity: .9; transform: translateY(-2px); box-shadow: 0 7px 28px rgba(245,166,35,.55); }
.hbtn-wl {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--text);
  padding: 12px 20px;
  backdrop-filter: blur(8px);
}
.hbtn-wl:hover { background: rgba(255,255,255,.17); transform: translateY(-1px); }
.hbtn-wl.active .hbtn-wl-txt::before { content: '✓ '; }
.hbtn-info {
  width: 46px; height: 46px; padding: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--text2);
  border-radius: 50%;
  justify-content: center;
  backdrop-filter: blur(6px);
  flex-shrink: 0;
}
.hbtn-info:hover { background: rgba(255,255,255,.16); color: var(--text); }

/* ── Promo strip ── */
.hero-promo-strip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,166,35,.08);
  border: 1px solid rgba(245,166,35,.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px; color: var(--text2);
  width: fit-content;
}
.hero-promo-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
  box-shadow: 0 0 6px rgba(245,166,35,.6);
}
.hero-promo-strip strong { color: var(--gold); }
.hero-promo-link {
  color: var(--gold); font-weight: 700; font-size: 11.5px;
  margin-left: 4px; white-space: nowrap;
}
.hero-promo-link:hover { opacity: .8; }

/* ── Poster card ── */
.hero-poster-card {
  position: relative;
  width: 200px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.hero-poster-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 32px 80px rgba(0,0,0,.8), 0 0 28px rgba(245,166,35,.22); }
.hero-poster-card img {
  display: block; width: 100%;
  aspect-ratio: 2/3; object-fit: cover;
}
.hero-poster-glow {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,9,14,.92) 0%, transparent 55%);
}
.hero-poster-free-tag {
  position: absolute; top: 10px; left: 10px;
  background: #4ade80; color: #052e16;
  font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 4px;
  letter-spacing: .06em;
}
.hero-poster-free-all { background: #4ade80; }
.hero-poster-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s ease;
  background: rgba(0,0,0,.3);
  color: #fff;
}
.hero-poster-card:hover .hero-poster-play-btn { opacity: 1; }
.hero-poster-play-btn svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.hero-poster-foot {
  position: absolute; bottom: 10px; left: 10px; right: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.hero-pf-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 5px;
}
.hero-pf-pill-ep { background: rgba(245,166,35,.25); border-color: rgba(245,166,35,.3); color: var(--gold); }

/* kept for backward compat */
.btn-play {
  display: flex; align-items: center; gap: 8px;
  background: var(--gold); color: #0B0C11;
  padding: 13px 26px; border-radius: var(--radius);
  font-size: 15px; font-weight: 800;
  box-shadow: 0 4px 22px rgba(245,166,35,.42);
  transition: all .2s ease;
}
.btn-play:hover { opacity: .88; transform: translateY(-1px); }
.btn-detail {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); color: var(--text);
  padding: 13px 22px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14);
  transition: all .2s ease;
}
.btn-detail:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }

/* ========================================
   SECTION TITLES
   ======================================== */
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.section-title h2 {
  font-size: 20px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.section-title h2 .title-bar {
  width: 4px; height: 22px;
  background: var(--gold);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(245,166,35,.55);
}
.section-title a { font-size: 13px; color: var(--gold); font-weight: 500; }
.section-title a:hover { text-decoration: underline; }

section.ck-section {
  padding: 36px var(--ck-pad);
  max-width: var(--ck-container);
  margin: 0 auto;
  width: 100%;
}

/* ========================================
   MOVIE CARDS
   ======================================== */
.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

/* ── Movie Card ───────────────────────────────────────────── */
.movie-card {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
  border: 1px solid rgba(255,255,255,.06);
  position: relative;
  width: 100%;
  flex-shrink: unset;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.movie-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 48px rgba(0,0,0,.8), 0 0 0 1px rgba(245,166,35,.18);
}

/* Poster */
.movie-card .poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--surface2);
  flex-shrink: 0;
}
.movie-card .poster-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .42s ease;
  display: block;
}
.movie-card:hover .poster-wrap img { transform: scale(1.07); }

/* Top gradient — makes badges readable over bright posters */
.card-tint-top {
  position: absolute; top: 0; left: 0; right: 0; height: 90px;
  background: linear-gradient(to bottom, rgba(0,0,0,.68) 0%, transparent 100%);
  z-index: 1; pointer-events: none;
}
/* Bottom gradient — rating + bookmark area */
.card-tint-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 100%);
  z-index: 1; pointer-events: none;
}

/* ── Top-left status badge ── */
.card-status-badge {
  position: absolute; top: 9px; left: 9px; z-index: 3;
  font-size: 11px; font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  line-height: 1.35;
  max-width: 148px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0;
  backdrop-filter: blur(6px);
}
.card-status-badge.badge-free {
  background: rgba(6,182,212,.9);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.card-status-badge.badge-vip {
  background: rgba(34,197,94,.95);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.card-status-badge.badge-featured {
  background: rgba(245,158,11,.95);
  color: #0B0C11;
  font-weight: 900;
}
.card-status-badge.badge-done {
  background: rgba(99,102,241,.9);
  color: #fff;
}

/* ── Top-right episode count ── */
.card-ep-tag {
  position: absolute; top: 9px; right: 9px; z-index: 3;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10.5px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 4px;
  border: 1px solid rgba(255,255,255,.1);
}

/* ── Bottom-left rating ── */
.card-rating-overlay {
  position: absolute; bottom: 9px; left: 9px; z-index: 3;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px; font-weight: 800; color: #fbbf24;
  display: flex; align-items: center; gap: 3px;
  line-height: 1.35;
}

/* ── Bottom-right bookmark ── */
.card-save-btn {
  position: absolute; bottom: 9px; right: 9px; z-index: 3;
  width: 28px; height: 28px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: background var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
}
.movie-card:hover .card-save-btn { opacity: 1; }
.card-save-btn:hover,
.card-save-btn.saved { background: var(--gold); color: #0B0C11; border-color: var(--gold); opacity: 1; }
.card-save-btn.saved svg { fill: #0B0C11; }

/* Hover play overlay */
.movie-card .poster-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.28);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.movie-card:hover .poster-overlay { opacity: 1; }
.poster-play-btn {
  width: 52px; height: 52px;
  background: rgba(245,166,35,.94);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #0B0C11;
  transform: scale(.75);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 0 0 8px rgba(245,166,35,.18);
}
.movie-card:hover .poster-play-btn { transform: scale(1); }

/* ── Card info area ── */
.movie-card .card-info {
  padding: 10px 12px 14px;
  flex: 1;
  display: flex; flex-direction: column; gap: 5px;
  background: var(--surface);
}
.card-genre-tag {
  font-size: 10px; font-weight: 800;
  color: var(--gold);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: .95;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.card-title {
  font-size: 15px; font-weight: 800;
  /* Khmer stacked vowels need taller line-height */
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Kantumruy Pro first — so Khmer characters render correctly */
  font-family: 'Kantumruy Pro', 'Plus Jakarta Sans', sans-serif;
  margin-top: 1px;
}
.card-bottom-meta {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--text3);
  margin-top: 2px; flex-wrap: nowrap; overflow: hidden;
}
.card-bottom-meta .meta-views {
  display: flex; align-items: center; gap: 3px; flex-shrink: 0;
}
.card-bottom-meta .meta-dot { flex-shrink: 0; opacity: .4; }
.card-bottom-meta .meta-free {
  color: #4ade80; font-weight: 700; font-family: 'Kantumruy Pro', sans-serif;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-bottom-meta .meta-paid {
  color: var(--gold); font-weight: 700;
  font-family: 'Kantumruy Pro', sans-serif;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Legacy compat — hide old elements */
.card-badge, .card-rating, .card-top-bar { display: none !important; }
.card-bottom-strip { display: none !important; }
.card-meta { display: none !important; }

/* Legacy compat â€” hide old elements */
.card-badge, .card-rating, .card-top-bar { display: none !important; }
.card-bottom-strip { display: none !important; }
.card-meta { display: none !important; }

/* ========================================
   GENRE FILTER PILLS
   ======================================== */
.genre-pills {
  display: flex; gap: 0; flex-wrap: nowrap;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  overflow-x: auto;
  scrollbar-width: none;
}
.genre-pills::-webkit-scrollbar { display: none; }
.genre-pill {
  padding: 10px 18px;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text2);
  font-size: 15px; font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  margin-bottom: -1px;
}
.genre-pill:hover { color: var(--text); }
.genre-pill.active {
  background: transparent;
  border-bottom-color: var(--gold);
  color: var(--gold);
  font-weight: 700;
}

/* ========================================
   SERIES DETAIL PAGE
   ======================================== */
.series-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 380px;
}
.series-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,12,17,.5) 0%, var(--bg) 100%),
              linear-gradient(to right, rgba(11,12,17,.8) 0%, transparent 60%);
}
.series-hero-content {
  position: relative; z-index: 2;
  display: flex; gap: 36px;
  padding: 80px 0 40px;
  align-items: flex-end;
  max-width: var(--ck-container);
  margin: 0 auto;
}
.series-poster {
  width: 180px; flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
  border: 2px solid var(--border);
}
.series-poster img { width: 100%; display: block; }
.series-info { flex: 1; }
.series-info h1 {
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 700; margin-bottom: 8px;
}
.series-info .series-en {
  font-size: 15px; color: var(--text2); margin-bottom: 12px;
}
.series-meta-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 14px;
}
.meta-chip {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 12px;
  font-size: 12px; color: var(--text2);
}
.meta-chip.gold { background: var(--gold-dim); border-color: rgba(245,166,35,.3); color: var(--gold); }
.series-desc { font-size: 14px; color: var(--text2); max-width: 560px; margin-bottom: 20px; }

/* Episode list */
.episode-list { padding: 0 0 48px; max-width: var(--ck-container); margin: 0 auto; }
.episode-list h3 {
  font-size: 18px; font-weight: 700;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.ep-grid {
  display: flex; flex-direction: column; gap: 10px;
}
.ep-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px;
  transition: background var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.ep-item:hover { background: var(--surface2); border-color: rgba(245,166,35,.2); }
.ep-item.locked { opacity: .75; }
.ep-num {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}
.ep-info { flex: 1; min-width: 0; }
.ep-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-meta { font-size: 12px; color: var(--text3); margin-top: 2px; }
.ep-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.btn-watch {
  background: var(--gold);
  color: #0B0C11;
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  transition: opacity var(--transition);
}
.btn-watch:hover { opacity: .85; }

.btn-buy-ep {
  background: var(--surface3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 7px;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  transition: all var(--transition);
}
.btn-buy-ep:hover { border-color: var(--gold); color: var(--gold); }
.btn-buy-ep .price { color: var(--gold); }

.ep-free-badge {
  background: var(--green-dim);
  border: 1px solid rgba(67,160,71,.3);
  color: #6ECF74;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px; font-weight: 700;
}
.ep-lock-icon { color: var(--text3); font-size: 16px; }

/* ========================================
   WATCH PAGE
   ======================================== */
.watch-page { padding: 0; background: #06070A; min-height: 100vh; }

/* ── Custom video player ─────────────────────────── */
.ck-player-shell {
  position: relative; background: #000;
  width: 100%; aspect-ratio: 16/9; overflow: hidden; cursor: default;
  min-height: 200px; max-height: calc(100vh - 60px);
  contain: layout paint;
  transition: height .3s cubic-bezier(.4,0,.2,1);
}
.ck-player-shell.size-theater {
  aspect-ratio: unset; height: 72vh; max-height: 92vh;
}
.ck-player-shell.size-mini {
  aspect-ratio: unset; height: 220px; min-height: 220px;
}
.ck-player-shell video,
.ck-player-shell iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: none; object-fit: contain;
}

/* Overlay: hidden until hover/paused */
.ck-player-ui {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transition: opacity .2s ease;
  pointer-events: none; will-change: opacity;
}
.ck-player-shell.ui-on .ck-player-ui,
.ck-player-shell.paused .ck-player-ui { opacity: 1; }

/* Auto-next countdown overlay */
.ck-autonext {
  position: absolute; bottom: 70px; right: 16px;
  background: rgba(0,0,0,.82); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  padding: 12px; pointer-events: auto; z-index: 10;
  animation: anSlideIn .25s ease;
}
@keyframes anSlideIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
.ck-an-card { display: flex; gap: 12px; align-items: center; }
.ck-an-thumb {
  position: relative; width: 90px; height: 56px; border-radius: 7px;
  overflow: hidden; background: #111; flex-shrink: 0;
}
.ck-an-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ck-an-thumb-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.5);
}
.ck-an-ring {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.ck-an-ring svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.ck-an-bg  { fill: none; stroke: rgba(255,255,255,.15); stroke-width: 3; }
.ck-an-arc {
  fill: none; stroke: #f59e0b; stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 99.9; stroke-dashoffset: 0;
  transition: stroke-dashoffset .9s linear;
}
.ck-an-sec {
  position: absolute; font-size: 15px; font-weight: 800; color: #f59e0b; line-height: 1;
}
.ck-an-info { min-width: 130px; }
.ck-an-label { font-size: 10px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.ck-an-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.ck-an-actions { display: flex; gap: 6px; }
.ck-an-btn {
  padding: 5px 11px; border-radius: 6px; font-size: 12px; font-weight: 700;
  cursor: pointer; border: 1px solid transparent; font-family: inherit;
  text-decoration: none; display: inline-flex; align-items: center;
  transition: background .15s;
}
.ck-an-cancel { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.15); }
.ck-an-cancel:hover { background: rgba(255,255,255,.18); }
.ck-an-play   { background: #f59e0b; color: #000; }
.ck-an-play:hover { background: #fbbf24; color: #000; }

/* Size buttons */
.ck-size-btn { opacity: .7; }
.ck-size-btn:hover { opacity: 1; }

/* Top gradient bar */
.ck-ui-top {
  padding: 14px 18px;
  background: linear-gradient(to bottom, rgba(0,0,0,.8) 0%, transparent 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  pointer-events: auto;
}
.ck-ui-back {
  display: inline-flex; align-items: center; gap: 7px;
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; opacity: .9;
  transition: opacity .15s;
}
.ck-ui-back:hover { opacity: 1; }
.ck-resume-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.4);
  color: #f59e0b; font-size: 12px; font-weight: 600;
  padding: 4px 11px; border-radius: 20px; white-space: nowrap;
}

/* Big center play (HTML5 only, shown when paused) */
.ck-bigplay {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(245,158,11,.9); border: none; cursor: pointer; color: #000;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 12px rgba(245,158,11,.12), 0 8px 32px rgba(0,0,0,.5);
  transition: transform .15s, background .15s; pointer-events: auto;
}
.ck-bigplay:hover { transform: translate(-50%,-50%) scale(1.1); background: #f59e0b; }
.ck-bigplay.ck-hidden { display: none; }

/* Bottom gradient controls */
.ck-ui-btm {
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, transparent 100%);
  pointer-events: auto;
}
.ck-prog-rail { padding: 10px 16px 4px; }
.ck-seek-bar {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 4px; border-radius: 2px;
  outline: none; cursor: pointer;
  background: linear-gradient(to right, #f59e0b 0%, rgba(255,255,255,.22) 0%);
}
.ck-seek-bar::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: #f59e0b; cursor: pointer; box-shadow: 0 0 0 3px rgba(245,158,11,.3);
}
.ck-seek-bar::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: #f59e0b; border: 0; cursor: pointer;
}
.ck-ctrl-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 10px 12px; gap: 6px;
}
.ck-ctrl-l, .ck-ctrl-r { display: flex; align-items: center; gap: 2px; }
.ck-cbtn {
  background: none; border: none; color: #fff; cursor: pointer;
  padding: 6px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  opacity: .85; transition: opacity .15s, background .15s; flex-shrink: 0;
}
.ck-cbtn:hover { opacity: 1; background: rgba(255,255,255,.1); }
.ck-vol-wrap { display: flex; align-items: center; gap: 2px; }
.ck-vol-bar {
  -webkit-appearance: none; appearance: none;
  width: 68px; height: 4px; border-radius: 2px; outline: none; cursor: pointer;
  background: linear-gradient(to right, #f59e0b 100%, rgba(255,255,255,.22) 100%);
}
.ck-vol-bar::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%;
  background: #f59e0b; cursor: pointer;
}
.ck-vol-bar::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #f59e0b; border: 0; cursor: pointer; }
.ck-time-str {
  font-size: 12px; color: rgba(255,255,255,.85); white-space: nowrap; margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
.ck-ep-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px; text-decoration: none; white-space: nowrap;
  font-family: inherit; cursor: pointer; transition: background .15s;
}
.ck-ep-chip:hover { background: rgba(255,255,255,.22); color: #fff; }
.ck-speed-btn {
  font-size: 12px; font-weight: 700; min-width: 34px;
  background: rgba(255,255,255,.1) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 5px; padding: 4px 8px;
}
/* YouTube: native controls handle play; only show top overlay */
.ck-yt .ck-ui-btm, .ck-yt .ck-bigplay { display: none; }
.ck-yt .ck-player-ui { pointer-events: none; opacity: 1 !important; }
.ck-yt .ck-ui-top { pointer-events: auto; }

.watch-info { padding: 24px 0; max-width: var(--ck-container); margin: 0 auto; }
.watch-info h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.watch-meta { font-size: 13px; color: var(--text3); margin-bottom: 20px; display: flex; gap: 12px; }

.watch-layout { display: grid; grid-template-columns: 1fr 320px; gap: 0; align-items: start; }
.watch-main { border-right: 1px solid var(--border); }
.watch-sidebar {
  background: var(--bg2);
  position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.watch-sidebar::-webkit-scrollbar { width: 4px; }
.watch-sidebar::-webkit-scrollbar-track { background: transparent; }
.watch-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.sidebar-title {
  padding: 16px 18px;
  font-size: 14px; font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.ep-sidebar-item {
  display: flex; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
}
.ep-sidebar-item:hover { background: var(--surface); }
.ep-sidebar-item.active { background: var(--gold-dim); border-left: 3px solid var(--gold); }
.ep-sidebar-thumb {
  width: 72px; height: 50px;
  background: var(--surface2);
  border-radius: 5px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--gold);
  overflow: hidden;
}
.ep-sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-sidebar-info .ep-s-num { font-size: 11px; color: var(--gold); font-weight: 700; }
.ep-sidebar-info .ep-s-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.ep-sidebar-info .ep-s-dur { font-size: 11px; color: var(--text3); }

.ep-sidebar-item.ep-locked { opacity: .75; }
.ep-sidebar-item.ep-locked:hover { background: rgba(245,158,11,.05); }
.ep-sidebar-thumb { position: relative; }
.ep-thumb-lock {
  position: absolute; bottom: 4px; right: 4px;
  background: rgba(0,0,0,.72); color: var(--gold);
  width: 18px; height: 18px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}

/* ========================================
   TOPUP / KHQR PAGE
   ======================================== */
.topup-page { max-width: 560px; margin: 80px auto; padding: 0 20px 60px; }
.topup-page h1 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.topup-page .sub { color: var(--text2); font-size: 14px; margin-bottom: 28px; }

.amount-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 20px;
}
.amount-btn {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.amount-btn:hover { border-color: var(--gold); }
.amount-btn.selected { border-color: var(--gold); background: var(--gold-dim); }
.amount-btn .amt-riel { font-size: 20px; font-weight: 700; color: var(--gold); }
.amount-btn .amt-label { font-size: 11px; color: var(--text3); margin-top: 2px; }

.custom-amount {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px; width: 100%;
  outline: none; margin-bottom: 20px;
  transition: border-color var(--transition);
}
.custom-amount:focus { border-color: rgba(245,166,35,.5); }

.btn-generate-qr {
  width: 100%;
  background: var(--gold);
  color: #0B0C11;
  padding: 15px;
  border-radius: var(--radius);
  font-size: 16px; font-weight: 700;
  transition: opacity var(--transition);
}
.btn-generate-qr:hover { opacity: .88; }
.btn-generate-qr:disabled { opacity: .5; cursor: not-allowed; }

/* QR Display */
.qr-display {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  margin-top: 24px;
  display: none;
}
.qr-display.show { display: block; }
.qr-box {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  display: inline-block;
  margin: 0 auto 16px;
}
.qr-box canvas { display: block; }
.qr-amount { font-size: 26px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.qr-banks { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.qr-bank-chip {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px; font-weight: 700;
}
.qr-countdown { font-size: 13px; color: var(--text3); margin-bottom: 14px; }
.qr-countdown .time { color: var(--gold); font-weight: 700; }
.qr-status { padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.qr-status.pending { background: var(--gold-dim); color: var(--gold); }
.qr-status.success { background: var(--green-dim); color: #6ECF74; }
.qr-status.failed  { background: var(--red-dim);  color: #F88; }

.btn-sim-pay {
  background: var(--green-dim);
  border: 1px solid rgba(67,160,71,.4);
  color: #6ECF74;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px; font-weight: 700;
  margin-top: 8px;
}
.btn-sim-pay:hover { background: rgba(67,160,71,.25); }

/* ========================================
   AUTH PAGES
   ======================================== */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  padding: 20px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .auth-logo-icon {
  width: 56px; height: 56px;
  background: var(--gold);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 10px;
}
.auth-logo h2 { font-size: 22px; font-weight: 700; }
.auth-logo p { font-size: 13px; color: var(--text2); margin-top: 4px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text2); }
.form-control {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 11px 14px;
  font-family: inherit; font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.form-control:focus { border-color: rgba(245,166,35,.5); }
.form-control::placeholder { color: var(--text3); }

.btn-auth {
  width: 100%;
  background: var(--gold);
  color: #0B0C11;
  padding: 13px;
  border-radius: 9px;
  font-size: 15px; font-weight: 700;
  margin-top: 4px;
  transition: opacity var(--transition);
}
.btn-auth:hover { opacity: .88; }

.auth-switch { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--text2); }
.auth-switch a { color: var(--gold); font-weight: 600; }

/* Telegram OAuth */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0 18px;
  color: var(--text3); font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}
.tg-widget-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.tg-widget-wrap iframe { border-radius: 8px; }
.tg-hint {
  font-size: 11.5px; color: var(--text3); text-align: center; margin: 0;
  line-height: 1.5;
}

/* ========================================
   SERIES WATCH PAGE â€” 2-COLUMN LAYOUT
   ======================================== */
.series-watch-body { }

/* ── SERIES WATCH PAGE ──────────────────────────────────────── */
/* Sub-nav */
.sw-subnav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.sw-subnav-inner {
  max-width: var(--ck-container); margin: 0 auto;
  padding: 0 var(--ck-pad);
  display: flex; align-items: center; gap: 16px;
  min-height: 44px;
}
.sw-back-link {
  color: var(--text2); font-size: 13px; font-weight: 600;
  transition: color var(--transition);
}
.sw-back-link:hover { color: var(--gold); }
.sw-resumed-badge {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3);
  color: var(--gold); font-size: 11.5px; font-weight: 600;
  padding: 4px 12px; border-radius: 20px; white-space: nowrap;
  padding: 3px 10px; border-radius: 20px;
  margin-left: auto;
}

/* Main wrapper + 2-column grid */
.sw-main-wrap {
  max-width: var(--ck-container); margin: 0 auto;
  width: 100%; padding: 20px var(--ck-pad) 0;
}
.sw-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 0 20px;
  align-items: start;
}

/* â”€â”€ LEFT COLUMN â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-left { display: flex; flex-direction: column; gap: 0; min-width: 0; }

/* Player */
.sw-player {
  width: 100%; background: #000;
  aspect-ratio: 16/9;
  position: relative; overflow: hidden;
  border-radius: 10px 10px 0 0;
}
.sw-player iframe,
.sw-player video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none;
}
.sw-player-locked {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.sw-locked-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(20px) brightness(.22) saturate(.7);
  transform: scale(1.04);
}
.sw-locked-overlay {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  text-align: center;
  background: rgba(7,9,14,.62);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgba(245,166,35,.22);
  border-radius: 20px;
  padding: 28px 36px 24px;
  max-width: 340px; width: 90%;
  box-shadow: 0 12px 48px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.07);
}
/* Lock icon circle */
.sw-lock-icon {
  width: 56px; height: 56px;
  background: rgba(245,166,35,.13);
  border: 2px solid rgba(245,166,35,.38);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); flex-shrink: 0; margin-bottom: 2px;
}
.sw-lock-ep-badge {
  background: rgba(245,166,35,.14);
  border: 1px solid rgba(245,166,35,.3);
  color: var(--gold);
  padding: 2px 12px; border-radius: 20px;
  font-size: 10.5px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
}
.sw-lock-title {
  font-size: 17px; font-weight: 800; color: var(--text);
  line-height: 1.3; margin-top: 2px;
}
.sw-lock-sub {
  font-size: 11.5px; color: var(--text2); line-height: 1.55;
  max-width: 240px;
}
.sw-lock-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gold); color: #0B0C11;
  padding: 10px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 800;
  cursor: pointer; border: none; font-family: inherit;
  box-shadow: 0 4px 20px rgba(245,166,35,.4);
  transition: all .2s; text-decoration: none;
  margin-top: 6px; white-space: nowrap;
}
.sw-lock-cta:hover {
  background: #fcd34d; transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,166,35,.55);
}
.sw-lock-banks {
  display: flex; gap: 5px; flex-wrap: wrap; justify-content: center;
  margin-top: 2px;
}
.sw-lock-banks span {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  color: var(--text3); padding: 2px 8px; border-radius: 4px;
  font-size: 9px; font-weight: 600;
}

/* NOW PLAYING area */
.sw-now-playing {
  background: var(--surface);
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 14px 18px 16px;
}
.sw-np-meta {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 5px;
}
.sw-np-label {
  font-size: 9.5px; font-weight: 800; color: var(--text3);
  letter-spacing: .12em; text-transform: uppercase;
}
.sw-np-dot { color: var(--border); }
.sw-np-ep {
  font-size: 11px; font-weight: 700; color: var(--text2);
  letter-spacing: .06em;
}
.sw-np-free {
  background: var(--green-dim); border: 1px solid rgba(34,197,94,.35);
  color: var(--green); padding: 1px 8px; border-radius: 20px;
  font-size: 10px; font-weight: 700;
}
.sw-np-saved {
  font-size: 10px; color: var(--text3); margin-left: auto;
}
.sw-np-title {
  font-size: clamp(16px, 2vw, 22px); font-weight: 800;
  line-height: 1.25; margin-bottom: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sw-np-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.sw-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text2);
  font-size: 12.5px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.sw-action-btn:hover { background: var(--surface3); color: var(--text); border-color: rgba(255,255,255,.18); }
.sw-action-next {
  background: var(--gold-dim); border-color: rgba(245,158,11,.3); color: var(--gold);
}
.sw-action-next:hover { background: rgba(245,158,11,.22); }
.sw-action-ghost { color: var(--text3); }

/* Series info block (below NOW PLAYING) */
.sw-series-info {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 18px; padding-bottom: 24px;
}
.sw-si-thumb {
  flex-shrink: 0; width: 90px;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
}
.sw-si-thumb img { width: 100%; display: block; }
.sw-si-content { flex: 1; min-width: 0; }
.sw-si-top {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 8px;
}
.sw-genre-pill {
  background: var(--gold); color: #0a0c12;
  padding: 4px 12px; border-radius: 20px;
  font-size: 10px; font-weight: 800; letter-spacing: .07em;
}
.sw-status-pill {
  padding: 3px 10px; border-radius: 20px;
  font-size: 10.5px; font-weight: 700;
}
.sw-done  { background: var(--green-dim); border: 1px solid rgba(34,197,94,.3); color: var(--green); }
.sw-ongoing { background: var(--red-dim); border: 1px solid rgba(239,68,68,.3); color: var(--red); }
.sw-si-title {
  font-size: clamp(18px, 2.2vw, 26px); font-weight: 800;
  line-height: 1.25; margin-bottom: 4px;
}
.sw-si-en { font-size: 12.5px; color: var(--text3); margin-bottom: 10px; }
.sw-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.sw-tag {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text3); padding: 2px 9px; border-radius: 20px;
  font-size: 10.5px; font-weight: 600;
}
.sw-tag-vip { background: var(--gold-dim); border-color: rgba(245,158,11,.3); color: var(--gold); }
.sw-stats {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--text2); margin-bottom: 10px; flex-wrap: wrap;
}
.sw-stat-dot { color: var(--border); }
.sw-si-desc { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* â”€â”€ RIGHT COLUMN â€” SIDEBAR â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-right { position: sticky; top: 70px; height: calc(100vh - 90px); display: flex; flex-direction: column; }
.sw-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
  flex: 1; min-height: 0;
}

/* Sidebar header */
.sw-sb-head {
  padding: 13px 14px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sw-sb-headtop {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 6px;
}
.sw-sb-head h3 { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.sw-ep-total { font-size: 12px; color: var(--text3); font-weight: 400; }
.sw-ep-freebadge {
  font-size: 11px; font-weight: 600; color: var(--green);
  background: var(--green-dim); border: 1px solid rgba(34,197,94,.3);
  padding: 2px 9px; border-radius: 20px; display: inline-block;
}

/* Autoplay toggle */
.sw-autoplay-toggle {
  display: flex; align-items: center; gap: 6px; cursor: pointer; flex-shrink: 0;
}
.sw-autoplay-toggle input { display: none; }
.sw-toggle-track {
  width: 32px; height: 17px;
  background: var(--surface3); border-radius: 100px;
  position: relative; flex-shrink: 0;
  transition: background .2s;
}
.sw-toggle-track::after {
  content: ''; position: absolute;
  top: 2px; left: 2px;
  width: 13px; height: 13px;
  background: #fff; border-radius: 50%;
  transition: transform .2s;
}
.sw-autoplay-toggle input:checked ~ .sw-toggle-track { background: var(--gold); }
.sw-autoplay-toggle input:checked ~ .sw-toggle-track::after { transform: translateX(15px); }
.sw-toggle-label { font-size: 11px; color: var(--text3); }

/* Filter tabs — segmented pill style (dachyub) */
.sw-ep-filters {
  display: flex; gap: 5px; flex-wrap: nowrap;
  padding: 8px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.sw-ep-filters::-webkit-scrollbar { display: none; }
.sw-ep-pill {
  flex: 1; min-width: max-content;
  padding: 8px 14px;
  background: var(--surface2); border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 12px; font-weight: 700;
  color: var(--text3); cursor: pointer; font-family: inherit;
  transition: all .15s; white-space: nowrap; text-align: center;
}
.sw-ep-pill:hover { color: var(--text); border-color: rgba(255,255,255,.15); }
.sw-ep-pill.active {
  background: var(--surface3); color: var(--text);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 1px 6px rgba(0,0,0,.25);
}

/* Episode squares grid — scrollable */
.sw-ep-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  padding: 8px 10px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--surface3) transparent;
  align-content: start;
}
.sw-ep-grid::-webkit-scrollbar { width: 3px; }
.sw-ep-grid::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 4px; }

.sw-ep-sq {
  aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 8px; cursor: pointer;
  transition: all .15s ease; text-decoration: none; gap: 0;
  overflow: hidden; padding: 6px 3px 5px;
}
.sw-ep-sq:hover { background: var(--surface3); border-color: rgba(255,255,255,.22); transform: translateY(-1px); }
.sw-sq-num {
  font-size: 15px; font-weight: 800; color: var(--text); line-height: 1;
}
.sw-sq-label {
  font-size: 7px; font-weight: 700; line-height: 1.1; text-align: center;
  padding: 0 2px; letter-spacing: .01em; width: 100%;
}
.sw-sq-label-playing {
  color: var(--gold); font-size: 8px; font-weight: 800;
  background: rgba(245,158,11,.2); padding: 1px 4px; border-radius: 3px;
}
.sw-sq-label-free { color: var(--text3); font-size: 7px; }
.sw-sq-label-lock { font-size: 7px; opacity: .9; }

.sw-sq-current {
  border-color: var(--gold); border-width: 2px;
  background: rgba(245,158,11,.12);
  box-shadow: 0 0 0 2px rgba(245,158,11,.18), 0 4px 12px rgba(245,158,11,.2);
}
.sw-sq-current .sw-sq-num { color: var(--gold); font-size: 16px; }
.sw-sq-vip .sw-sq-num { color: var(--text2); }

/* Locked VIP episode squares */
.sw-sq-locked {
  border-color: rgba(255,255,255,.08);
  background: rgba(0,0,0,.2);
}
.sw-sq-locked .sw-sq-num { color: var(--text3); font-size: 13px; }
.sw-sq-locked:hover {
  border-color: rgba(245,158,11,.35);
  background: rgba(245,158,11,.06);
  transform: none;
}
.sw-sq-label-lock {
  color: var(--gold) !important;
  background: rgba(245,158,11,.15);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 7px !important;
  font-weight: 800 !important;
  display: inline-flex; align-items: center; gap: 2px;
}

/* Purchased VIP episodes */
.sw-sq-vip-owned .sw-sq-num { color: var(--text); }
.sw-sq-label-owned { color: var(--text3); font-size: 8px !important; }

/* VIP banner at bottom of sidebar */
.sw-sb-vip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px 14px;
  background: linear-gradient(135deg, rgba(245,158,11,.14) 0%, rgba(245,158,11,.05) 100%);
  border-top: 1px solid rgba(245,158,11,.22);
  flex-shrink: 0;
}
.sw-sb-vip-title {
  font-size: 12px; font-weight: 800; margin-bottom: 3px; color: var(--text);
}
.sw-sb-vip-sub { font-size: 10.5px; color: var(--text2); }
.btn-nav-khqr {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gold); color: #0B0C11;
  padding: 7px 12px; border-radius: 8px;
  font-size: 11.5px; font-weight: 800;
  cursor: pointer; border: none; font-family: inherit;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: background .15s;
}
.btn-nav-khqr:hover { background: #fcd34d; }

/* Shared pill classes (also used in sw-info) */
.sw-done  { background: var(--green-dim); border: 1px solid rgba(34,197,94,.3); color: var(--green); }
.sw-ongoing { background: var(--red-dim); border: 1px solid rgba(239,68,68,.3); color: var(--red); }

/* Related section */
.related-section { border-top: 1px solid var(--border); }

/* â”€â”€ MOBILE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 900px) {
  .sw-main-wrap { padding-block-start: 12px; }
  .sw-grid { grid-template-columns: 1fr; }
  .sw-right { position: static; height: auto; }
  .sw-sidebar { max-height: none; }
  .sw-ep-grid { max-height: 320px; }
  .sw-resumed-badge { display: none; }
}
/* Phone: comprehensive series page overhaul */
@media (max-width: 640px) {
  .sw-subnav { display: none; }
  .sw-main-wrap { padding-block-start: 0; padding-bottom: 28px; }

  /* Player: full-bleed, no rounding */
  .sw-player { border-radius: 0; }
  .sw-now-playing {
    border-radius: 0;
    border-left: none; border-right: none;
    padding: 12px var(--ck-pad) 16px;
  }
  .sw-np-saved { display: none; }
  .sw-np-title {
    font-size: 17px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
  }

  /* Action buttons: 2x2 grid, no wrapping chaos */
  .sw-np-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .sw-action-btn { justify-content: center; padding: 10px 8px; font-size: 13px; }

  /* Series info: hide thumb (redundant with player poster), clean text layout */
  .sw-series-info { flex-direction: column; gap: 0; margin-top: 0; padding: 16px 0 20px; border-top: 1px solid var(--border); }
  .sw-si-thumb { display: none; }
  .sw-si-title { font-size: 19px; }

  /* Episode grid: show all episodes, 5 cols on mobile */
  .sw-ep-grid { max-height: none; grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .sw-sq-num { font-size: 16px; }
  .sw-sq-label { font-size: 8px; }
}

/* ========================================
   PROFILE PAGE
   ======================================== */
.profile-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.profile-hero-inner {
  max-width: var(--ck-container);
  margin: 0 auto;
  padding: 40px 0;
  display: flex; gap: 24px; align-items: center;
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  flex-shrink: 0;
}
.profile-name { font-size: 24px; font-weight: 700; }
.profile-email { font-size: 14px; color: var(--text2); }
.profile-balance-display {
  margin-left: auto;
  text-align: right;
}
.profile-balance-display .bal-label { font-size: 12px; color: var(--text3); }
.profile-balance-display .bal-amount { font-size: 28px; font-weight: 700; color: var(--gold); }

.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  gap: 4px;
}
.profile-tab {
  padding: 14px 20px;
  font-size: 14px; font-weight: 600;
  color: var(--text3);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}
.profile-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.profile-tab:hover { color: var(--text); }

.profile-content { padding: 32px 48px; }

/* History table */
.hist-table { width: 100%; border-collapse: collapse; }
.hist-table th {
  text-align: left; padding: 10px 14px;
  font-size: 12px; font-weight: 600; color: var(--text3);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: .05em;
}
.hist-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.hist-table tr:last-child td { border-bottom: none; }
.status-pill {
  padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700;
}
.status-completed { background: var(--green-dim); color: #6ECF74; }
.status-pending   { background: var(--gold-dim);  color: var(--gold); }
.status-failed    { background: var(--red-dim);   color: #F88; }

/* ========================================
   ADMIN PANEL
   ======================================== */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: fixed; top: 64px; bottom: 0; left: 0;
  overflow-y: auto; z-index: 50;
  padding: 16px 0;
}
.admin-sidebar .sidebar-header {
  padding: 4px 20px 14px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  font-size: 14px; font-weight: 500;
  color: var(--text2);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav-item:hover { background: var(--surface2); color: var(--text); }
.admin-nav-item.active { background: var(--gold-dim); color: var(--gold); border-left-color: var(--gold); }
.admin-nav-item .nav-icon { font-size: 17px; }

.admin-main {
  margin-left: 240px;
  flex: 1;
  padding: 84px 32px 40px;
}

.admin-page-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.admin-page-title h1 { font-size: 22px; font-weight: 700; }

/* Stat cards */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-card .stat-label { font-size: 12px; color: var(--text3); margin-bottom: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat-card .stat-value { font-size: 26px; font-weight: 700; color: var(--gold); }
.stat-card .stat-sub { font-size: 12px; color: var(--text3); margin-top: 4px; }

/* Admin table */
.admin-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.admin-table-wrap .table-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.admin-table-wrap .table-header h3 { font-size: 15px; font-weight: 700; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  padding: 11px 16px; text-align: left;
  font-size: 11.5px; font-weight: 700;
  color: var(--text3); text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.admin-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,.02); }
.admin-table .poster-thumb { width: 40px; height: 58px; object-fit: cover; border-radius: 4px; }

.btn-sm {
  padding: 5px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.btn-edit { background: var(--blue); color: #fff; }
.btn-edit:hover { opacity: .85; }
.btn-delete { background: var(--red-dim); color: #F88; border: 1px solid rgba(229,57,53,.3); }
.btn-delete:hover { background: rgba(229,57,53,.3); }
.btn-add { background: var(--gold); color: #0B0C11; padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.btn-add:hover { opacity: .88; }

/* Admin form */
.admin-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 640px;
}
.admin-form-card label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.admin-form-card .form-control {
  background: var(--surface2); margin-bottom: 4px;
}
.admin-form-card textarea.form-control { min-height: 100px; resize: vertical; }
.admin-form-card select.form-control option { background: var(--surface2); }
.form-hint { font-size: 11px; color: var(--text3); margin-bottom: 14px; }
.admin-form-card .btn-save {
  background: var(--gold); color: #0B0C11;
  padding: 11px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 700;
  transition: opacity var(--transition);
}
.admin-form-card .btn-save:hover { opacity: .88; }

/* ========================================
   UTILITIES
   ======================================== */
.container-fluid { padding: 0 48px; }
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text3);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

.alert { border-radius: 8px; padding: 12px 16px; font-size: 14px; border: none; }
.alert-success { background: var(--green-dim); color: #6ECF74; }
.alert-danger  { background: var(--red-dim);   color: #F88; }
.alert-warning { background: var(--gold-dim);  color: var(--gold); }

/* ========================================
   PROMO BANNER
   ======================================== */
.promo-banner-wrap {
  max-width: var(--ck-container);
  margin: 0 auto;
  padding: 0 var(--ck-pad) 10px;
}
.promo-banner {
  background: linear-gradient(135deg, rgba(245,166,35,.14) 0%, rgba(245,100,35,.07) 60%, rgba(99,102,241,.05) 100%);
  border: 1px solid rgba(245,166,35,.28);
  border-radius: 14px;
  padding: 16px 22px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 4px 24px rgba(245,166,35,.08), inset 0 1px 0 rgba(255,255,255,.04);
}
.promo-crown {
  width: 38px; height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.promo-text { flex: 1; min-width: 0; }
.promo-text strong { color: var(--gold); font-size: 14px; }
.promo-text p { font-size: 12.5px; color: var(--text2); margin-top: 2px; line-height: 1.4; }
.promo-text p .highlight { color: #4ade80; font-weight: 700; }
.promo-btn {
  background: var(--gold);
  color: #0B0C11;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  transition: opacity var(--transition);
  white-space: nowrap;
}
.promo-btn:hover { opacity: .88; }

/* ========================================
   FILTER TABS
   ======================================== */
.filter-tabs {
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.filter-tab {
  padding: 8px 16px;
  font-size: 13px; font-weight: 600;
  color: var(--text3);
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: all var(--transition);
  cursor: pointer;
  background: none;
  white-space: nowrap;
  margin-bottom: -1px;
}
.filter-tab:hover { color: var(--text); }
.filter-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Sort dropdown */
.sort-dropdown {
  margin-left: auto;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text2);
  padding: 5px 10px;
  font-family: inherit;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

/* â”€â”€ Content filter bar (genre LEFT + status RIGHT) â”€ */
.content-filter-bar {
  display: flex; align-items: stretch; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  gap: 0;
  overflow: hidden;
}
.genre-pills {
  display: flex; align-items: stretch; gap: 0; flex-wrap: nowrap;
  overflow-x: auto; scrollbar-width: none;
  border-bottom: none; margin-bottom: 0; padding-bottom: 0;
  flex: 1;
}
.genre-pills::-webkit-scrollbar { display: none; }
.genre-pill {
  padding: 10px 16px;
  border-radius: 0; border: none;
  border-bottom: 2px solid transparent;
  background: transparent; color: var(--text2);
  font-size: 14px; font-weight: 600;
  transition: all var(--transition); white-space: nowrap;
  margin-bottom: -1px; cursor: pointer;
}
.genre-pill:hover { color: var(--text); }
.genre-pill.active { border-bottom-color: var(--gold); color: var(--gold); font-weight: 700; }

.status-filter-group {
  display: flex; align-items: stretch; gap: 0; flex-shrink: 0;
  border-left: 1px solid var(--border);
}
.status-tab {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 13px;
  border-radius: 0; border: none;
  border-bottom: 2px solid transparent;
  background: transparent; color: var(--text3);
  font-size: 12px; font-weight: 600;
  transition: all var(--transition); white-space: nowrap;
  margin-bottom: -1px; cursor: pointer;
  font-family: inherit;
}
.status-tab:hover { color: var(--text); }
.status-tab.active { border-bottom-color: var(--gold); color: var(--gold); font-weight: 700; }
.sort-select {
  background: transparent;
  border: none; border-left: 1px solid var(--border);
  color: var(--text2); font-size: 11.5px;
  padding: 0 10px; font-family: inherit; cursor: pointer; outline: none;
}
.sort-select option { background: var(--surface2); }
.total-count-badge {
  display: flex; align-items: center; padding: 0 14px;
  border-left: 1px solid var(--border);
  font-size: 11.5px; font-weight: 700; color: var(--text3);
  white-space: nowrap;
}

/* ========================================
   CARDS HORIZONTAL SCROLL (mobile)
   ======================================== */
.cards-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.cards-scroll::-webkit-scrollbar { display: none; }
.cards-scroll .movie-card { min-width: 150px; flex-shrink: 0; }

/* ========================================
   HERO IMPROVEMENTS
   ======================================== */
/* height already set in base .hero-banner rule above */

.hero-views-row {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 18px;
}
.hero-views-row .view-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--text2);
}
.hero-views-row .view-item .vicon { font-size: 14px; }

.hero-subtitle {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.hero-subtitle .sub-icon { color: #4ade80; }

/* ========================================
   SECTION IMPROVEMENTS
   ======================================== */
.section-title h2 {
  font-size: 18px;
}
.section-count-badge {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--text3);
  font-weight: 600;
  margin-left: 8px;
}

/* Genre pills: horizontal scroll */
.genre-pills {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.genre-pills::-webkit-scrollbar { display: none; }

/* ── Responsive side-padding scale ── */
@media (max-width: 1280px) { :root { --ck-pad: 32px; } }
@media (max-width: 960px)  { :root { --ck-pad: 24px; } }
@media (max-width: 640px)  { :root { --ck-pad: 16px; } }
@media (max-width: 400px)  { :root { --ck-pad: 12px; } }
@media (max-width: 768px) {
  .ck-search { display: none; }
  section.ck-section { padding-block: 24px; }
  .hero-inner { flex-direction: column; gap: 0; align-items: flex-start; min-height: auto; }
  .hero-left { padding: 90px 0 28px; max-width: 100%; }
  .hero-right { display: none; }
  .hero-promo-strip { font-size: 11px; }
  .hbtn-wl-txt { display: none; }
  .hbtn-wl { padding: 12px 14px; }
  .series-hero-content { flex-direction: column; padding: 80px 0 24px; }
  .series-poster { width: 120px; }
  .episode-list { padding: 0 0 32px; }
  .watch-layout { grid-template-columns: 1fr; }
  .watch-sidebar { display: none; }
  .watch-info { padding: 16px 0; }
  .profile-hero { flex-direction: column; padding: 28px 0; }
  .profile-tabs { padding: 0; }
  .profile-content { padding: 24px 0; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .stat-cards { grid-template-columns: repeat(2,1fr); }
  .topup-page { margin: 80px 0 0; }
  .amount-grid { grid-template-columns: repeat(2,1fr); }
  .cards-row { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
  .profile-balance-display { margin-left: 0; text-align: left; }
  .promo-banner-wrap { padding: 0 var(--ck-pad) 8px; }
  .promo-banner { gap: 10px; }
  .promo-text p { display: none; }
  .hero-banner { min-height: unset; }
  .hero-views-row { display: none; }
  .content-filter-bar { flex-wrap: wrap; }
  .status-filter-group { border-left: none; border-top: 1px solid var(--border); width: 100%; overflow-x: auto; scrollbar-width: none; }
  .filter-tabs { overflow-x: auto; scrollbar-width: none; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .sw-main-wrap { padding-block-start: 12px; }
}

/* ========================================
   MOBILE MENU DRAWER
   ======================================== */
.ck-mobile-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1001;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.ck-mobile-overlay.open { display: block; }

.ck-mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1002;
  width: min(300px, 86vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.5);
}
.ck-mobile-drawer.open { transform: translateX(0); }

body.nav-open { overflow: hidden; }

.ck-md-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  height: 64px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ck-md-close {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px; color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; line-height: 1;
  flex-shrink: 0;
  transition: all .15s;
}
.ck-md-close:hover { background: rgba(255,255,255,.12); color: var(--text); }

.ck-md-nav {
  padding: 12px 12px 0;
  display: flex; flex-direction: column; gap: 2px;
}
.ck-md-nl {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--text2);
  text-decoration: none;
  transition: background .15s, color .15s;
  font-family: 'Kantumruy Pro', 'Plus Jakarta Sans', sans-serif;
}
.ck-md-nl:hover { background: rgba(255,255,255,.06); color: var(--text); }
.ck-md-nl.active { background: rgba(245,166,35,.1); color: var(--gold); }
.ck-md-nl.danger { color: #f87171; }
.ck-md-nl.danger:hover { background: rgba(239,68,68,.1); }

.ck-md-divider { height: 1px; background: var(--border); margin: 10px 12px; }

.ck-md-balance-card {
  margin: 4px 12px 8px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ck-md-bal-info {}
.ck-md-bal-label { font-size: 10.5px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; }
.ck-md-bal-val { font-size: 17px; font-weight: 800; color: var(--gold); margin-top: 2px; }
.ck-md-topup-btn {
  background: var(--gold); color: #0B0C11;
  padding: 7px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  border: none; font-family: inherit;
  white-space: nowrap; flex-shrink: 0;
  transition: background .15s;
}
.ck-md-topup-btn:hover { background: #fcd34d; }

.ck-md-auth {
  padding: 16px 12px 0;
  display: flex; flex-direction: column; gap: 8px;
}
.ck-md-auth .ck-btn-ghost,
.ck-md-auth .ck-btn-solid {
  width: 100%; padding: 12px 16px; font-size: 14px;
  text-align: center; justify-content: center;
}

/* ========================================
   GLOBAL MODALS (Auth + Topup)
   ======================================== */

/* Overlay */
.ckm-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.78); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.ckm-overlay.open {
  opacity: 1; pointer-events: all;
}

/* Base modal box */
.ckm-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px 28px;
  width: 100%; max-width: 440px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.7);
  animation: ckmIn .22s ease;
}
@keyframes ckmIn {
  from { transform: translateY(16px) scale(.97); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}
.ckm-close {
  position: absolute; top: 14px; right: 16px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 50%; width: 30px; height: 30px;
  color: var(--text3); font-size: 17px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.ckm-close:hover { background: var(--surface3); color: var(--text); }

/* â”€â”€ AUTH MODAL â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ckm-auth { text-align: center; }
.ckm-auth-icon {
  font-size: 36px;
  width: 62px; height: 62px;
  background: var(--gold-dim); border: 1px solid rgba(245,158,11,.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; color: var(--gold);
}
.ckm-auth-title { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.ckm-auth-sub   { font-size: 12.5px; color: var(--text3); margin-bottom: 18px; }

/* Telegram section */
.ckm-tg-section { margin-bottom: 6px; }
.ckm-tg-wrap {
  display: flex; justify-content: center; margin-bottom: 6px;
}
.ckm-tg-btn {
  width: 100%; padding: 11px;
  background: #2AABEE; border: none; border-radius: 10px;
  color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background var(--transition); margin-bottom: 8px;
}
.ckm-tg-btn:hover { background: #1d96d6; }
.ckm-tg-hint { font-size: 11px; color: var(--text3); margin-bottom: 6px; }

/* Divider */
.ckm-divider {
  display: flex; align-items: center; gap: 10px;
  font-size: 10.5px; font-weight: 700; color: var(--text3);
  letter-spacing: .1em; margin: 14px 0 12px;
  text-align: center;
}
.ckm-divider::before, .ckm-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}

/* Tabs */
.ckm-tabs {
  display: flex; border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.ckm-tab {
  flex: 1; padding: 9px 12px;
  background: none; border: none;
  border-bottom: 2px solid transparent;
  color: var(--text3); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: all var(--transition); margin-bottom: -1px;
}
.ckm-tab:hover { color: var(--text); }
.ckm-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Form */
.ckm-form { display: flex; flex-direction: column; gap: 10px; }
.ckm-field {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 0 14px;
  transition: border-color var(--transition);
}
.ckm-field:focus-within { border-color: var(--gold); }
.ckm-field-icon { font-size: 15px; color: var(--text3); flex-shrink: 0; }
.ckm-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 13.5px; font-family: inherit;
  padding: 12px 0;
}
.ckm-input::placeholder { color: var(--text3); }
.ckm-err {
  font-size: 12px; color: #F87171; min-height: 16px; text-align: left;
}
.ckm-submit {
  width: 100%; padding: 13px;
  background: var(--gold); border: none; border-radius: 10px;
  color: #0a0b0f; font-size: 14.5px; font-weight: 800;
  cursor: pointer; font-family: inherit;
  transition: background var(--transition); margin-top: 2px;
}
.ckm-submit:hover { background: #fbbf24; }
.ckm-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ========================================
   TOPUP MODAL â€” QR CARD REDESIGN
   ======================================== */

/* Topup modal wider for QR view */
.ckm-topup { max-width: 420px; padding: 0; overflow: hidden; text-align: left; }

/* â”€â”€ Package view â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Payment method tabs */
.ckm-pay-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.ckm-pay-tab {
  flex: 1; padding: 9px 12px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surf2);
  color: var(--text2); cursor: pointer; transition: all .15s; font-family: inherit;
}
.ckm-pay-tab.active {
  background: var(--gold-dim); border-color: var(--gold); color: var(--gold);
}
.ckm-aba-btn { background: #1a56db !important; color: #fff !important; }
.ckm-aba-btn:hover { background: #1245b5 !important; }

#pkgView { padding: 28px 24px 22px; }
.ckm-topup-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(198,40,40,.15); border: 1px solid rgba(198,40,40,.35);
  color: #ef9a9a; padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  margin-bottom: 12px;
}
.ckm-topup-title { font-size: 20px; font-weight: 800; line-height: 1.3; margin-bottom: 4px; }
.ckm-topup-sub   { font-size: 12px; color: var(--text3); margin-bottom: 16px; }
.ckm-step-label  { font-size: 11.5px; font-weight: 700; color: var(--text3); margin-bottom: 10px; }

/* Package grid */
.ckm-pkg-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 12px; }
.ckm-pkg {
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 11px 6px 9px;
  cursor: pointer; font-family: inherit; text-align: center;
  transition: all .15s; position: relative;
  display: flex; flex-direction: column; gap: 3px; align-items: center;
}
.ckm-pkg:hover { border-color: rgba(245,158,11,.5); background: var(--surface3); }
.ckm-pkg-sel   { border-color: var(--gold) !important; background: var(--gold-dim) !important; }
.ckm-pkg-rec   { border-color: rgba(245,158,11,.4); }
.ckm-pkg-badge {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #0a0b0f;
  font-size: 9px; font-weight: 800; padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}
.ckm-pkg-usd { font-size: 13px; font-weight: 800; color: var(--text); }
.ckm-pkg-sel .ckm-pkg-usd { color: var(--gold); }
.ckm-pkg-eps { font-size: 10px; color: var(--text3); }

/* Bonus info */
.ckm-bonus-info {
  background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.25);
  color: #93c5fd; border-radius: 8px;
  padding: 8px 12px; font-size: 12px; margin-bottom: 10px;
}

/* Custom input */
.ckm-custom-input {
  width: 100%; background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
  color: var(--text); font-size: 13px; font-family: inherit; outline: none;
  margin-bottom: 12px; box-sizing: border-box;
  transition: border-color var(--transition);
}
.ckm-custom-input:focus { border-color: var(--gold); }
.ckm-custom-input::placeholder { color: var(--text3); }

/* Generate button */
.ckm-generate-btn {
  width: 100%; padding: 13px;
  background: var(--gold); border: none; border-radius: 10px;
  color: #0a0b0f; font-size: 14.5px; font-weight: 800;
  cursor: pointer; font-family: inherit;
  transition: background var(--transition); margin-bottom: 10px;
}
.ckm-generate-btn:hover { background: #fbbf24; }
.ckm-generate-btn:disabled { opacity: .6; cursor: not-allowed; }
.ckm-security { font-size: 11px; color: var(--text3); text-align: center; }

/* ── QR View ─────────────────────────────────────────────── */
#qrView { display: flex; flex-direction: column; }

/* KHQR Branded Card */
.ckm-qrcard {
  overflow: hidden; border-radius: 14px;
  box-shadow: 0 8px 36px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
}

.ckm-qrcard-head {
  background: linear-gradient(135deg, #C62828 0%, #7f0000 100%);
  padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.ckm-qrcard-head::before {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 90px; height: 90px;
  background: rgba(255,255,255,.08); border-radius: 50%;
  pointer-events: none;
}
.ckm-qrcard-head::after {
  content: ''; position: absolute; right: 20px; bottom: -30px;
  width: 60px; height: 60px;
  background: rgba(255,255,255,.05); border-radius: 50%;
  pointer-events: none;
}

.ckm-qrcard-logo {
  display: flex; align-items: center; gap: 10px; position: relative; z-index: 1;
}
.ckm-qrcard-logo-text { display: flex; flex-direction: column; gap: 2px; }
.ckm-qrcard-logo-name {
  color: #fff; font-size: 20px; font-weight: 900; letter-spacing: .1em; line-height: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.ckm-qrcard-logo-sub {
  color: rgba(255,255,255,.65); font-size: 9px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}

.ckm-qrcard-head-right {
  display: flex; align-items: center; gap: 10px; position: relative; z-index: 1;
}
.ckm-qrcard-head-amt {
  color: #fff; font-size: 22px; font-weight: 900;
  text-shadow: 0 1px 6px rgba(0,0,0,.35); white-space: nowrap;
}
.ckm-qrcard-dl-btn {
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35);
  color: #fff; width: 34px; height: 34px; border-radius: 50%;
  font-size: 14px; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .15s;
}
.ckm-qrcard-dl-btn:hover { background: rgba(255,255,255,.32); }

.ckm-qrcard-body {
  background: var(--surface); padding: 14px 18px 16px;
  border-bottom: 1px solid var(--border);
}

/* Account meta row */
.ckm-qrcard-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.ckm-qrcard-acct { font-size: 12px; color: var(--gold); font-weight: 600; }
.ckm-qrcard-sep  { font-size: 12px; color: var(--text3); }
.ckm-qrcard-ref  { font-size: 11.5px; color: var(--text3); }

/* QR code wrapper */
.ckm-qrcode-wrap {
  display: flex; justify-content: center; margin-bottom: 10px;
}
.ckm-qrcode-wrap > div {
  background: #fff; padding: 12px; border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.28);
}
.ckm-qrcode-wrap canvas, .ckm-qrcode-wrap img { display: block; border-radius: 4px; }

/* Scan hint */
.ckm-scan-hint {
  font-size: 11.5px; color: var(--text2); text-align: center;
  margin-bottom: 12px; line-height: 1.5;
}

/* Bank pills - distinct per bank */
.ckm-bank-pills {
  display: flex; flex-wrap: wrap; gap: 5px; justify-content: center;
  margin-bottom: 12px;
}
.ckm-bank-pills span {
  padding: 3px 10px; border-radius: 20px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
}
.bp-bk { background: rgba(198,40,40,.15);   color: #ef9a9a; border: 1px solid rgba(198,40,40,.3); }
.bp-ac { background: rgba(59,130,246,.12);  color: #93c5fd; border: 1px solid rgba(59,130,246,.25); }
.bp-ab { background: rgba(16,185,129,.12);  color: #6ee7b7; border: 1px solid rgba(16,185,129,.25); }
.bp-wg { background: rgba(245,158,11,.12);  color: #fcd34d; border: 1px solid rgba(245,158,11,.25); }
.bp-cn { background: rgba(168,85,247,.12);  color: #d8b4fe; border: 1px solid rgba(168,85,247,.25); }
.bp-st { background: rgba(107,114,128,.15); color: #d1d5db; border: 1px solid rgba(107,114,128,.3); }

/* Timer row */
.ckm-qr-timer-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; margin-bottom: 10px;
}
.ckm-qr-timer-row > span:first-child { font-size: 11.5px; color: var(--text2); }
.ckm-qr-cd {
  font-size: 14px; font-weight: 800; color: var(--gold);
  font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0;
}
.ckm-qr-cd.urgent { color: #ef5350; animation: cdPulse .9s ease-in-out infinite; }
@keyframes cdPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* Status row */
.ckm-qr-status {
  text-align: center; font-size: 12.5px; padding: 6px 0 2px;
  min-height: 26px; display: flex; align-items: center; justify-content: center; gap: 7px;
}
.ckm-qr-status.pending { color: var(--text3); }
.ckm-qr-status.success { color: #4caf50; font-weight: 700; }
.ckm-qr-status.failed  { color: #ef5350; }
/* Pulsing dot inside pending status */
.ckm-qrs-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--text3); animation: dotPulse 1.4s ease-in-out infinite;
}
/* Animated checkmark for success */
.ckm-qrs-check {
  display: inline-block; animation: checkPop .35s cubic-bezier(.175,.885,.32,1.275) both;
}
@keyframes dotPulse  { 0%,100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.5); opacity: 1; } }
@keyframes checkPop  { 0% { transform: scale(0); } 100% { transform: scale(1); } }
/* Last-checked line */
.ckm-qr-last-check {
  text-align: center; font-size: 11px; color: var(--text4,var(--text3)); margin-top: -2px; padding-bottom: 4px;
}
/* Gen error in package view */
.ckm-gen-err {
  margin: 6px 0 0; padding: 8px 12px; border-radius: 8px;
  background: rgba(239,83,80,.1); color: #ef5350;
  font-size: 12.5px; text-align: center;
}

/* Action row */
.ckm-qr-actions {
  display: flex; gap: 0; border-top: 1px solid var(--border);
}
.ckm-qa-btn {
  flex: 1; padding: 12px 6px;
  background: none; border: none;
  border-right: 1px solid var(--border);
  color: var(--text2); font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background .15s; text-align: center;
}
.ckm-qa-btn:last-child { border-right: none; }
.ckm-qa-btn:hover { background: var(--surface2); color: var(--text); }

/* Check payment green button */
.ckm-check-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  border: none; color: #fff; font-size: 14.5px; font-weight: 800;
  cursor: pointer; font-family: inherit;
  transition: all .2s; letter-spacing: .03em;
}
.ckm-check-btn:hover { background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%); }
.ckm-check-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .ckm-topup { max-width: 100%; }
  #pkgView { padding: 20px 16px 18px; }
  .ckm-pkg-grid { grid-template-columns: repeat(2,1fr); }
  .ckm-qrcard-body { padding: 12px 14px 14px; }
  .ckm-qr-actions { font-size: 11px; }
  .ckm-qrcard-head-amt { font-size: 18px; }
}

/* ========================================
   FOOTER — REDESIGN
   ======================================== */
.ck-footer {
  margin-top: 64px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  position: relative;
}
.ck-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245,166,35,.45) 30%,
    rgba(245,166,35,.7) 50%,
    rgba(245,166,35,.45) 70%,
    transparent 100%
  );
}
.ck-footer-inner {
  max-width: var(--ck-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 48px;
  padding: 52px var(--ck-pad) 40px;
  align-items: start;
}
/* Brand column */
.ck-footer-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.ck-footer-logo-icon {
  width: 38px; height: 38px;
  background: var(--gold); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(245,166,35,.35);
}
.ck-footer-logo-name {
  font-size: 21px; font-weight: 800;
  letter-spacing: -.015em;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}
.ck-footer-logo-accent { color: var(--gold); }
.ck-footer-tagline {
  font-size: 13px; color: var(--text3); line-height: 1.75;
  margin-bottom: 20px;
}
.ck-footer-badges {
  display: flex; gap: 7px; flex-wrap: wrap;
}
.ck-footer-badge {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 11px;
  font-size: 11.5px; font-weight: 600; color: var(--text2);
  display: flex; align-items: center; gap: 5px;
  letter-spacing: .01em;
}
/* Link columns */
.ck-footer-col-title {
  font-size: 10.5px; font-weight: 800;
  color: var(--text3); text-transform: uppercase;
  letter-spacing: .12em; margin-bottom: 18px;
}
.ck-footer-nav {
  display: flex; flex-direction: column; gap: 12px;
}
.ck-footer-nav a {
  font-size: 13.5px; color: var(--text2);
  text-decoration: none;
  display: flex; align-items: center; gap: 7px;
  transition: color .15s, gap .15s;
}
.ck-footer-nav a:hover { color: var(--gold); gap: 10px; }
.ck-footer-nav span {
  font-size: 13.5px; color: var(--text2);
  display: flex; align-items: center; gap: 7px;
}
/* Bottom bar */
.ck-footer-bottom {
  border-top: 1px solid var(--border);
}
.ck-footer-bottom-in {
  max-width: var(--ck-container);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--ck-pad);
  gap: 12px; flex-wrap: wrap;
}
.ck-footer-copy {
  font-size: 12px; color: var(--text3);
  font-variant-numeric: tabular-nums;
}
.ck-footer-powered {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--text3);
}
.ck-footer-power-chip {
  background: var(--gold-dim);
  border: 1px solid rgba(245,166,35,.3);
  color: var(--gold);
  padding: 2px 9px; border-radius: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
@media (max-width: 768px) {
  .ck-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px var(--ck-pad) 28px;
  }
  .ck-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .ck-footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .ck-footer-bottom-in { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ── Custom Video Player ──────────────────────────────────────── */
.ck-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; transition: opacity .2s; z-index: 5;
}
.ck-play-overlay.hidden { opacity: 0; pointer-events: none; }
.ck-center-play {
  width: 64px; height: 64px; background: var(--gold);
  border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; pointer-events: all;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 28px rgba(0,0,0,.65);
}
.ck-center-play:hover { transform: scale(1.1); }
.ck-center-play svg { color: #000; margin-left: 3px; }

.ck-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 55%, transparent 100%);
  padding: 48px 14px 10px;
  transition: opacity .3s; z-index: 6;
}
.ck-controls.hidden { opacity: 0; pointer-events: none; }

/* Progress bar */
.ck-progress { width: 100%; padding: 8px 0 5px; cursor: pointer; }
.ck-prog-track {
  height: 3px; background: rgba(255,255,255,.25); border-radius: 3px;
  position: relative; transition: height .15s;
}
.ck-progress:hover .ck-prog-track { height: 5px; }
.ck-prog-fill {
  height: 100%; background: var(--gold); border-radius: 3px;
  position: relative; width: 0;
}
.ck-prog-thumb {
  width: 13px; height: 13px; background: var(--gold); border-radius: 50%;
  position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  box-shadow: 0 0 6px rgba(245,158,11,.6);
  opacity: 0; transition: opacity .15s;
}
.ck-progress:hover .ck-prog-thumb,
.ck-prog-fill:hover .ck-prog-thumb { opacity: 1; }

/* Control row */
.ck-ctrl-row {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
}
.ck-ctrl-left, .ck-ctrl-right { display: flex; align-items: center; gap: 2px; }

.ck-ctrl-btn {
  background: none; border: none; color: #fff;
  cursor: pointer; padding: 6px 7px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; opacity: .88; flex-shrink: 0;
}
.ck-ctrl-btn:hover { background: rgba(255,255,255,.14); opacity: 1; }

/* Volume slider */
.ck-vol-slider {
  -webkit-appearance: none; appearance: none;
  width: 60px; height: 3px;
  background: rgba(255,255,255,.3); border-radius: 2px; outline: none; cursor: pointer;
}
.ck-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px; background: var(--gold); border-radius: 50%; cursor: pointer;
}
.ck-vol-slider::-moz-range-thumb {
  width: 12px; height: 12px; background: var(--gold); border-radius: 50%; border: none; cursor: pointer;
}

/* Time display */
.ck-time {
  font-size: 11.5px; color: rgba(255,255,255,.85);
  white-space: nowrap; margin-left: 4px;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}

/* EP list button */
.ck-ep-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22);
  border-radius: 6px; padding: 4px 8px 4px 7px;
  font-size: 11.5px; font-weight: 700; color: #fff;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s; font-family: inherit;
}
.ck-ep-btn:hover { background: rgba(255,255,255,.22); color: #fff; }

/* Speed button */
.ck-speed-btn {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 5px; padding: 4px 8px;
  font-size: 11.5px; font-weight: 700; color: #fff;
  cursor: pointer; transition: background .15s; font-family: inherit;
}
.ck-speed-btn:hover { background: rgba(255,255,255,.2); }

/* Mobile adjustments */
@media (max-width: 480px) {
  .ck-center-play { width: 54px; height: 54px; }
  .ck-vol-slider  { width: 44px; }
  .ck-ctrl-btn    { padding: 5px 6px; }
  .ck-controls    { padding: 40px 10px 8px; }
}

/* ── Watch page: control bar on mobile ──────────────────── */
@media (max-width: 640px) {
  /* Hide theater/mini size preset buttons — not useful on phone */
  .ck-size-btn { display: none !important; }
  /* Shrink volume slider */
  .ck-vol-bar  { width: 44px; }
  /* Compact time string */
  .ck-time-str { font-size: 10.5px; margin-left: 2px; }
  /* Compact EP chip */
  .ck-ep-chip  { font-size: 11px; padding: 4px 7px; gap: 3px; }
  /* Slightly tighter control buttons */
  .ck-cbtn     { padding: 5px 5px; }
  .ck-speed-btn { min-width: 28px; font-size: 11px; }
}

/* ── Auto-next overlay: reflow for narrow phones ────────── */
@media (max-width: 480px) {
  .ck-autonext {
    bottom: 60px; left: 8px; right: 8px;
    padding: 10px 12px; border-radius: 10px;
  }
  .ck-an-card   { gap: 10px; }
  .ck-an-thumb  { width: 68px; height: 43px; }
  .ck-an-info   { min-width: 0; flex: 1; }
  .ck-an-title  { max-width: unset; font-size: 12px; }
}

/* ── Mobile episode strip (below player) ────────────────── */
.watch-eps-mobile {
  display: none;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.wem-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--text);
}
.wem-cnt { font-size: 12px; color: var(--text3); font-weight: 400; }
.wem-strip {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: none;
}
.wem-strip::-webkit-scrollbar { display: none; }
.wem-chip {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 12px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); text-decoration: none;
  white-space: nowrap; transition: all .15s;
}
.wem-chip:hover { background: var(--surface3); color: var(--text); border-color: rgba(255,255,255,.2); }
.wem-chip.active {
  background: var(--gold-dim); border-color: var(--gold); color: var(--gold);
}
.wem-chip.locked { opacity: .55; }

@media (max-width: 768px) {
  .watch-eps-mobile { display: block; }
}

/* deploy:force v4 */
