/* TVHay homepage v1.1. Standalone stylesheet; never loaded on watch/Admin pages. */
:root{color-scheme:dark;--tvh-bg:#02080f;--tvh-panel:#0f0f12;--tvh-soft:#15161a;--tvh-text:#e9e9ee;--tvh-font:"Bai Jamjuree",Arial,Helvetica,sans-serif;--tvh-muted:#98a2b3;--tvh-orange:#e76824;--tvh-line:#24272d}
.tvh-site{margin:0;background:var(--tvh-bg);color:var(--tvh-text);font:16px/1.6 "Bai Jamjuree",Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}
.tvh-site *,.tvh-site *::before,.tvh-site *::after{box-sizing:border-box}.tvh-site [hidden]{display:none!important}.tvh-site a{color:inherit;text-decoration:none}.tvh-site button,.tvh-site input{font:inherit}.tvh-site button{cursor:pointer}.tvh-site button,.tvh-site summary,.tvh-site a{-webkit-tap-highlight-color:transparent}.tvh-site img{max-width:100%;display:block}.tvh-site svg{width:20px;height:20px;vertical-align:middle;flex-shrink:0}.tvh-site svg:not([stroke]){fill:none;stroke:currentColor;stroke-width:1.7}.tvh-site :focus-visible{outline:2px solid #f79a56;outline-offset:4px}.tvh-site a:hover{color:var(--tvh-orange)}.tvh-shell{width:100%;max-width:1410px;padding:0 15px;margin:0 auto}.tvh-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.tvh-skip{position:fixed;left:12px;top:-100px;background:var(--tvh-orange);color:#fff!important;padding:10px 16px;z-index:200}.tvh-skip:focus{top:10px}
/* Header deliberately follows the compact horizontal reference, not the old side rail. */
.tvh-header{height:70px;background:#000;position:relative;z-index:30}.tvh-header-inner{height:100%;display:flex;align-items:center;gap:22px}.tvh-brand{display:inline-flex;align-items:center;color:var(--tvh-orange)!important;white-space:nowrap;line-height:1;flex-shrink:0;isolation:isolate}.tvh-header .tvh-brand{width:172px}.tvh-brand-word{font-family:Impact,'Arial Narrow',Arial,sans-serif;font-size:44px;font-weight:900;font-style:italic;letter-spacing:-1.9px;text-transform:uppercase}.tvh-brand-mark{display:flex;flex-direction:column;align-items:flex-end;gap:4px;width:29px;margin-right:-3px;transform:skewX(-15deg);align-self:center}.tvh-brand-mark i{height:3px;background:currentColor;display:block;border-radius:80% 0 0 80%}.tvh-brand-mark i:nth-child(1){width:29px}.tvh-brand-mark i:nth-child(2){width:21px}.tvh-brand-mark i:nth-child(3){width:12px}.tvh-navigation{display:flex;gap:20px;align-items:center;flex:1;min-width:0}.tvh-navigation>a,.tvh-navigation summary{font-size:16px;font-weight:700;line-height:1;white-space:nowrap;text-transform:uppercase}.tvh-navigation>a{padding:10px 0}.tvh-home-link{color:var(--tvh-orange)!important}.tvh-nav-dropdown{position:relative}.tvh-nav-dropdown summary{display:flex;gap:3px;align-items:center;cursor:pointer;padding:23px 0;list-style:none;user-select:none}.tvh-nav-dropdown summary::-webkit-details-marker{display:none}.tvh-nav-dropdown summary svg{width:14px;height:14px;color:#999}.tvh-nav-dropdown[open]>summary,.tvh-nav-dropdown summary:hover{color:var(--tvh-orange)}.tvh-dropdown{position:absolute;top:100%;left:-18px;width:460px;padding:15px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px 8px;max-height:70vh;overflow:auto;border:1px solid #292a30;border-top:2px solid var(--tvh-orange);border-radius:0 0 5px 5px;background:#121318;box-shadow:0 12px 40px #0009}.tvh-dropdown a{padding:8px 9px;font-size:14px;min-width:0}.tvh-dropdown a:hover{background:#1f2229;border-radius:3px}.tvh-dropdown-countries{width:370px;grid-template-columns:repeat(2,minmax(0,1fr))}.tvh-menu-toggle{display:none;background:none;border:1px solid #444;border-radius:5px;color:#eee;padding:7px}
.tvh-search{width:250px;position:relative;display:flex;flex-shrink:0;height:36px;border:1px solid #343434;border-radius:8px;background:linear-gradient(#1c1c1c,#151515)}.tvh-search:focus-within{border-color:#a95727;box-shadow:0 0 0 1px #e7682422}.tvh-search input{background:none;border:0;color:#fff;width:100%;min-width:0;outline:none!important;padding:0 12px;font-size:14px}.tvh-search input::placeholder{color:#a5afbd;opacity:1}.tvh-search>button{display:grid;place-items:center;background:none;border:0;color:#eee;padding:0 10px}.tvh-search>button:hover{color:var(--tvh-orange)}.tvh-search-popover{position:absolute;right:0;top:calc(100% + 10px);width:370px;max-height:70vh;overflow:auto;border:1px solid #333;background:#101217;border-radius:6px;box-shadow:0 14px 40px #000c}.tvh-search-result{display:flex;align-items:center;gap:12px;padding:10px;border-bottom:1px solid #ffffff0a}.tvh-search-result[aria-selected=true],.tvh-search-result:hover{background:#242429}.tvh-search-result img{width:42px;height:63px;object-fit:cover;border-radius:3px;background:#1a1a22}.tvh-search-result strong{display:block;font-size:13px;line-height:1.4}.tvh-search-result small{display:block;font-size:11px;color:var(--tvh-muted);margin-top:5px}.tvh-search-status{font-size:13px;padding:12px;margin:0;color:var(--tvh-muted)}.tvh-search-status:empty{display:none}.tvh-search-all{display:flex;padding:13px;justify-content:space-between;align-items:center;color:var(--tvh-orange)!important;font-size:12px}
/* Main geometry: 5 posters beside a 25% sidebar; 6 posters in full-width sections. */
.tvh-main{padding-top:58px}.tvh-top-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);gap:30px;align-items:start}.tvh-primary,.tvh-sidebar{min-width:0}.tvh-section{margin:0 0 48px}.tvh-section-title{font-size:25.6px;font-weight:700;line-height:1.3;margin:0 0 25px;color:var(--tvh-orange);position:relative;padding-bottom:8px}.tvh-section-title::after{content:'';position:absolute;bottom:0;left:0;width:100%;height:3px;background:linear-gradient(90deg,#e66723,transparent)}.tvh-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.tvh-grid-wide{grid-template-columns:repeat(6,minmax(0,1fr))}.tvh-card{min-width:0;background:var(--tvh-panel);border-radius:6px;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}.tvh-card-link{display:block;height:100%}.tvh-poster{position:relative;aspect-ratio:2/3;overflow:hidden;background:var(--tvh-soft);border-radius:4px}.tvh-poster>img{width:100%;height:100%;object-fit:cover;transition:filter .18s ease}.tvh-badge{position:absolute;max-width:calc(100% - 14px);border-radius:5px;padding:4px 6px;line-height:1.25;font-size:11px;font-weight:700;color:#fff;background:#0009;display:inline-flex;align-items:center;gap:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.tvh-quality{top:7px;left:7px;max-width:38%;}.tvh-episode{top:7px;right:7px;background:var(--tvh-orange);max-width:65%;min-height:25px;display:block;text-align:center;line-height:17px}.tvh-score{bottom:8px;left:7px;padding:6px}.tvh-score svg{width:12px;height:12px;color:#ffb300}.tvh-views{bottom:8px;right:7px;padding:6px}.tvh-views svg{width:12px;height:12px}.tvh-card-title{font-size:14px;font-weight:600;line-height:1.3;text-align:center;margin:7px 5px 9px;height:2.6em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.tvh-card-play{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(transparent,#0005);opacity:0;transition:opacity .18s;pointer-events:none;color:#fff}.tvh-card-play svg{width:46px;height:46px;filter:drop-shadow(0 3px 8px #0008)}.tvh-card:focus-within .tvh-card-play{opacity:1}.tvh-more{text-align:center;margin:24px 0 0}.tvh-more a{display:inline-flex;align-items:center;justify-content:center;min-height:49px;padding:12px 28px;font-size:16px;font-weight:700;line-height:1.6;letter-spacing:1px;border-radius:5px;background:var(--tvh-orange);color:#fff!important;transition:background .15s}.tvh-more a:hover{background:#d35420;transform:translateY(-2px)}.tvh-empty{font-size:13px;color:var(--tvh-muted);background:#12161d;border:1px solid #222a32;border-radius:4px;padding:22px 16px;text-align:center;line-height:1.7;margin:0}
/* Ranking: source reference sizes at 100% browser zoom. */
.tvh-rank-tabs{display:flex;gap:0;margin:0 0 16px;align-items:stretch}
.tvh-rank-tabs button{flex:1 1 0;min-width:0;border:0;border-radius:5px;padding:3px 0;font-size:12.8px;font-weight:700;line-height:32px;background:transparent;color:#d7d9dd;white-space:nowrap}
.tvh-rank-tabs button[aria-selected=true]{background:var(--tvh-orange);color:#fff}
.tvh-rank-tabs button:hover{color:#fff;background:#e7682426}
.tvh-rank-tabs button[aria-selected=true]:hover{background:var(--tvh-orange)}
.tvh-rank-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.tvh-rank-item{display:flex;align-items:stretch;gap:0;min-height:90px;min-width:0;overflow:hidden}
.tvh-rank-item>img{width:60px;height:90px;object-fit:cover;background:#1d1d23;flex:0 0 60px}
.tvh-rank-copy{flex:1;min-width:0;padding:8px 12px;display:flex;flex-direction:column;justify-content:center}
.tvh-rank-copy>strong{font-size:14px;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 6px;color:var(--tvh-text)}
.tvh-rank-item:hover .tvh-rank-copy>strong{color:var(--tvh-orange)}
.tvh-rank-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;line-height:1;font-weight:600;color:#a7abb3;min-height:28px}
.tvh-rank-score{display:inline-flex;align-items:center;gap:3px;color:#e66723;white-space:nowrap}
.tvh-rank-score svg{width:14px;height:14px;fill:currentColor!important;stroke:none!important}
.tvh-rank-episode{background:#e66824;color:#fff;padding:3px 6px;border-radius:4px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}
.tvh-rank-year{font-weight:500}
.tvh-upcoming{margin-top:32px}.tvh-upcoming-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tvh-upcoming .tvh-empty{padding:30px 15px}.tvh-rank-panel:focus{outline-offset:5px}
/* FAQ: match the 16px/25.6px body and 19.2px heading in the reference. */
.tvh-faq{margin:24px 0 16px;color:#fff}
.tvh-faq h2{font-size:19.2px;line-height:1.3;font-weight:700;color:var(--tvh-orange);margin:0 0 10px}
.tvh-faq details{border:1px solid rgba(230,102,33,.25);border-radius:2px;background:rgba(255,255,255,.03);margin:0 0 8px;font-size:16px}
.tvh-faq summary{cursor:pointer;list-style:none;font-weight:600;padding:10px 14px;font-size:16px;line-height:1.6}
.tvh-faq summary::-webkit-details-marker{display:none}
.tvh-faq details p{font-size:16px;line-height:1.6;margin:0;padding:0 14px 12px;color:#fff}
/* Footer: four equal columns, real TVHay content (no copied company/contact data). */
.tvh-footer{background:#000;border-top:1px solid #f06517;padding:30px 0;color:#fff}
.tvh-footer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px;align-items:start}
.tvh-footer-grid>div{min-width:0}
.tvh-footer h2{display:table;max-width:100%;position:relative;font-size:16px;line-height:1.6;margin:0 0 25px;padding-bottom:8px;font-weight:400;color:#fff}
.tvh-footer h2::after{content:'';position:absolute;left:0;bottom:0;width:100%;height:3px;background:linear-gradient(90deg,#e66723,transparent)}
.tvh-footer p{font-size:16px;line-height:1.6;color:#fff;margin:0 0 20.8px;overflow-wrap:anywhere}
.tvh-footer strong{font-weight:700}
.tvh-footer .tvh-brand{width:100%;margin-bottom:18px;min-height:52px}
.tvh-footer .tvh-brand-word{font-size:64px;line-height:1;letter-spacing:-2px}
.tvh-footer .tvh-brand-mark{width:44px;margin-right:-5px;gap:6px}
.tvh-footer .tvh-brand-mark i{height:4px}
.tvh-footer .tvh-brand-mark i:nth-child(1){width:44px}.tvh-footer .tvh-brand-mark i:nth-child(2){width:32px}.tvh-footer .tvh-brand-mark i:nth-child(3){width:18px}
.tvh-footer-description{text-align:justify}
.tvh-footer nav{display:flex;flex-direction:column;gap:0;font-size:16px;line-height:1.6;color:#fff}
.tvh-footer nav>a,.tvh-footer-pending{display:flex;align-items:center;min-height:40px;padding:5px 0;overflow-wrap:anywhere}
.tvh-footer-organisation{text-transform:uppercase}
.tvh-footer-hashtags{display:flex;flex-wrap:wrap;column-gap:16px;row-gap:0}
.tvh-footer-hashtags span{white-space:nowrap}
.tvh-footer .tvh-footer-unavailable{color:#aaa}
.tvh-footer-social-zone{width:66.6667%;margin-top:78px;display:flex;flex-direction:column;align-items:center;gap:8px}
.tvh-social-caption{font-size:12px;color:#aaa}
.tvh-socials{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}
.tvh-social{width:33px;height:33px;display:grid;place-items:center;border-radius:50%;color:#fff!important;transition:transform .15s ease,filter .15s ease}
.tvh-social:hover{transform:translateY(-2px);filter:brightness(1.15)}
.tvh-social svg{width:19px;height:19px;fill:currentColor;stroke:none}
.tvh-social-x{background:#111}.tvh-social-pinterest{background:#d50c22}.tvh-social-youtube{background:#cc271e}.tvh-social-px500{background:#00a4df}.tvh-social-twitch{background:#9146ff}.tvh-social-facebook{background:#1877f2}.tvh-social-telegram{background:#229ed9}
.tvh-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:28px;padding-top:14px}
.tvh-footer-bottom p{font-size:12px;margin:0;color:#aaa}.tvh-footer-bottom span{padding:0 6px}.tvh-footer-bottom>a{font-size:12px;color:#aaa;white-space:nowrap}
.tvh-footer-bottom svg{transform:rotate(-90deg);width:14px;height:14px}
/* App menu never points to a nonexistent download: this progressive panel is the fallback. */
.tvh-app-panel{display:none;scroll-margin-top:20px;margin:24px auto}
.tvh-app-panel:target{display:block}
.tvh-app-box{position:relative;border:1px solid #e6672366;background:#0b1118;border-radius:6px;padding:24px;max-width:780px;margin:0 auto}
.tvh-app-box h2{font-size:22px;color:var(--tvh-orange);margin:0 30px 16px 0}.tvh-app-box p{font-size:16px;line-height:1.6}
.tvh-app-close{position:absolute;right:16px;top:8px;font-size:32px;line-height:1.3}.tvh-app-back{color:var(--tvh-orange)!important}
@media(hover:hover){.tvh-card:hover{transform:translateY(-4px);box-shadow:0 6px 18px #0006}.tvh-card:hover .tvh-card-play{opacity:1}.tvh-card:hover .tvh-poster>img{filter:brightness(1.06)}}
/* Responsive: collapse before the new seven-item menu can collide with search. */
@media(max-width:1279px){
 .tvh-header-inner{gap:16px}.tvh-header .tvh-brand{width:150px}.tvh-header .tvh-brand-word{font-size:38px}.tvh-navigation{gap:14px}.tvh-navigation>a,.tvh-navigation summary{font-size:14px}.tvh-search{width:225px}
 .tvh-top-layout{grid-template-columns:minmax(0,3fr) minmax(260px,1fr);gap:24px}.tvh-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.tvh-grid-wide{grid-template-columns:repeat(5,minmax(0,1fr))}
 .tvh-footer-grid{gap:24px}.tvh-footer .tvh-brand-word{font-size:56px}.tvh-footer .tvh-brand-mark{width:35px}.tvh-footer .tvh-brand-mark i:nth-child(1){width:35px}
}
@media(max-width:1099px){
 .tvh-header{height:auto;min-height:70px}.tvh-header-inner{min-height:70px;flex-wrap:wrap;justify-content:space-between;gap:12px;padding-top:12px;padding-bottom:12px}
 .tvh-header .tvh-brand{width:auto}.tvh-menu-toggle{display:block;margin-left:auto}.tvh-navigation{order:4;flex-basis:100%;flex-wrap:wrap;gap:0;border-top:1px solid #232323;padding:10px 0 0}
 .tvh-site[data-enhanced] .tvh-navigation{display:none}.tvh-site[data-enhanced] .tvh-navigation.is-open{display:flex}
 .tvh-navigation>a{padding:12px 14px}.tvh-nav-dropdown{position:static}.tvh-nav-dropdown summary{padding:12px 14px;line-height:1}
 .tvh-dropdown{position:absolute;top:auto;left:15px;right:15px;width:auto;max-height:55vh;z-index:10}.tvh-search{width:280px;margin-left:10px}
 .tvh-main{padding-top:32px}.tvh-section-title{font-size:24px}
}
@media(max-width:959px){
 .tvh-top-layout{grid-template-columns:minmax(0,1fr)}.tvh-sidebar{display:grid;grid-template-columns:2fr 1fr;gap:24px;margin:0 0 40px}
 .tvh-rank-panel{max-height:680px;overflow-y:auto;padding-right:5px}.tvh-upcoming{margin:0}
 .tvh-grid,.tvh-grid-wide{grid-template-columns:repeat(4,minmax(0,1fr))}.tvh-section{margin-bottom:36px}.tvh-section-title{font-size:23px;margin-bottom:20px}
 .tvh-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 30px}.tvh-footer-social-zone{width:100%;margin-top:32px}.tvh-footer .tvh-brand-word{font-size:64px}
}
@media(max-width:599px){
 .tvh-shell{padding-left:14px;padding-right:14px}.tvh-header-inner{gap:8px}.tvh-header .tvh-brand{order:1}.tvh-menu-toggle{order:2}
 .tvh-search{order:3;width:100%;margin:4px 0 0;height:40px}.tvh-navigation{order:4}.tvh-header .tvh-brand-word{font-size:36px}.tvh-brand-mark{width:26px}
 .tvh-search-popover{width:100%;max-height:60vh}.tvh-dropdown{left:14px;right:14px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .tvh-navigation>a,.tvh-nav-dropdown summary{font-size:14px;padding:13px 10px;line-height:1.2}.tvh-main{padding-top:24px}
 .tvh-section-title{font-size:22px;line-height:1.4;padding-bottom:8px;margin-bottom:20px}.tvh-grid,.tvh-grid-wide{grid-template-columns:repeat(3,minmax(0,1fr))}
 .tvh-sidebar{display:block;margin:0 0 36px}.tvh-upcoming{margin-top:30px}.tvh-upcoming-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .tvh-rank-panel{max-height:680px}.tvh-rank-tabs button{line-height:36px}.tvh-rank-copy>strong{font-size:14px}.tvh-rank-meta{font-size:12px}
 .tvh-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px}.tvh-footer-about,.tvh-footer-contact{grid-column:1/-1}
 .tvh-footer h2{font-size:14px;margin-bottom:18px}.tvh-footer nav{font-size:15px}.tvh-footer p{font-size:16px}.tvh-footer .tvh-brand-word{font-size:60px}
 .tvh-footer-bottom{align-items:flex-start}.tvh-footer-bottom p{max-width:60%;font-size:12px}.tvh-faq{margin-top:24px}
 .tvh-faq h2{font-size:19.2px}.tvh-faq summary,.tvh-faq details p{font-size:16px}
}
@media(max-width:449px){
 .tvh-grid,.tvh-grid-wide,.tvh-upcoming-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tvh-card-title{font-size:14px}.tvh-badge{font-size:10px}.tvh-score,.tvh-views{padding:5px}
 .tvh-section-title{font-size:21px}.tvh-navigation>a,.tvh-nav-dropdown summary{padding:12px 9px}.tvh-app-box{padding:20px 16px}
}
@media(max-width:359px){.tvh-footer-grid{grid-template-columns:1fr}.tvh-footer-grid>div{grid-column:auto}.tvh-footer h2{font-size:16px}.tvh-footer nav{font-size:16px}}
@media(prefers-reduced-motion:reduce){.tvh-site *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.tvh-footer-pending{cursor:default}
/* TVHay image logo support (v1.4). Respect the logo selected in Admin. */
.tvh-brand-image{display:flex;align-items:center;justify-content:flex-start;min-width:0;max-width:100%;height:100%}.tvh-brand-image img{display:block;width:auto;height:auto;max-width:100%;max-height:54px;object-fit:contain;object-position:left center}.tvh-header .tvh-brand-image{width:100%;height:58px}.tvh-header .tvh-brand-image img{max-height:48px}.tvh-footer .tvh-brand-image{width:100%;height:auto;min-height:52px}.tvh-footer .tvh-brand-image img{max-height:72px;max-width:min(100%,360px)}
@media(max-width:767px){.tvh-header .tvh-brand-image{height:50px}.tvh-header .tvh-brand-image img{max-height:44px}.tvh-footer .tvh-brand-image img{max-height:64px}}
