/*
Theme Name: เงี่ยนโว้ย — Red Room
Author: Ngeonwoi
Description: Near-black and red video theme in Thai and Lao.
Version: 2.2.0
Text Domain: ngeonwoi
Requires PHP: 7.4
*/
@import url('assets/fonts/fonts.css');

/* Tokens */
:root{color-scheme:dark;--bg:#0c0c0e;--bg-2:#111113;--surface:#161618;--surface-2:#1d1d20;--line:#26262a;--text:#f3f3f4;--muted:#9b9ba3;--red:#ef3340;--red-fill:#d0202b;--red-deep:#8f1119;--radius:8px}

/* Base */
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:140px}
body{margin:0;overflow-x:clip;background:var(--bg);color:var(--text);font-family:'Noto Sans Thai','Noto Sans Lao',sans-serif;font-size:16px;line-height:1.8;-webkit-font-smoothing:antialiased}
html[lang=lo] body{font-family:'Noto Sans Lao','Noto Sans Thai',sans-serif}
a{color:inherit;text-decoration:none;transition:color .18s}a:hover{color:var(--red)}
button,input{font:inherit}a,button,input{touch-action:manipulation}
:focus-visible{outline:2px solid var(--red);outline-offset:3px}
svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.shell{width:calc(100% - 64px);max-width:1320px;margin-inline:auto}
.sr-only,.screen-reader-text,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.skip:focus{position:fixed;top:8px;left:8px;z-index:200;padding:10px 16px;background:var(--red-fill);color:#fff;border-radius:6px}
.button{display:inline-block;padding:10px 22px;border-radius:6px;background:var(--red-fill);color:#fff;font-weight:600}.button:hover{background:var(--red);color:#fff}

/* Header: one bar with brand, centered search and language switch, then a category chip strip */
.site-header{background:#111113f2;border-top:3px solid var(--red-fill);border-bottom:1px solid var(--line);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
/* Sticky on every screen. Desktop tightens once scrolled; small screens slide it away while
   scrolling down and bring it back on the first scroll up (see interface.js). */
.site-header{position:sticky;top:0;z-index:50;transition:transform .28s ease,box-shadow .28s}
.site-header.is-stuck{box-shadow:0 10px 30px #000a}
.site-header.is-hidden{transform:translateY(-100%)}
.site-header.is-stuck .ngw-mark{transform:rotate(-6deg) scale(.88)}
@media(min-width:783px){.admin-bar .site-header{top:32px}}
@media(min-width:601px) and (max-width:782px){.admin-bar .site-header{top:46px}}
.header-inner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:32px;min-height:76px}
.header-search{width:100%;max-width:560px;justify-self:center}
.header-right{display:flex;align-items:center;gap:10px;justify-self:end}
.lht-search-form{display:flex;align-items:center;width:100%;height:44px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg);overflow:hidden;transition:border-color .2s}
.lht-search-form:focus-within{border-color:var(--red)}
.lht-search-form input{flex:1;min-width:0;height:100%;padding:0 16px;border:0;background:none;color:var(--text);font-size:14px}
.lht-search-form input:focus{outline:none}.lht-search-form input::placeholder{color:var(--muted)}
.lht-search-form button{display:grid;place-items:center;flex:none;width:52px;height:100%;border:0;background:var(--red-fill);color:#fff;cursor:pointer;transition:background .2s}
.lht-search-form button:hover{background:var(--red)}.lht-search-form button svg{width:19px;height:19px}
.languages{display:flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg)}
.languages a{display:grid;place-items:center;padding:5px 7px;border-radius:5px;line-height:0;opacity:.45;filter:saturate(.4);transition:opacity .2s,filter .2s,background .2s}
.languages a:hover{opacity:.85;filter:none}
.languages .active{opacity:1;filter:none;background:#ef334026;box-shadow:inset 0 0 0 1px var(--red)}
.languages .flag{width:24px;height:16px;border-radius:2px;stroke:none;box-shadow:0 0 0 1px #ffffff1f}
.compact-actions{display:none;gap:6px}
.icon-button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:9px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--text);cursor:pointer;transition:border-color .2s,color .2s}
.icon-button:hover{border-color:var(--red);color:var(--red)}
.menu-toggle{background:var(--red-fill);border-color:var(--red-fill);color:#fff}.menu-toggle:hover{background:var(--red);color:#fff}
.cat-bar{border-top:1px solid var(--line)}
.cat-strip{display:flex;gap:8px;padding:10px 0;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain}.cat-strip::-webkit-scrollbar{display:none}
.cat-strip a{flex:none;padding:5px 14px;border:1px solid var(--line);border-radius:6px;background:var(--surface);font-size:13px;line-height:1.6;color:var(--muted);white-space:nowrap;transition:border-color .2s,color .2s,background .2s}
.cat-strip a:hover{border-color:var(--red);color:var(--text)}
.cat-strip a[aria-current=page]{border-color:var(--red-fill);background:var(--red-fill);color:#fff}

/* Brand: red play tile + wordmark */
.brand.warp-brand{display:inline-flex;align-items:center;gap:12px;flex-shrink:0}
.ngw-mark{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:10px;background:linear-gradient(145deg,#ff3b47,#b3121d);box-shadow:0 6px 22px #d0202b55,inset 0 1px #ffffff33;transform:rotate(-6deg);transition:transform .25s}
.ngw-mark svg{width:21px;height:21px;fill:#fff;stroke:none;margin-left:3px}
.warp-brand:hover .ngw-mark{transform:rotate(0) scale(1.05)}
.ngw-wordmark{display:flex;flex-direction:column;gap:1px}
.ngw-name{font-size:26px;font-weight:700;line-height:1.3;letter-spacing:-.6px;color:#fff;white-space:nowrap}
.ngw-name em{font-style:normal;color:var(--red)}
.ngw-domain{margin-left:3px;font-size:.5em;font-weight:500;letter-spacing:0;color:var(--muted)}
.ngw-tagline{font-size:11px;line-height:1.4;font-weight:500;color:var(--muted);white-space:nowrap}

/* Home hero: headline and hot tags beside a large featured clip */
.hero{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:center;gap:48px;padding:44px 0;border-bottom:1px solid var(--line)}
.hero-solo{grid-template-columns:minmax(0,1fr)}
.hero-eyebrow{display:inline-flex;align-items:center;gap:10px;margin:0 0 14px;font-size:12px;font-weight:700;letter-spacing:2px;color:var(--red)}
.live-dot{width:8px;height:8px;border-radius:50%;background:var(--red);box-shadow:0 0 0 0 #ef334099;animation:live 1.8s infinite}
@keyframes live{70%{box-shadow:0 0 0 9px #ef334000}100%{box-shadow:0 0 0 0 #ef334000}}
.hero h1{margin:0;font-size:clamp(26px,3vw,40px);font-weight:700;line-height:1.45;letter-spacing:-.6px;overflow-wrap:anywhere}
.hero-carousel{min-width:0}
.hero-track{position:relative;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.hero-track::-webkit-scrollbar{display:none}
@media(hover:hover) and (pointer:fine){.hero-track{overflow-x:hidden}}
.hero-feature{position:relative;flex:0 0 100%;aspect-ratio:16/9;overflow:hidden;scroll-snap-align:start;scroll-snap-stop:always}
.hero-dots{display:flex;justify-content:center;gap:2px;margin-top:10px}
.hero-dots button{display:grid;place-items:center;width:26px;height:26px;padding:0;border:0;background:none;cursor:pointer}
.hero-dots button:before{content:'';width:8px;height:8px;border-radius:4px;background:#ffffff40;transition:width .25s,background .25s}
.hero-dots button:hover:before{background:#ffffff80}
.hero-dots button[aria-current=true]:before{width:24px;background:var(--red)}
.hero-media{position:absolute;inset:0;display:block}
.hero-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.hero-feature:hover .hero-media img{transform:scale(1.03)}
.hero-feature .play-badge{opacity:1;transform:none;width:64px;height:64px;margin:-32px 0 0 -32px}
.hero-feature .play-badge svg{width:28px;height:28px}
.hero-caption{position:absolute;inset:auto 0 0;padding:64px 24px 20px;background:linear-gradient(transparent,#000000e6 60%);pointer-events:none}
.hero-caption a{pointer-events:auto}
.hero-label{display:inline-block;margin-bottom:8px;padding:1px 9px;border-radius:3px;background:var(--red-fill);color:#fff;font-size:11px;font-weight:700;letter-spacing:.5px}
.hero-caption h2{margin:0 0 6px;font-size:clamp(17px,1.8vw,22px);font-weight:700;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hero-caption .card-meta{color:#c9c9ce}

/* Hot tags */
.hot-tags{display:flex;align-items:center;gap:8px;margin-top:22px}
.hot-tags-list{display:flex;flex:1;flex-wrap:wrap;gap:8px;min-width:0}
.hot-tags-list a{padding:4px 12px;border:1px solid var(--line);border-radius:4px;font-size:13px;line-height:1.6;color:var(--muted);white-space:nowrap}
.hot-tags-list a:hover{border-color:var(--red);color:var(--text)}
.hot-tags-nav{display:none}

/* Listing */
.content-layout{margin:40px 0 88px}
.section-heading{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px}
.section-heading h2{display:flex;align-items:center;gap:12px;margin:0;font-size:21px;font-weight:700;line-height:1.5}
.section-heading h2:before{content:'';flex:none;width:4px;height:22px;background:var(--red)}
.archive-description{max-width:850px;margin:12px 0 0;color:var(--muted);font-size:14px;line-height:1.9;overflow-wrap:anywhere;white-space:pre-line}
.feed-tabs{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.feed-tabs a{padding:5px 18px;border-radius:5px;font-size:13px;font-weight:500;color:var(--muted)}
.feed-tabs a[aria-current=page]{background:var(--red-fill);color:#fff}
.card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 18px}
.video-card{min-width:0}
.card-image{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;border:1px solid var(--line);border-radius:6px;background:var(--surface);transition:border-color .2s}
.card-image:hover{border-color:var(--red)}
.card-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s}
.card-image:hover img{transform:scale(1.04)}
.placeholder{display:block;height:100%;background:radial-gradient(ellipse at 30% 20%,#ef334026,transparent 60%),linear-gradient(135deg,#1d1d20,#121214)}
.card-views{position:absolute;top:8px;left:8px;display:inline-flex;align-items:center;gap:4px;padding:0 7px;border-radius:3px;background:#d0202b99;color:#fff;font-size:11px;font-weight:600;line-height:1.8;font-variant-numeric:tabular-nums}
.card-views svg{width:13px;height:13px;stroke-width:2}
.duration-badge{position:absolute;right:8px;bottom:8px;padding:0 6px;border-radius:3px;background:#000000d9;color:#fff;font-size:12px;font-weight:600;line-height:1.8;font-variant-numeric:tabular-nums}
.play-badge{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:48px;height:48px;margin:-24px 0 0 -24px;border-radius:50%;background:var(--red-fill);color:#fff;box-shadow:0 6px 24px #000a;opacity:0;transform:scale(.8);transition:opacity .2s,transform .2s}
.play-badge svg{width:22px;height:22px;fill:currentColor;stroke:none;margin-left:3px}
.card-image:hover .play-badge,.video-card:focus-within .play-badge,.placeholder~.play-badge{opacity:1;transform:none}
.card-body h3{margin:10px 0 2px;font-size:15px;font-weight:600;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.card-meta{display:flex;flex-wrap:wrap;gap:2px 10px;font-size:12px;color:var(--muted)}
.card-meta>*+*:before{content:'·';margin-right:10px;color:var(--red)}
.video-card .card-meta>*+*:before{content:'|';color:#4a4a50}
.empty{grid-column:1/-1;min-height:220px;padding:60px 24px;border:1px dashed var(--line);border-radius:var(--radius);background:var(--surface);text-align:center}
.empty h3,.empty h1{margin:0 0 10px;font-size:20px;font-weight:600}.empty p{margin:0;color:var(--muted);font-size:14px}

/* Pagination */
.pagination{margin-top:56px}.pagination .nav-links{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px}
.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--muted);font-size:14px;font-variant-numeric:tabular-nums;transition:border-color .2s,color .2s}
.pagination a.page-numbers:hover{border-color:var(--red);color:var(--text)}
.pagination .page-numbers.current{border-color:var(--red-fill);background:var(--red-fill);color:#fff;font-weight:700}
.pagination .page-numbers.dots{min-width:auto;padding:0 4px;border:0;background:none}
.pagination .prev,.pagination .next{width:42px;padding:0}.pagination .prev svg,.pagination .next svg{width:18px;height:18px}

/* Watch page: full-bleed theater, details below, next clips as a grid */
.theater{margin-inline:calc(50% - 50vw);padding:28px 16px;background:#000;border-bottom:1px solid var(--line)}
.player{position:relative;width:min(100%,max(640px,calc((100vh - 220px) * 16 / 9)));aspect-ratio:16/9;margin-inline:auto;overflow:hidden;border-radius:6px;background:#000}
.player iframe,.player video{position:absolute;inset:0;width:100%;height:100%;border:0}
.player-empty{display:grid;place-items:center;height:100%;color:var(--muted);font-size:14px}
.player-empty img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.3}
.player-empty p{position:relative;margin:0;padding:8px 18px;border-radius:6px;background:#000c}
.watch-main{max-width:980px;margin:0 auto}
.breadcrumb{display:flex;flex-wrap:wrap;gap:4px 10px;margin:26px 0 8px;font-size:13px;color:var(--muted)}.breadcrumb span{color:var(--red)}
.watch-header h1{margin:0 0 14px;font-size:clamp(20px,2.4vw,28px);font-weight:700;line-height:1.5;letter-spacing:-.3px;overflow-wrap:anywhere}
.watch-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.watch-stats{display:flex;flex-wrap:wrap;gap:8px 20px;margin:0;padding:0;list-style:none;font-size:13px;color:var(--muted)}
.watch-stats li{display:flex;align-items:center;gap:7px}.watch-stats svg{width:17px;height:17px;color:var(--red)}
.share-button{display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:8px 20px;border:0;border-radius:6px;background:var(--red-fill);color:#fff;font-size:13px;font-weight:600;cursor:pointer;transition:background .2s}
.share-button:hover{background:var(--red)}.share-button svg{width:18px;height:18px}
.watch-details{margin-top:20px;padding:20px 22px;border:1px solid var(--line);border-left:3px solid var(--red-fill);border-radius:6px;background:var(--surface)}
.chip-row{display:flex;flex-wrap:wrap;gap:8px}.chip-row:first-child{margin-bottom:14px}.entry-content+.chip-row{margin-top:16px}
.chip{padding:2px 12px;border:1px solid var(--line);border-radius:4px;font-size:12px;color:var(--muted)}.chip:hover{border-color:var(--red);color:var(--text)}
.chip-category{border-color:var(--red-fill);background:var(--red-fill);color:#fff}.chip-category:hover{background:var(--red);color:#fff}
.watch-next{margin:56px 0 88px}

/* Post text */
.entry-content{font-size:16px;line-height:1.95;color:#d6d6da;overflow-wrap:anywhere}
.entry-content>:first-child{margin-top:0}.entry-content>:last-child{margin-bottom:0}.entry-content:empty{display:none}
.entry-content a{color:var(--red);text-decoration:underline}
.entry-content img,.entry-content iframe,.entry-content video{max-width:100%}.entry-content img{height:auto}
.entry-content pre,.entry-content table{overflow:auto}.entry-content table{display:block}
.reading{max-width:780px;margin:56px auto 88px}
.eyebrow{display:block;font-size:48px;font-weight:700;line-height:1.2;color:var(--red)}
.reading.empty .button{margin-top:18px}

/* Footer: brand column plus two link columns */
.site-footer{background:#08080a;border-top:3px solid var(--red-fill)}
.footer-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1.4fr);gap:48px;padding:56px 0 44px}
.footer-brand h2{margin:22px 0 8px;font-size:18px;font-weight:600;line-height:1.6}
.footer-brand p{margin:0;max-width:440px;color:var(--muted);font-size:14px;line-height:1.9;white-space:pre-line;overflow-wrap:anywhere}
.footer-col{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.footer-cats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px;align-content:start}
.footer-nav-title{grid-column:1/-1;margin:0 0 4px;font-size:12px;font-weight:700;letter-spacing:2px;color:var(--red)}
.footer-col a{font-size:14px;color:var(--muted);overflow-wrap:anywhere}.footer-col a:hover{color:var(--text)}
.footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 0;border-top:1px solid var(--line)}
.footer-bottom p{margin:0;font-size:12px;color:var(--muted)}

/* Floating back-to-top: red circle that bobs in the bottom-right corner */
.to-top{position:fixed;right:max(20px,env(safe-area-inset-right,0px));bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:90;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--red-fill);color:#fff;box-shadow:0 8px 24px #d0202b66,0 2px 6px #0008;transition:opacity .25s,visibility .25s,background .2s;animation:to-top-bob 1.6s ease-in-out infinite}
.to-top:hover{background:var(--red);color:#fff;animation-play-state:paused}
.to-top svg{width:26px;height:26px;stroke-width:2.6}
.has-interface .to-top:not(.is-visible){opacity:0;visibility:hidden}
.to-top.is-launching{animation:to-top-launch .5s cubic-bezier(.5,-0.5,.7,1) forwards}
@keyframes to-top-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes to-top-launch{0%{transform:translateY(0)}30%{transform:translateY(6px) scaleY(.9)}100%{transform:translateY(-120px);opacity:0}}

/* Bottom bar on small screens */
.mobile-nav{display:none}
.dialog-open{overflow:hidden}

/* Dialogs */
.site-dialog{width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 48px);overflow:auto;padding:26px;border:1px solid var(--line);border-top:3px solid var(--red-fill);border-radius:12px;background:#141416;color:var(--text);box-shadow:0 32px 120px #000c}
.site-dialog:not([open]){display:none}.site-dialog[open]{animation:dialog-in .2s ease-out}
.site-dialog::backdrop{background:#000000b3;backdrop-filter:blur(6px)}
@keyframes dialog-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}
.dialog-heading h2{margin:0;font-size:22px;font-weight:700;line-height:1.5}.dialog-heading .icon-button{flex-shrink:0;background:var(--surface);border-color:var(--line);color:var(--text)}
.popup-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.popup-links>a{display:flex;align-items:center;gap:12px;min-width:0;padding:14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);font-size:14px;transition:border-color .2s}
.popup-links>a:hover{border-color:var(--red);color:var(--text)}
.popup-links>a svg{flex:none;width:18px;height:18px;color:var(--red)}
.popup-links>a span:not(:last-child){min-width:0;overflow-wrap:anywhere}
.popup-links>a span:last-child{display:none}
.popup-links>a[aria-current=page]{border-color:var(--red-fill);background:var(--red-fill);color:#fff}.popup-links>a[aria-current=page] svg{color:#fff}
.site-dialog .lht-search-form{height:52px}.site-dialog .lht-search-form input{font-size:16px}
.search-hint{margin:12px 0 0;font-size:13px;color:var(--muted)}

/* Responsive */
@media(min-width:1200px){
.hot-tags-list{flex-wrap:nowrap;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none}.hot-tags-list::-webkit-scrollbar{display:none}
.hot-tags-nav{display:grid;place-items:center;flex:none;width:32px;height:32px;padding:0;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--text);cursor:pointer}
.hot-tags-nav svg{width:16px;height:16px}.hot-tags-nav:hover:not(:disabled){border-color:var(--red);color:var(--red)}.hot-tags-nav:disabled{opacity:.3;cursor:default}
.hot-tags:not(.is-scrollable) .hot-tags-nav{display:none}
}
@media(max-width:1199px){.card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero{gap:32px}}
@media(max-width:899px){
.shell{width:calc(100% - 32px)}
.header-inner{grid-template-columns:auto minmax(0,1fr);gap:12px;min-height:66px}
.has-interface .header-search{display:none}.has-interface .compact-actions{display:flex}
.header-search{grid-column:1/-1;max-width:none;padding-bottom:12px}
.cat-strip{margin-inline:-16px;padding-inline:16px}
.hero{grid-template-columns:minmax(0,1fr);gap:24px;padding:28px 0}
.hero h1{font-size:23px}
.hot-tags{margin-top:16px}.hot-tags-list{flex-wrap:nowrap;overflow-x:auto;margin-inline:-16px;padding-inline:16px;scrollbar-width:none}.hot-tags-list::-webkit-scrollbar{display:none}
.hero-track{margin-inline:-16px;border-radius:0;border-inline:0}
.hero-caption{padding:48px 16px 14px}
.content-layout{margin:28px 0 56px}
.card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}
.card-body h3{font-size:14px;margin-top:8px}.card-meta{font-size:11px}
.section-heading{align-items:flex-start;flex-direction:column}
.theater{padding:0;border-bottom:0}.player{width:100%;border-radius:0}
.watch-header h1{font-size:20px}.share-button{width:100%;justify-content:center}.watch-details{padding:16px}
.watch-next{margin:40px 0 56px}
.footer-grid{grid-template-columns:minmax(0,1fr);gap:32px;padding:40px 0 32px}
.footer-bottom{flex-wrap:wrap}
body{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}
.to-top{right:16px;bottom:calc(80px + env(safe-area-inset-bottom,0px));width:46px;height:46px}.to-top svg{width:23px;height:23px}.mobile-nav{position:fixed;inset:auto 0 0;z-index:100;display:flex;padding:0 max(8px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(8px,env(safe-area-inset-left,0px));border-top:1px solid var(--line);background:#111113f5;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.mobile-nav>a,.mobile-nav>button{position:relative;display:flex;flex:1;min-width:0;min-height:64px;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:0;border:0;background:none;color:var(--muted);font:inherit;font-size:11px;line-height:1.5;cursor:pointer}
.mobile-nav svg{width:22px;height:22px}
.mobile-nav [aria-current=page],.mobile-nav .is-current,.mobile-nav [aria-expanded=true]{color:var(--text)}
.mobile-nav [aria-current=page] svg,.mobile-nav .is-current svg,.mobile-nav [aria-expanded=true] svg{color:var(--red)}
.mobile-nav [aria-current=page]:before,.mobile-nav .is-current:before,.mobile-nav [aria-expanded=true]:before{content:'';position:absolute;top:-1px;left:25%;right:25%;height:3px;background:var(--red)}
}
@media(max-width:600px){
.ngw-mark{width:34px;height:34px;border-radius:8px}.ngw-mark svg{width:17px;height:17px}
.ngw-name{font-size:21px}.ngw-tagline{font-size:9.5px}.brand.warp-brand{gap:8px}
.languages a{padding:4px 5px}.languages .flag{width:21px;height:14px}.header-right{gap:6px}.icon-button{width:38px;height:38px;padding:8px}
.popup-links{grid-template-columns:minmax(0,1fr)}.site-dialog{padding:20px}
.footer-cats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:400px){.ngw-tagline{display:none}}
@media(max-width:380px){.ngw-name{font-size:18px}.ngw-mark{width:28px;height:28px}.card-grid{gap:18px 10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
