/*
Theme Name: VideoVibe
Theme URI: https://tidhub.net/
Author: Astravoid
Author URI: https://t.me/astra_void13
Description: ธีมสำหรับวีดีโอ
Version: 1.0
Requires PHP: 7.4
Text Domain: VideoVibe
*/

:root{
  --c1:#FF4F9A; --c2:#FF4F9A; --muted:#B8B8B8; --white:#FFFFFF;
  --card:#1A1A1A; --bg:#0D0D0D; --bg2:#151515; --bg3:#0D0D0D;
  --bright:#FF7EB8; --cyan:#FF7EB8; --teal:#E63A83;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--white);
  font-family:'Noto Sans Thai','Kanit',sans-serif;
  overflow-x:hidden;
}
img{max-width:100%; display:block;}
a{color:inherit;}
h1,h2,h3,.brand,.nav-links a,.btn,.tag{font-family:'Kanit','Noto Sans Thai',sans-serif;}

/* ---------- background texture ---------- */
body::before{
  content:'';
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(ellipse 800px 500px at 15% -5%, rgba(255,79,154,0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(255,126,184,0.07), transparent 60%);
}

/* ---------- nav ---------- */
header.site-header{
  position:sticky; top:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 5%;
  min-height: 80px;
  background:rgba(13,13,13,0.85);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,79,154,0.12);
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-size:22px; font-weight:700; letter-spacing:0.5px;
  color:var(--white); text-decoration:none;
}
.brand .dot{
  width:10px; height:10px; border-radius:50%;
  background:var(--bright);
  box-shadow:0 0 12px var(--bright), 0 0 24px rgba(255,126,184,0.5);
}
nav{display:flex; align-items:center; gap:34px;}
.nav-links{display:flex; gap:28px; list-style:none;}
.nav-links a{
  color:var(--muted); text-decoration:none; font-size:15px; font-weight:500;
  position:relative; padding-bottom:4px; transition:color .25s;
}
.nav-links a.active, .nav-links a:hover, .nav-links .current-menu-item a{color:var(--white);}
.nav-links a.active::after, .nav-links .current-menu-item a::after{
  content:''; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background:linear-gradient(90deg,var(--c1),var(--bright));
  border-radius:2px;
}
.nav-right{display:flex; align-items:center; gap:16px;}
.search-box{
  display:flex; align-items:center; gap:8px;
  background:var(--bg2); border:1px solid rgba(184,184,184,0.25);
  border-radius:999px; padding:9px 16px; width:230px;
  transition:border-color .25s, box-shadow .25s;
  position:relative;
}

.search-box:focus-within{
  border-color:var(--c1);
  box-shadow:0 0 0 3px rgba(255,79,154,0.15);
}
.search-box input{
  background:none; border:none; outline:none; color:var(--white);
  font-size:14px; width:100%; font-family:inherit;
}
.search-box input::placeholder{color:var(--muted);}
.search-box svg{flex-shrink:0; opacity:0.6;}
.btn-signin{
  background:linear-gradient(135deg,var(--c1),var(--teal));
  color:#1A0A12; font-weight:700; font-size:14px;
  padding:10px 22px; border-radius:999px; border:none; cursor:pointer;
  transition:transform .2s, box-shadow .2s;
  white-space:nowrap; text-decoration:none; display:inline-block;
}
.btn-signin:hover{transform:translateY(-1px); box-shadow:0 6px 20px rgba(255,79,154,0.35);}

/* ---------- hero ---------- */
.hero{
  position:relative; min-height:340px; display:flex; align-items:flex-end;
  padding:32px; overflow:hidden; border-radius:16px;
  border:1px solid rgba(255,79,154,0.15);
}
.hero-bg{
  position:absolute; inset:0; z-index:-2; border-radius:16px; background-size:cover; background-position:center;
  background-color:#1A1A1A;
}
.hero-bg::before{
  content:'';
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(13,13,13,0.15) 0%, rgba(13,13,13,0.65) 70%, var(--bg3) 100%),
    linear-gradient(90deg, rgba(13,13,13,0.9) 10%, rgba(13,13,13,0.1) 60%);
}
.hero-bg::after{
  content:''; position:absolute; inset:0;
  background-image: radial-gradient(circle at 78% 30%, rgba(255,126,184,0.16), transparent 45%);
}
.hero-glyph{
  position:absolute; right:2%; top:0; z-index:-1;
  font-size:min(30vw,300px); font-weight:800; line-height:1;
  color:transparent; -webkit-text-stroke:1px rgba(255,79,154,0.7);
  font-family:'Kanit',sans-serif; user-select:none; pointer-events:none;
}
.hero-content{max-width:700px; position:relative; z-index:1;}
.hero-tag{
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(255,79,154,0.12); border:1px solid rgba(255,79,154,0.35);
  color:var(--bright); font-size:12px; font-weight:600;
  padding:5px 12px; border-radius:999px; margin-bottom:14px;
  letter-spacing:0.4px;
}
.hero-content h2{
  font-size:clamp(24px,3.4vw,36px); font-weight:600;
  margin-bottom:12px;
  /*text-shadow:0 2px 30px rgba(0,0,0,0.4);*/
  display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-content p{
  color:var(--muted); font-size:14px; line-height:1.65; margin-bottom:20px;
  max-width:460px;
}
.hero-meta{display:flex; gap:10px; margin-bottom:20px; flex-wrap:wrap;}
.hero-meta span{
  font-size:12px; color:var(--white); background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.1); padding:4px 10px; border-radius:6px;
}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap;}
.btn{
  display:inline-flex; align-items:center; gap:9px;
  font-size:14px; font-weight:600; padding:11px 22px; border-radius:9px;
  cursor:pointer; border:none; transition:transform .2s, box-shadow .2s, background .2s;
  text-decoration:none;
}
.btn-play{
  background:var(--bright); color:#1A0A12;
}
.btn-play:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 30px rgba(255,126,184,0.35);
}
.btn-outline{
  background:rgba(255,255,255,0.05); color:var(--white);
  border:1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover{background:rgba(255,255,255,0.1); transform:translateY(-2px);}

/* ---------- sections ---------- */
.section{padding:50px 5%; position:relative; z-index:1;}
.section-head{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:22px;
}
.section-head h2{
  font-size:22px; font-weight:700; display:flex; align-items:center; gap:12px;
}
.section-head h2 .bar{
  width:5px; height:22px; border-radius:3px;
  background:linear-gradient(180deg,var(--bright),var(--c1));
  display:inline-block;
}
.see-all{
  color:var(--muted); font-size:14px; text-decoration:none;
  display:flex; align-items:center; gap:6px; transition:color .2s;
}
.see-all:hover{color:var(--bright);}

.row{
  display:flex; gap:18px; overflow-x:auto; padding-bottom:14px;
  scroll-snap-type:x proximity;
}
.row::-webkit-scrollbar{height:6px;}
.row::-webkit-scrollbar-thumb{background:rgba(255,79,154,0.3); border-radius:3px;}
.row::-webkit-scrollbar-track{background:transparent;}

.card{
  flex:0 0 auto; width:190px; scroll-snap-align:start;
  cursor:pointer; transition:transform .25s;
  position:relative;
}
.card a.card-link{text-decoration:none; color:inherit; display:block;}
.card:hover{transform:translateY(-6px);}
.poster{
  width:100%; height:100%; aspect-ratio: 16/9; border-radius:6px; position:relative;
  overflow:hidden; background:var(--card);
  border:1px solid rgba(255,79,154,0.1);
  display:flex; align-items:center; justify-content:center;
  transition:box-shadow .25s, border-color .25s;
}
.poster img{width:100%; height:100%; object-fit:cover; position:absolute; inset:0;}
.card:hover .poster{
  border-color:rgba(255,79,154,0.5);
  box-shadow:0 14px 34px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,126,184,0.15);
}
.poster-title{
  font-size:14px; font-weight:600; text-align:center; padding:0 14px;
  color:rgba(255,255,255,0.35); font-family:'Kanit',sans-serif;
  letter-spacing:0.3px; position:relative; z-index:1;
}
.poster-badge{
  position:absolute; top:10px; left:10px; z-index:2;
  background:rgba(13,13,13,0.85); color:var(--bright);
  font-size:11px; font-weight:700; padding:3px 8px; border-radius:5px;
  border:1px solid rgba(255,126,184,0.35);
}
.poster-rating{
  position:absolute; top:10px; right:10px; z-index:2;
  background:rgba(13,13,13,0.85); color:var(--white);
  font-size:11px; font-weight:700; padding:3px 8px; border-radius:5px;
  display:flex; align-items:center; gap:3px;
}
.poster-play{
  position:absolute; inset:0; z-index:2; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(180deg, rgba(13,13,13,0) 40%, rgba(13,13,13,0.9) 100%);
  opacity:0; transition:opacity .25s;
}
.card:hover .poster-play{opacity:1;}
.poster-play .circle{
  width:46px; height:46px; border-radius:50%;
  background:var(--bright); display:flex; align-items:center; justify-content:center;
  box-shadow:0 0 20px rgba(255,126,184,0.6);
}
.card-info{padding:10px 2px 0;}
.card-title{font-size:14px; font-weight:600; margin-bottom:4px; ;
display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-sub{font-size:12px; color:var(--muted); display:flex; gap:8px; align-items:center;}
.card-sub .sep{width:3px; height:3px; border-radius:50%; background:var(--muted);}

/* genre chips */
.chips{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:6px;}
.chip{
  padding:8px 18px; border-radius:999px; font-size:13px; font-weight:600;
  background:var(--bg2); border:1px solid rgba(184,184,184,0.2); color:var(--muted);
  cursor:pointer; transition:all .2s; white-space:nowrap; text-decoration:none;
}
.chip.active, .chip:hover{
  background:rgba(255,79,154,0.15); border-color:var(--c1); color:var(--bright);
}

/* footer */
footer.site-footer{
  padding:50px 5% 30px; border-top:1px solid rgba(255,79,154,0.1);
  margin-top:40px; position:relative; z-index:1;
}
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:36px;
}
.footer-grid h4{font-size:14px; margin-bottom:14px; color:var(--white);}
.footer-grid ul{list-style:none;}
.footer-grid li{margin-bottom:10px;}
.footer-grid a{color:var(--muted); text-decoration:none; font-size:13px; transition:color .2s;}
.footer-grid a:hover{color:var(--bright);}
.footer-brand p{color:var(--muted); font-size:13px; line-height:1.7; margin-top:12px; max-width:280px;}
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  font-size:12px; color:var(--muted); flex-wrap:wrap; gap:10px;
  padding-top:22px; border-top:1px solid rgba(255,255,255,0.06);
}

@media (max-width:900px){
  .nav-links, .search-box{display:none;}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .hero{min-height:60vh;}
}

/* ---------- 3-column layout ---------- */
.layout{
  display:grid;
  grid-template-columns:230px 1fr 260px;
  gap:26px;
  padding:26px 5% 10px;
  align-items:start;
  position:relative; z-index:1;
}
.layout.no-right{grid-template-columns:230px 1fr;}
.layout.no-sidebars{grid-template-columns:1fr; max-width:900px; margin:0 auto;}
.sidebar{
  background:var(--bg2); border:1px solid rgba(255,79,154,0.1);
  border-radius:14px; padding: 10px 18px 18px; position:sticky; top:90px;
}
.sidebar h3{
  font-size:13px; font-weight:700; color:var(--bright);
  text-transform:uppercase; letter-spacing:0.6px; margin-bottom:14px;
  display:flex; align-items:center; gap:8px;
  margin-top: 10px;
}
.sidebar h3 .bar{width:4px; height:14px; border-radius:2px; background:var(--bright); display:inline-block;}
.cat-list{list-style:none; margin-bottom:22px;}
.cat-list li{margin-bottom:2px;}
.cat-list a{
  display:flex; align-items:center; justify-content:space-between;
  color:var(--muted); text-decoration:none; font-size:13.5px;
  padding:9px 10px; border-radius:8px; transition:all .2s;
}
.cat-list a:hover, .cat-list a.active{
  background:rgba(255,79,154,0.12); color:var(--bright);
}
.cat-list a .count{font-size:11px; color:rgba(184,184,184,0.6);}

.year-grid{display:grid; grid-template-columns:1fr 1fr 1fr; gap:8px;}
.year-grid a{
  text-align:center; font-size:12.5px; color:var(--muted); text-decoration:none;
  background:var(--bg3); border:1px solid rgba(184,184,184,0.15);
  padding:8px 4px; border-radius:7px; transition:all .2s;
}
.year-grid a:hover, .year-grid a.active{border-color:var(--c1); color:var(--bright);}

.top-list{list-style:none; counter-reset:rank;}
.top-list li{
  display:flex; gap:12px; align-items:center; margin-bottom:14px; counter-increment:rank;
}
.top-list a{display:flex; gap:12px; align-items:center; text-decoration:none; color:inherit; width:100%;}
.top-list .rank{
  font-family:'Kanit',sans-serif; font-weight:800; font-size:20px;
  color:rgba(255,79,154,0.35); width:22px; flex-shrink:0;
}
.top-list li:nth-child(-n+3) .rank{color:var(--bright);}
.top-list .thumb{
  width:42px; height:58px; border-radius:6px; background:var(--card);
  flex-shrink:0; border:1px solid rgba(255,79,154,0.12); overflow:hidden;
}
.top-list .thumb img{width:100%; height:100%; object-fit:cover;}
.top-list .info{min-width:0;}
.top-list .info .t{
  font-size:12.5px; font-weight:600; line-height:1.3;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.top-list .info .s{font-size:11px; color:var(--muted); margin-top:2px;}

.platform-list{list-style:none; display:flex; flex-direction:column; gap:8px;}
.platform-list a{
  display:flex; align-items:center; justify-content:space-between;
  color:var(--muted); text-decoration:none; font-size:13px; font-weight:600;
  padding:9px 12px; border-radius:8px; background:var(--bg3);
  border:1px solid rgba(184,184,184,0.15); transition:all .2s;
}
.platform-list a:hover{border-color:var(--c1); color:var(--bright);}

.main-col{min-width:0;}
.grid-posters{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:16px;
}
.grid-posters .card{width:auto;}
.grid-posters .poster{
  width: 100%;
  height: 100%;
  padding-bottom: 0;
  aspect-ratio: 16/9;
}
.grid-posters .poster-title, .grid-posters .poster-badge,
.grid-posters .poster-rating, .grid-posters .poster-play{position:absolute;}
.grid-posters .poster-title{inset:0; display:flex; align-items:center; justify-content:center;}

/* pagination */
.pagination{display:flex; gap:8px; justify-content:center; margin-top:34px; flex-wrap:wrap;}
.pagination a, .pagination span{
  min-width:38px; height:38px; display:flex; align-items:center; justify-content:center;
  border-radius:8px; background:var(--bg2); border:1px solid rgba(184,184,184,0.2);
  color:var(--muted); text-decoration:none; font-size:13px; font-weight:600; padding:0 10px;
}
.pagination .current, .pagination a:hover{background:rgba(255,79,154,0.15); border-color:var(--c1); color:var(--bright);}

/* archive/page title */
.page-title-block{margin-bottom:26px;}
.page-title-block .eyebrow{color:var(--muted); font-size:13px; margin-bottom:6px;}
.page-title-block h1{font-size:26px; font-weight:800;}
.breadcrumb{font-size:12.5px; color:var(--muted); margin-bottom:10px;}
.breadcrumb a{color:var(--muted); text-decoration:none;}
.breadcrumb a:hover{color:var(--bright);}

/* ---------- video detail / player page ---------- */
.video-hero{
  display:grid; grid-template-columns:280px 1fr; gap:32px; margin-bottom:40px;
}
.video-hero .poster-lg{
  width:100%; aspect-ratio:1/1; border-radius:14px; overflow:hidden;
  background:var(--card); border:1px solid rgba(255,79,154,0.15);
}
.video-hero .poster-lg img{width:100%; height:100%; object-fit:cover;}
.video-title{font-size:30px; font-weight:600; margin-bottom:10px;}
.video-taxrow{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px;}
.video-taxrow a{
  font-size:12px; padding:5px 12px; border-radius:999px;
  background:rgba(255,79,154,0.12); border:1px solid rgba(255,79,154,0.3);
  color:var(--bright); text-decoration:none;
}
.video-desc{color:var(--muted); line-height:1.8; margin-bottom:22px; max-width:640px;}
.video-tags{display:flex; gap:8px; flex-wrap:wrap; margin:16px 0 22px; width:100%;}
.video-tag-chip{
  font-size:12px; padding:5px 12px; border-radius:999px;
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12);
  color:var(--muted); text-decoration:none; transition:border-color .2s, color .2s;
}
.video-tag-chip:hover{border-color:var(--c1); color:var(--white);}
.player-wrap{
  position:relative; width:100%; aspect-ratio:16/9; background:#000;
  border-radius:14px; overflow:hidden; border:1px solid rgba(255,79,154,0.15);
  margin-bottom:40px;
}
.player-wrap iframe{width:100%; height:100%; border:0;}
.player-placeholder{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  color:var(--muted); font-size:14px; flex-direction:column; gap:10px;
}

/* ---------- blog post styles ---------- */
.post-card{
  background:var(--bg2); border:1px solid rgba(255,79,154,0.1); border-radius:14px;
  overflow:hidden; margin-bottom:22px; display:grid; grid-template-columns:220px 1fr;
}
.post-card .thumb{background:var(--card); min-height:150px;}
.post-card .thumb img{width:100%; height:100%; object-fit:cover;}
.post-card .body{padding:20px;}
.post-card h2{font-size:18px; margin-bottom:8px;}
.post-card h2 a{text-decoration:none; color:var(--white);}
.post-card h2 a:hover{color:var(--bright);}
.post-card .meta{font-size:12px; color:var(--muted); margin-bottom:10px;}
.post-card .excerpt{font-size:13.5px; color:var(--muted); line-height:1.7;}
.single-post-content{max-width:760px;}
.single-post-content h1{font-size:28px; margin-bottom:14px;}
.single-post-content .meta{color:var(--muted); font-size:13px; margin-bottom:24px;}
.single-post-content .entry{line-height:1.9; font-size:15px; color:#EDEDED;}
.single-post-content .entry img{border-radius:12px; margin:20px 0;}
.single-post-content .entry h2, .single-post-content .entry h3{margin:26px 0 12px; color:var(--white);}
.single-post-content .entry a{color:var(--bright);}
.single-post-content .entry blockquote{
  border-left:3px solid var(--c1); padding-left:16px; color:var(--muted); margin:16px 0;
}

.empty-state{
  text-align:center; padding:60px 20px; color:var(--muted);
}

/* ---------- trailer popup modal ---------- */
.nv-modal{
  position:fixed; inset:0; z-index:999; display:none;
  align-items:center; justify-content:center;
  background:rgba(13,13,13,0.9); backdrop-filter:blur(6px);
  padding:5%;
}
.nv-modal.open{display:flex;}
.nv-modal-inner{
  width:100%; max-width:900px; aspect-ratio:16/9; position:relative;
  border-radius:14px; overflow:hidden; border:1px solid rgba(255,79,154,0.25);
  box-shadow:0 20px 60px rgba(0,0,0,0.6);
}
.nv-modal-inner iframe{width:100%; height:100%; border:0;}
.nv-modal-close{
  position:absolute; top:-42px; right:0; background:none; border:none;
  color:var(--white); font-size:28px; cursor:pointer; line-height:1;
}

/* ---------- share buttons ---------- */
.share-row{display:flex; gap:10px; align-items:center; margin-top:18px; flex-wrap:wrap;}
.share-row .label{font-size:13px; color:var(--muted);}
.share-btn{
  width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--bg2); border:1px solid rgba(184,184,184,0.2); color:var(--muted);
  text-decoration:none; transition:all .2s;
}
.share-btn:hover{border-color:var(--c1); color:var(--bright); background:rgba(255,79,154,0.1);}

/* ---------- report broken link ---------- */
.report-row{margin-top:16px; display:flex; align-items:center; gap:12px; flex-wrap:wrap;}
.report-btn{
  font-size:12.5px; font-weight:600; color:var(--muted); background:none;
  border:1px solid rgba(184,184,184,0.25); border-radius:8px; padding:8px 14px;
  cursor:pointer; transition:all .2s;
}
.report-btn:hover{border-color:#ff6b6b; color:#ff8080;}
.report-msg{font-size:12.5px; color:var(--bright);}

/* ---------- combined filter bar (archive-video.php) ---------- */
.filter-bar{
  display:flex; gap:12px; flex-wrap:wrap; margin-bottom:26px;
  background:var(--bg2); border:1px solid rgba(255,79,154,0.1);
  border-radius:12px; padding:16px;
  
}
.filter-bar select{
  background:var(--bg3); color:var(--white); border:1px solid rgba(184,184,184,0.25);
  border-radius:8px; padding:9px 12px; font-size:13px; font-family:inherit;
}
.filter-bar button{
  background:var(--bright); color:#1A0A12; font-weight:700; font-size:13px;
  border:none; border-radius:8px; padding:9px 18px; cursor:pointer;
}
.filter-bar .clear-link{
  align-self:center; font-size:12.5px; color:var(--muted); text-decoration:none;
}
.filter-bar .clear-link:hover{color:var(--bright);}

/* ---------- weekly popular: podium (rank 1-3) ---------- */
.podium{
  display:grid; grid-template-columns:1fr 1.15fr 1fr; gap:20px; align-items:end;
}
.podium-card{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  text-decoration:none; color:inherit; padding:24px 16px 20px;
  border-radius:16px; background:var(--bg2); border:1px solid rgba(255,79,154,0.12);
  transition:transform .25s, box-shadow .25s;
}
.podium-card:hover{transform:translateY(-6px);}
.podium-rank{
  font-family:'Kanit',sans-serif; font-weight:800; font-size:28px; margin-bottom:12px;
  color:rgba(255,79,154,0.4);
}
.podium-poster{
  width:100%; max-width:250px; aspect-ratio:16/9; border-radius:12px; overflow:hidden;
  background:var(--card); margin-bottom:14px; border:1px solid rgba(255,79,154,0.1);
  display:flex; align-items:center; justify-content:center;
}
.podium-poster img{width:100%; height:100%; object-fit:cover;}
.podium-title{font-size:15px; font-weight:700; margin-bottom:6px; line-height:1.3;}
.podium-meta{font-size:12.5px; color:var(--muted);}

/* อันดับ 1: ใหญ่สุด เด่นสุด อยู่กลาง */
.podium-card.rank-1{
  order:2; padding:30px 20px 26px;
  border-color:rgba(255,126,184,0.5);
  background:linear-gradient(160deg, rgba(255,126,184,0.08), var(--bg2) 60%);
  box-shadow:0 0 40px rgba(255,126,184,0.15);
}
.podium-card.rank-1 .podium-rank{font-size:38px; color:var(--bright); text-shadow:0 0 24px rgba(255,126,184,0.6);}
.podium-card.rank-1 .podium-poster{max-width:300px; border-color:rgba(255,126,184,0.3);}
.podium-card.rank-1 .podium-title{font-size:18px;}

/* อันดับ 2: อยู่ซ้าย */
.podium-card.rank-2{order:1; border-color:rgba(255,126,184,0.3);}
.podium-card.rank-2 .podium-rank{color:var(--cyan);}

/* อันดับ 3: อยู่ขวา */
.podium-card.rank-3{order:3; border-color:rgba(230,58,131,0.3);}
.podium-card.rank-3 .podium-rank{color:var(--teal);}

@media (max-width:700px){
  .podium{grid-template-columns:1fr; gap:14px;}
  .podium-card.rank-1, .podium-card.rank-2, .podium-card.rank-3{order:0;}
  .podium-card.rank-1{padding:24px 16px 20px;}
  .podium-card.rank-1 .podium-poster{max-width:170px;}
}

/* ---------- weekly popular: ranked top 5 ---------- */
.weekly-top5{display:flex; flex-direction:column; gap:14px;}
.weekly-rank-card{
  display:grid; grid-template-columns:70px 140px 1fr; gap:20px; align-items:center;
  background:var(--bg2); border:1px solid rgba(255,79,154,0.12); border-radius:14px;
  padding:16px 20px; text-decoration:none; color:inherit; transition:all .2s;
}
.weekly-rank-card:hover{border-color:var(--c1); transform:translateX(4px);}
.weekly-rank-num{
  font-family:'Kanit',sans-serif; font-weight:800; font-size:32px;
  color:rgba(255,79,154,0.4); text-align:center;
}
.weekly-rank-poster{
  width:100%; height:100%; border-radius:8px; overflow:hidden; background:var(--card);aspect-ratio: 16 / 9;
  display:flex; align-items:center; justify-content:center; border:1px solid rgba(255,79,154,0.1);
}
.weekly-rank-poster img{width:100%; height:100%; object-fit:cover;}
.weekly-rank-poster .poster-title{font-size:11px; text-align:center; padding:0 6px; color:rgba(255,255,255,0.35);}
.weekly-rank-info{min-width:0;}
.weekly-rank-info .t{font-size:17px; font-weight:700; margin-bottom:6px; display:block;}
.weekly-rank-info .s{font-size:13px; color:var(--muted);}

@media (max-width:640px){
  .weekly-rank-card{grid-template-columns:40px 60px 1fr; padding:12px 14px; gap:12px;}
  .weekly-rank-num{font-size:22px;}
  .weekly-rank-poster{width:60px; height:86px;}
}

@media (max-width:1150px){
  .layout{grid-template-columns:200px 1fr;}
  .sidebar.right{display:none;}
}
@media (max-width:800px){
  .layout, .layout.no-right{grid-template-columns:1fr;}
  .sidebar.left{display:none;}
  .video-hero{grid-template-columns:1fr;}
  .post-card{grid-template-columns:1fr;}
}

/* ---------- Age Gate 18+ ---------- */
.nv-agegate{
  position:fixed; inset:0; z-index:9999;
  display:flex; align-items:center; justify-content:center;
  padding:24px;
  background:rgba(6,6,6,0.94);
  backdrop-filter:blur(10px);
  animation:nv-fade .25s ease;
}
@keyframes nv-fade{from{opacity:0;}to{opacity:1;}}
.nv-agegate.nv-agegate-hide{opacity:0; transition:opacity .3s ease;}
.nv-agegate-box{
  max-width:440px; width:100%;
  background:linear-gradient(160deg,#1A1A1A,#141014);
  border:1px solid rgba(255,79,154,0.35);
  border-radius:20px;
  padding:38px 32px 30px;
  text-align:center;
  box-shadow:0 24px 70px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.nv-agegate-badge{
  display:inline-flex; align-items:center; justify-content:center;
  width:66px; height:66px; margin-bottom:18px;
  border-radius:50%;
  font-family:'Kanit',sans-serif; font-weight:800; font-size:22px; letter-spacing:0.5px;
  color:#1A0A12;
  background:linear-gradient(135deg,var(--c1),var(--bright));
  box-shadow:0 0 26px rgba(255,79,154,0.55);
}
.nv-agegate-box h2{
  font-size:23px; font-weight:700; margin-bottom:12px; color:var(--white);
}
.nv-agegate-box p{
  font-size:14.5px; line-height:1.7; color:var(--muted); margin-bottom:26px;
}
.nv-agegate-actions{display:flex; flex-direction:column; gap:12px;}
.nv-agegate-yes{
  display:block; width:100%;
  padding:14px 18px; border:none; border-radius:999px; cursor:pointer;
  font-family:'Kanit',sans-serif; font-weight:700; font-size:15px;
  color:#1A0A12;
  background:linear-gradient(135deg,var(--c1),var(--teal));
  transition:transform .2s, box-shadow .2s;
}
.nv-agegate-yes:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 26px rgba(255,79,154,0.4);
}
.nv-agegate-no{
  display:block; width:100%;
  padding:12px 18px; border-radius:999px;
  font-size:14px; text-decoration:none;
  color:var(--muted);
  border:1px solid rgba(184,184,184,0.25);
  transition:color .2s, border-color .2s;
}
.nv-agegate-no:hover{color:var(--white); border-color:rgba(255,255,255,0.4);}
.nv-agegate-note{
  display:block; margin-top:20px;
  font-size:11.5px; line-height:1.6; color:rgba(184,184,184,0.65);
}

/* ---------- Ad Slots ---------- */
.nv-ad-slot{
  margin:22px 0;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  border-radius:12px;
}
.nv-ad-slot:empty{display:none;}
.sidebar .nv-ad-slot{margin:0 0 22px;}

/* ---------- Legal document pages ---------- */
.legal-doc{max-width:760px; margin:0 auto; padding:10px 0 60px;}
.legal-doc-header{margin-bottom:30px; padding-bottom:22px; border-bottom:1px solid rgba(255,79,154,0.15);}
.legal-doc-header h1{font-size:30px; font-weight:700; margin:8px 0 10px;}
.legal-doc-updated{font-size:13px; color:var(--muted);}
.legal-doc-body h2{font-size:19px; font-weight:700; margin:28px 0 12px; color:var(--white);}
.legal-doc-body p{font-size:14.5px; line-height:1.9; color:var(--muted); margin-bottom:14px;}
.legal-doc-body ul{margin:0 0 14px 22px; color:var(--muted); font-size:14.5px; line-height:1.9;}
.legal-doc-body a{color:var(--c1); text-decoration:underline;}

/* ---------- Report content form ---------- */
.nv-report-form{max-width:560px; display:flex; flex-direction:column; gap:18px; margin-top:6px;}
.nv-report-form .nv-field{display:flex; flex-direction:column; gap:7px;}
.nv-report-form label{font-size:13.5px; font-weight:600; color:var(--white);}
.nv-report-form label .req{color:var(--c1);}
.nv-report-form input, .nv-report-form select, .nv-report-form textarea{
  background:var(--card); border:1px solid rgba(184,184,184,0.25); border-radius:10px;
  padding:11px 14px; color:var(--white); font-family:inherit; font-size:14px;
  transition:border-color .2s, box-shadow .2s;
}
.nv-report-form input:focus, .nv-report-form select:focus, .nv-report-form textarea:focus{
  outline:none; border-color:var(--c1); box-shadow:0 0 0 3px rgba(255,79,154,0.15);
}
.nv-report-form textarea{resize:vertical; min-height:110px;}
.nv-report-form button{align-self:flex-start; margin-top:4px;}
.nv-rc-msg{font-size:13.5px; margin-top:6px;}
.nv-rc-msg.nv-rc-ok{color:#4ADE80;}
.nv-rc-msg.nv-rc-error{color:#FF6B6B;}

.report-link-out{
  font-size:13px; color:var(--muted); text-decoration:underline; text-underline-offset:2px;
  transition:color .2s;
}
.report-link-out:hover{color:var(--c1);}

/* ---------- Idol profile page ---------- */
.idol-profile{
  text-align:center;
  padding:48px 24px 34px;
  border-radius:20px;
  background:linear-gradient(160deg, var(--card), #141014);
  background-size:cover; background-position:center;
  border: 1px solid rgb(91 85 88);
}
.idol-profile-avatar{
  width:96px; height:96px; margin:0 auto 16px;
  border-radius:50%; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--c1), var(--teal));
  border:3px solid rgba(255,255,255,0.15);
  font-family:'Kanit',sans-serif; font-weight:700; font-size:34px; color:#1A0A12;
}
.idol-profile-avatar img{width:100%; height:100%; object-fit:cover;}
.idol-profile-name{font-size:26px; font-weight:700; margin-bottom:6px;}
.idol-profile-count{font-size:13.5px; color:var(--muted); margin-bottom:16px;}
.idol-profile-bio{
  max-width:560px; margin:0 auto 20px; font-size:14.5px; line-height:1.8; color:#fff;
}
.idol-profile-social{display:flex; justify-content:center; gap:10px; flex-wrap:wrap;}
.idol-profile-social a{
  display:inline-flex; align-items:center; gap:7px;
  padding:9px 16px; border-radius:999px; font-size:13px; font-weight:600;
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1);
  color:var(--white); text-decoration:none; transition:border-color .2s, background .2s;
}
.idol-profile-social a:hover{border-color:var(--c1); background:rgba(255,79,154,0.12);}


/* Live Search */
.live-results{
    position:absolute; top:calc(100% + 6px); left:0;
    width:100%;
    background:var(--card); border:1px solid rgba(255,79,154,0.25);
    border-radius:12px;  z-index:999;
    box-shadow:0 8px 30px rgba(0,0,0,0.4);
    display:none;
    max-height:360px;
    overflow-y:auto;
    overflow-x:hidden;
     scrollbar-width:thin;
    scrollbar-color:var(--c1) transparent;
}
.live-result-item{
    display:flex; align-items:center; gap:10px;
    padding:10px 14px; text-decoration:none;
    transition:background .15s;
}
.live-result-item:hover{background:rgba(255,79,154,0.1);}
.live-result-item img{width:48px; height:36px; object-fit:cover; border-radius:6px; flex-shrink:0;}
.live-result-item .lr-title{
    font-size:13px; color:var(--white);
    line-height:1.4;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.live-result-item .lr-rating{font-size:11px; color:var(--c1); margin-top:2px;}
.live-result-no{padding:14px; font-size:13px; color:var(--muted); text-align:center;}

.live-results.open{
    display:block !important;
}

.live-results::-webkit-scrollbar{width:4px;}
.live-results::-webkit-scrollbar-track{background:var(--card);}
.live-results::-webkit-scrollbar-thumb{background:var(--c1); border-radius:999px;}
.live-results::-webkit-scrollbar-thumb:hover{background:var(--bright);}



@media (max-width:1024px){

.video-title {
    font-size: 20px;
}
}


@media (max-width:768px){
.video-hero .poster-lg{
  aspect-ratio: 16/9;
}

}


/* ---------- Mobile Menu ---------- */
.hamburger{
  display:none; flex-direction:column; gap:5px;
  background:none; border:none; cursor:pointer; padding:4px;
}
.hamburger span{
  width:24px; height:2px; background:var(--white);
  border-radius:2px; transition:all .3s;
}

.mobile-menu{
  display:none; position:fixed; inset:0; z-index:200;
  background:rgba(13,13,13,0.98); backdrop-filter:blur(14px);
  flex-direction:column; align-items:center; justify-content:center;
  gap:28px;
}
.mobile-menu.open{display:flex;}
.mobile-menu .nav-links{
  display:flex; flex-direction:column; align-items:center;
  gap:20px; list-style:none;
}
.mobile-menu .nav-links a{
  font-size:22px; font-weight:700; color:var(--white);
}
.mobile-menu .search-mobile{
  display:flex; align-items:center; gap:8px;
  background:var(--bg2); border:1px solid rgba(184,184,184,0.25);
  border-radius:999px; padding:12px 20px; width:280px;
}
.mobile-menu .search-mobile input{
  background:none; border:none; outline:none;
  color:var(--white); font-size:15px; width:100%; font-family:inherit;
}
.mobile-menu-close{
  position:absolute; top:20px; right:5%;
  background:none; border:none; color:var(--white);
  font-size:32px; cursor:pointer; line-height:1;
}

@media (max-width:900px){
  .nav-links{display:none;}
  .search-box{display:none;}
  .hamburger{display:flex;}
}








/* ---------- Idol Grid ---------- */
.idol-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));
    gap:16px;
}
.idol-card{
    display:flex; flex-direction:column; align-items:center;
    text-align:center; text-decoration:none; color:inherit;
    background:var(--card); border:1px solid rgba(255,79,154,0.1);
    border-radius:14px; padding:20px 12px;
    transition:border-color .2s, transform .2s;
}
.idol-card:hover{
    border-color:var(--c1); transform:translateY(-4px);
}
.idol-card-avatar{
    width:72px; height:72px; border-radius:50%; overflow:hidden;
    background:linear-gradient(135deg, var(--c1), var(--teal));
    display:flex; align-items:center; justify-content:center;
    margin-bottom:12px; flex-shrink:0;
    border:2px solid rgba(255,79,154,0.2);
    font-family:'Kanit',sans-serif; font-weight:700; font-size:26px; color:#1A0A12;
}
.idol-card-avatar img{width:100%; height:100%; object-fit:cover;}
.idol-card-name{font-size:14px; font-weight:700; margin-bottom:4px;}
.idol-card-count{font-size:12px; color:var(--c1);}
.idol-card-bio{
    font-size:12px; color:var(--muted); margin-top:6px; line-height:1.5;
    display:-webkit-box; -webkit-line-clamp:2;
    -webkit-box-orient:vertical; overflow:hidden;
}