:root{--bg:#07080c;--panel:#10121a;--panel2:#151823;--text:#f7f7fa;--muted:#9da2b0;--line:#242735;--accent:#ef3340;--accent2:#8b5cf6;--max:1240px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 80% -10%,#24152c 0,#07080c 32%);color:var(--text);font:15px/1.6 Inter,system-ui,-apple-system,Segoe UI,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.container{width:min(var(--max),calc(100% - 40px));margin:auto}.header{position:fixed;top:0;left:0;right:0;width:100%;z-index:1000;background:rgba(7,8,12,.86);backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.06)}.nav{min-height:72px;display:flex;align-items:center;gap:24px}.brand{display:flex;align-items:center;gap:9px;font-weight:800;white-space:nowrap;font-size:1.05rem}.brand b{color:#fff}.brand-mark{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:linear-gradient(135deg,var(--accent),var(--accent2));font-size:20px}.desktop-nav{display:flex;gap:18px;margin-left:10px}.desktop-nav a,.nav-user a{color:#b9bdc8;font-weight:600}.desktop-nav a:hover,.nav-user a:hover{color:#fff}.nav-search{margin-left:auto}.nav-search input{width:210px;background:#11131a;border:1px solid var(--line);border-radius:999px;padding:9px 15px;color:#fff;outline:0}.nav-user{display:flex;gap:13px;align-items:center}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:linear-gradient(135deg,var(--accent),#c81f3c);border:0;color:#fff;padding:11px 18px;border-radius:9px;font-weight:800;box-shadow:0 8px 28px rgba(239,51,64,.2);transition:.2s}.btn:hover{transform:translateY(-2px)}.btn-ghost{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);box-shadow:none}.btn-small{padding:8px 12px;font-size:.85rem}.hamburger{display:none;margin-left:auto;background:none;border:0;color:#fff;font-size:25px}.mobile-nav{display:none}.hero{min-height:610px;background-size:cover;background-position:center;position:relative;display:flex;align-items:end}.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,8,12,.98),rgba(7,8,12,.68) 42%,rgba(7,8,12,.12)),linear-gradient(0deg,#07080c,transparent 45%)}.hero-content{position:relative;z-index:2;padding-bottom:75px}.hero h1{font-size:clamp(42px,6vw,82px);line-height:1;margin:8px 0 18px;max-width:760px}.hero p{max-width:620px;color:#c6c8d0;font-size:17px}.eyebrow{font-size:11px;letter-spacing:2px;color:#ff6470;font-weight:900}.hero-meta{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.hero-meta span,.chips a{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);border-radius:999px;padding:5px 11px;color:#ddd}.actions{display:flex;gap:10px;flex-wrap:wrap}.page-space{padding:52px 0}.section{margin:0 0 54px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.section-head h2{margin:0;font-size:1.5rem}.section-head a,.section-head span{color:var(--muted)}.rail{display:flex;gap:16px;overflow:auto;padding:3px 2px 14px;scrollbar-width:thin}.rail .movie-card{min-width:175px;width:175px}.movie-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:22px 15px}.home-video-grid{width:100vw;margin-left:calc(50% - 50vw);padding:3px 20px 14px;display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:22px 15px;align-items:start;}.movie-card{min-width:0}.poster-wrap{display:block;position:relative;aspect-ratio:2/3;border-radius:11px;overflow:hidden;background:#171923;box-shadow:0 8px 25px rgba(0,0,0,.25)}.poster{width:100%;height:100%;object-fit:cover;display:block;transition:.3s}.card-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(transparent,rgba(0,0,0,.78));opacity:0;transition:.25s}.movie-card:hover .poster{transform:scale(1.05)}.movie-card:hover .card-overlay{opacity:1}.play{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:var(--accent);box-shadow:0 8px 25px #0008}.overlay-info{position:absolute;bottom:10px;right:10px}.badge{position:absolute;top:9px;left:9px;background:var(--accent);padding:3px 7px;border-radius:5px;font-size:10px;font-weight:900}.card-info h3{font-size:.96rem;margin:9px 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-info>div{display:flex;gap:10px;color:#b9bdc8;font-size:.78rem}.card-info small{color:#747a88;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-heading{padding-bottom:30px}.page-heading h1,.search-large h1{font-size:clamp(34px,5vw,58px);margin:3px 0}.page-heading p{color:var(--muted)}.filter-panel{display:flex;gap:10px;margin-bottom:30px}.filter-panel select,.search-large input,.auth-card input,.admin-form input,.admin-form select,.admin-form textarea{background:#10121a;border:1px solid var(--line);color:#fff;border-radius:8px;padding:11px 12px;outline:0}.filter-panel select{min-width:170px}.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.category-card{padding:24px;background:linear-gradient(135deg,#151722,#0d0f16);border:1px solid var(--line);border-radius:13px;position:relative;transition:.2s}.category-card:hover{transform:translateY(-4px);border-color:#514b66}.category-card span{display:block;font-weight:800;font-size:1.05rem}.category-card small{color:var(--muted)}.category-card b{position:absolute;right:18px;bottom:20px;color:#ff6670}.search-large{padding:40px 0 55px}.search-large form{display:flex;gap:10px;max-width:720px}.search-large input{flex:1;font-size:17px}.empty{text-align:center;padding:90px 20px;color:var(--muted)}.detail-hero{background-size:cover;background-position:center;padding:90px 0}.detail-layout{display:grid;grid-template-columns:260px 1fr;gap:45px;align-items:center}.detail-poster{width:260px;aspect-ratio:2/3;object-fit:cover;border-radius:14px;box-shadow:0 20px 60px #0008}.detail-copy h1{font-size:clamp(42px,6vw,72px);line-height:1.02;margin:5px 0 15px}.detail-copy p{max-width:720px;color:#c7c9d1;font-size:16px}.chips{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.facts{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.facts>div{padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:11px}.facts b,.facts span{display:block}.facts b{font-size:.75rem;text-transform:uppercase;color:#777e8d;margin-bottom:4px}.facts span{font-weight:700}.watch-page{padding:45px 0 80px}.player-shell{background:#000;border-radius:14px;overflow:hidden;box-shadow:0 20px 60px #0008}.player-shell video{display:block;width:100%;max-height:720px;background:#000}.player-help{padding:10px 15px;background:#0e1016;color:#777e8d;font-size:.78rem}.watch-info{display:grid;grid-template-columns:1fr 330px;gap:35px;padding-top:25px}.watch-info h1{font-size:36px;margin:4px 0}.watch-info p{color:var(--muted)}.episodes{background:var(--panel);border:1px solid var(--line);padding:18px;border-radius:12px}.episode{display:block;width:100%;text-align:left;background:#171a24;color:#fff;border:1px solid var(--line);padding:11px;border-radius:8px;margin:8px 0}.episode span{color:#ff6670;font-weight:800;margin-right:8px}.auth-wrap{min-height:75vh;display:grid;place-items:center;padding:60px 20px}.auth-card{width:min(430px,100%);padding:32px;background:rgba(16,18,26,.9);border:1px solid var(--line);border-radius:16px;box-shadow:0 25px 80px #0007}.auth-card h1{font-size:36px;margin:3px 0 20px}.auth-card label,.admin-form label{display:block;color:#aeb2bf;margin:14px 0}.auth-card input{display:block;width:100%;margin-top:6px}.full-btn{width:100%;margin-top:10px}.auth-card p{color:var(--muted)}.auth-card a{color:#ff6570}.alert{padding:10px;border:1px solid #6b2931;background:#2a1217;color:#ff9aa3;border-radius:8px}.profile-head{display:flex;align-items:center;gap:20px;padding:25px;background:var(--panel);border:1px solid var(--line);border-radius:15px}.avatar{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--accent),var(--accent2));font-size:30px;font-weight:900}.profile-head h1{margin:0}.profile-head p{color:var(--muted);margin:0}.dashboard-links{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;margin:20px 0}.dashboard-links a{padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:10px;font-weight:800}footer{border-top:1px solid var(--line);padding:45px 0 20px;background:#05060a}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}.footer-grid p,.footer-grid a{color:#777e8d;display:block;margin:6px 0}.footer-grid h4{margin:0 0 10px}.copyright{text-align:center;color:#555b68;border-top:1px solid #171923;margin-top:35px;padding-top:18px;font-size:.78rem}.admin-wrap{padding:40px 0}.admin-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:25px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:25px}.stat-card,.admin-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:20px}.stat-card small,.stat-card strong{display:block}.stat-card small{color:var(--muted)}.stat-card strong{font-size:32px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line);white-space:nowrap}th{color:#7f8593;font-size:.75rem;text-transform:uppercase}.admin-form{background:var(--panel);border:1px solid var(--line);padding:25px;border-radius:14px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0 18px}.admin-form input,.admin-form select,.admin-form textarea{display:block;width:100%;margin-top:6px}.full{grid-column:1/-1}.checks{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}.checks label{margin:0}.checks input{width:auto;display:inline}@media(max-width:1100px){.movie-grid{grid-template-columns:repeat(5,1fr)}.desktop-nav{gap:10px}.nav-search input{width:160px}}@media(max-width:850px){.desktop-nav,.nav-search,.nav-user{display:none}.hamburger{display:block}.mobile-nav.open{display:grid;padding:12px 20px 18px;gap:10px;border-top:1px solid var(--line)}.mobile-nav a{padding:8px;color:#ddd}.movie-grid{grid-template-columns:repeat(4,1fr)}.category-grid{grid-template-columns:repeat(2,1fr)}.detail-layout{grid-template-columns:190px 1fr}.detail-poster{width:190px}.facts{grid-template-columns:repeat(2,1fr)}.watch-info{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.home-video-grid{padding-left:14px;padding-right:14px;gap:22px 12px}.container{width:min(100% - 28px,var(--max))}.hero{min-height:590px}.hero-content{padding-bottom:50px}.hero h1{font-size:43px}.movie-grid{grid-template-columns:repeat(2,1fr);gap:22px 12px}.rail .movie-card{min-width:155px;width:155px}.filter-panel{flex-direction:column}.filter-panel select{width:100%}.category-grid{grid-template-columns:1fr}.detail-hero{padding:55px 0}.detail-layout{grid-template-columns:1fr}.detail-poster{width:170px}.facts{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.footer-grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr 1fr}}

/* Admin title/episode manager */
.admin-subtitle{color:var(--text-muted,#9ca3af);margin-top:4px;font-size:.9rem}.admin-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.admin-actions>a:not(.btn){padding:9px 4px}.hint-inline{display:block;color:#7f8793;font-size:.75rem;margin-top:5px;font-weight:400}.empty-state{padding:28px;text-align:center;color:#9ca3af}.empty-state a{color:#ff5b61}.admin-form .actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.admin-form b{display:block;margin-bottom:8px}.admin-card .section-head>div{display:flex;flex-direction:column;gap:3px}

.episode-bottom-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:20px;padding-top:18px;border-top:1px solid var(--border,#252b36)}

.image-upload-field{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;padding:16px;background:rgba(255,255,255,.025);border:1px solid var(--line);border-radius:10px;margin-top:6px}
.image-upload-field>label:first-child{grid-column:1/-1}
.image-upload-field input[type=file]{padding:10px;background:#0b0d13;border-style:dashed}
.upload-help,.upload-help-inline{display:block;color:#7f8793;font-size:.75rem;font-weight:400;margin-top:5px}
.image-preview{margin-top:10px;width:110px;aspect-ratio:2/3;border-radius:8px;overflow:hidden;background:#090a0e;border:1px solid var(--line)}
.image-preview img{width:100%;height:100%;object-fit:cover;display:block}
.backdrop-preview{width:240px;aspect-ratio:16/9}
@media(max-width:560px){.image-upload-field{grid-template-columns:1fr}.image-upload-field>label:first-child{grid-column:auto}}

.episode.active{border-color:var(--accent,#ff3d67);background:rgba(255,61,103,.12)}
.player-error{margin-top:10px;padding:12px 14px;border:1px solid #ff3d67;border-radius:8px;background:rgba(255,61,103,.08);color:#ffb5c5;font-size:.9rem}

.episode{cursor:pointer}
.episode.active{outline:2px solid rgba(255,75,95,.35);}
.admin-login-wrap{min-height:100vh;display:grid;place-items:center;padding:40px 20px;background:radial-gradient(circle at 50% 0,#24152c 0,#07080c 45%)}
.admin-login-card{width:min(440px,100%);padding:34px;background:rgba(16,18,26,.96);border:1px solid var(--line);border-radius:16px;box-shadow:0 30px 100px #0009}
.admin-login-brand{display:flex;align-items:center;gap:9px;font-size:1.08rem;font-weight:800;margin-bottom:30px}
.admin-login-card h1{font-size:34px;margin:4px 0 8px}
.admin-login-note{color:var(--muted);font-size:.9rem;margin:0 0 20px}
.admin-login-card label{display:block;color:#aeb2bf;margin:14px 0}
.admin-login-card input{display:block;width:100%;margin-top:6px;background:#10121a;border:1px solid var(--line);color:#fff;border-radius:8px;padding:11px 12px;outline:0}
.admin-login-links{display:flex;justify-content:space-between;gap:15px;margin-top:18px;font-size:.85rem}
.admin-login-links a,.admin-entry a{color:#ff6570}
.admin-entry{font-size:.82rem!important}


/* Responsive Admin Dashboard Login */
.admin-login-wrap{
  min-height:100vh;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 18px;
  box-sizing:border-box;
}
.admin-login-card{
  width:min(100%,460px);
  margin:0 auto;
  padding:34px;
  box-sizing:border-box;
  background:rgba(16,18,27,.96);
  border:1px solid var(--line,#252a36);
  border-radius:16px;
  box-shadow:0 24px 70px rgba(0,0,0,.45);
}
.admin-login-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:1.05rem;
  font-weight:800;
  margin-bottom:26px;
}
.admin-login-brand .brand-mark{
  flex:0 0 40px;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:10px;
  color:#fff;
  font-weight:900;
  background:linear-gradient(135deg,var(--accent,#ff3d67),var(--accent2,#8b5cf6));
}
.admin-login-card .eyebrow{
  display:block;
  margin-bottom:9px;
  color:#ff536b;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.16em;
}
.admin-login-card h1{
  margin:0;
  font-size:clamp(1.8rem,5vw,2.35rem);
  line-height:1.1;
}
.admin-login-note{
  color:var(--muted,#9299a8);
  font-size:.9rem;
  line-height:1.55;
  margin:12px 0 24px;
}
.admin-login-card label{
  display:block;
  margin:0 0 16px;
  color:#dfe3eb;
  font-size:.84rem;
  font-weight:700;
}
.admin-login-card input{
  display:block;
  width:100%;
  min-height:48px;
  box-sizing:border-box;
  margin-top:7px;
  padding:12px 14px;
  border:1px solid var(--line,#252a36);
  border-radius:9px;
  background:#0b0d13;
  color:#fff;
  font:inherit;
  outline:none;
}
.admin-login-card input:focus{
  border-color:var(--accent,#ff3d67);
  box-shadow:0 0 0 3px rgba(255,61,103,.12);
}
.admin-login-card .full-btn{
  width:100%;
  min-height:50px;
  margin-top:4px;
  cursor:pointer;
}
.admin-login-links{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-top:18px;
  font-size:.84rem;
}
.admin-login-links a{
  color:#aeb5c4;
}
.admin-login-links a:hover{
  color:#fff;
}
.admin-login-card .alert{
  margin:0 0 18px;
  padding:12px 14px;
  border:1px solid rgba(255,61,103,.45);
  border-radius:9px;
  background:rgba(255,61,103,.10);
  color:#ffb8c6;
  line-height:1.45;
}
@media(max-width:560px){
  .admin-login-wrap{
    align-items:flex-start;
    padding:20px 14px;
  }
  .admin-login-card{
    padding:24px 18px;
    border-radius:13px;
  }
  .admin-login-brand{
    margin-bottom:22px;
  }
  .admin-login-links{
    flex-direction:column;
    align-items:center;
    gap:10px;
  }
}
@media(max-width:360px){
  .admin-login-wrap{padding:12px 10px}
  .admin-login-card{padding:20px 14px}
}

/* ===== Homepage hero banner slideshow ===== */
.hero-slider{
  position:relative;
  min-height:400px;
  height:400px;
  background:#07080c;
  overflow:hidden;
}
.hero-track{
  position:relative;
  width:100%;
  height:100%;
  min-height:400px;
  overflow:hidden;
}
.hero-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  min-height:400px;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  opacity:0;
  visibility:hidden;
  z-index:0;
  transition:opacity .65s ease,visibility .65s ease;
}
.hero-slide.is-active{
  opacity:1;
  visibility:visible;
  z-index:1;
}
.hero-shade{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(7,8,12,.98),rgba(7,8,12,.72) 40%,rgba(7,8,12,.18) 75%),linear-gradient(0deg,#07080c 0%,rgba(7,8,12,.72) 17%,transparent 55%);
}
.hero-slider .hero-content{
  position:relative;
  z-index:2;
  height:100%;
  min-height:400px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding-bottom:72px;
}
.hero-slider .hero-content h1{font-size:clamp(42px,6vw,82px);line-height:1;margin:8px 0 18px;max-width:760px}
.hero-slider .hero-content p{max-width:620px;color:#c6c8d0;font-size:17px}
.hero-arrow{position:absolute;z-index:5;top:50%;transform:translateY(-50%);width:46px;height:72px;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:rgba(8,10,15,.45);backdrop-filter:blur(8px);color:#fff;font-size:42px;line-height:1;cursor:pointer;transition:.2s}
.hero-arrow:hover{background:rgba(8,10,15,.75);border-color:rgba(255,255,255,.3)}
.hero-prev{left:22px}.hero-next{right:22px}
.hero-dots{position:absolute;z-index:6;right:34px;bottom:25px;display:flex;gap:8px}
.hero-dot{width:28px;height:4px;padding:0;border:0;border-radius:99px;background:rgba(255,255,255,.35);cursor:pointer;transition:.25s}
.hero-dot.is-active{width:48px;background:#fff}
@media(max-width:1024px){
  .hero-slider{min-height:clamp(320px,55vw,400px);height:clamp(320px,55vw,400px)}
  .hero-track{min-height:clamp(320px,55vw,400px)}
  .hero-slide{min-height:clamp(320px,55vw,400px)}
  .hero-slider .hero-content{min-height:clamp(320px,55vw,400px)}
}
@media(max-width:700px){
  .hero-slider{min-height:clamp(260px,60vw,360px);height:clamp(260px,60vw,360px)}
  .hero-track{min-height:clamp(260px,60vw,360px)}
  .hero-slide{min-height:clamp(260px,60vw,360px);background-position:center}
  .hero-slider .hero-content{min-height:clamp(260px,60vw,360px);padding:0 20px 64px}
  .hero-slider .hero-content h1{font-size:clamp(34px,10vw,54px);max-width:90%}
  .hero-slider .hero-content p{font-size:14px;line-height:1.5;max-width:90%;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .hero-meta{gap:6px;margin:12px 0}.hero-meta span{font-size:12px;padding:4px 8px}
  .hero-arrow{width:38px;height:54px;font-size:32px}.hero-prev{left:10px}.hero-next{right:10px}
  .hero-dots{right:20px;bottom:20px}
}
@media(max-width:480px){
  .hero-slider{min-height:clamp(240px,64vw,320px);height:clamp(240px,64vw,320px)}
  .hero-track,.hero-slide{min-height:clamp(240px,64vw,320px)}
  .hero-slider .hero-content{min-height:clamp(240px,64vw,320px);padding-bottom:58px}
}
@media(prefers-reduced-motion:reduce){
  .hero-slide,.hero-dot{transition:none}
}

/* Cam-KH-Movie hero height: 410px */
.hero-slider,
.hero-track,
.hero-slide,
.hero-content {
    min-height: 410px;
}

@media (max-width: 1024px) {
    .hero-slider,
    .hero-track,
    .hero-slide,
    .hero-content {
        min-height: clamp(320px, 55vw, 410px);
    }
}

@media (max-width: 600px) {
    .hero-slider,
    .hero-track,
    .hero-slide,
    .hero-content {
        min-height: clamp(240px, 60vw, 350px);
    }
}
/* ===== Cam-KH-Movie theme modes ===== */
:root{
  color-scheme:dark;
  --bg:#07080c;--panel:#10121a;--panel2:#151823;--text:#f7f7fa;--muted:#9da2b0;--line:#242735;
}
html[data-theme="light"]{
  color-scheme:light;
  --bg:#f5f6f8;--panel:#ffffff;--panel2:#eef0f4;--text:#171922;--muted:#687080;--line:#dfe2e8;
}
@media (prefers-color-scheme: light){
  html[data-theme="system"]{
    color-scheme:light;
    --bg:#f5f6f8;--panel:#ffffff;--panel2:#eef0f4;--text:#171922;--muted:#687080;--line:#dfe2e8;
  }
}
body{background:radial-gradient(circle at 80% -10%,#24152c 0,#07080c 32%);background-color:var(--bg);color:var(--text)}
html[data-theme="light"] body{background:radial-gradient(circle at 80% -10%,#e7ebf5 0,#eef1f5 42%);background-color:var(--bg)}
@media(prefers-color-scheme: light){
  html[data-theme="system"] body{background:radial-gradient(circle at 80% -10%,#e7ebf5 0,#eef1f5 42%);background-color:var(--bg)}
}

@media(prefers-color-scheme: light){
  html[data-theme="system"] footer{
    background:(196, 196, 230, 0.88) !important;
    background-image:none !important;
      }
}
.header{background:rgba(7,8,12,.86)}
html[data-theme="light"] .header{background:rgba(196, 196, 230, 0.88);border-bottom-color:rgba(20,25,35,.08)}
@media(prefers-color-scheme: light){
  html[data-theme="system"] .header{background:rgba(255,255,255,.88);border-bottom-color:rgba(20,25,35,.08)}
}
html[data-theme="light"] .desktop-nav a,html[data-theme="light"] .nav-user a{color:#596171}
html[data-theme="light"] .desktop-nav a:hover,html[data-theme="light"] .nav-user a:hover{color:#11131a}
@media(prefers-color-scheme: light){
  html[data-theme="system"] .desktop-nav a,html[data-theme="system"] .nav-user a{color:#596171}
  html[data-theme="system"] .desktop-nav a:hover,html[data-theme="system"] .nav-user a:hover{color:#11131a}
}
html[data-theme="light"] .nav-search input{background:#fff;color:#171922}
html[data-theme="light"] .filter-panel select,html[data-theme="light"] .search-large input,html[data-theme="light"] .auth-card input,html[data-theme="light"] .admin-form input,html[data-theme="light"] .admin-form select,html[data-theme="light"] .admin-form textarea{background:#fff;color:#171922}
html[data-theme="light"] .category-card{background:linear-gradient(135deg,#fff,#f1f3f7)}
html[data-theme="light"] .hero-slider{background:#e8eaf0}
@media(prefers-color-scheme: light){
  html[data-theme="system"] .nav-search input{background:#fff;color:#171922}
  html[data-theme="system"] .filter-panel select,html[data-theme="system"] .search-large input,html[data-theme="system"] .auth-card input,html[data-theme="system"] .admin-form input,html[data-theme="system"] .admin-form select,html[data-theme="system"] .admin-form textarea{background:#fff;color:#171922}
  html[data-theme="system"] .category-card{background:linear-gradient(135deg,#fff,#f1f3f7)}
  html[data-theme="system"] .hero-slider{background:#e8eaf0}
}

/* Theme selector sits directly to the right of Login / Sign Up */
.theme-switcher{position:relative;flex:0 0 auto}
.theme-toggle{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 11px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);font-weight:700;white-space:nowrap}
.theme-toggle:hover{border-color:#666b79}
.theme-icon{font-size:16px;line-height:1}
.theme-label{font-size:.84rem}
.theme-chevron{font-size:11px;opacity:.7}
.theme-menu{position:absolute;right:0;top:calc(100% + 8px);width:145px;padding:6px;border:1px solid var(--line);border-radius:11px;background:var(--panel);box-shadow:0 15px 40px rgba(0,0,0,.25);display:none;z-index:300}
.theme-switcher.open .theme-menu{display:block}
.theme-menu button{width:100%;display:flex;align-items:center;gap:10px;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:var(--text);text-align:left}
.theme-menu button:hover,.theme-menu button[aria-checked="true"]{background:var(--panel2)}
.lang-switcher{position:relative;flex:0 0 auto}
.lang-toggle{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 11px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);font-weight:700;white-space:nowrap}
.lang-toggle:hover{border-color:#666b79}
.lang-icon{font-size:15px;line-height:1}
.lang-label{font-size:.84rem}
.lang-chevron{font-size:11px;opacity:.7}
.lang-menu{position:absolute;right:0;top:calc(100% + 8px);width:170px;padding:6px;border:1px solid var(--line);border-radius:11px;background:var(--panel);box-shadow:0 15px 40px rgba(0,0,0,.25);display:none;z-index:300}
.lang-switcher.open .lang-menu{display:block}
.lang-menu a,.lang-menu button{width:100%;display:flex;align-items:center;gap:10px;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:var(--text);text-align:left;text-decoration:none;font-size:.87rem}
.lang-menu a:hover,.lang-menu button:hover,.lang-menu a[aria-checked="true"],.lang-menu button[aria-checked="true"]{background:var(--panel2)}
.lang-flag{font-size:16px;line-height:1}
.lang-code{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:20px;padding:0 5px;border-radius:5px;background:var(--panel2);color:var(--muted);font-size:.68rem;font-weight:800;letter-spacing:.02em;flex:0 0 auto}
.lang-menu a[aria-checked="true"] .lang-code,.mobile-lang-buttons a[aria-checked="true"] .lang-code{background:var(--accent);color:#fff}
.mobile-lang-control{padding:14px 20px;border-top:1px solid var(--line)}
.mobile-lang-title{display:block;color:var(--muted);font-size:.8rem;font-weight:700;margin-bottom:10px;text-transform:uppercase;letter-spacing:.03em}
.mobile-lang-buttons{display:flex;flex-direction:column;gap:6px}
.mobile-lang-buttons a,.mobile-lang-buttons button{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);text-align:left;font-weight:600;text-decoration:none}
.mobile-lang-buttons a[aria-checked="true"],.mobile-lang-buttons button[aria-checked="true"]{border-color:var(--accent);background:rgba(239,51,64,.08)}
@media(max-width:900px){
  .lang-label{display:none}.lang-toggle{padding:8px 10px}
}
@media(max-width:900px){
  .nav{gap:12px}.desktop-nav{gap:12px;margin-left:0}.nav-search input{width:180px}
  .theme-label{display:none}.theme-toggle{padding:8px 10px}
}
@media(max-width:700px){
  .nav-search{display:none}.theme-switcher{display:none}.lang-switcher{display:none}
}



/* Cam-KH-Movie final responsive hero override */
.hero-slider,.hero-track,.hero-slide,.hero-content{min-height:410px}
@media (max-width:1024px){.hero-slider,.hero-track,.hero-slide,.hero-content{min-height:clamp(320px,55vw,410px)}}
@media (max-width:600px){.hero-slider,.hero-track,.hero-slide,.hero-content{min-height:clamp(240px,60vw,350px)}}

/* Responsive watch player: fill the available screen width and keep a cinematic 16:9 frame */
.watch-page{width:min(100% - 32px, 1440px);margin:0 auto;padding:24px 0 70px}
.player-shell{width:100%;aspect-ratio:16/9;position:relative;border-radius:12px;overflow:hidden;background:#000;box-shadow:0 20px 60px #0008}
.player-shell video{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;background:#000}
.player-help{min-height:38px;display:flex;align-items:center}
@media(max-width:700px){
  .watch-page{width:100%;padding:10px 0 45px}
  .player-shell{border-radius:0;aspect-ratio:16/9}
  .player-help{padding:8px 12px;font-size:.75rem}
  .watch-info{padding:20px 14px 0}
}

/* Watch page: player left + episode panel right */
.watch-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: start;
}

.watch-player-column {
    min-width: 0;
}

.watch-main-grid .player-shell {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.watch-main-grid .player-shell video {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.watch-main-grid .episodes {
    width: 100%;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    margin: 0;
    position: sticky;
    top: 85px;
}

.episodes-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.episodes-head h3 {
    margin: 0;
    font-size: 1.35rem;
}

.episodes-head span {
    display: block;
    color: var(--muted);
    margin-top: 4px;
    font-size: .9rem;
}

.episode-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.episode-list .episode {
    margin: 0;
    min-height: 48px;
}

.watch-info {
    margin-top: 20px;
}

.watch-info h1 {
    margin: 5px 0 8px;
}

@media (max-width: 900px) {
    .watch-main-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 14px;
    }

    .episode-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .watch-main-grid {
        grid-template-columns: 1fr;
    }

    .watch-main-grid .episodes {
        position: static;
        max-height: none;
    }

    .episode-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .watch-info {
        padding: 0 14px;
    }
}

/* ===== Authentication / social sign-in ===== */
.auth-modern{position:relative;overflow:visible;background:linear-gradient(145deg,rgba(28,34,48,.96),rgba(13,16,24,.98));}
.auth-intro{color:var(--muted);margin-top:-12px;margin-bottom:22px}
.social-login{display:flex;align-items:center;justify-content:center;gap:11px;width:100%;min-height:46px;border-radius:9px;border:1px solid var(--line);font-weight:800;margin:10px 0;background:#fff;color:#202124;transition:.2s}
.social-login:hover{transform:translateY(-1px);filter:brightness(1.04)}
.social-login.facebook{background:#1877f2;color:#fff;border-color:#1877f2}
.social-logo{width:25px;height:25px;display:inline-grid;place-items:center;border-radius:50%;font-weight:900;font-family:Arial,sans-serif;flex:0 0 25px}
.google-logo{background:#fff;color:#4285f4;font-size:18px}
.facebook-logo{background:#fff;color:#1877f2;font-size:22px;line-height:1}
.auth-divider{display:flex;align-items:center;gap:12px;color:#7f8795;margin:20px 0 8px;font-size:.8rem}
.auth-divider:before,.auth-divider:after{content:"";height:1px;background:var(--line);flex:1}
.otp-input{text-align:center;letter-spacing:8px;font-size:25px;font-weight:800}
.success-alert{padding:10px;border:1px solid #286c45;background:#10281b;color:#8ee5ae;border-radius:8px;margin-bottom:14px}
.auth-secondary{text-align:center}
.signin-menu{position:relative}
.signin-toggle{border-radius:8px}
.signin-avatar{width:20px;height:20px;border-radius:50%;display:inline-grid;place-items:center;background:#fff;color:var(--accent);font-size:10px}
.signin-dropdown{display:none;position:absolute;right:0;top:calc(100% + 10px);width:205px;padding:8px;background:#343434;border-radius:0 0 7px 7px;box-shadow:0 18px 40px rgba(0,0,0,.45);z-index:200}
.signin-menu.open .signin-dropdown{display:block}
.signin-dropdown:before{content:"";position:absolute;right:18px;top:-7px;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #343434}
.signin-dropdown>a{display:flex!important;align-items:center;gap:12px;padding:12px 10px;color:#f4f4f4!important;font-weight:700;border-radius:5px}
.signin-dropdown>a:hover{background:rgba(255,255,255,.08)}
.signin-dropdown .social-logo{width:30px;height:30px;flex-basis:30px}
.signin-separator{height:1px;background:#4b4b4b;margin:5px 4px}
.signin-email{font-size:.84rem;color:#ddd!important}
@media(max-width:850px){.signin-menu{display:none}}

.link-button{background:none;border:0;padding:0;color:inherit;text-decoration:underline;cursor:pointer;font:inherit}.link-button:hover{opacity:.8}

/* Step 9 — Admin Users & Roles UI */
.user-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:25px}.users-card{overflow:hidden}.users-toolbar{margin-bottom:18px}.user-tools{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:18px}.user-search{display:block;width:min(430px,100%);margin:0;color:var(--muted);font-size:.8rem;font-weight:700}.user-search input{display:block;width:100%;margin-top:6px;background:#10121a;border:1px solid var(--line);color:#fff;border-radius:8px;padding:11px 12px;outline:0}.user-search input:focus{border-color:#66577c;box-shadow:0 0 0 3px rgba(139,92,246,.12)}.users-table th,.users-table td{vertical-align:middle}.user-cell{display:flex;align-items:center;gap:10px;min-width:180px}.user-cell strong,.user-cell small{display:block}.user-cell small{color:var(--muted);font-size:.75rem}.user-avatar{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(135deg,var(--accent),var(--accent2));font-weight:900}.role-pill,.verify-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:4px 9px;font-size:.72rem;font-weight:800}.role-admin{background:rgba(139,92,246,.18);border:1px solid rgba(139,92,246,.4);color:#c7b3ff}.role-user{background:rgba(255,255,255,.07);border:1px solid var(--line);color:#c4c8d2}.verify-pill.verified{background:rgba(50,190,120,.12);border:1px solid rgba(50,190,120,.25);color:#79d7a5}.verify-pill.unverified{background:rgba(239,51,64,.1);border:1px solid rgba(239,51,64,.22);color:#ff929a}.user-actions{display:flex;gap:10px;align-items:center}.danger-link{color:#ff6d76}.user-editor-card{margin-top:20px}.compact-form{background:transparent;border:0;padding:0}.modal-backdrop{position:fixed;inset:0;z-index:500;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.72);backdrop-filter:blur(7px)}.modal-backdrop[hidden]{display:none}.admin-modal{width:min(460px,100%);padding:24px;background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:0 30px 100px #000b}.modal-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:18px}.modal-head h2{margin:0 0 3px}.modal-close{border:0;background:rgba(255,255,255,.07);color:#fff;width:34px;height:34px;border-radius:8px;font-size:24px;line-height:1}.admin-modal label{display:block;color:#aeb2bf;margin:14px 0}.admin-modal input{display:block;width:100%;margin-top:6px;background:#10121a;border:1px solid var(--line);color:#fff;border-radius:8px;padding:11px 12px;outline:0}.admin-modal input:focus{border-color:#66577c}.password-strength{color:var(--muted);font-size:.78rem;margin-top:-5px}.modal-actions{margin-top:20px}.modal-actions .btn{min-width:130px}
@media(max-width:850px){.user-stats{grid-template-columns:1fr 1fr}.users-table th:nth-child(1),.users-table td:nth-child(1),.users-table th:nth-child(6),.users-table td:nth-child(6){display:none}.user-tools{align-items:stretch}.user-search{flex:1}}
@media(max-width:560px){.user-stats{grid-template-columns:1fr}.users-toolbar{align-items:flex-start}.user-tools{flex-direction:column}.user-search{width:100%}.user-tools .btn{width:100%}.users-table th:nth-child(5),.users-table td:nth-child(5){display:none}.user-actions{flex-direction:column;align-items:flex-start;gap:5px}.user-cell{min-width:150px}.admin-modal{padding:18px}.modal-actions{flex-direction:column}.modal-actions .btn{width:100%}}

/* Step 14 — Admin content management */
.season-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:14px}
.season-card{border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:16px;background:rgba(255,255,255,.025);display:flex;justify-content:space-between;gap:12px;align-items:center}
.season-card.active{outline:2px solid rgba(255,70,90,.45)}
.season-card small{opacity:.65;display:block;margin-top:5px}
.season-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.video-upload-field,.image-upload-field{border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:14px;background:rgba(255,255,255,.02)}
.upload-help{display:block;font-size:.82rem;opacity:.65;margin-top:6px}
@media(max-width:700px){.season-card{align-items:flex-start;flex-direction:column}.season-actions{justify-content:flex-start}.video-upload-field,.image-upload-field{padding:10px}}

.optional-label{font-size:.78rem;opacity:.72;font-weight:400}.field-ok{opacity:.9}

/* =========================================================
   Step 15 — Natural streaming watch page
   Player left, episode panel right, responsive/mobile stack.
   ========================================================= */
.watch-template{
  width:min(100% - 28px, 1500px);
  padding:18px 0 70px;
}
.watch-template .watch-main-grid{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 410px;
  gap:0;
  align-items:stretch;
  background:#08090c;
  border:1px solid #171a21;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 24px 70px rgba(0,0,0,.38);
}
.watch-template .watch-player-column{
  min-width:0;
  background:#000;
}
.watch-template .player-shell{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  min-height:0;
  border-radius:0;
  box-shadow:none;
  background:#000;
  overflow:hidden;
}
.watch-template .player-shell video{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  background:#000;
}
.watch-template .player-topbar{
  position:absolute;
  z-index:3;
  left:0;
  right:0;
  top:0;
  min-height:54px;
  padding:12px 18px;
  display:flex;
  justify-content:center;
  align-items:center;
  pointer-events:none;
  color:#fff;
  background:linear-gradient(180deg,rgba(0,0,0,.75),transparent);
}
.watch-template .player-title{font-weight:700;font-size:.9rem;text-shadow:0 1px 5px #000}
.watch-template .player-tools{position:absolute;right:18px;display:flex;gap:18px;font-weight:800;font-size:.78rem;opacity:.95;pointer-events:auto;z-index:6}
.watch-template .player-tools span{display:inline-grid;place-items:center;min-width:20px;height:22px}
.watch-template .player-error{
  position:absolute;
  z-index:4;
  left:18px;
  right:18px;
  bottom:70px;
  margin:0;
  padding:12px 14px;
  border:1px solid rgba(255,61,103,.6);
  border-radius:8px;
  background:rgba(35,8,16,.94);
  color:#ffb9c7;
}
.watch-template .watch-under-player{
  padding:22px 24px 26px;
  background:#090a0d;
  border-top:1px solid #15171d;
}
.watch-template .watch-title-row h1{margin:4px 0 0;font-size:clamp(22px,2.4vw,34px);line-height:1.15}
.watch-template .current-episode{margin:7px 0 0;color:#b8bdc8;font-size:.95rem}
.watch-template .watch-description{margin:15px 0 0;color:#858b99;max-width:900px}
.watch-template .watch-episode-panel{
  min-width:0;
  max-height:none;
  margin:0;
  position:relative;
  top:auto;
  overflow:hidden;
  border:0;
  border-left:1px solid #20232b;
  border-radius:0;
  background:#191a1d;
  padding:0;
}
.watch-template .episodes-head{
  min-height:78px;
  padding:18px 18px 14px;
  margin:0;
  background:#1b1c1f;
  border-bottom:1px solid #2a2c31;
}
.watch-template .episodes-head h3{font-size:1.15rem;color:#fff}
.watch-template .episodes-head span{color:#9ca1aa;font-size:.78rem}
.watch-template .season-episode-list{
  max-height:calc(100vh - 160px);
  overflow-y:auto;
  padding:12px 14px 18px;
  scrollbar-width:thin;
}
.watch-template .watch-season + .watch-season{margin-top:18px}
.watch-template .watch-season-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:3px 4px 9px;
  color:#fff;
  font-weight:800;
}
.watch-template .watch-season-title small{color:#858a94;font-weight:500;font-size:.72rem}
.watch-template .episode-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.watch-template .episode-list .episode{
  margin:0;
  min-height:43px;
  padding:8px 7px;
  display:flex;
  align-items:center;
  gap:7px;
  text-align:left;
  border:1px solid #303238;
  border-radius:4px;
  background:#25262a;
  color:#eee;
  transition:background .16s,border-color .16s,transform .16s;
}
.watch-template .episode-list .episode:hover{background:#303137;border-color:#484a51;transform:translateY(-1px)}
.watch-template .episode-list .episode.active{
  background:#c7d0d7;
  border-color:#c7d0d7;
  color:#111;
  outline:none;
}
.watch-template .episode-number{font-weight:900;font-size:.82rem;flex:0 0 auto}
.watch-template .episode-label{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.75rem}
@media(max-width:1100px){
  .watch-template .watch-main-grid{grid-template-columns:minmax(0,1fr) 340px}
  .watch-template .episode-list{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:820px){
  .watch-template{width:100%;padding:0 0 50px}
  .watch-template .watch-main-grid{grid-template-columns:1fr;border-radius:0;border-left:0;border-right:0}
  .watch-template .watch-episode-panel{border-left:0;border-top:1px solid #25272d}
  .watch-template .season-episode-list{max-height:55vh}
  .watch-template .episode-list{grid-template-columns:repeat(4,minmax(0,1fr))}
  .watch-template .watch-under-player{padding:18px 16px 24px}
}
@media(max-width:520px){
  .watch-template .player-topbar{min-height:44px;padding:8px 12px}
  .watch-template .player-tools{right:12px;gap:10px}
  .watch-template .episode-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .watch-template .season-episode-list{padding:10px 10px 15px}
}

/* Step 16 — video quality selector */
.watch-template .player-tools{position:absolute;right:14px;top:8px;display:flex;align-items:center;gap:8px;font-weight:800;font-size:.78rem;opacity:.98;z-index:5}
.watch-template .quality-button{border:0;background:rgba(0,0,0,.55);color:#fff;border-radius:6px;padding:7px 9px;cursor:pointer;font:inherit}
.watch-template .quality-button:hover{background:rgba(0,0,0,.78)}
.watch-template .quality-menu{position:absolute;right:0;top:40px;min-width:120px;padding:6px;background:#11131a;border:1px solid #30333c;border-radius:8px;box-shadow:0 15px 40px #0009;z-index:20;pointer-events:auto}
.watch-template .quality-menu[hidden]{display:none}
.watch-template .quality-menu button{display:block;width:100%;border:0;background:transparent;color:#ddd;text-align:left;padding:8px 10px;border-radius:5px;cursor:pointer}
.watch-template .quality-menu button:hover,.watch-template .quality-menu button.selected{background:#2a2d35;color:#fff}
.quality-source-box{margin-top:15px;padding:14px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.02)}
.quality-source-row{display:grid;grid-template-columns:70px 1fr 1fr;gap:8px;align-items:center;margin-top:9px}
.quality-source-row input{margin-top:0!important}
@media(max-width:560px){.quality-source-row{grid-template-columns:1fr}.watch-template .quality-menu{right:0}}

/* Step 17 — HLS adaptive streaming */
.hls-admin-box{grid-column:1/-1;margin-top:2px;padding:14px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.025)}
.hls-admin-box strong{display:block;margin-bottom:5px}
.hls-status{font-size:.72rem;text-transform:capitalize;padding:3px 7px;border-radius:999px;background:#272a31;color:#d7d9df}
.generate-hls{font-size:.72rem}

/* Step 16 Quality Selector v2 — force reliable pointer interaction */
.watch-template .player-shell .player-topbar{pointer-events:none !important;z-index:50 !important;}
.watch-template .player-shell .player-tools{pointer-events:auto !important;z-index:100 !important;position:absolute !important;}
.watch-template .player-shell .quality-button{pointer-events:auto !important;position:relative !important;z-index:101 !important;}
.watch-template .player-shell .quality-menu{pointer-events:auto !important;z-index:1000 !important;display:none !important;}
.watch-template .player-shell .quality-menu.is-open{display:block !important;visibility:visible !important;opacity:1 !important;}
.watch-template .player-shell .quality-menu button{pointer-events:auto !important;}

/* Step 16 — auto-hide player top bar when the pointer leaves the video */
.watch-template .player-shell .player-topbar{
  transition:opacity .18s ease, visibility .18s ease;
}
.watch-template .player-shell.player-ui-hidden .player-topbar{
  opacity:0 !important;
  visibility:hidden !important;
}
.watch-template .player-shell.player-ui-hidden .player-topbar .player-tools,
.watch-template .player-shell.player-ui-hidden .player-topbar .quality-button,
.watch-template .player-shell.player-ui-hidden .player-topbar .quality-menu{
  pointer-events:none !important;
}


/* =========================================================
   STEP 19 — WATCH PLAYER SPEED + SUBTITLE CONTROLS
   ========================================================= */
.watch-template .player-tools{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.watch-template .player-control-button{
  min-width:46px;
  height:34px;
  padding:0 10px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:9px;
  background:rgba(10,10,14,.68);
  color:#fff;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  backdrop-filter:blur(10px);
}
.watch-template .player-control-button:hover{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.35);
}
.watch-template .subtitle-button{
  min-width:42px;
  letter-spacing:.04em;
}
.watch-template .player-menu{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  min-width:150px;
  padding:6px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px;
  background:rgba(12,13,18,.96);
  box-shadow:0 18px 45px rgba(0,0,0,.38);
  backdrop-filter:blur(18px);
  opacity:0;
  visibility:hidden;
  transform:translateY(-5px);
  pointer-events:none;
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
  z-index:30;
}
.watch-template .player-menu.is-open{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
  pointer-events:auto;
}
.watch-template .player-menu button{
  display:flex;
  width:100%;
  align-items:center;
  justify-content:space-between;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#eee;
  padding:9px 10px;
  font-size:12px;
  cursor:pointer;
}
.watch-template .player-menu button:hover,
.watch-template .player-menu button.selected{
  background:rgba(255,255,255,.12);
  color:#fff;
}
.watch-template .player-tools{position:relative}
.watch-template .player-tools .quality-menu{
  z-index:31;
}
@media(max-width:640px){
  .watch-template .player-tools{gap:4px}
  .watch-template .player-control-button{height:32px;min-width:40px;padding:0 8px}
  .watch-template .player-menu{min-width:132px}
}

/* Step 19 admin subtitle fields */
.subtitle-upload-box{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:14px;
  border:1px solid rgba(127,127,127,.18);
  border-radius:12px;
}
.subtitle-source-row{
  display:grid;
  grid-template-columns:1fr 90px 1fr 1.4fr;
  gap:8px;
  align-items:center;
}
@media(max-width:800px){
  .subtitle-source-row{grid-template-columns:1fr 90px}
}

/* CAM-KH-HOME-ROW-DESIGN-V2 */
.container.page-space > .section > .home-section-title{
    position:relative !important;
    width:100% !important;
    min-height:52px !important;
    margin:0 0 16px !important;
    padding:0 16px 0 20px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:16px !important;
    border:1px solid rgba(255,23,38,.92) !important;
    border-radius:10px !important;
    background:linear-gradient(90deg,rgba(255,16,32,.20) 0%,rgba(255,16,32,.08) 30%,rgba(12,13,19,.88) 75%,rgba(255,16,32,.07) 100%) !important;
    box-shadow:0 0 12px rgba(255,20,35,.22), inset 0 0 18px rgba(255,20,35,.07) !important;
    overflow:hidden !important;
}
.container.page-space > .section > .home-section-title::before{
    content:"" !important;
    position:absolute !important;
    left:0 !important;
    top:0 !important;
    bottom:0 !important;
    width:5px !important;
    background:#ff1728 !important;
    box-shadow:0 0 14px rgba(255,23,40,.95) !important;
}
.container.page-space > .section > .home-section-title::after{
    content:"" !important;
    position:absolute !important;
    left:210px !important;
    right:150px !important;
    top:50% !important;
    height:2px !important;
    transform:translateY(-50%) !important;
    background:linear-gradient(90deg,rgba(255,23,40,.90),rgba(255,23,40,.28),transparent) !important;
    box-shadow:0 0 8px rgba(255,23,40,.55) !important;
}
.container.page-space > .section > .home-section-title h2{
    position:relative !important;
    z-index:2 !important;
    margin:0 !important;
    padding:7px 18px !important;
    border-radius:7px !important;
    background:linear-gradient(90deg,#e91428,#a50f1e) !important;
    color:#fff !important;
    font-size:19px !important;
    font-weight:800 !important;
    line-height:1.2 !important;
    letter-spacing:.2px !important;
    box-shadow:0 0 12px rgba(255,20,35,.35) !important;
}
.container.page-space > .section > .home-section-title a{
    position:relative !important;
    z-index:3 !important;
    color:#fff !important;
    font-size:12px !important;
    font-weight:600 !important;
    padding:6px 10px !important;
    border:1px solid rgba(255,35,52,.42) !important;
    border-radius:6px !important;
    background:rgba(0,0,0,.32) !important;
}
.container.page-space > .section > .home-section-title a:hover{
    color:#ff3347 !important;
    border-color:#ff3347 !important;
    box-shadow:0 0 10px rgba(255,23,40,.28) !important;
}
.container.page-space > .section > .home-video-grid{
    width:100vw !important;
    margin-left:calc(50% - 50vw) !important;
    padding-left:20px !important;
    padding-right:20px !important;
}
@media(max-width:700px){
    .container.page-space > .section > .home-section-title{
        min-height:46px !important;
        padding-left:13px !important;
    }
    .container.page-space > .section > .home-section-title h2{
        font-size:16px !important;
        padding:6px 11px !important;
    }
    .container.page-space > .section > .home-section-title::after{
        left:145px !important;
        right:105px !important;
    }
}

/* CAM-KH-HOME-ROW-DESIGN-V3 */
.home-movie-section{
    width:100%;
    margin:0 0 34px;
}
.home-movie-section > .home-section-title{
    box-sizing:border-box !important;
    position:relative !important;
    width:100% !important;
    height:52px !important;
    min-height:52px !important;
    margin:0 0 15px !important;
    padding:0 14px 0 18px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:9px !important;
    border:1px solid #ff1728 !important;
    border-radius:9px !important;
    background:
      linear-gradient(90deg,rgba(255,18,35,.18),rgba(255,18,35,.055) 34%,rgba(7,8,12,.94) 68%,rgba(255,18,35,.09)) !important;
    box-shadow:0 0 10px rgba(255,20,35,.28), inset 0 0 20px rgba(255,20,35,.06) !important;
    overflow:hidden !important;
}
.home-movie-section > .home-section-title::before{
    content:"" !important;
    position:absolute !important;
    left:0 !important;
    top:0 !important;
    width:4px !important;
    height:100% !important;
    background:#ff1728 !important;
    box-shadow:0 0 14px #ff1728 !important;
}
.home-movie-section > .home-section-title::after{
    content:"" !important;
    position:absolute !important;
    left:360px !important;
    right:115px !important;
    top:50% !important;
    height:2px !important;
    transform:translateY(-50%) !important;
    background:linear-gradient(90deg,#ff1728,rgba(255,23,40,.55),transparent) !important;
    box-shadow:0 0 8px rgba(255,23,40,.75) !important;
}
.home-movie-section > .home-section-title .section-icon{
    position:relative !important;
    z-index:3 !important;
    width:34px !important;
    height:34px !important;
    display:grid !important;
    place-items:center !important;
    flex:0 0 34px !important;
    border-radius:50% !important;
    background:#ff1728 !important;
    color:#fff !important;
    font-size:17px !important;
    box-shadow:0 0 12px rgba(255,23,40,.62) !important;
}
.home-movie-section > .home-section-title h2{
    position:relative !important;
    z-index:3 !important;
    margin:0 !important;
    padding:0 !important;
    background:none !important;
    color:#fff !important;
    font-size:20px !important;
    font-weight:800 !important;
    line-height:1 !important;
    letter-spacing:.15px !important;
}
.home-movie-section > .home-section-title h2 em{
    color:#ff2338 !important;
    font-style:normal !important;
    text-shadow:0 0 8px rgba(255,23,40,.5) !important;
}
.home-movie-section > .home-section-title a{
    position:relative !important;
    z-index:4 !important;
    margin-left:auto !important;
    padding:7px 11px !important;
    border:1px solid rgba(255,23,40,.5) !important;
    border-radius:6px !important;
    background:rgba(0,0,0,.42) !important;
    color:#fff !important;
    font-size:12px !important;
    font-weight:600 !important;
    text-decoration:none !important;
    white-space:nowrap !important;
}
.home-movie-section > .home-section-title a:hover{
    color:#ff2338 !important;
    border-color:#ff2338 !important;
    box-shadow:0 0 10px rgba(255,23,40,.35) !important;
}
.home-movie-section > .home-video-grid{
    width:100vw !important;
    margin-left:calc(50% - 50vw) !important;
    box-sizing:border-box !important;
    padding:0 20px 4px !important;
    display:grid !important;
    grid-template-columns:repeat(auto-fill,minmax(160px,1fr)) !important;
    gap:22px 14px !important;
}
@media(max-width:700px){
    .home-movie-section > .home-section-title{
        height:46px !important;
        min-height:46px !important;
        padding-left:12px !important;
    }
    .home-movie-section > .home-section-title .section-icon{
        width:29px !important;
        height:29px !important;
        flex-basis:29px !important;
        font-size:14px !important;
    }
    .home-movie-section > .home-section-title h2{
        font-size:17px !important;
    }
    .home-movie-section > .home-section-title::after{
        left:260px !important;
        right:92px !important;
    }
    .home-movie-section > .home-video-grid{
        padding-left:12px !important;
        padding-right:12px !important;
        grid-template-columns:repeat(auto-fill,minmax(135px,1fr)) !important;
        gap:18px 10px !important;
    }
}

/* CAM-KH-HOME-HORIZONTAL-ROW-V4
   Simple full-width horizontal rows matching the reference design.
*/
.home-video-row{
    position:relative;
    width:100vw;
    margin-left:calc(50% - 50vw);
    padding:0 48px 2px 20px;
    box-sizing:border-box;
}
.home-video-row .home-video-grid{
    width:100% !important;
    margin:0 !important;
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:16px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    padding:0 2px 16px !important;
    box-sizing:border-box;
    scrollbar-width:none;
    scroll-behavior:smooth;
}
.home-video-row .home-video-grid::-webkit-scrollbar{
    display:none;
}
.home-video-row .home-video-grid .movie-card{
    flex:0 0 175px !important;
    width:175px !important;
    min-width:175px !important;
}
.home-video-row .home-video-grid .poster-wrap{
    aspect-ratio:16/9 !important;
    border-radius:9px !important;
}
.home-video-row .home-video-grid .poster{
    object-fit:cover !important;
}
.home-video-row .home-video-grid .card-info h3{
    margin:7px 0 2px !important;
    font-size:13px !important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.home-video-row .home-video-grid .card-info>div{
    font-size:11px !important;
    gap:7px !important;
}
.home-video-row .home-video-grid .card-info small{
    font-size:10px !important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.home-row-next{
    position:absolute;
    z-index:8;
    right:9px;
    top:42px;
    width:34px;
    height:34px;
    border:0;
    border-radius:50%;
    background:rgba(22,25,34,.9);
    color:#fff;
    font-size:29px;
    line-height:30px;
    cursor:pointer;
    box-shadow:0 2px 12px rgba(0,0,0,.5);
}
.home-row-next:hover{
    background:#ff1728;
}
.home-movie-section{
    margin-bottom:22px !important;
}
.home-movie-section > .home-section-title{
    margin-bottom:10px !important;
}
@media(max-width:700px){
    .home-video-row{
        padding:0 42px 2px 12px;
    }
    .home-video-row .home-video-grid{
        gap:12px !important;
        padding-bottom:13px !important;
    }
    .home-video-row .home-video-grid .movie-card{
        flex-basis:150px !important;
        width:150px !important;
        min-width:150px !important;
    }
    .home-row-next{
        right:6px;
        top:35px;
        width:31px;
        height:31px;
        font-size:26px;
    }
}

/* CAM-KH-NATURAL-HORIZONTAL-FULLWIDTH-V5
   Final simple horizontal-row layout matching the reference:
   section header AND movie cards use the full viewport width.
*/

/* Let each homepage section escape the normal centered container */
.home-movie-section{
    width:100vw !important;
    max-width:none !important;
    margin-left:calc(50% - 50vw) !important;
    margin-right:0 !important;
    margin-bottom:26px !important;
}

/* Full-width, clean section caption */
.home-movie-section > .home-section-title{
    width:calc(100vw - 40px) !important;
    margin:0 20px 10px !important;
    height:44px !important;
    min-height:44px !important;
    padding:0 12px 0 14px !important;
    box-sizing:border-box !important;

    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;

    border:1px solid rgba(255,25,42,.82) !important;
    border-radius:9px !important;
    background:linear-gradient(90deg,#17121a 0%,#0c0d12 48%,#101017 100%) !important;
    box-shadow:0 0 12px rgba(255,20,35,.18) !important;
}

/* Small red title badge */
.home-movie-section > .home-section-title h2{
    display:flex !important;
    align-items:center !important;
    margin:0 !important;
    padding:7px 15px !important;
    border-radius:6px !important;
    background:linear-gradient(90deg,#ed1530,#b30d20) !important;
    color:#fff !important;
    font-size:17px !important;
    line-height:1 !important;
    white-space:nowrap !important;
    box-shadow:0 0 10px rgba(255,20,35,.22) !important;
}

.home-movie-section > .home-section-title h2 em{
    color:#ff263c !important;
    font-style:normal !important;
    margin-left:4px !important;
}

/* Thin red line across the remaining header */
.home-movie-section > .home-section-title::after{
    left:300px !important;
    right:105px !important;
    top:50% !important;
    height:2px !important;
    transform:translateY(-50%) !important;
    background:linear-gradient(90deg,#ff182d,rgba(255,24,45,.45),transparent) !important;
    box-shadow:0 0 7px rgba(255,20,35,.55) !important;
}

/* Icon stays compact */
.home-movie-section > .home-section-title .section-icon{
    width:30px !important;
    height:30px !important;
    flex:0 0 30px !important;
    font-size:15px !important;
}

/* See-all stays at the far right */
.home-movie-section > .home-section-title a{
    margin-left:auto !important;
    padding:6px 9px !important;
    font-size:11px !important;
    border-radius:5px !important;
}

/* One compact horizontal row — never wraps */
.home-movie-section > .home-video-row{
    width:100vw !important;
    margin-left:0 !important;
    padding:0 45px 2px 20px !important;
    box-sizing:border-box !important;
}

.home-movie-section > .home-video-row .home-video-grid{
    width:100% !important;
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:14px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    padding:0 2px 12px !important;
    box-sizing:border-box !important;
}

/* Compact landscape cards like the reference */
.home-movie-section > .home-video-row .home-video-grid .movie-card{
    flex:0 0 160px !important;
    width:160px !important;
    min-width:160px !important;
}

.home-movie-section > .home-video-row .home-video-grid .poster-wrap{
    width:160px !important;
    aspect-ratio:16/9 !important;
    border-radius:8px !important;
}

.home-movie-section > .home-video-row .home-video-grid .card-info h3{
    margin:6px 0 1px !important;
    font-size:12px !important;
}

.home-movie-section > .home-video-row .home-video-grid .card-info>div{
    font-size:10px !important;
    gap:6px !important;
}

.home-movie-section > .home-video-row .home-video-grid .card-info small{
    display:block !important;
    margin-top:2px !important;
    font-size:9px !important;
}

/* Right arrow */
.home-movie-section > .home-video-row .home-row-next{
    right:7px !important;
    top:38px !important;
    width:32px !important;
    height:32px !important;
    font-size:27px !important;
}

/* Hide horizontal scrollbar */
.home-movie-section > .home-video-row .home-video-grid{
    scrollbar-width:none !important;
}
.home-movie-section > .home-video-row .home-video-grid::-webkit-scrollbar{
    display:none !important;
}

@media(max-width:700px){
    .home-movie-section > .home-section-title{
        width:calc(100vw - 24px) !important;
        margin-left:12px !important;
        margin-right:12px !important;
        height:42px !important;
        min-height:42px !important;
    }

    .home-movie-section > .home-section-title h2{
        font-size:15px !important;
        padding:6px 10px !important;
    }

    .home-movie-section > .home-section-title .section-icon{
        width:28px !important;
        height:28px !important;
        flex-basis:28px !important;
    }

    .home-movie-section > .home-section-title::after{
        left:245px !important;
        right:82px !important;
    }

    .home-movie-section > .home-video-row{
        padding-left:12px !important;
        padding-right:40px !important;
    }

    .home-movie-section > .home-video-row .home-video-grid{
        gap:12px !important;
    }

    .home-movie-section > .home-video-row .home-video-grid .movie-card{
        flex-basis:145px !important;
        width:145px !important;
        min-width:145px !important;
    }

    .home-movie-section > .home-video-row .home-video-grid .poster-wrap{
        width:145px !important;
    }
}

/* CAM-KH-RESTORE-EXACT-OLD-CARDS-V8
   IMPORTANT: Do not change the existing movie-card design.
   Homepage rows are horizontal only; the original portrait card is retained.
*/
.home-movie-section > .home-video-row .home-video-grid{
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    box-sizing:border-box !important;
    width:100% !important;
    padding:0 2px 14px !important;
    gap:16px !important;
    scrollbar-width:none !important;
}

.home-movie-section > .home-video-row .home-video-grid::-webkit-scrollbar{
    display:none !important;
}

/* Restore the old portrait card — 2:3, approximately 190 x 285 px */
.home-movie-section > .home-video-row .home-video-grid .movie-card{
    flex:0 0 190px !important;
    width:190px !important;
    min-width:190px !important;
    max-width:190px !important;
}

.home-movie-section > .home-video-row .home-video-grid .poster-wrap{
    width:190px !important;
    height:285px !important;
    min-width:190px !important;
    min-height:285px !important;
    max-width:190px !important;
    max-height:285px !important;
    aspect-ratio:2/3 !important;
    border-radius:11px !important;
    overflow:hidden !important;
}

.home-movie-section > .home-video-row .home-video-grid img.poster{
    width:100% !important;
    height:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    max-width:none !important;
    max-height:none !important;
    aspect-ratio:2/3 !important;
    object-fit:cover !important;
}

/* Restore the original card typography */
.home-movie-section > .home-video-row .home-video-grid .card-info h3{
    font-size:.96rem !important;
    margin:9px 0 2px !important;
}

.home-movie-section > .home-video-row .home-video-grid .card-info > div{
    font-size:inherit !important;
}

.home-movie-section > .home-video-row .home-video-grid .card-info small{
    font-size:inherit !important;
}

/* Keep mobile cards at the same old poster size; only the row scrolls */
@media(max-width:700px){
    .home-movie-section > .home-video-row .home-video-grid .movie-card{
        flex:0 0 190px !important;
        width:190px !important;
        min-width:190px !important;
        max-width:190px !important;
    }

    .home-movie-section > .home-video-row .home-video-grid .poster-wrap{
        width:190px !important;
        height:285px !important;
        min-width:190px !important;
        min-height:285px !important;
        max-width:190px !important;
        max-height:285px !important;
    }
}

/* CAM-KH-RECOMMENDED-LEFT-V9 */
.home-movie-section > .home-section-title{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
}

.home-movie-section > .home-section-title > .section-icon{
    order:1 !important;
    margin:0 8px 0 0 !important;
    float:none !important;
}

.home-movie-section > .home-section-title > h2{
    order:2 !important;
    margin:0 !important;
    float:none !important;
    position:relative !important;
    left:auto !important;
    right:auto !important;
}

.home-movie-section > .home-section-title > a{
    order:3 !important;
    margin-left:auto !important;
    margin-right:0 !important;
    float:none !important;
    position:relative !important;
    left:auto !important;
    right:auto !important;
}

/* Specifically lock Recommended For You to the left */
.home-movie-section > .home-section-title:has(h2 em){
    justify-content:flex-start !important;
}

.home-movie-section > .home-section-title:has(h2 em) > .section-icon{
    order:1 !important;
}

.home-movie-section > .home-section-title:has(h2 em) > h2{
    order:2 !important;
}

.home-movie-section > .home-section-title:has(h2 em) > a{
    order:3 !important;
    margin-left:auto !important;
}


/* CAM-KH-FINAL-RECOMMENDED-HEADER-V10 */
.home-movie-section > .home-section-title{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  width:100% !important;
  box-sizing:border-box !important;
}
.home-movie-section > .home-section-title > .section-icon{
  flex:0 0 auto !important;
  order:1 !important;
  margin:0 9px 0 0 !important;
}
.home-movie-section > .home-section-title > h2{
  flex:0 0 auto !important;
  order:2 !important;
  margin:0 !important;
}
.home-movie-section > .home-section-title > a{
  flex:0 0 auto !important;
  order:3 !important;
  margin-left:auto !important;
  margin-right:0 !important;
}


/* CAM-KH-SECTION-HEADER-NEON-ARROW-V11
   Match the requested cinematic section-header background on EVERY homepage section.
   Existing cards, rows and other features are intentionally unchanged.
*/
.home-movie-section > .home-section-title{
    position:relative !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    box-sizing:border-box !important;
    width:100% !important;
    height:48px !important;
    min-height:48px !important;
    margin:0 0 14px !important;
    padding:0 16px 0 18px !important;
    gap:8px !important;
    overflow:hidden !important;
    border:0 !important;
    border-radius:18px !important;
    background:
      linear-gradient(90deg,rgba(255,20,38,.07) 0%,rgba(255,20,38,.035) 48%,rgba(255,20,38,.015) 100%) !important;
    box-shadow:none !important;
}

/* Red neon arrow/tab behind the title */
.home-movie-section > .home-section-title::before{
    content:"" !important;
    position:absolute !important;
    z-index:0 !important;
    left:0 !important;
    top:0 !important;
    width:215px !important;
    height:100% !important;
    background:
      linear-gradient(90deg,#ff1429 0%,#d70d22 70%,#a80b1b 100%) !important;
    clip-path:polygon(0 0,92% 0,100% 50%,92% 100%,0 100%,5px 50%) !important;
    box-shadow:0 0 14px rgba(255,20,40,.65) !important;
}

/* Long red cinematic line extending to the right */
.home-movie-section > .home-section-title::after{
    content:"" !important;
    position:absolute !important;
    z-index:0 !important;
    left:205px !important;
    right:0 !important;
    top:50% !important;
    height:2px !important;
    transform:translateY(-50%) !important;
    background:linear-gradient(90deg,#ff172d 0%,rgba(255,23,45,.65) 16%,rgba(255,23,45,.18) 55%,transparent 100%) !important;
    box-shadow:0 0 7px rgba(255,20,40,.72) !important;
}

/* Keep title content above the background */
.home-movie-section > .home-section-title > .section-icon,
.home-movie-section > .home-section-title > h2,
.home-movie-section > .home-section-title > a{
    position:relative !important;
    z-index:2 !important;
}

.home-movie-section > .home-section-title > .section-icon{
    width:29px !important;
    height:29px !important;
    flex:0 0 29px !important;
    display:grid !important;
    place-items:center !important;
    margin:0 !important;
    border-radius:50% !important;
    background:rgba(0,0,0,.20) !important;
    color:#fff !important;
    font-size:16px !important;
    box-shadow:none !important;
}

.home-movie-section > .home-section-title > h2{
    flex:0 0 auto !important;
    margin:0 !important;
    padding:0 !important;
    background:none !important;
    color:#fff !important;
    font-size:19px !important;
    font-weight:800 !important;
    line-height:1 !important;
    letter-spacing:.1px !important;
    text-shadow:0 1px 2px rgba(0,0,0,.7) !important;
}

.home-movie-section > .home-section-title > h2 em{
    color:#ff182f !important;
    font-style:normal !important;
    text-shadow:0 0 8px rgba(255,20,40,.5) !important;
}

.home-movie-section > .home-section-title > a{
    flex:0 0 auto !important;
    margin-left:auto !important;
    margin-right:3px !important;
    padding:5px 10px !important;
    color:#fff !important;
    background:rgba(0,0,0,.34) !important;
    border:1px solid rgba(255,25,45,.55) !important;
    border-radius:7px !important;
    font-size:11px !important;
    font-weight:700 !important;
    text-decoration:none !important;
    white-space:nowrap !important;
    box-shadow:0 0 7px rgba(255,20,40,.18) !important;
}

.home-movie-section > .home-section-title > a:hover{
    color:#ff243a !important;
    border-color:#ff243a !important;
    box-shadow:0 0 10px rgba(255,20,40,.38) !important;
}

@media(max-width:700px){
    .home-movie-section > .home-section-title{
        width:100% !important;
        height:42px !important;
        min-height:42px !important;
        margin-bottom:12px !important;
        padding-left:12px !important;
        padding-right:10px !important;
        border-radius:15px !important;
    }
    .home-movie-section > .home-section-title::before{
        width:175px !important;
    }
    .home-movie-section > .home-section-title::after{
        left:165px !important;
    }
    .home-movie-section > .home-section-title > .section-icon{
        width:25px !important;
        height:25px !important;
        flex-basis:25px !important;
        font-size:14px !important;
    }
    .home-movie-section > .home-section-title > h2{
        font-size:16px !important;
    }
    .home-movie-section > .home-section-title > a{
        padding:4px 7px !important;
        font-size:10px !important;
    }
}

/* CAM-KH-SECTION-HEADER-THEME-V12
   Section header background follows System / Day / Dark mode.
*/
:root{
  --section-head-bg:linear-gradient(180deg,rgba(14,16,23,.98),rgba(8,10,15,.98));
  --section-head-tab:linear-gradient(90deg,#ff1429 0%,#d70d22 70%,#a80b1b 100%);
  --section-head-line:linear-gradient(90deg,#ff172d 0%,rgba(255,23,45,.65) 16%,rgba(255,23,45,.18) 55%,transparent 100%);
  --section-head-title:#fff;
  --section-head-shadow:0 0 14px rgba(255,20,40,.65);
  --section-head-line-shadow:0 0 7px rgba(255,20,40,.72);
  --section-head-link-bg:rgba(0,0,0,.34);
  --section-head-link-text:#fff;
  --section-head-link-border:rgba(255,25,45,.55);
}
html[data-theme="dark"]{
  --section-head-bg:linear-gradient(180deg,rgba(14,16,23,.98),rgba(8,10,15,.98));
  --section-head-tab:linear-gradient(90deg,#ff1429 0%,#d70d22 70%,#a80b1b 100%);
  --section-head-line:linear-gradient(90deg,#ff172d 0%,rgba(255,23,45,.65) 16%,rgba(255,23,45,.18) 55%,transparent 100%);
  --section-head-title:#fff;
  --section-head-link-bg:rgba(0,0,0,.34);
  --section-head-link-text:#fff;
  --section-head-link-border:rgba(255,25,45,.55);
}
html[data-theme="light"]{
  --section-head-bg:linear-gradient(180deg,#ffffff 0%,#f0f2f6 100%);
  --section-head-tab:linear-gradient(90deg,#e90024 0%,#d30a27 72%,#b50b23 100%);
  --section-head-line:linear-gradient(90deg,#e90024 0%,rgba(233,0,36,.55) 18%,rgba(233,0,36,.18) 55%,transparent 100%);
  --section-head-title:#20232c;
  --section-head-shadow:0 4px 15px rgba(45,50,65,.12),0 0 10px rgba(233,0,36,.20);
  --section-head-line-shadow:0 0 5px rgba(233,0,36,.35);
  --section-head-link-bg:rgba(255,255,255,.78);
  --section-head-link-text:#343844;
  --section-head-link-border:rgba(211,10,39,.35);
}
@media (prefers-color-scheme: light){
  html[data-theme="system"]{
    --section-head-bg:linear-gradient(180deg,#ffffff 0%,#f0f2f6 100%);
    --section-head-tab:linear-gradient(90deg,#e90024 0%,#d30a27 72%,#b50b23 100%);
    --section-head-line:linear-gradient(90deg,#e90024 0%,rgba(233,0,36,.55) 18%,rgba(233,0,36,.18) 55%,transparent 100%);
    --section-head-title:#20232c;
    --section-head-shadow:0 4px 15px rgba(45,50,65,.12),0 0 10px rgba(233,0,36,.20);
    --section-head-line-shadow:0 0 5px rgba(233,0,36,.35);
    --section-head-link-bg:rgba(255,255,255,.78);
    --section-head-link-text:#343844;
    --section-head-link-border:rgba(211,10,39,.35);
  }
}

.home-movie-section > .home-section-title{
  background:var(--section-head-bg) !important;
  box-shadow:var(--section-head-shadow) !important;
  border:1px solid color-mix(in srgb,var(--line) 75%, transparent) !important;
}
.home-movie-section > .home-section-title::before{
  background:var(--section-head-tab) !important;
  box-shadow:var(--section-head-shadow) !important;
}
.home-movie-section > .home-section-title::after{
  background:var(--section-head-line) !important;
  box-shadow:var(--section-head-line-shadow) !important;
}
.home-movie-section > .home-section-title > h2{
  color:var(--section-head-title) !important;
  text-shadow:0 1px 2px rgba(0,0,0,.35) !important;
}
html[data-theme="light"] .home-movie-section > .home-section-title > h2{
  text-shadow:0 1px 1px rgba(255,255,255,.9) !important;
}
@media (prefers-color-scheme: light){
  html[data-theme="system"] .home-movie-section > .home-section-title > h2{
    text-shadow:0 1px 1px rgba(255,255,255,.9) !important;
  }
}
.home-movie-section > .home-section-title > a{
  color:var(--section-head-link-text) !important;
  background:var(--section-head-link-bg) !important;
  border-color:var(--section-head-link-border) !important;
}

/* CAM-KH-COOLER-RED-SECTION-BACKGROUND-V13
   Refined cinematic red section headers inspired by the supplied reference.
   Keeps System / Day / Dark theme support and does not change movie cards.
*/
.home-movie-section > .home-section-title{
  height:46px !important;
  min-height:46px !important;
  padding:0 14px 0 12px !important;
  margin-bottom:14px !important;
  border:0 !important;
  border-radius:15px !important;
  overflow:hidden !important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,0)),
    linear-gradient(90deg,rgba(255,0,32,.055),rgba(255,0,32,.018) 48%,transparent 100%) !important;
  box-shadow:inset 0 0 0 1px rgba(255,40,60,.12),0 5px 18px rgba(0,0,0,.18) !important;
}

.home-movie-section > .home-section-title::before{
  width:238px !important;
  height:100% !important;
  top:0 !important;
  left:0 !important;
  background:
    linear-gradient(105deg,transparent 0%,rgba(255,255,255,.13) 8%,transparent 18%),
    linear-gradient(90deg,#ff0829 0%,#ff1637 46%,#dc0827 82%,#a5001c 100%) !important;
  clip-path:polygon(0 0,91% 0,100% 50%,91% 100%,0 100%) !important;
  border-radius:15px 0 0 15px !important;
  box-shadow:
    0 0 7px rgba(255,10,40,.85),
    0 0 18px rgba(255,10,40,.52),
    inset 0 1px rgba(255,255,255,.18),
    inset 0 -1px rgba(120,0,15,.55) !important;
}

.home-movie-section > .home-section-title::after{
  left:220px !important;
  right:0 !important;
  top:50% !important;
  height:8px !important;
  transform:translateY(-50%) !important;
  background:
    linear-gradient(90deg,rgba(255,12,42,.92),rgba(255,12,42,.42) 18%,transparent 72%),
    linear-gradient(180deg,transparent 0%,rgba(255,15,45,.24) 45%,transparent 55%) !important;
  box-shadow:
    0 0 4px rgba(255,15,45,.9),
    0 0 12px rgba(255,15,45,.35) !important;
  opacity:.95 !important;
}

.home-movie-section > .home-section-title > .section-icon{
  width:30px !important;
  height:30px !important;
  flex-basis:30px !important;
  background:rgba(70,0,10,.32) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  color:#fff !important;
  text-shadow:0 0 8px rgba(255,255,255,.28) !important;
}

.home-movie-section > .home-section-title > h2{
  font-size:19px !important;
  font-weight:850 !important;
  letter-spacing:.1px !important;
  text-shadow:0 1px 2px rgba(0,0,0,.8),0 0 7px rgba(0,0,0,.25) !important;
}

.home-movie-section > .home-section-title > h2 em{
  color:#ff183b !important;
  text-shadow:0 0 7px rgba(255,20,55,.62) !important;
}

.home-movie-section > .home-section-title > a{
  padding:5px 10px !important;
  border-radius:8px !important;
  background:rgba(8,8,12,.42) !important;
  border:1px solid rgba(255,30,55,.48) !important;
  box-shadow:0 0 8px rgba(255,15,45,.12) !important;
  backdrop-filter:blur(4px) !important;
}

/* Day mode: keep the red cinematic accent, but make the surrounding header clean. */
html[data-theme="light"] .home-movie-section > .home-section-title{
  background:
    linear-gradient(180deg,#fff,#f5f6f8),
    linear-gradient(90deg,rgba(235,0,35,.07),transparent 70%) !important;
  box-shadow:inset 0 0 0 1px rgba(205,20,45,.12),0 5px 16px rgba(30,35,50,.10) !important;
}
html[data-theme="light"] .home-movie-section > .home-section-title::before{
  box-shadow:
    0 0 7px rgba(235,0,35,.72),
    0 0 16px rgba(235,0,35,.30),
    inset 0 1px rgba(255,255,255,.35) !important;
}
html[data-theme="light"] .home-movie-section > .home-section-title > .section-icon{
  background:rgba(90,0,12,.12) !important;
  border-color:rgba(255,255,255,.28) !important;
  color:#fff !important;
}
html[data-theme="light"] .home-movie-section > .home-section-title > h2{
  color:#252833 !important;
  text-shadow:0 1px 1px rgba(255,255,255,.9) !important;
}
html[data-theme="light"] .home-movie-section > .home-section-title > a{
  background:rgba(255,255,255,.88) !important;
  color:#343844 !important;
}

@media (prefers-color-scheme:light){
  html[data-theme="system"] .home-movie-section > .home-section-title{
    background:
      linear-gradient(180deg,#fff,#f5f6f8),
      linear-gradient(90deg,rgba(235,0,35,.07),transparent 70%) !important;
    box-shadow:inset 0 0 0 1px rgba(205,20,45,.12),0 5px 16px rgba(30,35,50,.10) !important;
  }
  html[data-theme="system"] .home-movie-section > .home-section-title::before{
    box-shadow:0 0 7px rgba(235,0,35,.72),0 0 16px rgba(235,0,35,.30),inset 0 1px rgba(255,255,255,.35) !important;
  }
  html[data-theme="system"] .home-movie-section > .home-section-title > h2{
    color:#252833 !important;
    text-shadow:0 1px 1px rgba(255,255,255,.9) !important;
  }
  html[data-theme="system"] .home-movie-section > .home-section-title > a{
    background:rgba(255,255,255,.88) !important;
    color:#343844 !important;
  }
}

@media(max-width:700px){
  .home-movie-section > .home-section-title{
    height:42px !important;
    min-height:42px !important;
    padding-left:9px !important;
    padding-right:8px !important;
    border-radius:13px !important;
  }
  .home-movie-section > .home-section-title::before{
    width:190px !important;
  }
  .home-movie-section > .home-section-title::after{
    left:176px !important;
    height:7px !important;
  }
  .home-movie-section > .home-section-title > .section-icon{
    width:26px !important;
    height:26px !important;
    flex-basis:26px !important;
    font-size:14px !important;
  }
  .home-movie-section > .home-section-title > h2{
    font-size:16px !important;
  }
  .home-movie-section > .home-section-title > a{
    padding:4px 7px !important;
    font-size:10px !important;
  }
}

/* CAM-KH-SECTION-HEADER-BLACK-V14
   Remove the red section-header background. Use the same dark/black cinematic
   background for Trending, Popular, New Releases and Recommended in every theme.
*/
.home-movie-section > .home-section-title,
html[data-theme="light"] .home-movie-section > .home-section-title,
html[data-theme="system"] .home-movie-section > .home-section-title{
  background:#08090d !important;
  background-image:linear-gradient(180deg,#0d0f14 0%,#07080b 100%) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 5px 18px rgba(0,0,0,.38) !important;
}

.home-movie-section > .home-section-title::before,
html[data-theme="light"] .home-movie-section > .home-section-title::before,
html[data-theme="system"] .home-movie-section > .home-section-title::before{
  background:#0a0b0f !important;
  background-image:linear-gradient(180deg,#111318 0%,#08090c 100%) !important;
  box-shadow:inset 0 1px rgba(255,255,255,.07),inset 0 -1px rgba(0,0,0,.65) !important;
  filter:none !important;
}

.home-movie-section > .home-section-title::after,
html[data-theme="light"] .home-movie-section > .home-section-title::after,
html[data-theme="system"] .home-movie-section > .home-section-title::after{
  background:linear-gradient(90deg,rgba(255,255,255,.10),rgba(255,255,255,.035) 35%,transparent 80%) !important;
  box-shadow:none !important;
  opacity:.8 !important;
}

.home-movie-section > .home-section-title > .section-icon,
html[data-theme="light"] .home-movie-section > .home-section-title > .section-icon,
html[data-theme="system"] .home-movie-section > .home-section-title > .section-icon{
  background:#101217 !important;
  border-color:rgba(255,255,255,.10) !important;
  color:#fff !important;
  text-shadow:0 0 7px rgba(255,255,255,.20) !important;
}

.home-movie-section > .home-section-title > h2,
html[data-theme="light"] .home-movie-section > .home-section-title > h2,
html[data-theme="system"] .home-movie-section > .home-section-title > h2{
  color:#f4f5f7 !important;
  text-shadow:0 1px 2px rgba(0,0,0,.9) !important;
}

.home-movie-section > .home-section-title > h2 em,
html[data-theme="light"] .home-movie-section > .home-section-title > h2 em,
html[data-theme="system"] .home-movie-section > .home-section-title > h2 em{
  color:#ff183b !important;
  text-shadow:0 0 6px rgba(255,20,55,.42) !important;
}

.home-movie-section > .home-section-title > a,
html[data-theme="light"] .home-movie-section > .home-section-title > a,
html[data-theme="system"] .home-movie-section > .home-section-title > a{
  background:#0d0f13 !important;
  color:#e7e9ed !important;
  border-color:rgba(255,255,255,.09) !important;
  box-shadow:none !important;
}

/* CAM-KH-SECTION-TITLE-TEXT-BLACK-V15
   Remove the remaining red pill/background directly behind the section title text.
   The title text itself stays readable; the emphasized word remains red.
*/
.home-movie-section > .home-section-title > h2,
.container.page-space > .section > .home-section-title > h2,
html[data-theme="light"] .home-movie-section > .home-section-title > h2,
html[data-theme="system"] .home-movie-section > .home-section-title > h2{
  background:#08090d !important;
  background-image:none !important;
  box-shadow:none !important;
  border:0 !important;
  color:#f4f5f7 !important;
  text-shadow:0 1px 2px rgba(0,0,0,.9) !important;
}

.home-movie-section > .home-section-title > h2 em,
.container.page-space > .section > .home-section-title > h2 em,
html[data-theme="light"] .home-movie-section > .home-section-title > h2 em,
html[data-theme="system"] .home-movie-section > .home-section-title > h2 em{
  background:transparent !important;
  color:#ff183b !important;
  text-shadow:0 0 6px rgba(255,20,55,.42) !important;
}

@media (prefers-color-scheme:light){
  html[data-theme="system"] .home-movie-section > .home-section-title > h2{
    background:rgba(196, 196, 230, 0.88) !important;
    background-image:none !important;
    color:#f4f5f7 !important;
    box-shadow:none !important;
    text-shadow:0 1px 2px rgba(0,0,0,.9) !important;
  }
}

/* ===== CAM-KH V16: Footer follows Day / Dark / System mode ===== */
html[data-theme="light"] footer,
html[data-theme="system"] footer{
  background:rgba(196, 196, 230, 0.88) !important;
  background-image:none !important;
  border-top-color:#dfe3ea !important;
  color:#20232c !important;
}
html[data-theme="light"] .footer-grid p,
html[data-theme="light"] .footer-grid a,
html[data-theme="system"] .footer-grid p,
html[data-theme="system"] .footer-grid a{
  color:#667085 !important;
}
html[data-theme="light"] .footer-grid h4,
html[data-theme="system"] .footer-grid h4{
  color:#20232c !important;
}
html[data-theme="light"] footer .brand,
html[data-theme="system"] footer .brand{
  color:#20232c !important;
}
html[data-theme="light"] footer .brand b,
html[data-theme="system"] footer .brand b{
  color:#20232c !important;
}
html[data-theme="light"] .copyright,
html[data-theme="system"] .copyright{
  color:#7a8291 !important;
  border-top-color:#dfe3ea !important;
}
@media (prefers-color-scheme: light){
  html[data-theme="system"] footer{
    background:#C0D4FC !important;
    background-image:none !important;
    border-top-color:#dfe3ea !important;
  }
}


/* ===== CAM-KH V17: MAIN PAGE FULL-WIDTH WRAPPING VIDEO LIST ===== */
/* Keep the existing portrait card size. The homepage movie list now uses the
   full browser width and naturally wraps onto the next row instead of being
   a single horizontal scrolling strip. */
.home-movie-section > .home-video-row{
  width:100vw !important;
  max-width:none !important;
  margin-left:calc(50% - 50vw) !important;
  margin-right:0 !important;
  position:relative !important;
  box-sizing:border-box !important;
}
.home-movie-section > .home-video-row .home-video-grid{
  width:100% !important;
  max-width:none !important;
  box-sizing:border-box !important;
  display:grid !important;
  grid-template-columns:repeat(auto-fill,190px) !important;
  justify-content:start !important;
  align-items:start !important;
  gap:22px 16px !important;
  padding:3px 20px 14px !important;
  margin:0 !important;
  overflow:visible !important;
}
.home-movie-section > .home-video-row .home-video-grid .movie-card{
  width:190px !important;
  min-width:190px !important;
  max-width:190px !important;
  flex:none !important;
}
.home-movie-section > .home-video-row .home-video-grid .poster-wrap{
  width:190px !important;
  height:285px !important;
  min-width:190px !important;
  min-height:285px !important;
  max-width:190px !important;
  max-height:285px !important;
  aspect-ratio:2/3 !important;
}
.home-movie-section > .home-row-next{
  display:none !important;
}
@media (max-width:600px){
  .home-movie-section > .home-video-row .home-video-grid{
    grid-template-columns:repeat(auto-fill,160px) !important;
    gap:18px 12px !important;
    padding-left:12px !important;
    padding-right:12px !important;
  }
  .home-movie-section > .home-video-row .home-video-grid .movie-card{
    width:160px !important;
    min-width:160px !important;
    max-width:160px !important;
  }
  .home-movie-section > .home-video-row .home-video-grid .poster-wrap{
    width:160px !important;
    height:240px !important;
    min-width:160px !important;
    min-height:240px !important;
    max-width:160px !important;
    max-height:240px !important;
  }
}

/* ===== CAM-KH V18: TRUE FULL-WIDTH AUTO-WRAP HOME MOVIE GRID ===== */
.home-movie-section > .home-video-row{
  width:100vw !important;
  max-width:100vw !important;
  margin-left:calc(50% - 50vw) !important;
  margin-right:0 !important;
  overflow:visible !important;
}
.home-movie-section > .home-video-row .home-video-grid{
  display:grid !important;
  width:100% !important;
  max-width:none !important;
  grid-template-columns:repeat(auto-fill,minmax(190px,190px)) !important;
  grid-auto-flow:row !important;
  justify-content:start !important;
  align-content:start !important;
  align-items:start !important;
  column-gap:16px !important;
  row-gap:22px !important;
  overflow:visible !important;
  white-space:normal !important;
  box-sizing:border-box !important;
  padding:3px 20px 20px !important;
  margin:0 !important;
}
.home-movie-section > .home-video-row .home-video-grid > .movie-card{
  display:block !important;
  width:190px !important;
  min-width:190px !important;
  max-width:190px !important;
  flex:none !important;
}
.home-movie-section > .home-video-row .home-video-grid > .movie-card .poster-wrap{
  width:190px !important;
  height:285px !important;
  min-width:190px !important;
  min-height:285px !important;
  max-width:190px !important;
  max-height:285px !important;
  aspect-ratio:2 / 3 !important;
}
.home-movie-section > .home-row-next{display:none !important;}
@media (max-width:600px){
  .home-movie-section > .home-video-row .home-video-grid{
    grid-template-columns:repeat(auto-fill,minmax(160px,160px)) !important;
    column-gap:12px !important;
    row-gap:18px !important;
    padding-left:12px !important;
    padding-right:12px !important;
  }
  .home-movie-section > .home-video-row .home-video-grid > .movie-card{
    width:160px !important;
    min-width:160px !important;
    max-width:160px !important;
  }
  .home-movie-section > .home-video-row .home-video-grid > .movie-card .poster-wrap{
    width:160px !important;
    height:240px !important;
    min-width:160px !important;
    min-height:240px !important;
    max-width:160px !important;
    max-height:240px !important;
  }
}


/* ===== CAM-KH V19: MOBILE NAV + THEME MODE RESPONSIVE FIX ===== */
html,body{max-width:100%;overflow-x:hidden}
.hamburger{flex:0 0 auto;min-width:44px;min-height:44px;padding:8px;border-radius:9px}
.mobile-nav{width:100%;max-width:100%;overflow:hidden}
.mobile-theme-control{margin-top:4px;padding:12px 0 2px;border-top:1px solid var(--line)}
.mobile-theme-title{display:block;color:var(--muted);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px}
.mobile-theme-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.mobile-theme-buttons button{min-width:0;padding:9px 7px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);font-weight:700;font-size:.78rem}
.mobile-theme-buttons button[aria-checked="true"]{border-color:var(--accent);box-shadow:0 0 0 1px rgba(239,51,64,.18);color:var(--text)}
@media(max-width:850px){
  .nav{min-height:64px;width:100%;padding-left:14px;padding-right:14px;gap:8px}
  .brand{font-size:.92rem;gap:7px}
  .brand-mark{width:30px;height:30px;border-radius:8px;font-size:17px}
  .hamburger{display:grid;place-items:center;margin-left:auto;color:var(--text);background:var(--panel);border:1px solid var(--line);font-size:23px;line-height:1}
  .mobile-nav.open{display:grid;grid-template-columns:1fr;padding:10px 14px 16px;gap:2px;background:var(--panel);border-top:1px solid var(--line);box-shadow:0 16px 30px rgba(0,0,0,.18)}
  .mobile-nav a{display:block;padding:10px 8px;border-radius:7px;color:var(--text)}
  .mobile-nav a:hover{background:var(--panel2)}
}
@media(max-width:700px){
  .theme-switcher{display:none!important}
  .mobile-theme-control{display:block}
}
@media(min-width:701px){.mobile-theme-control{display:none}}
@media(max-width:420px){
  .mobile-theme-buttons{grid-template-columns:1fr}
  .mobile-theme-buttons button{text-align:left;padding:10px}
}


/* ===== CAM-KH V21 — STABLE FIXED TOP HEADER ===== */
html,body{
  margin:0;
  max-width:100%;
  overflow-x:hidden;
}

:root{
  --camkh-header-height:72px;
}

body{
  padding-top:var(--camkh-header-height) !important;
}

.header{
  position:fixed !important;
  inset:0 0 auto 0 !important;
  width:auto !important;
  max-width:none !important;
  height:var(--camkh-header-height) !important;
  margin:0 !important;
  z-index:99999 !important;
  transform:translate3d(0,0,0) !important;
  -webkit-transform:translate3d(0,0,0) !important;
  will-change:transform !important;
  backface-visibility:hidden !important;
  -webkit-backface-visibility:hidden !important;
  isolation:isolate !important;
}

.header > .nav{
  height:var(--camkh-header-height) !important;
  min-height:var(--camkh-header-height) !important;
}

@media(max-width:850px){
  :root{--camkh-header-height:64px;}
  body{padding-top:var(--camkh-header-height) !important;}
  .header{
    height:var(--camkh-header-height) !important;
  }
  .header > .nav{
    height:var(--camkh-header-height) !important;
    min-height:var(--camkh-header-height) !important;
  }
}

/* The opened mobile menu belongs to the fixed header; it must not create page overflow. */
.header .mobile-nav{
  max-width:100%;
  box-sizing:border-box;
  overflow-x:hidden;
}

/* Never use viewport width for the fixed header itself. */
@media(max-width:560px){
  .header{width:auto !important;}
}


/* ===== CAM-KH V25 — DESKTOP HOVER DROPDOWNS ===== */
@media (min-width: 851px){
  .signin-menu:hover .signin-dropdown,
  .signin-menu:focus-within .signin-dropdown{display:block;}
  .signin-menu:hover .signin-toggle,
  .signin-menu:focus-within .signin-toggle{filter:brightness(1.04);}
}

@media (min-width: 701px){
  .theme-switcher:hover .theme-menu,
  .theme-switcher:focus-within .theme-menu{display:block;}
  .theme-switcher:hover .theme-toggle,
  .theme-switcher:focus-within .theme-toggle{border-color:#666b79;}
  .lang-switcher:hover .lang-menu,
  .lang-switcher:focus-within .lang-menu{display:block;}
  .lang-switcher:hover .lang-toggle,
  .lang-switcher:focus-within .lang-toggle{border-color:#666b79;}
}

/* Keep the hover bridge large enough to move from the button into the menu. */
@media (min-width: 851px){
  .signin-dropdown{top:calc(100% + 4px);}
  .signin-menu:after{content:"";position:absolute;left:0;right:0;top:100%;height:10px;}
}
@media (min-width: 701px){
  .theme-menu{top:calc(100% + 4px);}
  .theme-switcher:after{content:"";position:absolute;left:0;right:0;top:100%;height:10px;}
  .lang-menu{top:calc(100% + 4px);}
  .lang-switcher:after{content:"";position:absolute;left:0;right:0;top:100%;height:10px;}
}


/* CAM-KH V26: Cooler Day/System light theme — avoid a flat pure-white page. */
html[data-theme="light"] .movie-card,
html[data-theme="system"] .movie-card{color:var(--text);}
html[data-theme="light"] .card-info>div,
html[data-theme="system"] .card-info>div{color:#667085;}
html[data-theme="light"] .card-info small,
html[data-theme="system"] .card-info small{color:#7a8494;}
html[data-theme="light"] .facts>div,
html[data-theme="system"] .facts>div,
html[data-theme="light"] .episodes,
html[data-theme="system"] .episodes,
html[data-theme="light"] .profile-head,
html[data-theme="system"] .profile-head,
html[data-theme="light"] .dashboard-links a,
html[data-theme="system"] .dashboard-links a{
  background:rgba(248,250,252,.88) !important;
  border-color:#d4dae3 !important;
}
html[data-theme="light"] .player-help,
html[data-theme="system"] .player-help{
  background:#e7ebf0 !important;color:#667085 !important;
}
html[data-theme="light"] .episode,
html[data-theme="system"] .episode{
  background:#eef1f5 !important;color:#18202b !important;border-color:#d4dae3 !important;
}
html[data-theme="light"] .btn-ghost,
html[data-theme="system"] .btn-ghost{
  background:#f8fafc !important;color:#18202b !important;border-color:#cfd6e0 !important;
}
@media (prefers-color-scheme: light){
  html[data-theme="system"] body{background:radial-gradient(circle at 80% -10%,#e7ebf5 0,#eef1f5 42%);background-color:var(--bg);}
}

/* ===== CAM-KH V27 — EXACT DAY MODE PAGE BACKGROUND ===== */
html[data-theme="light"]{
  --bg:#E6DCDC;
}
html[data-theme="light"] body{
  background:#E6DCDC !important;
  background-image:none !important;
}
@media(prefers-color-scheme: light){
  html[data-theme="system"]{
    --bg:#E6DCDC;
  }
  html[data-theme="system"] body{
    background:#E6DCDC !important;
    background-image:none !important;
  }
}


/* ===== CAM-KH V32 — COMPACT 2-COLUMN CATEGORIES HOVER DROPDOWN ===== */
@media (min-width:851px){
  .desktop-nav .nav-dropdown{position:relative;display:flex;align-items:center;height:100%;}
  .desktop-nav .nav-dropdown-toggle{display:flex;align-items:center;gap:5px;color:#b9bdc8;font-weight:600;white-space:nowrap;}
  .desktop-nav .nav-dropdown-toggle span{font-size:10px;line-height:1;opacity:.75;transition:transform .18s ease;}
  .desktop-nav .nav-dropdown:hover .nav-dropdown-toggle span,
  .desktop-nav .nav-dropdown:focus-within .nav-dropdown-toggle span{transform:rotate(180deg);}
  .desktop-nav .nav-dropdown-menu{
    position:absolute;top:calc(100% + 4px);left:50%;transform:translateX(-50%);
    width:360px;max-width:calc(100vw - 30px);max-height:420px;overflow-y:auto;
    padding:8px;background:#333;border:1px solid #454545;border-radius:11px;
    box-shadow:0 20px 45px rgba(0,0,0,.35);display:none;z-index:5000;
    grid-template-columns:1fr 1fr;gap:3px;
  }
  .desktop-nav .nav-dropdown:hover .nav-dropdown-menu,
  .desktop-nav .nav-dropdown:focus-within .nav-dropdown-menu{display:grid;}
  .desktop-nav .nav-dropdown-menu a{
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    min-width:0;padding:9px 10px;border-radius:7px;color:#f3f3f3;font-size:.84rem;font-weight:650;white-space:nowrap;
  }
  .desktop-nav .nav-dropdown-menu a:hover{background:#484848;color:#fff;}
  .desktop-nav .nav-dropdown-menu a b{font-size:16px;font-weight:500;opacity:.7;}
  .desktop-nav .nav-dropdown-menu .nav-dropdown-all{grid-column:1 / -1;font-size:.88rem;}
  .desktop-nav .nav-dropdown-menu .nav-dropdown-divider{grid-column:1 / -1;height:1px;background:#4b4b4b;margin:1px 2px 4px;}
  .desktop-nav .nav-dropdown:after{content:"";position:absolute;left:0;right:0;top:100%;height:10px;}
  .desktop-nav .nav-dropdown-menu::-webkit-scrollbar{width:6px;}
  .desktop-nav .nav-dropdown-menu::-webkit-scrollbar-thumb{background:#5a5a5a;border-radius:99px;}
}
html[data-theme="light"] .desktop-nav .nav-dropdown-menu{background:#fff;border-color:#dfe2e8;box-shadow:0 20px 45px rgba(20,25,35,.18);}
html[data-theme="light"] .desktop-nav .nav-dropdown-menu a{color:#3f4654;}
html[data-theme="light"] .desktop-nav .nav-dropdown-menu a:hover{background:#E6DCDC;color:#171922;}
html[data-theme="light"] .desktop-nav .nav-dropdown-menu .nav-dropdown-divider{background:#e2e4e8;}
@media(prefers-color-scheme:light){
  html[data-theme="system"] .desktop-nav .nav-dropdown-menu{background:#fff;border-color:#dfe2e8;box-shadow:0 20px 45px rgba(20,25,35,.18);}
  html[data-theme="system"] .desktop-nav .nav-dropdown-menu a{color:#3f4654;}
  html[data-theme="system"] .desktop-nav .nav-dropdown-menu a:hover{background:#E6DCDC;color:#171922;}
  html[data-theme="system"] .desktop-nav .nav-dropdown-menu .nav-dropdown-divider{background:#e2e4e8;}
}


/* ===== CAM-KH V33 — PREMIUM SIGN-IN HOVER DROPDOWN ===== */
@media (min-width:851px){
  .signin-menu{
    position:relative;
    display:flex;
    align-items:center;
  }

  .signin-toggle{
    min-height:40px;
    padding:8px 14px;
    border-radius:9px;
  }

  .signin-avatar{
    width:20px;
    height:20px;
    flex:0 0 20px;
  }

  .signin-dropdown{
    top:calc(100% + 7px) !important;
    right:0;
    width:270px !important;
    max-width:calc(100vw - 24px);
    padding:9px !important;
    background:#333 !important;
    border:1px solid #464646 !important;
    border-radius:10px !important;
    box-shadow:0 20px 50px rgba(0,0,0,.40) !important;
    z-index:6000;
  }

  .signin-dropdown:before{
    right:22px;
    top:-8px;
    border-left-width:8px;
    border-right-width:8px;
    border-bottom:8px solid #333 !important;
  }

  .signin-menu:after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:100%;
    height:11px;
  }

  .signin-dropdown>a{
    min-height:48px;
    padding:8px 9px !important;
    gap:12px !important;
    border-radius:8px !important;
    color:#f4f4f4 !important;
    font-size:.88rem;
    font-weight:750;
    transition:background .18s ease,transform .18s ease;
  }

  .signin-dropdown>a:hover{
    background:#484848 !important;
    transform:translateX(1px);
  }

  .signin-dropdown .social-logo{
    width:34px !important;
    height:34px !important;
    flex:0 0 34px !important;
    border-radius:50%;
    font-size:20px;
  }

  .signin-dropdown .google-logo{
    background:#fff !important;
    color:#4285f4 !important;
  }

  .signin-dropdown .facebook-logo{
    background:#fff !important;
    color:#1877f2 !important;
    font-size:24px;
  }

  .signin-separator{
    height:1px;
    background:#4b4b4b !important;
    margin:8px 5px !important;
  }

  .signin-dropdown .signin-email{
    min-height:44px;
    font-size:.86rem;
  }

  .signin-action-icon{
    width:28px;
    flex:0 0 28px;
    text-align:center;
    font-size:17px;
    color:#d9d9d9;
  }
}

/* Day mode */
html[data-theme="light"] .signin-dropdown{
  background:#fff !important;
  border-color:#dfe2e8 !important;
  box-shadow:0 20px 50px rgba(20,25,35,.18) !important;
}

html[data-theme="light"] .signin-dropdown:before{
  border-bottom-color:#fff !important;
}

html[data-theme="light"] .signin-dropdown>a{
  color:#303744 !important;
}

html[data-theme="light"] .signin-dropdown>a:hover{
  background:#E6DCDC !important;
  color:#171922 !important;
}

html[data-theme="light"] .signin-separator{
  background:#e2e4e8 !important;
}

html[data-theme="light"] .signin-action-icon{
  color:#596171;
}

/* System mode when the operating system is using Light mode */
@media(prefers-color-scheme:light){
  html[data-theme="system"] .signin-dropdown{
    background:#fff !important;
    border-color:#dfe2e8 !important;
    box-shadow:0 20px 50px rgba(20,25,35,.18) !important;
  }

  html[data-theme="system"] .signin-dropdown:before{
    border-bottom-color:#fff !important;
  }

  html[data-theme="system"] .signin-dropdown>a{
    color:#303744 !important;
  }

  html[data-theme="system"] .signin-dropdown>a:hover{
    background:#E6DCDC !important;
    color:#171922 !important;
  }

  html[data-theme="system"] .signin-separator{
    background:#e2e4e8 !important;
  }

  html[data-theme="system"] .signin-action-icon{
    color:#596171;
  }
}

/* Mobile keeps the existing hamburger navigation. */
@media(max-width:850px){
  .signin-dropdown{display:none !important;}
}


/* ===== CAM-KH V34 — REAL DARK MODE =====
   Dark mode is intentionally anchored to #121212, not the older blue-black palette.
   This final block is placed last so older V20-V32 theme rules cannot override it.
*/
html[data-theme="dark"] {
  color-scheme: dark !important;
  --bg:#121212 !important;
  --panel:#1E1E1E !important;
  --panel2:#242424 !important;
  --text:#F5F5F5 !important;
  --muted:#A7A7A7 !important;
  --line:#333333 !important;
}
html[data-theme="dark"] body {
  background:#121212 !important;
  background-image:none !important;
  color:#F5F5F5 !important;
}
html[data-theme="dark"] .header {
  background:rgba(18,18,18,.96) !important;
  border-bottom:1px solid #2D2D2D !important;
}
html[data-theme="dark"] .nav-search input,
html[data-theme="dark"] .filter-panel select,
html[data-theme="dark"] .search-large input,
html[data-theme="dark"] .auth-card input,
html[data-theme="dark"] .admin-form input,
html[data-theme="dark"] .admin-form select,
html[data-theme="dark"] .admin-form textarea {
  background:#1E1E1E !important;
  color:#F5F5F5 !important;
  border-color:#333333 !important;
}
html[data-theme="dark"] .category-card {
  background:#1E1E1E !important;
  border-color:#333333 !important;
}
html[data-theme="dark"] .facts>div,
html[data-theme="dark"] .episodes,
html[data-theme="dark"] .profile-head,
html[data-theme="dark"] .dashboard-links a,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .admin-card {
  background:#1E1E1E !important;
  border-color:#333333 !important;
}
html[data-theme="dark"] .episode {
  background:#242424 !important;
  border-color:#383838 !important;
  color:#F5F5F5 !important;
}
html[data-theme="dark"] .player-help {
  background:#1B1B1B !important;
  color:#9E9E9E !important;
}
html[data-theme="dark"] footer {
  background:#0F0F0F !important;
  border-top-color:#2D2D2D !important;
}
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .theme-menu,
html[data-theme="dark"] .lang-toggle,
html[data-theme="dark"] .lang-menu {
  background:#1E1E1E !important;
  color:#F5F5F5 !important;
  border-color:#333333 !important;
}
html[data-theme="dark"] .theme-menu button:hover,
html[data-theme="dark"] .theme-menu button[aria-checked="true"],
html[data-theme="dark"] .lang-menu a:hover,
html[data-theme="dark"] .lang-menu button:hover,
html[data-theme="dark"] .lang-menu a[aria-checked="true"],
html[data-theme="dark"] .lang-menu button[aria-checked="true"] {
  background:#2A2A2A !important;
}
html[data-theme="dark"] .desktop-nav a,
html[data-theme="dark"] .nav-user a {
  color:#C5C5C5 !important;
}
html[data-theme="dark"] .desktop-nav a:hover,
html[data-theme="dark"] .nav-user a:hover {
  color:#FFFFFF !important;
}
html[data-theme="dark"] .mobile-nav {
  background:#181818 !important;
  border-color:#333333 !important;
}
html[data-theme="dark"] .mobile-nav a {
  color:#E5E5E5 !important;
  border-bottom-color:#2D2D2D !important;
}
html[data-theme="dark"] .nav-dropdown-menu,
html[data-theme="dark"] .signin-dropdown {
  background:#1E1E1E !important;
  border-color:#333333 !important;
}
html[data-theme="dark"] .signin-dropdown>a,
html[data-theme="dark"] .nav-dropdown-menu a {
  color:#F0F0F0 !important;
}
html[data-theme="dark"] .nav-dropdown-menu a:hover,
html[data-theme="dark"] .signin-dropdown>a:hover {
  background:#2A2A2A !important;
}
html[data-theme="dark"] .home-movie-section > .home-section-title {
  background:#1E1E1E !important;
  border-color:#333333 !important;
}


/* ================================================================
   CAM-KH MOVIES V35 — HARD DARK THEME
   Final override. Dark mode uses #121212 as the page background.
   ================================================================ */
html[data-theme="dark"] {
  color-scheme: dark !important;
  --bg:#121212 !important;
  --panel:#1e1e1e !important;
  --panel2:#242424 !important;
  --text:#f5f5f5 !important;
  --muted:#a7a7a7 !important;
  --line:#333333 !important;
}
html[data-theme="dark"] body,
html[data-theme="dark"] main,
html[data-theme="dark"] .page,
html[data-theme="dark"] .site-main {
  background:#121212 !important;
  background-image:none !important;
  color:#f5f5f5 !important;
}
html[data-theme="dark"] body:before,
html[data-theme="dark"] body:after { background:none !important; }
html[data-theme="dark"] .header,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .mobile-nav,
html[data-theme="dark"] .nav-dropdown-menu,
html[data-theme="dark"] .signin-dropdown,
html[data-theme="dark"] .theme-menu,
html[data-theme="dark"] .lang-menu,
html[data-theme="dark"] .card,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .facts,
html[data-theme="dark"] .watch-info,
html[data-theme="dark"] .episode,
html[data-theme="dark"] .player-help,
html[data-theme="dark"] .filter-panel,
html[data-theme="dark"] .search-large,
html[data-theme="dark"] .admin-login-card {
  background-color:#1e1e1e !important;
  color:#f5f5f5 !important;
  border-color:#333333 !important;
}
html[data-theme="dark"] .header { background:#171717 !important; }
html[data-theme="dark"] .nav-search input,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .filter-panel select,
html[data-theme="dark"] .search-large input,
html[data-theme="dark"] .auth-card input,
html[data-theme="dark"] .admin-form input,
html[data-theme="dark"] .admin-form select,
html[data-theme="dark"] .admin-form textarea,
html[data-theme="dark"] .admin-login-card input {
  background:#242424 !important;
  color:#f5f5f5 !important;
  border-color:#3a3a3a !important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color:#8d8d8d !important; }
html[data-theme="dark"] a,
html[data-theme="dark"] .desktop-nav a,
html[data-theme="dark"] .nav-user a,
html[data-theme="dark"] .mobile-nav a,
html[data-theme="dark"] label,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] p,
html[data-theme="dark"] span,
html[data-theme="dark"] small { color:inherit; }
html[data-theme="dark"] .desktop-nav a,
html[data-theme="dark"] .nav-user a { color:#d0d0d0 !important; }
html[data-theme="dark"] .desktop-nav a:hover,
html[data-theme="dark"] .nav-user a:hover { color:#fff !important; }
html[data-theme="dark"] .section-head a,
html[data-theme="dark"] .section-head span,
html[data-theme="dark"] .page-heading p,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .card-info>div,
html[data-theme="dark"] .card-info small { color:#a7a7a7 !important; }
html[data-theme="dark"] .poster-wrap { background:#242424 !important; }
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .lang-toggle,
html[data-theme="dark"] .mobile-theme-buttons button {
  background:#242424 !important;
  color:#f5f5f5 !important;
  border-color:#3a3a3a !important;
}
html[data-theme="dark"] .theme-menu button { color:#f5f5f5 !important; }
html[data-theme="dark"] .theme-menu button:hover { background:#2d2d2d !important; }
html[data-theme="dark"] .lang-menu a,
html[data-theme="dark"] .lang-menu button { color:#f5f5f5 !important; }
html[data-theme="dark"] .lang-menu a:hover,
html[data-theme="dark"] .lang-menu button:hover { background:#2d2d2d !important; }
html[data-theme="dark"] .nav-dropdown-menu a:hover,
html[data-theme="dark"] .signin-dropdown>a:hover { background:#2d2d2d !important; }
html[data-theme="dark"] .btn-ghost { background:#2a2a2a !important; border-color:#444 !important; color:#fff !important; }
html[data-theme="dark"] .home-movie-section > .home-section-title,
html[data-theme="dark"] .section-head { border-color:#333 !important; }
html[data-theme="dark"] .admin-login-wrap { background:#121212 !important; }
html[data-theme="dark"] .mobile-nav { border-top-color:#333 !important; }
html[data-theme="dark"] .mobile-nav a { border-bottom-color:#2d2d2d !important; color:#e5e5e5 !important; }
html[data-theme="dark"] .hero:after { background:linear-gradient(90deg,rgba(18,18,18,.98),rgba(18,18,18,.68) 42%,rgba(18,18,18,.12)),linear-gradient(0deg,#121212,transparent 45%) !important; }

/* ===== CAM-KH V36 — EXACT DARK BACKGROUND ===== */
html[data-theme="dark"] body,
html[data-theme="dark"] main,
html[data-theme="dark"] .page,
html[data-theme="dark"] .site-main {
    background: #312b2b !important;
    background-image: none !important;
    color: #f5f5f5 !important;
}


/* ===== CAM-KH V37 — PREMIUM DARK SIGN IN BUTTON ===== */
html[data-theme="dark"] .signin-toggle {
    background: #4a2525 !important;
    color: #f5f5f5 !important;
    border: 1px solid #633333 !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.25) !important;
}
html[data-theme="dark"] .signin-toggle:hover,
html[data-theme="dark"] .signin-toggle:focus-visible {
    background: #633333 !important;
    color: #ffffff !important;
    border-color: #754040 !important;
}
html[data-theme="dark"] .signin-toggle .signin-avatar {
    background: #ffffff !important;
    color: #633333 !important;
}


/* ===== CAM-KH V38 — DAY MODE PREMIUM SIGN IN BUTTON ===== */
html[data-theme="light"] .signin-toggle {
    background: #81E1FC !important;
    color: #17202a !important;
    border-color: #81E1FC !important;
}
html[data-theme="light"] .signin-toggle:hover,
html[data-theme="light"] .signin-toggle:focus-visible {
    background: #68d7f5 !important;
    color: #111820 !important;
    border-color: #68d7f5 !important;
}
html[data-theme="light"] .signin-toggle .signin-avatar {
    background: #ffffff !important;
    color: #1689a8 !important;
}

/* ===== CAM-KH V39 — PREMIUM CONTINUE WATCHING ===== */
.continue-watching-section .section-head{margin-bottom:18px}
.continue-heading{display:flex;align-items:center;gap:11px}
.continue-heading .sub{display:block;color:var(--muted);font-size:.78rem;margin-top:1px}
.continue-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;overflow:visible}
.continue-card{min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:13px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.18);transition:transform .22s,border-color .22s,box-shadow .22s}
.continue-card:hover{transform:translateY(-4px);border-color:#514b66;box-shadow:0 16px 38px rgba(0,0,0,.28)}
.continue-poster-wrap{display:block;position:relative;aspect-ratio:2/3;overflow:hidden;background:#171923}
.continue-poster{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s,filter .3s}
.continue-card:hover .continue-poster{transform:scale(1.045);filter:brightness(.72)}
.continue-poster-wrap:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.75));pointer-events:none}
.continue-play{position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-50%) scale(.92);padding:9px 14px;border-radius:999px;background:rgba(0,0,0,.76);border:1px solid rgba(255,255,255,.22);color:#fff;font-weight:800;opacity:0;transition:.2s;white-space:nowrap}
.continue-card:hover .continue-play{opacity:1;transform:translate(-50%,-50%) scale(1)}
.continue-remove{position:absolute;z-index:5;right:9px;top:9px;width:30px;height:30px;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(0,0,0,.65);color:#fff;font-size:20px;line-height:1;opacity:0;transition:.2s}
.continue-card:hover .continue-remove,.continue-remove:focus-visible{opacity:1}
.continue-progress{position:absolute;z-index:4;left:0;right:0;bottom:0;height:4px;background:rgba(255,255,255,.2)}
.continue-progress i{display:block;height:100%;background:var(--accent);box-shadow:0 0 10px rgba(239,51,64,.45)}
.continue-info{padding:11px 12px 13px}.continue-info h3{margin:0 0 3px;font-size:.96rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.continue-info p{margin:0;color:var(--muted);font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.continue-info small{display:block;margin-top:5px;color:#858b99;font-size:.72rem}
.continue-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px 15px}
.continue-empty{text-align:center;padding:70px 20px;background:var(--panel);border:1px solid var(--line);border-radius:14px;color:var(--muted)}
.continue-empty>div{font-size:32px;color:var(--accent)}.continue-empty h3{margin:8px 0 4px;color:var(--text)}.continue-empty p{margin:0 0 18px}
html[data-theme="light"] .continue-card{box-shadow:0 8px 24px rgba(0,0,0,.08)}
@media(max-width:1100px){.continue-row{grid-template-columns:repeat(3,minmax(0,1fr))}.continue-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:850px){.continue-row{grid-template-columns:repeat(2,minmax(0,1fr))}.continue-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.continue-row{display:flex;overflow:auto;gap:12px;padding:2px 2px 12px;scroll-snap-type:x proximity}.continue-card{min-width:145px;width:145px;scroll-snap-align:start}.continue-info{padding:9px}.continue-info h3{font-size:.84rem}.continue-info p{font-size:.7rem}.continue-info small{font-size:.66rem}.continue-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 10px}}


/* ===== CAM-KH V40 — CONTINUE WATCHING RELIABILITY ===== */
.continue-card{position:relative;min-width:0}
.continue-poster-wrap{position:relative;display:block;overflow:hidden;border-radius:16px;background:#1a1a1a;aspect-ratio:2/3}
.continue-poster{display:block;width:100%;height:100%;object-fit:cover}
.continue-play{position:absolute;left:12px;bottom:12px;z-index:2;opacity:0;transform:translateY(6px);transition:.22s ease;padding:7px 11px;border-radius:999px;background:rgba(20,20,20,.88);color:#fff;font-weight:800;font-size:.78rem}
.continue-card:hover .continue-play,.continue-card:focus-within .continue-play{opacity:1;transform:none}
.continue-progress{position:absolute;left:0;right:0;bottom:0;height:4px;background:rgba(255,255,255,.22);z-index:3}
.continue-progress i{display:block;height:100%;background:#e82b43;border-radius:0 3px 3px 0}
.continue-remove{position:absolute;right:10px;top:10px;z-index:5;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(0,0,0,.72);color:#fff;font-size:20px;line-height:1;cursor:pointer;opacity:0;transition:.2s ease}
.continue-card:hover .continue-remove,.continue-card:focus-within .continue-remove{opacity:1}
.continue-remove:hover,.continue-remove:focus-visible{background:#e82b43;outline:none}
.continue-info h3{margin:10px 0 4px;font-size:1rem;line-height:1.25}.continue-info p,.continue-info small{margin:0;color:var(--muted);font-size:.82rem;line-height:1.35}
.continue-watching-section .continue-row,.continue-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
@media(max-width:900px){.continue-watching-section .continue-row,.continue-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.continue-watching-section .continue-row{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px}.continue-watching-section .continue-row .continue-card{flex:0 0 150px;scroll-snap-align:start}.continue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
\n/* ===== CAM-KH V41 — CONTINUE WATCHING RELIABILITY ===== */\n.continue-watching-section:has(.continue-card) .continue-empty{display:none}\n

/* ===== CAM-KH V43 — CONTINUE WATCHING MATCHES TRENDING MOVIES ===== */
/* Use the exact same section/header/row structure as Trending Movies. */
.home-movie-section.continue-watching-section > .home-video-row .home-video-grid.continue-row{
  display:grid !important;
  width:100% !important;
  max-width:none !important;
  grid-template-columns:repeat(auto-fill,minmax(190px,190px)) !important;
  grid-auto-flow:row !important;
  justify-content:start !important;
  align-content:start !important;
  align-items:start !important;
  column-gap:16px !important;
  row-gap:22px !important;
  overflow:visible !important;
  white-space:normal !important;
  box-sizing:border-box !important;
  padding:3px 20px 20px !important;
  margin:0 !important;
}
.home-movie-section.continue-watching-section > .home-video-row .continue-row > .continue-card{
  display:block !important;
  width:190px !important;
  min-width:190px !important;
  max-width:190px !important;
  flex:none !important;
}
@media(max-width:600px){
  .home-movie-section.continue-watching-section > .home-video-row .home-video-grid.continue-row{
    grid-template-columns:repeat(auto-fill,minmax(160px,160px)) !important;
    column-gap:12px !important;
    row-gap:18px !important;
    padding-left:12px !important;
    padding-right:12px !important;
  }
  .home-movie-section.continue-watching-section > .home-video-row .continue-row > .continue-card{
    width:160px !important;
    min-width:160px !important;
    max-width:160px !important;
  }
}

/* ===== CAM-KH V44 — ADMIN DAY / DARK MODE ===== */
.admin-theme-control{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--admin-line,#2d3340);border-radius:10px;background:var(--admin-control,#151a22)}
.admin-theme-control button{border:0;background:transparent;color:var(--admin-muted,#aab1bd);padding:6px 8px;border-radius:7px;font:inherit;font-size:.76rem;cursor:pointer;white-space:nowrap}
.admin-theme-control button:hover{color:var(--admin-text,#fff);background:var(--admin-hover,#202632)}
.admin-theme-control button.active{background:var(--admin-accent,#ff5b61);color:#fff;font-weight:700}
html[data-theme="dark"] body:has(.admin-wrap){--admin-bg:#312b2b;--admin-card:#1e1a1a;--admin-control:#241f1f;--admin-hover:#302727;--admin-line:#463636;--admin-text:#f5f5f5;--admin-muted:#b9b0b0;--admin-accent:#b94b52;background:var(--admin-bg)!important;color:var(--admin-text)!important}
html[data-theme="light"] body:has(.admin-wrap){--admin-bg:#f3f6fa;--admin-card:#ffffff;--admin-control:#eef2f6;--admin-hover:#e3e9ef;--admin-line:#d5dce5;--admin-text:#18202a;--admin-muted:#66717f;--admin-accent:#1689a8;background:var(--admin-bg)!important;color:var(--admin-text)!important}
body:has(.admin-wrap) .admin-card,body:has(.admin-wrap) .stat-card{background:var(--admin-card,#141821)!important;border-color:var(--admin-line,#252b36)!important;color:var(--admin-text,#f2f3f5)!important}
body:has(.admin-wrap) .admin-subtitle,body:has(.admin-wrap) .sub,body:has(.admin-wrap) .empty-state,body:has(.admin-wrap) th{color:var(--admin-muted,#9ca3af)!important}
body:has(.admin-wrap) table td,body:has(.admin-wrap) table th{border-color:var(--admin-line,#282e39)!important}
body:has(.admin-wrap) input,body:has(.admin-wrap) select,body:has(.admin-wrap) textarea{background:var(--admin-control,#0f131a)!important;color:var(--admin-text,#f2f3f5)!important;border-color:var(--admin-line,#303744)!important}
body:has(.admin-wrap) .admin-actions .btn-ghost,body:has(.admin-wrap) .admin-actions .btn:not(.btn-primary){background:var(--admin-control,#1b202a)!important;color:var(--admin-text,#fff)!important;border-color:var(--admin-line,#343b49)!important}
body:has(.admin-wrap) .admin-actions .btn-ghost:hover,body:has(.admin-wrap) .admin-actions .btn:not(.btn-primary):hover{background:var(--admin-hover,#202632)!important}
body:has(.admin-wrap) .admin-actions .btn-primary,body:has(.admin-wrap) .admin-actions .btn:not(.btn-ghost):first-child{background:var(--admin-accent,#ff5b61)!important;border-color:var(--admin-accent,#ff5b61)!important}
body:has(.admin-wrap) .admin-card a,body:has(.admin-wrap) .admin-top a:not(.btn){color:var(--admin-accent,#ff5b61)}
body:has(.admin-wrap) .link-button{color:var(--admin-accent,#ff5b61)}
body:has(.admin-wrap) .admin-alert{background:rgba(185,75,82,.14);border-color:var(--admin-line,#463636);color:var(--admin-text,#fff)}
@media(max-width:760px){.admin-theme-control{order:3;width:100%;justify-content:center}.admin-theme-control button{flex:1}.admin-actions{width:100%}}

/* ===== CAM-KH V44 FIX — GOOGLE SIGN-IN TEXT VISIBILITY ===== */
/* Keep the Google button readable in every browser and theme. */
.social-login.google,
.social-login.google:visited,
.social-login.google:hover,
.social-login.google:focus,
.social-login.google:active {
    background:#ffffff !important;
    color:#202124 !important;
    -webkit-text-fill-color:#202124 !important;
    border-color:#d0d0d0 !important;
}
.social-login.google .google-logo {
    background:#ffffff !important;
    color:#4285f4 !important;
    -webkit-text-fill-color:#4285f4 !important;
}

/* ===== CAM-KH V44 FIX — GOOGLE SIGN-IN RED TEXT ===== */
/* Keep the Google sign-in label clearly red in every browser. */
.social-login.google,
.social-login.google:visited,
.social-login.google:hover,
.social-login.google:focus,
.social-login.google:active {
    color:#DB4437 !important;
    -webkit-text-fill-color:#DB4437 !important;
}
.social-login.google .google-logo {
    color:#DB4437 !important;
    -webkit-text-fill-color:#DB4437 !important;
}

/* ===== CAM-KH V45 — ADMIN DAY MODE ACTION BAR ===== */
html[data-theme="light"] body:has(.admin-wrap) .admin-actions > a.btn,
html[data-theme="light"] body:has(.admin-wrap) .admin-actions > button.btn,
html[data-theme="light"] body:has(.admin-wrap) .admin-top > div:last-child > a.btn,
html[data-theme="light"] body:has(.admin-wrap) .admin-top > div:last-child > button.btn{
    background:#81E1FC !important;
    border-color:#81E1FC !important;
    color:#17202a !important;
    box-shadow:0 6px 18px rgba(22,137,168,.12) !important;
}
html[data-theme="light"] body:has(.admin-wrap) .admin-actions > a.btn:hover,
html[data-theme="light"] body:has(.admin-wrap) .admin-actions > button.btn:hover,
html[data-theme="light"] body:has(.admin-wrap) .admin-top > div:last-child > a.btn:hover,
html[data-theme="light"] body:has(.admin-wrap) .admin-top > div:last-child > button.btn:hover{
    background:#68d7f5 !important;
    border-color:#68d7f5 !important;
    color:#111820 !important;
}


/* ===== CAM-KH V46 — ADMIN UI POLISH & RESPONSIVE ===== */
body:has(.admin-wrap) .admin-wrap{padding-top:28px;padding-bottom:60px}
body:has(.admin-wrap) .admin-top{padding:16px 18px;background:var(--admin-card,var(--panel));border:1px solid var(--admin-line,var(--line));border-radius:14px;box-shadow:0 10px 35px rgba(0,0,0,.08)}
body:has(.admin-wrap) .admin-top .brand{font-size:1.08rem}
body:has(.admin-wrap) .admin-top .admin-actions{justify-content:flex-end}
body:has(.admin-wrap) .stats{gap:16px}
body:has(.admin-wrap) .stat-card{min-height:108px;display:flex;flex-direction:column;justify-content:center;transition:transform .2s,box-shadow .2s}
body:has(.admin-wrap) .stat-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(0,0,0,.08)}
body:has(.admin-wrap) .admin-card{overflow:hidden}
body:has(.admin-wrap) .admin-card .section-head{padding-bottom:2px}
body:has(.admin-wrap) .admin-card .section-head>div:last-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body:has(.admin-wrap) .admin-card table th{background:var(--admin-control,rgba(255,255,255,.03))}
body:has(.admin-wrap) .admin-card table tbody tr{transition:background .15s}
body:has(.admin-wrap) .admin-card table tbody tr:hover{background:var(--admin-hover,rgba(255,255,255,.04))}
body:has(.admin-wrap) .admin-actions .btn{min-height:38px}
body:has(.admin-wrap) .admin-theme-control{min-height:38px}
@media(max-width:1050px){body:has(.admin-wrap) .stats{grid-template-columns:repeat(3,minmax(0,1fr))}body:has(.admin-wrap) .admin-top{align-items:flex-start}}
@media(max-width:760px){body:has(.admin-wrap) .admin-wrap{width:min(100% - 24px,1240px);padding-top:16px}body:has(.admin-wrap) .admin-top{flex-direction:column;align-items:stretch;padding:14px}body:has(.admin-wrap) .admin-top .admin-actions{width:100%;justify-content:stretch}body:has(.admin-wrap) .admin-top .admin-actions>.btn{flex:1 1 calc(50% - 8px);min-width:120px}body:has(.admin-wrap) .admin-theme-control{order:-1}body:has(.admin-wrap) .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body:has(.admin-wrap) .stat-card{min-height:92px;padding:14px}body:has(.admin-wrap) .stat-card strong{font-size:27px}body:has(.admin-wrap) .admin-card{padding:15px}body:has(.admin-wrap) .admin-card .section-head{align-items:stretch;flex-direction:column}body:has(.admin-wrap) .admin-card .section-head>div:last-child{width:100%}body:has(.admin-wrap) .admin-card .section-head input{width:100%!important;max-width:none!important}}
@media(max-width:430px){body:has(.admin-wrap) .admin-top .admin-actions>.btn{flex:1 1 100%;width:100%}body:has(.admin-wrap) .admin-theme-control{width:100%}body:has(.admin-wrap) .stats{grid-template-columns:1fr 1fr}body:has(.admin-wrap) .stat-card small{font-size:.72rem}body:has(.admin-wrap) .stat-card strong{font-size:24px}}


/* ===== CAM-KH V49 — TRUE SPLIT NAVBAR ===== */
/* Public desktop navbar: navigation is anchored left and the search/sign-in/theme controls are anchored right. */
@media (min-width:851px){
  .header > .nav{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding-left:24px !important;
    padding-right:24px !important;
    gap:0 !important;
  }
  .header > .nav .nav-left{
    display:flex !important;
    align-items:center !important;
    min-width:0 !important;
    gap:24px !important;
  }
  .header > .nav .nav-right{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:13px !important;
    margin-left:auto !important;
    min-width:0 !important;
  }
  .header > .nav .desktop-nav{
    margin-left:0 !important;
  }
  .header > .nav .nav-search{
    margin-left:0 !important;
  }
}

/* Keep the existing compact/mobile hamburger layout unchanged. */
@media (max-width:850px){
  .header > .nav{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
  }
  .header > .nav .nav-left{
    display:flex !important;
    align-items:center !important;
    min-width:0 !important;
  }
  .header > .nav .nav-right{
    display:none !important;
  }
  .header > .nav .brand{
    min-width:0 !important;
  }
}

/* ===== CAM-KH V50 — HERO SLIDESHOW 1480 x 572 ===== */
/* Desktop banner target: exactly 1480px wide x 572px high. */
.hero-slider{
    width:min(1480px, 100%) !important;
    max-width:1480px !important;
    height:572px !important;
    min-height:572px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    overflow:hidden !important;
}

.hero-track,
.hero-slide,
.hero-slider .hero-content{
    width:100% !important;
    height:572px !important;
    min-height:572px !important;
}

.hero-slide{
    background-size:cover !important;
    background-position:center center !important;
}

/* Keep the banner proportional when the viewport is narrower than 1480px. */
@media (max-width:1480px){
    .hero-slider{
        width:100% !important;
        height:calc(100vw * 572 / 1480) !important;
        min-height:0 !important;
        max-height:572px !important;
    }

    .hero-track,
    .hero-slide,
    .hero-slider .hero-content{
        height:100% !important;
        min-height:0 !important;
    }
}

/* Mobile: keep the hero usable while preserving the banner ratio. */
@media (max-width:600px){
    .hero-slider{
        height:calc(100vw * 572 / 1480) !important;
        min-height:0 !important;
        max-height:none !important;
    }

    .hero-track,
    .hero-slide,
    .hero-slider .hero-content{
        height:100% !important;
        min-height:0 !important;
    }
}
\n\n

/* ===== CAM-KH V52 — NATURAL RESPONSIVE CINEMATIC HERO ===== */
/* Full-width hero with a natural streaming-site proportion.
   It scales smoothly with the viewport instead of forcing 1480x572. */
.hero-slider{
  width:100% !important;
  max-width:none !important;
  height:clamp(380px, 33vw, 520px) !important;
  min-height:380px !important;
  max-height:520px !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  position:relative !important;
  background:#07080c !important;
}
.hero-track{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  overflow:hidden !important;
}
.hero-slide{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  max-height:none !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
}
.hero-slider .hero-content{
  position:relative !important;
  z-index:2 !important;
  width:min(var(--max), calc(100% - 40px)) !important;
  height:100% !important;
  min-height:0 !important;
  box-sizing:border-box !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-end !important;
  padding-top:40px !important;
  padding-bottom:58px !important;
}
.hero-slider .hero-content h1{
  font-size:clamp(34px, 4.4vw, 68px) !important;
  max-width:720px !important;
  margin:8px 0 14px !important;
}
.hero-slider .hero-content p{
  max-width:590px !important;
  font-size:clamp(14px, 1.15vw, 17px) !important;
  line-height:1.55 !important;
  display:-webkit-box !important;
  -webkit-line-clamp:3 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
}
@media(max-width:850px){
  .hero-slider{
    height:clamp(360px, 58vw, 470px) !important;
    min-height:360px !important;
    max-height:470px !important;
  }
  .hero-slider .hero-content{
    width:calc(100% - 32px) !important;
    padding-bottom:42px !important;
  }
  .hero-slider .hero-content p{max-width:520px !important;-webkit-line-clamp:2 !important;}
}
@media(max-width:600px){
  .hero-slider{
    height:clamp(330px, 72vw, 410px) !important;
    min-height:330px !important;
    max-height:410px !important;
  }
  .hero-slider .hero-content{
    width:calc(100% - 28px) !important;
    padding-top:24px !important;
    padding-bottom:34px !important;
  }
  .hero-slider .hero-content h1{
    font-size:clamp(30px, 9vw, 44px) !important;
    max-width:90% !important;
  }
  .hero-slider .hero-content p{font-size:14px !important;max-width:88% !important;}
  .hero-slider .hero-meta{gap:7px !important;margin:12px 0 !important;}
}

/* ===== CAM-KH V53 — PREMIUM CINEMATIC HERO ===== */
/* Full-bleed streaming hero. The image is allowed to breathe while the
   layered gradients keep the title readable and premium in both themes. */
.hero-slider{
  width:100vw !important;
  max-width:none !important;
  height:clamp(430px, 34vw, 620px) !important;
  min-height:430px !important;
  max-height:620px !important;
  margin-left:calc(50% - 50vw) !important;
  margin-right:0 !important;
  margin-top:0 !important;
  border-radius:0 !important;
  overflow:hidden !important;
  position:relative !important;
  background:#08090d !important;
  isolation:isolate !important;
}
.hero-track{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  overflow:hidden !important;
}
.hero-slide{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  transform:scale(1.015) !important;
  transition:opacity .85s ease, visibility .85s ease, transform 5.5s ease !important;
}
.hero-slide.is-active{
  transform:scale(1.045) !important;
}
.hero-shade{
  position:absolute !important;
  inset:0 !important;
  z-index:1 !important;
  pointer-events:none !important;
  background:
    linear-gradient(90deg,
      rgba(5,6,10,.97) 0%,
      rgba(5,6,10,.88) 18%,
      rgba(5,6,10,.60) 38%,
      rgba(5,6,10,.20) 64%,
      rgba(5,6,10,.04) 100%),
    linear-gradient(0deg,
      rgba(5,6,10,.96) 0%,
      rgba(5,6,10,.58) 13%,
      rgba(5,6,10,.05) 48%,
      rgba(5,6,10,.10) 100%),
    radial-gradient(circle at 72% 42%, rgba(255,255,255,.07), transparent 38%);
}
.hero-slider .hero-content{
  position:relative !important;
  z-index:3 !important;
  width:min(1180px, calc(100% - 64px)) !important;
  height:100% !important;
  min-height:0 !important;
  margin:0 auto !important;
  padding:0 0 74px !important;
  box-sizing:border-box !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-end !important;
  align-items:flex-start !important;
}
.hero-slider .eyebrow{
  display:inline-flex !important;
  align-items:center !important;
  gap:7px !important;
  margin-bottom:2px !important;
  padding:6px 11px !important;
  border:1px solid rgba(255,255,255,.14) !important;
  border-radius:999px !important;
  background:rgba(12,13,19,.42) !important;
  backdrop-filter:blur(10px) !important;
  box-shadow:0 8px 30px rgba(0,0,0,.16) !important;
}
.hero-slider .hero-content h1{
  color:#fff !important;
  text-shadow:0 3px 22px rgba(0,0,0,.55) !important;
  font-size:clamp(42px, 4.7vw, 76px) !important;
  line-height:.98 !important;
  letter-spacing:-1.6px !important;
  max-width:760px !important;
  margin:12px 0 16px !important;
}
.hero-slider .hero-content p{
  color:rgba(255,255,255,.82) !important;
  text-shadow:0 2px 12px rgba(0,0,0,.5) !important;
  max-width:610px !important;
  font-size:clamp(14px, 1.05vw, 17px) !important;
  line-height:1.62 !important;
  margin:0 !important;
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:3 !important;
  overflow:hidden !important;
}
.hero-slider .hero-meta{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  margin:20px 0 18px !important;
}
.hero-slider .hero-meta span{
  color:rgba(255,255,255,.92) !important;
  background:rgba(15,16,22,.52) !important;
  border:1px solid rgba(255,255,255,.13) !important;
  box-shadow:0 7px 20px rgba(0,0,0,.12) !important;
  backdrop-filter:blur(9px) !important;
}
.hero-slider .actions{gap:11px !important}
.hero-slider .actions .btn{
  min-height:46px !important;
  padding:12px 20px !important;
  border-radius:10px !important;
}
.hero-slider .actions .btn-ghost{
  color:#fff !important;
  background:rgba(255,255,255,.10) !important;
  border:1px solid rgba(255,255,255,.18) !important;
  backdrop-filter:blur(10px) !important;
}
.hero-slider .actions .btn-ghost:hover{
  background:rgba(255,255,255,.17) !important;
  border-color:rgba(255,255,255,.30) !important;
}
.hero-arrow{
  width:48px !important;
  height:76px !important;
  border-radius:12px !important;
  background:rgba(8,9,14,.38) !important;
  border-color:rgba(255,255,255,.16) !important;
  backdrop-filter:blur(12px) !important;
  box-shadow:0 12px 35px rgba(0,0,0,.20) !important;
}
.hero-arrow:hover{
  background:rgba(8,9,14,.70) !important;
  border-color:rgba(255,255,255,.30) !important;
  transform:translateY(-50%) scale(1.03) !important;
}
.hero-dots{
  right:max(28px, calc((100vw - 1180px) / 2)) !important;
  bottom:28px !important;
  z-index:6 !important;
}
.hero-dot{height:4px !important;width:24px !important;background:rgba(255,255,255,.34) !important}
.hero-dot.is-active{width:46px !important;background:#fff !important}
@media(max-width:850px){
  .hero-slider{height:clamp(390px, 58vw, 500px) !important;min-height:390px !important;max-height:500px !important}
  .hero-slider .hero-content{width:calc(100% - 40px) !important;padding-bottom:55px !important}
  .hero-slider .hero-content h1{font-size:clamp(36px, 7vw, 58px) !important;letter-spacing:-.8px !important}
  .hero-slider .hero-content p{max-width:540px !important;-webkit-line-clamp:2 !important}
  .hero-arrow{width:42px !important;height:62px !important}
  .hero-prev{left:14px !important}.hero-next{right:14px !important}
  .hero-dots{right:20px !important;bottom:20px !important}
}
@media(max-width:600px){
  .hero-slider{height:clamp(360px, 72vw, 430px) !important;min-height:360px !important;max-height:430px !important}
  .hero-slider .hero-content{width:calc(100% - 28px) !important;padding-bottom:38px !important}
  .hero-slider .hero-content h1{font-size:clamp(31px, 9vw, 46px) !important;max-width:94% !important;margin:8px 0 11px !important}
  .hero-slider .hero-content p{font-size:13px !important;max-width:92% !important}
  .hero-slider .hero-meta{gap:6px !important;margin:12px 0 13px !important}
  .hero-slider .hero-meta span{font-size:11px !important;padding:4px 8px !important}
  .hero-slider .actions .btn{min-height:42px !important;padding:10px 14px !important;font-size:13px !important}
  .hero-arrow{width:36px !important;height:52px !important;font-size:30px !important}
  .hero-prev{left:8px !important}.hero-next{right:8px !important}
  .hero-dots{right:14px !important;bottom:15px !important}
}
@media(prefers-reduced-motion:reduce){.hero-slide,.hero-slide.is-active{transform:none !important}}


/* ===== CAM-KH V54 — PREMIUM UNIFIED HERO + IMAGE SYSTEM ===== */
/* The hero is a single continuous cinematic canvas. No boxed image, no
   visible edge between artwork and the page background. */
.hero-slider{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  height:clamp(430px, 40vw, 680px) !important;
  min-height:430px !important;
  max-height:680px !important;
  border-radius:0 !important;
  overflow:hidden !important;
  position:relative !important;
  isolation:isolate !important;
  background:#08090d !important;
}
.hero-track{position:absolute !important;inset:0 !important;width:100% !important;height:100% !important;overflow:hidden !important}
.hero-slide{
  position:absolute !important;inset:-2% !important;width:104% !important;height:104% !important;
  background-size:cover !important;background-position:center center !important;background-repeat:no-repeat !important;
  transform:scale(1.02) !important;opacity:0 !important;visibility:hidden !important;
  transition:opacity .9s ease,visibility .9s ease,transform 7s cubic-bezier(.2,.7,.2,1) !important;
}
.hero-slide::before{
  content:"" !important;position:absolute !important;inset:-7% !important;z-index:-1 !important;
  background-image:inherit !important;background-size:cover !important;background-position:center !important;
  filter:blur(26px) saturate(1.12) !important;transform:scale(1.08) !important;opacity:.68 !important;
}
.hero-slide.is-active{opacity:1 !important;visibility:visible !important;z-index:1 !important;transform:scale(1.07) !important}
.hero-shade{
  position:absolute !important;inset:0 !important;z-index:2 !important;pointer-events:none !important;
  background:
    linear-gradient(90deg,rgba(0,0,0,.94) 0%,rgba(0,0,0,.80) 19%,rgba(0,0,0,.48) 42%,rgba(0,0,0,.16) 68%,rgba(0,0,0,.04) 100%),
    linear-gradient(0deg,rgba(0,0,0,.92) 0%,rgba(0,0,0,.48) 15%,rgba(0,0,0,.05) 55%,rgba(0,0,0,.14) 100%),
    radial-gradient(circle at 74% 44%,rgba(255,255,255,.08),transparent 38%);
}
.hero-slider .hero-content{
  position:relative !important;z-index:4 !important;width:100% !important;max-width:none !important;
  height:100% !important;min-height:0 !important;margin:0 !important;padding:0 clamp(24px,4vw,64px) 70px !important;
  display:flex !important;flex-direction:column !important;justify-content:flex-end !important;align-items:flex-start !important;
}
.hero-slider .hero-content h1{
  color:#fff !important;text-shadow:0 4px 28px rgba(0,0,0,.72) !important;
  font-size:clamp(42px,5vw,78px) !important;line-height:.98 !important;letter-spacing:-1.8px !important;
  max-width:820px !important;margin:10px 0 15px !important;
}
.hero-slider .hero-content p{color:rgba(255,255,255,.86) !important;text-shadow:0 2px 14px rgba(0,0,0,.65) !important;max-width:620px !important;font-size:clamp(14px,1.05vw,17px) !important;line-height:1.62 !important}
.hero-slider .hero-meta span{background:rgba(12,13,18,.48) !important;border-color:rgba(255,255,255,.15) !important;backdrop-filter:blur(12px) !important;color:#fff !important}
.hero-slider .actions .btn{min-height:48px !important;border-radius:11px !important;box-shadow:0 12px 32px rgba(0,0,0,.24) !important}
.hero-slider .actions .btn-ghost{background:rgba(255,255,255,.10) !important;color:#fff !important;border-color:rgba(255,255,255,.20) !important;backdrop-filter:blur(12px) !important}
.hero-arrow{z-index:7 !important;background:rgba(0,0,0,.34) !important;border-color:rgba(255,255,255,.18) !important;backdrop-filter:blur(14px) !important}
.hero-dots{z-index:8 !important;right:clamp(20px,3vw,56px) !important;bottom:28px !important}
.hero-dot{height:4px !important;width:24px !important}.hero-dot.is-active{width:48px !important}

/* Reusable responsive image boxes */
.camkh-image-box{position:relative;display:block;overflow:hidden;background:#171923;border-radius:14px;isolation:isolate}
.camkh-image-box img,.camkh-responsive-image{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .45s cubic-bezier(.2,.7,.2,1),filter .3s ease}
.camkh-image-box:hover img{transform:scale(1.045)}
.poster-wrap,.continue-poster-wrap{isolation:isolate}
.poster-wrap .poster,.continue-poster-wrap .continue-poster{cursor:zoom-in}
.detail-poster{cursor:zoom-in;transition:transform .35s ease,filter .3s ease}.detail-poster:hover{transform:scale(1.02);filter:brightness(1.04)}

/* Circular profile picture box */
.avatar,.profile-avatar-box{width:76px !important;height:76px !important;min-width:76px !important;border-radius:50% !important;overflow:hidden !important;display:grid !important;place-items:center !important;position:relative !important;border:3px solid rgba(255,255,255,.16) !important;box-shadow:0 10px 35px rgba(0,0,0,.25),0 0 0 5px rgba(239,51,64,.08) !important;background:linear-gradient(135deg,var(--accent),var(--accent2)) !important}
.profile-avatar-box img,.avatar img{width:100% !important;height:100% !important;object-fit:cover !important;border-radius:50% !important;display:block !important}

/* Lightbox / modal image viewer */
.camkh-lightbox{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:24px;background:rgba(3,4,7,.86);backdrop-filter:blur(16px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .25s ease,visibility .25s ease}
.camkh-lightbox.is-open{opacity:1;visibility:visible;pointer-events:auto}
.camkh-lightbox-frame{position:relative;max-width:min(1400px,94vw);max-height:92vh;padding:8px;border:1px solid rgba(255,255,255,.14);border-radius:18px;background:rgba(18,19,25,.72);box-shadow:0 35px 120px rgba(0,0,0,.65);transform:scale(.96);transition:transform .25s ease}
.camkh-lightbox.is-open .camkh-lightbox-frame{transform:scale(1)}
.camkh-lightbox-image{display:block;max-width:calc(94vw - 16px);max-height:calc(92vh - 16px);width:auto;height:auto;object-fit:contain;border-radius:12px}
.camkh-lightbox-close{position:absolute;top:-15px;right:-15px;width:42px;height:42px;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:rgba(20,21,27,.94);color:#fff;font-size:26px;line-height:1;box-shadow:0 10px 30px rgba(0,0,0,.4);cursor:pointer}
.camkh-lightbox-caption{padding:8px 4px 2px;color:rgba(255,255,255,.78);font-size:13px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:850px){
 .hero-slider{height:clamp(390px,62vw,520px) !important;min-height:390px !important;max-height:520px !important}
 .hero-slider .hero-content{width:100% !important;max-width:none !important;padding:0 20px 58px !important}
 .hero-slider .hero-content h1{font-size:clamp(36px,7vw,58px) !important}
 .camkh-lightbox{padding:14px}.camkh-lightbox-frame{max-width:96vw;max-height:90vh}.camkh-lightbox-image{max-width:calc(96vw - 16px);max-height:calc(90vh - 16px)}
}
@media(max-width:600px){
 .hero-slider{height:clamp(350px,78vw,450px) !important;min-height:350px !important;max-height:450px !important}
 .hero-slider .hero-content{width:100% !important;max-width:none !important;padding:0 14px 42px !important}
 .hero-slider .hero-content h1{font-size:clamp(31px,9vw,46px) !important;letter-spacing:-.8px !important}
 .hero-slider .hero-content p{font-size:13px !important;max-width:92% !important;-webkit-line-clamp:3 !important}
 .hero-arrow{width:36px !important;height:52px !important;font-size:30px !important}.hero-prev{left:8px !important}.hero-next{right:8px !important}
 .hero-dots{right:14px !important;bottom:15px !important}
 .avatar,.profile-avatar-box{width:64px !important;height:64px !important;min-width:64px !important}
}
@media(prefers-reduced-motion:reduce){.hero-slide,.hero-slide.is-active,.camkh-lightbox,.camkh-lightbox-frame,.camkh-image-box img{transition:none !important}}


/* ===== CAM-KH V55 — SEAMLESS HERO / PAGE-BACKGROUND TRANSITION ===== */
/* Make the hero a true edge-to-edge canvas and blend its lower edge into
   the page instead of leaving a hard rectangular image boundary. */
.hero-slider{
  position:relative !important;
  left:50% !important;
  right:auto !important;
  width:100vw !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  transform:translateX(-50%) !important;
  overflow:visible !important;
  z-index:1 !important;
}
.hero-slider .hero-track{
  position:absolute !important;
  inset:0 !important;
  overflow:hidden !important;
  border-radius:0 !important;
}
.hero-slider::after{
  content:"" !important;
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  bottom:-86px !important;
  height:120px !important;
  z-index:2 !important;
  pointer-events:none !important;
  background:linear-gradient(to bottom, rgba(0,0,0,0) 0%, var(--bg) 82%) !important;
}
.hero-slider .hero-content{
  position:relative !important;
  z-index:5 !important;
}
.hero-slider .hero-shade{
  background:
    linear-gradient(90deg,
      rgba(0,0,0,.96) 0%,
      rgba(0,0,0,.82) 17%,
      rgba(0,0,0,.52) 39%,
      rgba(0,0,0,.16) 68%,
      rgba(0,0,0,.02) 100%),
    linear-gradient(0deg,
      rgba(0,0,0,.98) 0%,
      rgba(0,0,0,.70) 12%,
      rgba(0,0,0,.16) 48%,
      rgba(0,0,0,.06) 100%) !important;
}
/* Keep the cinematic image slightly oversized so no page-colored seam can
   appear during the slide transition. */
.hero-slider .hero-slide{
  inset:-4% !important;
  width:108% !important;
  height:108% !important;
  background-position:center center !important;
}
.hero-slider .hero-slide::before{
  inset:-8% !important;
  filter:blur(34px) saturate(1.14) !important;
  opacity:.82 !important;
}
@media(max-width:600px){
  .hero-slider::after{bottom:-64px !important;height:92px !important}
  .hero-slider .hero-slide{inset:-5% !important;width:110% !important;height:110% !important}
}

/* V55 cache/version marker */


/* ===== CAM-KH V57 — DROP TRENDING ROW BELOW HERO ===== */
/* Keep the Trending Movies section clearly below the cinematic slideshow
   instead of letting the hero transition visually overlap the row header. */
.page-space{
  position:relative !important;
  z-index:3 !important;
  padding-top:0px !important;
}
.page-space .trending-section{
  position:relative !important;
  z-index:4 !important;
  margin-top:34px !important;
}
.page-space .trending-section .home-video-row{
  position:relative !important;
  z-index:4 !important;
}
@media(max-width:850px){
  .page-space{padding-top:0px !important}
  .page-space .trending-section{margin-top:26px !important}
}
@media(max-width:600px){
  .page-space{padding-top:0px !important}
  .page-space .trending-section{margin-top:18px !important}
}

/* ===== CAM-KH V59 — HERO ELEMENTS SAME SIZE ===== */
/* Keep the outer hero, slide, active slide, and shade on exactly the same
   box so there is no oversized slide/shade mismatch at the hero edges. */
.hero-slider{
  overflow:hidden !important;
}
.hero-slider .hero-track{
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  min-height:100% !important;
}
.hero-slider .hero-slide,
.hero-slider .hero-slide.is-active{
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  min-height:100% !important;
  transform:scale(1) !important;
}
.hero-slider .hero-shade{
  inset:0 !important;
  width:100% !important;
  height:100% !important;
}
/* V59 cache/version marker */


/* ===== CAM-KH V60 — REMOVE HERO / TRENDING ARTIFICIAL SPACE ===== */
/* The hero, track, slide, active slide and shade must finish at the same
   boundary. Remove the extra V55 transition layer and V57 section gap. */
.hero-slider::after{
  display:none !important;
  content:none !important;
}
.page-space{
  padding-top:0 !important;
}
.page-space .trending-section{
  margin-top:0 !important;
}
.hero-slider,
.hero-slider .hero-track,
.hero-slider .hero-slide,
.hero-slider .hero-slide.is-active,
.hero-slider .hero-shade{
  box-sizing:border-box !important;
}
.hero-slider .hero-track,
.hero-slider .hero-slide,
.hero-slider .hero-slide.is-active,
.hero-slider .hero-shade{
  inset:0 !important;
  width:100% !important;
  height:100% !important;
}
/* V60 cache/version marker */


/* ===== CAM-KH V61 — HERO CONTENT LEFT / SLIDER CONTROLS RIGHT ===== */
.hero-slider .hero-content{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding-left:clamp(24px,4vw,64px) !important;
  padding-right:clamp(24px,4vw,64px) !important;
}
.hero-slider .hero-content > *{
  margin-left:0 !important;
}
.hero-dots{
  right:clamp(20px,3vw,56px) !important;
  left:auto !important;
}
@media(max-width:850px){
  .hero-slider .hero-content{padding-left:20px !important;padding-right:20px !important}
  .hero-dots{right:20px !important}
}
@media(max-width:600px){
  .hero-slider .hero-content{padding-left:14px !important;padding-right:14px !important}
  .hero-dots{right:14px !important}
}

/* ===== CAM-KH V62 — EXACT VIDEO CARD SIZE 231 x 311 ===== */
/* Apply one exact portrait size to movie cards across Home, Movies, Trending,
   Search, Categories/Similar sections, and Continue Watching. */
.movie-card,
.movie-grid .movie-card,
.rail .movie-card,
.home-video-grid .movie-card{
  width:231px !important;
  min-width:231px !important;
  max-width:231px !important;
}

.movie-card .poster-wrap,
.movie-grid .movie-card .poster-wrap,
.rail .movie-card .poster-wrap,
.home-video-grid .movie-card .poster-wrap{
  width:231px !important;
  height:311px !important;
  min-width:231px !important;
  min-height:311px !important;
  max-width:231px !important;
  max-height:311px !important;
  aspect-ratio:auto !important;
  overflow:hidden !important;
}

.movie-card .poster,
.movie-grid .movie-card .poster,
.rail .movie-card .poster,
.home-video-grid .movie-card .poster{
  width:100% !important;
  height:100% !important;
  aspect-ratio:auto !important;
  object-fit:cover !important;
}

/* Homepage wrapped rows keep the exact card size at every breakpoint. */
.home-movie-section > .home-video-row .home-video-grid{
  grid-template-columns:repeat(auto-fill,231px) !important;
}
.home-movie-section > .home-video-row .home-video-grid > .movie-card{
  width:231px !important;
  min-width:231px !important;
  max-width:231px !important;
}
.home-movie-section > .home-video-row .home-video-grid > .movie-card .poster-wrap{
  width:231px !important;
  height:311px !important;
  min-width:231px !important;
  min-height:311px !important;
  max-width:231px !important;
  max-height:311px !important;
}

/* Continue Watching uses the same exact 231 x 311 card dimensions. */
.continue-card{
  width:231px !important;
  min-width:231px !important;
  max-width:231px !important;
}
.continue-poster-wrap{
  width:231px !important;
  height:311px !important;
  min-width:231px !important;
  min-height:311px !important;
  max-width:231px !important;
  max-height:311px !important;
  aspect-ratio:auto !important;
}
.continue-poster{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}

@media(max-width:700px){
  /* Keep the requested exact 231 x 311 size on mobile too. */
  .movie-card,
  .movie-grid .movie-card,
  .rail .movie-card,
  .home-video-grid .movie-card,
  .home-movie-section > .home-video-row .home-video-grid > .movie-card,
  .continue-card{
    width:231px !important;
    min-width:231px !important;
    max-width:231px !important;
  }
  .movie-card .poster-wrap,
  .movie-grid .movie-card .poster-wrap,
  .rail .movie-card .poster-wrap,
  .home-video-grid .movie-card .poster-wrap,
  .home-movie-section > .home-video-row .home-video-grid > .movie-card .poster-wrap,
  .continue-poster-wrap{
    width:231px !important;
    height:311px !important;
    min-width:231px !important;
    min-height:311px !important;
    max-width:231px !important;
    max-height:311px !important;
  }
  .home-movie-section > .home-video-row .home-video-grid{
    grid-template-columns:repeat(auto-fill,231px) !important;
  }
}

/* V62 cache/version marker */

/* ===== CAM-KH V63 — RESTORE CARD GAP / MOVIE DETAIL GRID ===== */
.movie-grid{
  grid-template-columns:repeat(auto-fill,231px) !important;
  grid-auto-columns:231px !important;
  column-gap:15px !important;
  row-gap:22px !important;
  justify-content:start !important;
  align-items:start !important;
}
@media(max-width:1100px){
  .movie-grid{grid-template-columns:repeat(auto-fill,231px) !important;}
}
@media(max-width:850px){
  .movie-grid{
    grid-template-columns:repeat(auto-fill,231px) !important;
    column-gap:15px !important;
    row-gap:22px !important;
  }
}
@media(max-width:560px){
  .movie-grid{
    grid-template-columns:repeat(auto-fill,231px) !important;
    column-gap:12px !important;
    row-gap:22px !important;
    justify-content:start !important;
  }
}
/* V63 cache/version marker */

/* ===== CAM-KH V64 — CONTINUE WATCHING CARD SIZE PARITY =====
   This selector deliberately matches the older Continue Watching rule so the
   card cannot be narrowed to 190px while movie cards use the 231px standard. */
.home-movie-section.continue-watching-section > .home-video-row .home-video-grid.continue-row{
  grid-template-columns:repeat(auto-fill,231px) !important;
  column-gap:15px !important;
  row-gap:22px !important;
}
.home-movie-section.continue-watching-section > .home-video-row .continue-row > .continue-card{
  width:231px !important;
  min-width:231px !important;
  max-width:231px !important;
}
.home-movie-section.continue-watching-section > .home-video-row .continue-row > .continue-card .continue-poster-wrap{
  width:231px !important;
  height:311px !important;
  min-width:231px !important;
  min-height:311px !important;
  max-width:231px !important;
  max-height:311px !important;
}
@media(max-width:600px){
  .home-movie-section.continue-watching-section > .home-video-row .home-video-grid.continue-row{
    grid-template-columns:repeat(auto-fill,231px) !important;
    column-gap:12px !important;
    row-gap:22px !important;
  }
  .home-movie-section.continue-watching-section > .home-video-row .continue-row > .continue-card{
    width:231px !important;
    min-width:231px !important;
    max-width:231px !important;
  }
}
/* V64 cache/version marker */

/* ===== CAM-KH V65 — MOVIE ENGAGEMENT ACTIONS ===== */
.movie-actions{align-items:center}
.movie-actions .action-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:rgba(255,255,255,.12);font-size:.76rem;line-height:1;color:inherit}
.movie-actions button[aria-pressed="true"]{border-color:rgba(239,51,64,.72);background:rgba(239,51,64,.14)}

/* ===== CAM-KH — ANALYSIS PAGE ===== */
.alert-stack{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}
.alert-stack .admin-alert{position:static;display:block}
.admin-alert.alert-danger{background:rgba(239,51,64,.12)!important;border-color:rgba(239,51,64,.35)!important;color:#ff9aa3!important}
.admin-alert.alert-warning{background:rgba(230,168,44,.12)!important;border-color:rgba(230,168,44,.35)!important;color:#e6a82c!important}
.date-filter-card{padding:16px 20px;margin-bottom:20px}
.date-filter-row{display:flex;align-items:end;gap:14px;flex-wrap:wrap}
.date-filter-row .user-search{width:auto;min-width:150px}
.date-filter-row select,.date-filter-row input[type=date]{background:var(--admin-control,#10121a);border:1px solid var(--admin-line,var(--line));color:var(--admin-text,#fff);border-radius:8px;padding:10px 12px;outline:0}
.date-filter-row .sub{margin-left:auto;color:var(--admin-muted,var(--muted));font-size:.8rem}
.analysis-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:22px}
.kpi-card{display:flex;flex-direction:column;gap:6px}
.kpi-head{display:flex;align-items:center;justify-content:space-between}
.kpi-label{color:var(--admin-muted,var(--muted));font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.02em}
.kpi-value{font-size:30px;font-weight:800;line-height:1.1}
.kpi-sub{color:var(--admin-muted,var(--muted));font-size:.78rem;min-height:1.2em}
.kpi-growth{font-size:.78rem;font-weight:800;padding:3px 8px;border-radius:999px;background:rgba(255,255,255,.07)}
.kpi-growth.up{color:#79d7a5;background:rgba(50,190,120,.12)}
.kpi-growth.down{color:#ff929a;background:rgba(239,51,64,.1)}
.kpi-growth.flat{color:var(--admin-muted,var(--muted))}
.sparkline,.barchart{width:100%;height:56px;margin-top:6px;display:block}
.pulse-dot{width:10px;height:10px;border-radius:50%;background:#32be78;box-shadow:0 0 0 rgba(50,190,120,.6);animation:camkh-pulse 1.8s infinite}
@keyframes camkh-pulse{0%{box-shadow:0 0 0 0 rgba(50,190,120,.55)}70%{box-shadow:0 0 0 9px rgba(50,190,120,0)}100%{box-shadow:0 0 0 0 rgba(50,190,120,0)}}
@media(max-width:1050px){.analysis-grid{grid-template-columns:1fr}}
@media(max-width:760px){.date-filter-row{flex-direction:column;align-items:stretch}.date-filter-row .sub{margin-left:0}}

/* ===== CAM-KH — REPORT AN ISSUE WIDGET ===== */
.report-issue-toggle{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);color:#fff;padding:9px 13px;border-radius:999px;font-size:.82rem;font-weight:700;white-space:nowrap}
.report-issue-toggle:hover{background:rgba(255,255,255,.14)}
.report-modal-backdrop{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.72);backdrop-filter:blur(7px)}
.report-modal-backdrop[hidden]{display:none}
.report-modal{width:min(480px,100%);padding:26px;background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:0 30px 100px #000b;max-height:88vh;overflow:auto}
.report-modal-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:18px}
.report-modal-head h2{margin:0 0 3px}
.report-modal-head .sub{color:var(--muted);font-size:.85rem}
.report-modal .modal-close{border:0;background:rgba(255,255,255,.07);color:#fff;width:34px;height:34px;border-radius:8px;font-size:24px;line-height:1;flex:0 0 auto}
.report-category-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:16px}
.report-category{display:flex;align-items:center;gap:8px;background:#10121a;border:1px solid var(--line);border-radius:10px;padding:10px 12px;cursor:pointer;font-size:.85rem;margin:0;transition:.15s}
.report-category:has(input:checked){border-color:var(--accent);background:rgba(239,51,64,.1);color:#fff}
.report-category input{margin:0}
.report-modal label{display:block;color:#aeb2bf;margin:14px 0}
.report-modal textarea,.report-modal input[type=email]{display:block;width:100%;margin-top:6px;background:#10121a;border:1px solid var(--line);color:#fff;border-radius:8px;padding:11px 12px;outline:0;font:inherit;resize:vertical}
.report-modal textarea:focus,.report-modal input[type=email]:focus{border-color:#66577c}
.report-success{padding:10px;border:1px solid #2c6b3f;background:#12241a;color:#7ee2a1;border-radius:8px;margin-top:6px}
@media(max-width:850px){.report-issue-toggle{display:none}}

/* CAM-KH Movies: visible episode count on every series card. */
.poster-wrap .episode-count-badge{position:absolute;left:9px;bottom:9px;z-index:4;display:inline-flex;align-items:center;padding:4px 8px;border-radius:6px;background:rgba(0,0,0,.82);border:1px solid rgba(255,255,255,.16);color:#fff;font-size:11px;font-weight:800;line-height:1.2;backdrop-filter:blur(5px);}


/* CAM-KH Movies: direct share picker */
.share-modal{position:fixed;inset:0;z-index:1400;display:grid;place-items:center;padding:20px}
.share-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(5px)}
.share-modal-card{position:relative;width:min(430px,100%);background:#17191f;border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:20px;box-shadow:0 24px 80px rgba(0,0,0,.55)}
.share-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.share-modal-head h3{margin:0;font-size:1.05rem}
.share-modal-close{width:34px;height:34px;border:0;border-radius:9px;background:rgba(255,255,255,.08);color:#fff;font-size:24px;line-height:1;cursor:pointer}
.share-options{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.share-option{min-height:58px;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:#23262d;color:#fff;text-decoration:none;font:inherit;font-weight:700;cursor:pointer;transition:.15s ease}
.share-option:hover{transform:translateY(-1px);background:#2b2f38;border-color:rgba(255,255,255,.24)}
.share-option-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.12);font-weight:900}
.share-telegram:hover{border-color:#229ed9}.share-facebook:hover{border-color:#1877f2}.share-messenger:hover{border-color:#0084ff}
@media(max-width:480px){.share-options{grid-template-columns:1fr 1fr}.share-modal{padding:14px}}

/* ===== CAM-KH — HOMEPAGE CATEGORY ROWS: SINGLE HORIZONTAL LINE ===== */
/* Keep all existing card dimensions/design; only change the homepage rows to
   horizontal scrolling so cards never wrap onto a second line. */
.home-movie-section > .home-video-row{
  position:relative !important;
  overflow:hidden !important;
}
.home-movie-section > .home-video-row .home-video-grid{
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:22px 15px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  white-space:nowrap !important;
  scroll-behavior:smooth !important;
  -webkit-overflow-scrolling:touch !important;
  scrollbar-width:thin !important;
}
.home-movie-section > .home-video-row .home-video-grid > .movie-card{
  flex:0 0 231px !important;
  width:231px !important;
  min-width:231px !important;
  max-width:231px !important;
}
.home-movie-section > .home-video-row .home-row-next{
  display:grid !important;
  place-items:center !important;
  position:absolute !important;
  z-index:10 !important;
  top:50% !important;
  right:12px !important;
  transform:translateY(-50%) !important;
  width:46px !important;
  height:46px !important;
  padding:0 !important;
  border:1px solid rgba(255,255,255,.22) !important;
  border-radius:50% !important;
  background:rgba(7,8,12,.78) !important;
  color:#fff !important;
  font-size:32px !important;
  line-height:1 !important;
  box-shadow:0 8px 25px rgba(0,0,0,.45) !important;
  backdrop-filter:blur(8px) !important;
}
.home-movie-section > .home-video-row .home-row-next:hover{
  background:rgba(239,51,64,.9) !important;
  border-color:rgba(255,255,255,.3) !important;
}
@media(max-width:700px){
  .home-movie-section > .home-video-row .home-video-grid{
    gap:22px 12px !important;
    padding-left:14px !important;
    padding-right:62px !important;
  }
  .home-movie-section > .home-video-row .home-row-next{
    right:8px !important;
    width:42px !important;
    height:42px !important;
    font-size:29px !important;
  }
}
/* V73 cache/version marker */

/* =========================================
   CAM-KH MOVIES — HERO SLIDER ADJUSTMENT
   ========================================= */

/* 1. Make Hero background image clearer */
.hero-slide::before,
.hero-slider .hero-slide::before,
.hero-banner::before {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.68) 0%,
        rgba(0, 0, 0, 0.38) 35%,
        rgba(0, 0, 0, 0.12) 65%,
        rgba(0, 0, 0, 0.05) 100%
    ) !important;
}

/* Remove excessive blue/dark tint if the image itself has an overlay */
.hero-slide,
.hero-slider .hero-slide,
.hero-banner {
    filter: none !important;
}

/* 2. Make Hero title smaller */
.hero-title,
.hero-slide h1,
.hero-content h1,
.hero-banner h1 {
    font-size: 52px !important;
    line-height: 1.08 !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}

/* Description */
.hero-description,
.hero-slide p,
.hero-content p,
.hero-banner p {
    font-size: 15px !important;
    line-height: 1.5 !important;
    max-width: 650px;
}

/* Desktop */
@media (min-width: 1200px) {
    .hero-title,
    .hero-slide h1,
    .hero-content h1,
    .hero-banner h1 {
        font-size: 52px !important;
    }
}

/* Tablet */
@media (max-width: 1199px) {
    .hero-title,
    .hero-slide h1,
    .hero-content h1,
    .hero-banner h1 {
        font-size: 44px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-title,
    .hero-slide h1,
    .hero-content h1,
    .hero-banner h1 {
        font-size: 32px !important;
        line-height: 1.1 !important;
    }

    .hero-description,
    .hero-slide p,
    .hero-content p,
    .hero-banner p {
        font-size: 14px !important;
    }
}

/* =========================================
   CAM-KH MOVIES — HERO TITLE FINAL SIZE
   ========================================= */

.hero-slider .hero-content h1 {
    font-size: 46px !important;
    line-height: 1.05 !important;
    letter-spacing: -0.8px !important;
    max-width: 650px !important;
    margin: 8px 0 12px !important;
}

/* Make hero image clearer */
.hero-slider .hero-shade {
    background:
        linear-gradient(
            90deg,
            rgba(5, 6, 10, 0.72) 0%,
            rgba(5, 6, 10, 0.48) 25%,
            rgba(5, 6, 10, 0.18) 55%,
            rgba(5, 6, 10, 0.03) 100%
        ),
        linear-gradient(
            0deg,
            rgba(5, 6, 10, 0.72) 0%,
            rgba(5, 6, 10, 0.25) 20%,
            rgba(5, 6, 10, 0.02) 55%,
            rgba(5, 6, 10, 0.02) 100%
        ) !important;
}

/* Tablet */
@media (max-width: 850px) {
    .hero-slider .hero-content h1 {
        font-size: 40px !important;
        line-height: 1.05 !important;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .hero-slider .hero-content h1 {
        font-size: 32px !important;
        line-height: 1.08 !important;
    }
}

/* ================================================================
   CAM-KH MOVIES V52 — WATCH PAGE PLAYBACK + DAY MODE FIX
   ================================================================ */

/* Day mode: make the watch title/description area follow the light page. */
html[data-theme="light"] .watch-template .watch-main-grid,
html[data-theme="system"] .watch-template .watch-main-grid{
  background:#F8FAFC !important;
  border-color:#D7DCE5 !important;
}
html[data-theme="light"] .watch-template .watch-under-player,
html[data-theme="system"] .watch-template .watch-under-player{
  background:#F8FAFC !important;
  border-top-color:#D7DCE5 !important;
  color:#18202B !important;
}
html[data-theme="light"] .watch-template .watch-title-row h1,
html[data-theme="system"] .watch-template .watch-title-row h1{
  color:#18202B !important;
}
html[data-theme="light"] .watch-template .current-episode,
html[data-theme="system"] .watch-template .current-episode{
  color:#667085 !important;
}
html[data-theme="light"] .watch-template .watch-description,
html[data-theme="system"] .watch-template .watch-description{
  color:#4B5563 !important;
}

/* Day mode: visible episode boxes + clear hover state. */
html[data-theme="light"] .watch-template .watch-episode-panel,
html[data-theme="system"] .watch-template .watch-episode-panel{
  background:#F3F5F8 !important;
  border-left-color:#D7DCE5 !important;
}
html[data-theme="light"] .watch-template .episodes-head,
html[data-theme="system"] .watch-template .episodes-head{
  background:#F8FAFC !important;
  border-bottom-color:#D7DCE5 !important;
}
html[data-theme="light"] .watch-template .episodes-head h3,
html[data-theme="system"] .watch-template .episodes-head h3{
  color:#18202B !important;
}
html[data-theme="light"] .watch-template .episodes-head span,
html[data-theme="system"] .watch-template .episodes-head span{
  color:#667085 !important;
}
html[data-theme="light"] .watch-template .watch-season-title,
html[data-theme="system"] .watch-template .watch-season-title{
  color:#18202B !important;
}
html[data-theme="light"] .watch-template .watch-season-title small,
html[data-theme="system"] .watch-template .watch-season-title small{
  color:#667085 !important;
}
html[data-theme="light"] .watch-template .episode-list .episode,
html[data-theme="system"] .watch-template .episode-list .episode{
  background:#FFFFFF !important;
  border-color:#D7DCE5 !important;
  color:#18202B !important;
}
html[data-theme="light"] .watch-template .episode-list .episode:hover,
html[data-theme="system"] .watch-template .episode-list .episode:hover{
  background:#E6DCDC !important;
  border-color:#EF3340 !important;
  color:#18202B !important;
  transform:translateY(-1px);
}
html[data-theme="light"] .watch-template .episode-list .episode.active,
html[data-theme="system"] .watch-template .episode-list .episode.active{
  background:#EF3340 !important;
  border-color:#EF3340 !important;
  color:#FFFFFF !important;
}

/* Keep playback errors hidden while a working direct-video fallback takes over. */
html[data-theme="light"] .watch-template .player-error,
html[data-theme="system"] .watch-template .player-error{
  background:rgba(127,29,29,.95) !important;
  color:#FFE5E7 !important;
  border-color:#EF4444 !important;
}


/* ================================================================
   CAM-KH MOVIES V55 — QUICK CONTROLS INSIDE VIDEO
   ================================================================ */

/* Keep the video and controls in one player surface. */
.watch-template .player-shell{
  position:relative !important;
  aspect-ratio:auto !important;
  overflow:hidden;
  background:transparent !important;
}
.watch-template .player-shell video{
  width:100% !important;
  height:auto !important;
  aspect-ratio:16/9;
  display:block;
}

/* Place Quick Controls inside the video, just above the native time/control bar.
   No separate bottom background/card is used. */
.watch-template .custom-player-controls{
  position:absolute !important;
  left:12px !important;
  bottom:48px !important;
  z-index:8 !important;
  width:auto !important;
  display:flex !important;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  transition:opacity .18s ease,transform .18s ease;
}

.watch-template .custom-player-button{
  min-width:42px;
  height:34px;
  padding:0 9px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:8px;
  background:rgba(255,255,255,.06);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:3px;
  font-size:15px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.watch-template .custom-player-button:hover,
.watch-template .custom-player-button:focus-visible{
  background:rgba(239,51,64,.88);
  border-color:#ff6b76;
  color:#fff;
  outline:none;
  transform:translateY(-1px);
}
.watch-template .custom-player-button.custom-skip-button{
  min-width:48px;
  font-size:19px;
}

/* Keep playback error messages in normal flow below the quick controls. */
.watch-template .player-error{
  position:relative !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  margin:6px 4px 4px !important;
}
.watch-template .custom-skip-button span{
  font-size:10px;
  font-weight:900;
  transform:translateY(1px);
}

/* V57 — Quick Controls: themed strip + auto-hide with player UI. */
.watch-template .custom-player-controls{
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  width:100% !important;
  min-height:46px;
  padding:7px 12px !important;
  background:rgba(7,8,12,.86) !important;
  border-top:1px solid rgba(255,255,255,.08) !important;
  backdrop-filter:blur(10px);
  box-shadow:0 -8px 24px rgba(0,0,0,.16);
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
}

/* Hide Quick Controls when the player UI auto-hides. */
.watch-template .player-shell.player-ui-hidden .custom-player-controls{
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
  transform:translateY(8px) !important;
}

/* Show the Quick Controls when the pointer is over the player. */
.watch-template .player-shell:not(.player-ui-hidden) .custom-player-controls{
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  transform:none !important;
}

/* Light/Day mode keeps the control strip readable. */
html[data-theme="light"] .watch-template .custom-player-controls,
html[data-theme="system"] .watch-template .custom-player-controls{
  background:rgba(23,27,34,.90) !important;
  border-top-color:rgba(255,255,255,.10) !important;
}

/* Night mode: clearly mark the selected episode. */
html[data-theme="dark"] .watch-template .episode-list .episode.active{
  background:linear-gradient(135deg,#7f2336,#a62f45) !important;
  border-color:#ef3340 !important;
  color:#fff !important;
  box-shadow:0 0 0 1px rgba(239,51,64,.28),0 6px 18px rgba(239,51,64,.18) !important;
}
html[data-theme="dark"] .watch-template .episode-list .episode.active .episode-number,
html[data-theme="dark"] .watch-template .episode-list .episode.active .episode-label{
  color:#fff !important;
}
html[data-theme="dark"] .watch-template .episode-list .episode:hover{
  background:#38262a !important;
  border-color:#6b3a43 !important;
  color:#fff !important;
}

/* Light/system mode quick-control colors. */
html[data-theme="light"] .watch-template .custom-player-button,
html[data-theme="system"] .watch-template .custom-player-button{
  border-color:#D7DCE5;
  background:#fff;
  color:#18202B;
}
html[data-theme="light"] .watch-template .custom-player-button:hover,
html[data-theme="light"] .watch-template .custom-player-button:focus-visible,
html[data-theme="system"] .watch-template .custom-player-button:hover,
html[data-theme="system"] .watch-template .custom-player-button:focus-visible{
  background:#EF3340;
  border-color:#EF3340;
  color:#fff;
}

@media(max-width:520px){
  .watch-template .custom-player-controls{
    left:8px !important;
    bottom:42px !important;
    gap:6px;
    padding:0 !important;
  }
  .watch-template .custom-player-button{
    min-width:38px;
    height:32px;
    padding:0 7px;
  }
  .watch-template .custom-player-button.custom-skip-button{min-width:44px}
}

/* ================================================================
   CAM-KH MOVIES V56 — QUICK CONTROLS BELOW NATIVE BAR
   ================================================================ */

/* Keep Quick Controls inside the player, directly below the native
   video time/control bar. */
.watch-template .player-shell{
  position:relative !important;
  aspect-ratio:auto !important;
  overflow:hidden;
  background:#000 !important;
  padding-bottom:50px !important;
}

.watch-template .player-shell video{
  width:100% !important;
  height:auto !important;
  aspect-ratio:16/9;
  display:block;
  background:#000;
}

.watch-template .custom-player-controls{
  position:absolute !important;
  left:12px !important;
  bottom:8px !important;
  z-index:20 !important;
  width:auto !important;
  display:flex !important;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
}

.watch-template .player-shell.player-ui-hidden .custom-player-controls{
  opacity:1 !important;
  pointer-events:auto !important;
  transform:none !important;
}

@media(max-width:520px){
  .watch-template .player-shell{
    padding-bottom:46px !important;
  }
  .watch-template .custom-player-controls{
    left:8px !important;
    bottom:7px !important;
    gap:6px;
  }
}

/* ================================================================
   CAM-KH MOVIES V57 — QUICK CONTROL BACKGROUND + AUTO HIDE
   ================================================================ */
.watch-template .custom-player-controls{
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  width:100% !important;
  min-height:46px;
  padding:7px 12px !important;
  background:rgba(7,8,12,.86) !important;
  border-top:1px solid rgba(255,255,255,.08) !important;
  border-radius:0 !important;
  box-shadow:0 -8px 24px rgba(0,0,0,.16);
  backdrop-filter:blur(10px);
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
}
.watch-template .player-shell.player-ui-hidden .custom-player-controls{
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
  transform:translateY(8px) !important;
}
.watch-template .player-shell:not(.player-ui-hidden) .custom-player-controls{
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  transform:none !important;
}
html[data-theme="light"] .watch-template .custom-player-controls,
html[data-theme="system"] .watch-template .custom-player-controls{
  background:rgba(23,27,34,.90) !important;
  border-top-color:rgba(255,255,255,.10) !important;
}
@media(max-width:520px){
  .watch-template .custom-player-controls{
    min-height:44px;
    padding:6px 8px !important;
  }
}


/* ================================================================
   CAM-KH MOVIES V60 — QUICK CONTROLS + AUTO PLAY IN ONE PLAYER ROW
   ================================================================ */
.watch-template .custom-player-controls{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  min-height:46px !important;
  padding:7px 12px !important;
  box-sizing:border-box;
}

.watch-template .custom-player-quick-controls{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.watch-template .custom-player-controls .autoplay-next-control{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:9px !important;
  flex:0 0 180px;
  width:180px;
  min-width:180px;
  height:34px;
  margin:0 !important;
  padding:0 9px !important;
  border:1px solid rgba(255,255,255,.06) !important;
  border-radius:3px !important;
  background:#24282f !important;
  color:#f2f4f7 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
  cursor:pointer;
  font:inherit;
  box-sizing:border-box;
  transition:background .16s ease,border-color .16s ease,color .16s ease,opacity .16s ease;
}

.watch-template .custom-player-controls .autoplay-next-control:hover{
  background:#2b3038 !important;
  border-color:rgba(255,255,255,.11) !important;
}

.watch-template .custom-player-controls .autoplay-next-control-icon{
  width:18px;
  height:18px;
  flex:0 0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#f5f7fa;
}

.watch-template .custom-player-controls .autoplay-next-control-label{
  min-width:0;
  flex:1 1 auto;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  font-weight:700;
  line-height:1;
  text-align:left;
}

.watch-template .custom-player-controls .autoplay-next-control-arrow{
  flex:0 0 auto;
  font-size:23px;
  line-height:1;
  margin-top:-2px;
  color:#f1f4f8;
}

.watch-template .custom-player-controls .autoplay-next-control:not(.is-on){
  opacity:.52;
}

.watch-template .custom-player-controls .autoplay-next-control.is-on .autoplay-next-control-label{
  color:#ffffff;
}

.watch-template .custom-player-controls .autoplay-next-control:not(.is-on) .autoplay-next-control-label{
  color:#aeb5bf;
}

.watch-template .custom-player-controls .autoplay-next-control:not(.is-on) .autoplay-next-control-icon,
.watch-template .custom-player-controls .autoplay-next-control:not(.is-on) .autoplay-next-control-arrow{
  color:#aeb5bf;
}

.watch-template .custom-player-controls .autoplay-next-control.is-on .autoplay-next-control-icon{
  color:#fff;
}

.watch-template .custom-player-controls .autoplay-next-control:focus-visible{
  outline:2px solid #ef3340;
  outline-offset:2px;
}

@media(max-width:520px){
  .watch-template .custom-player-controls{
    gap:7px !important;
    padding:6px 8px !important;
  }
  .watch-template .custom-player-quick-controls{
    gap:6px;
  }
  .watch-template .custom-player-controls .custom-player-button{
    min-width:36px;
    height:31px;
    padding:0 7px;
    font-size:14px;
  }
  .watch-template .custom-player-controls .custom-skip-button{
    min-width:42px;
  }
  .watch-template .custom-player-controls .autoplay-next-control{
    flex:0 1 150px;
    width:150px;
    min-width:0;
    height:31px;
    padding:0 8px !important;
    gap:7px !important;
  }
  .watch-template .custom-player-controls .autoplay-next-control-label{
    font-size:10px;
  }
  .watch-template .custom-player-controls .autoplay-next-control-arrow{
    font-size:19px;
  }
}
.vip-toggle{display:inline-flex;align-items:center;gap:6px;background:linear-gradient(135deg,#ffd76a,#f7b733);border:0;color:#241a03;padding:9px 14px;border-radius:999px;font-size:.82rem;font-weight:800;white-space:nowrap;box-shadow:0 6px 18px rgba(247,183,51,.25);transition:.2s}
.vip-toggle:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(247,183,51,.35)}
@media(max-width:850px){.vip-toggle{display:none}}
.vip-modal-backdrop{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.72);backdrop-filter:blur(7px)}
.vip-modal-backdrop[hidden]{display:none}
.vip-modal{width:min(440px,100%);padding:26px;background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:0 30px 100px #000b;max-height:88vh;overflow:auto}
.vip-modal-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:18px}
.vip-modal-head h2{margin:0 0 3px;display:flex;align-items:center;gap:8px}
.vip-modal-head .sub{color:var(--muted);font-size:.85rem}
.vip-modal .modal-close{border:0;background:rgba(255,255,255,.07);color:#fff;width:34px;height:34px;border-radius:8px;font-size:24px;line-height:1;flex:0 0 auto}
.vip-login-note{color:var(--muted)}
.vip-login-note a{color:#ff6570;font-weight:700}
.vip-price{display:flex;align-items:baseline;gap:6px;margin:4px 0 20px}
.vip-price-amount{font-size:2rem;font-weight:900;background:linear-gradient(135deg,#ffd76a,#f7b733);-webkit-background-clip:text;background-clip:text;color:transparent}
.vip-price-period{color:var(--muted);font-weight:600}
.payment-options{display:flex;flex-direction:column;gap:12px}
.payment-option{display:flex;align-items:center;gap:14px;width:100%;text-align:left;background:#12141d;border:1px solid var(--line);border-radius:14px;padding:14px 16px;color:#fff;transition:.15s}
.payment-option:hover,.payment-option:focus-visible{border-color:#514b66;background:#161926;transform:translateY(-1px)}
.payment-option:disabled{opacity:.5;cursor:wait;transform:none}
.payment-option-icon{flex:0 0 auto;width:52px;height:52px;border-radius:12px;display:grid;place-items:center;overflow:hidden}
.aba-khqr-icon{background:#0c2a4a;flex-direction:column;font-weight:900;line-height:1}
.aba-khqr-icon .aba-top{color:#fff;font-size:11px;letter-spacing:.5px;padding-top:6px}
.aba-khqr-icon .aba-bottom{background:#e0293f;color:#fff;font-size:9px;width:100%;text-align:center;padding:3px 0;margin-top:4px;letter-spacing:.5px}
.card-icon{background:#0c2a4a;font-size:22px}
.payment-option-text{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.payment-option-title{font-weight:800;font-size:1rem}
.payment-option-sub{color:var(--muted);font-size:.8rem}
.payment-option-cards{letter-spacing:.3px}
.payment-option-chevron{flex:0 0 auto;color:#666c7a;font-size:22px}
.vip-loading{margin-top:16px;text-align:center;color:var(--muted);font-size:.9rem}
html[data-theme="light"] .vip-toggle{color:#241a03}
.footer-vip-toggle{display:inline-flex;margin-top:10px;cursor:pointer}
@media(max-width:850px){.footer-vip-toggle{display:inline-flex}}
html[data-theme="light"] .payment-option{background:#f4f5f8;color:#11131a}
html[data-theme="light"] .payment-option:hover{background:#eceef3}
html[data-theme="light"] .payment-option-title{color:#11131a}

.vip-step-title{font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);margin:4px 0 10px}.vip-step-title-payment{margin-top:20px}.vip-plan-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.vip-plan-option{position:relative;text-align:left;background:rgba(255,255,255,.045);border:1px solid var(--line);color:var(--text);border-radius:13px;padding:15px 15px 14px;transition:.2s;display:flex;flex-direction:column;align-items:flex-start;min-height:128px}.vip-plan-option:hover{transform:translateY(-1px);border-color:#5a536d}.vip-plan-option.selected{border-color:#f7b733;box-shadow:0 0 0 1px rgba(247,183,51,.26),0 8px 22px rgba(247,183,51,.12);background:linear-gradient(180deg,rgba(247,183,51,.1),rgba(255,255,255,.04))}.vip-plan-badge{font-size:9px;font-weight:900;letter-spacing:.8px;color:#f7c75b;margin-bottom:5px}.vip-plan-name{font-weight:800}.vip-plan-price{font-size:1.65rem;font-weight:900;line-height:1.1;margin-top:8px}.vip-plan-period{color:var(--muted);font-size:.78rem}.vip-plan-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.vip-plan-admin-item{background:rgba(255,255,255,.03);border:1px solid var(--line);border-radius:12px;padding:16px}.vip-plan-admin-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.vip-plan-admin-item label{display:block;color:var(--muted);font-size:.82rem;margin:10px 0}.vip-plan-admin-item input{display:block;width:100%;margin-top:5px;background:#10121a;border:1px solid var(--line);color:#fff;border-radius:8px;padding:10px 11px;outline:0}@media(max-width:560px){.vip-plan-options,.vip-plan-admin-grid{grid-template-columns:1fr}}

/* =========================================================
   Mobile / Small Screen Navigation - Scroll Fix
   ========================================================= */

@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    body {
        min-height: 100vh;
    }

    header,
    .site-header,
    .navbar,
    .main-header {
        max-height: none;
    }

    /* Allow the navigation area to scroll vertically */
    .nav-menu,
    .navbar-nav,
    .mobile-menu,
    .mobile-nav,
    .nav-links {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
}
/* V66 — Global Quick Chat */
.quick-chat{position:fixed;right:22px;bottom:22px;z-index:1150}
.quick-chat-fab{position:relative;display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.12);background:linear-gradient(135deg,#e5394f,#8e2de2);color:#fff;padding:8px 12px;border-radius:999px;font-weight:800;box-shadow:0 8px 22px rgba(0,0,0,.3);cursor:pointer;transition:.2s}
.quick-chat-fab:hover{transform:translateY(-1px);box-shadow:0 11px 26px rgba(0,0,0,.36)}
.quick-chat-fab-icon{font-size:15px;line-height:1}.quick-chat-fab-label{font-size:.76rem;line-height:1}
.quick-chat-unread{position:absolute;right:-4px;top:-5px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#fff;color:#d62948;border:2px solid #d62948;font-size:10px;font-weight:900;display:grid;place-items:center}
.quick-chat-panel{position:absolute;right:0;bottom:48px;width:min(380px,calc(100vw - 28px));height:min(560px,calc(100vh - 105px));background:var(--panel);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 28px 80px rgba(0,0,0,.5);display:flex;flex-direction:column}
.quick-chat-panel[hidden]{display:none}
.quick-chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,rgba(229,57,79,.13),rgba(142,45,226,.12))}
.quick-chat-head strong{display:block;font-size:.98rem}.quick-chat-head small{display:block;color:var(--muted);font-size:.72rem;margin-top:3px}
.quick-chat-close{width:32px;height:32px;border:0;border-radius:9px;background:rgba(255,255,255,.07);color:var(--text);font-size:22px;cursor:pointer}
.quick-chat-notice{padding:8px 14px;color:var(--muted);font-size:.69rem;border-bottom:1px solid var(--line);text-align:center}
.quick-chat-messages{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:9px;scroll-behavior:smooth}
.quick-chat-empty{margin:auto;text-align:center;color:var(--muted);font-size:.82rem;padding:30px}
.quick-chat-msg{max-width:86%;align-self:flex-start}.quick-chat-msg.is-me{align-self:flex-end}
.quick-chat-msg-meta{font-size:.66rem;color:var(--muted);margin:0 6px 3px;display:flex;gap:7px;align-items:center}.quick-chat-msg.is-me .quick-chat-msg-meta{justify-content:flex-end}.quick-chat-msg-name{font-weight:800;color:var(--text)}
.quick-chat-bubble{padding:9px 11px;border-radius:13px 13px 13px 4px;background:rgba(255,255,255,.07);border:1px solid var(--line);font-size:.82rem;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}
.quick-chat-msg.is-me .quick-chat-bubble{border-radius:13px 13px 4px 13px;background:linear-gradient(135deg,rgba(229,57,79,.25),rgba(142,45,226,.25));border-color:rgba(229,57,79,.28)}
.quick-chat-status{min-height:20px;padding:0 14px;color:#e7a93b;font-size:.68rem;text-align:center}.quick-chat-status:empty{display:none}
.quick-chat-form{display:flex;gap:8px;padding:10px;border-top:1px solid var(--line);background:rgba(0,0,0,.08)}
.quick-chat-form input{min-width:0;flex:1;background:var(--input,#10121a);border:1px solid var(--line);color:var(--text);border-radius:12px;padding:10px 12px;outline:0}.quick-chat-form input:focus{border-color:#8e2de2;box-shadow:0 0 0 2px rgba(142,45,226,.12)}
.quick-chat-form button{width:42px;border:0;border-radius:12px;background:linear-gradient(135deg,#e5394f,#8e2de2);color:#fff;font-size:18px;font-weight:900;cursor:pointer}.quick-chat-form button:disabled{opacity:.5;cursor:wait}
html[data-theme="light"] .quick-chat-form{background:rgba(0,0,0,.025)}
html[data-theme="light"] .quick-chat-form input{--input:#fff}.quick-chat-form input{color:var(--text)}
html[data-theme="light"] .quick-chat-bubble{background:rgba(0,0,0,.035)}
@media(max-width:600px){.quick-chat{right:12px;bottom:12px}.quick-chat-fab{width:auto;height:40px;padding:0 11px;justify-content:center}.quick-chat-fab-label{display:inline}.quick-chat-panel{right:-2px;bottom:48px;width:calc(100vw - 24px);height:min(70vh,560px);border-radius:16px}.quick-chat-unread{right:-3px}}
/* V66.2 — Quick Chat reply UI */
.quick-chat-msg-actions{display:flex;justify-content:flex-start;margin:3px 6px 0;min-height:20px}
.quick-chat-msg.is-me .quick-chat-msg-actions{justify-content:flex-end}
.quick-chat-reply-btn{border:0;background:transparent;color:var(--muted);font-size:.64rem;padding:2px 4px;cursor:pointer}
.quick-chat-reply-btn:hover{color:var(--text)}
.quick-chat-reply-preview{display:flex;flex-direction:column;gap:2px;padding:6px 8px;margin-bottom:6px;border-left:3px solid #8e2de2;background:rgba(142,45,226,.10);border-radius:7px;font-size:.68rem;max-height:58px;overflow:hidden}
.quick-chat-reply-preview strong{font-size:.66rem}
.quick-chat-reply-preview span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}
.quick-chat-status:has(.quick-chat-cancel-reply){display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quick-chat-cancel-reply{border:0;background:transparent;color:var(--muted);font-size:15px;cursor:pointer;padding:0 3px}

/* V68 — VIP episode access */
.episode{position:relative;display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden;padding-right:76px;}
.episode-number{display:block;min-width:0;font-weight:900;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.episode-label{display:none;}
.episode-access-badge{position:absolute;right:10px;bottom:7px;top:60%;translateY(-50%);display:inline-flex;align-items:center;justify-content:center;gap:3px;min-width:54px;box-sizing:border-box;white-space:nowrap;flex:0 0 auto;font-size:.62rem;font-weight:900;line-height:1;letter-spacing:.35px;padding:7px 9px;border-radius:999px;background:rgba(247,183,51,.14);color:#f7c75b;border:1px solid rgba(247,183,51,.30);z-index:2;}
.episode-access-badge.free{background:rgba(46,204,113,.10);color:#72e0a0;border-color:rgba(46,204,113,.24)}
.episode-locked{opacity:.72}
.episode-locked:hover{opacity:1}
html[data-theme=\"light\"] .episode-access-badge{background:rgba(247,183,51,.10);color:#9a6900;border-color:rgba(183,132,0,.28)}
html[data-theme=\"light\"] .episode-access-badge.free{background:rgba(46,204,113,.09);color:#168447;border-color:rgba(22,132,71,.22)}
.episode-vip-lock{position:absolute;z-index:8;inset:58px 0 0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;background:linear-gradient(180deg,rgba(7,8,12,.72),rgba(7,8,12,.96));backdrop-filter:blur(4px)}
.episode-vip-lock-icon{font-size:2.8rem;margin-bottom:4px}
.episode-vip-lock-badge{font-size:.7rem;font-weight:900;letter-spacing:1.2px;color:#f7c75b;border:1px solid rgba(247,183,51,.35);background:rgba(247,183,51,.1);border-radius:999px;padding:5px 9px}
.episode-vip-lock h2{margin:10px 0 5px;font-size:1.25rem}
.episode-vip-lock p{max-width:460px;margin:0 0 18px;color:var(--muted);line-height:1.55}
.vip-lock-button{background:linear-gradient(135deg,#ffd76a,#f7b733);color:#241a03;border:0;font-weight:900}


/* CAM-KH V68.3 — Episode FREE/VIP badge */
.watch-template .episode-list .episode{
    position: relative !important;
    overflow: hidden !important;
    padding-right: 78px !important;
}

.watch-template .episode-list .episode .episode-access-badge{
    position: absolute !important;

    /* RIGHT + BOTTOM INSIDE EPISODE BOX */
    right: 1px !important;
    bottom: 8px !important;

    /* cancel old center position */
    top: auto !important;
    left: auto !important;
    transform: none !important;

    margin: 0 !important;
    z-index: 3 !important;
    pointer-events: none !important;
}

@media (max-width:560px){
    .watch-template .episode-list .episode{
        padding-right: 70px !important;
    }

    .watch-template .episode-list .episode .episode-access-badge{
        right: 6px !important;
        bottom: 6px !important;
        top: auto !important;
        transform: none !important;
        font-size: .58rem !important;
        padding: 6px 8px !important;
        min-width: 50px !important;
    }
}

/* TEMPORARY: Disable bottom Join VIP button 
.bottom-join-vip,
.join-vip-bottom {
  display: none !important;
    pointer-events: none !important;
    opacity: 0.5 !important;
    cursor: default !important;
}

*/
/* ABA KHQR inline payment panel */
.vip-qr-panel{margin-top:4px;text-align:center}
.vip-qr-title{font-weight:900;font-size:1.05rem;margin-bottom:12px}
.vip-qr-image-wrap{width:min(300px,100%);margin:0 auto;padding:12px;background:#fff;border-radius:16px;box-shadow:0 14px 35px rgba(0,0,0,.22)}
.vip-qr-image{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;border-radius:8px;background:#fff}
.vip-qr-amount{margin-top:12px;font-weight:900;font-size:1rem}
.vip-qr-note{margin:8px auto 12px;color:var(--muted);font-size:.82rem;line-height:1.45;max-width:340px}
.vip-qr-app{display:inline-flex;align-items:center;justify-content:center;margin:0 auto 10px;padding:10px 14px;border-radius:10px;background:#e0293f;color:#fff;font-weight:800;text-decoration:none}
.vip-qr-app:hover{filter:brightness(1.08)}
.vip-qr-tran{font-size:.72rem;color:var(--muted);word-break:break-all;margin-bottom:12px}
.vip-qr-back{border:1px solid var(--line);background:transparent;color:var(--text);border-radius:10px;padding:9px 12px;cursor:pointer;font-weight:700}
.vip-qr-back:hover{background:rgba(255,255,255,.05)}
html[data-theme="light"] .vip-qr-back:hover{background:rgba(0,0,0,.04)}

/* VIP Payments Analysis view */
.vip-payments-view{margin-top:20px}
.vip-payment-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.vip-payment-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:18px 0}
.vip-payment-kpi{min-height:92px;padding:18px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.035)}
.vip-payment-kpi span{display:block;color:var(--muted);font-size:.78rem;margin-bottom:6px}
.vip-payment-kpi strong{display:block;font-size:1.65rem;line-height:1.1}
.vip-payment-kpi.vip-paid strong{color:#23a56a}.vip-payment-kpi.vip-pending strong{color:#c48617}.vip-payment-kpi.vip-failed strong{color:#e33d4c}.vip-payment-kpi.vip-revenue strong{color:#3478ee}
.vip-payment-filters{display:grid;grid-template-columns:minmax(210px,1.7fr) repeat(4,minmax(130px,1fr)) auto auto;gap:10px;align-items:end;padding:16px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.025);margin-bottom:12px}
.vip-payment-filters .user-search{width:auto}.vip-payment-filters select,.vip-payment-filters input{display:block;width:100%;margin-top:6px;background:#10121a;border:1px solid var(--line);color:#fff;border-radius:8px;padding:10px 11px;outline:0}
.vip-payment-filters select:focus,.vip-payment-filters input:focus{border-color:#66577c;box-shadow:0 0 0 3px rgba(139,92,246,.12)}
.vip-payment-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:10px 0;color:var(--muted);font-size:.8rem}.live-status{display:inline-flex;align-items:center;gap:6px;color:#1b965d;font-weight:800}.live-status i{width:7px;height:7px;border-radius:50%;background:#18a35f;display:inline-block;box-shadow:0 0 0 3px rgba(24,163,95,.12)}
.vip-payment-table td,.vip-payment-table th{vertical-align:middle}.vip-customer-cell{min-width:180px}.vip-customer-cell strong,.vip-customer-cell small{display:block}.vip-customer-cell small{color:var(--muted);font-size:.74rem;margin-top:1px}.vip-payment-table td:nth-child(2) strong{font-weight:900}.vip-payment-table td:nth-child(6){white-space:nowrap}
@media(max-width:1100px){.vip-payment-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.vip-payment-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.vip-payment-filters .user-search:first-child{grid-column:1/-1}}
@media(max-width:650px){.vip-payment-kpis{grid-template-columns:1fr 1fr}.vip-payment-filters{grid-template-columns:1fr}.vip-payment-filters .user-search:first-child{grid-column:auto}.vip-payment-actions{width:100%}.vip-payment-actions .btn{flex:1}.vip-payment-meta{align-items:flex-start;flex-direction:column}}

/* Profile page V6 update */
.profile-page{padding-top:42px}.profile-hero-card{padding:28px 30px;align-items:center}.profile-head-copy{min-width:0}.profile-head-copy h1{font-size:clamp(30px,4vw,46px);line-height:1.1;margin:2px 0 4px}.profile-status-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.profile-pill{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid var(--line);font-size:.72rem;font-weight:800;color:#c8cbd4}.profile-pill-success{color:#8ff0ae;border-color:rgba(71,214,115,.25)}.profile-section{margin:24px 0}.profile-section-head{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:13px}.profile-section-head h2{margin:2px 0 0;font-size:1.35rem}.profile-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.profile-info-card{min-width:0;padding:17px 18px;background:var(--panel);border:1px solid var(--line);border-radius:12px}.profile-info-card span{display:block;color:var(--muted);font-size:.75rem;margin-bottom:5px}.profile-info-card strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-info-card small{display:block;margin-top:5px}.profile-ok{color:#72df9a}.profile-vip-state{font-size:.8rem;color:#a0a5b2}.profile-vip-state.is-active{color:#72df9a}.profile-vip-card{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:center;padding:20px;background:linear-gradient(135deg,rgba(139,92,246,.13),rgba(239,51,64,.08));border:1px solid var(--line);border-radius:13px}.profile-vip-card>div span{display:block;color:var(--muted);font-size:.75rem;margin-bottom:4px}.profile-vip-card>div strong{display:block}.profile-vip-copy{display:flex;flex-direction:column}.profile-vip-copy span{color:var(--muted);font-size:.8rem}.profile-activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.profile-activity-card{position:relative;padding:18px;background:var(--panel);border:1px solid var(--line);border-radius:12px;transition:.2s}.profile-activity-card:hover{transform:translateY(-2px);border-color:#514b66}.profile-activity-card strong,.profile-activity-card span{display:block}.profile-activity-card strong{font-size:1.65rem;line-height:1}.profile-activity-card span{color:var(--muted);font-size:.82rem;margin-top:7px}.profile-activity-card b{position:absolute;right:16px;bottom:17px;color:#ff6670}.profile-orders-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:5px 15px}.profile-orders-table th,.profile-orders-table td{padding:12px 8px}.profile-order-status{display:inline-block;padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.07);font-size:.72rem;font-weight:800}.profile-order-status.status-paid{color:#72df9a;background:rgba(72,222,154,.1)}.profile-order-status.status-failed{color:#ff8d98;background:rgba(239,51,64,.1)}.profile-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px;text-align:center;color:var(--muted)}.profile-empty strong{color:var(--text);margin-bottom:3px}.profile-danger-card{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px;background:var(--panel);border:1px solid rgba(239,51,64,.22);border-radius:12px}.profile-danger-card strong,.profile-danger-card span{display:block}.profile-danger-card span{color:var(--muted);font-size:.82rem;margin-top:3px}.profile-danger-section{margin-bottom:48px}@media(max-width:1000px){.profile-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-vip-card{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.profile-hero-card{padding:20px}.profile-info-grid,.profile-vip-card,.profile-activity-grid{grid-template-columns:1fr}.profile-danger-card{align-items:flex-start;flex-direction:column}.profile-orders-card{padding:3px 8px}.profile-orders-table{min-width:700px}}
