/*
Theme Name: NovaTube Tiếng Việt
Author: NovaTube
Description: Theme video độc lập, nhanh và hiện đại. Tương thích metadata RetroTube, không cần WP-Script. Không album ảnh, blog, thành viên hay gửi video.
Version: 1.0.22-vi
Requires at least: 6.3
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: novatube
Tags: entertainment, grid-layout, custom-logo, custom-menu, featured-images, right-sidebar
*/
:root{--accent:#a855f7;--columns:5;--bg:#0e0f14;--surface:#16171f;--surface-2:#1d1e28;--text:#f4f4f8;--muted:#9698ac;--line:#292a37;--radius:12px;--container:1504px;color-scheme:dark}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}body.nt-light{--bg:#f5f6fa;--surface:#fff;--surface-2:#edeef5;--text:#20212e;--muted:#65687a;--line:#dedfe9;color-scheme:light}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,summary,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a,button{touch-action:manipulation}button{color:inherit}input,textarea,select{color:var(--text);background:var(--surface-2);border:1px solid var(--line);border-radius:9px;padding:12px}input:focus,textarea:focus,select:focus{border-color:var(--accent);outline:2px solid color-mix(in srgb,var(--accent) 30%,transparent)}:focus-visible{outline:2px solid var(--accent);outline-offset:4px}img{display:block;max-width:100%;height:auto}svg{flex-shrink:0}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.3;letter-spacing:-.025em}h1{font-size:30px}h2{font-size:20px}h3{font-size:14px}p{margin-bottom:12px}ul,ol{padding-inline-start:22px}button[disabled]{opacity:.55;cursor:wait}[hidden]{display:none!important}.container{width:min(var(--container),calc(100% - 64px));margin-inline:auto}.icon{width:20px;height:20px;vertical-align:middle}.screen-reader-text{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:absolute;top:-100px;left:16px;background:var(--accent);padding:14px;z-index:9999}.skip-link:focus{top:16px}.site-header{background:var(--surface);border-bottom:1px solid var(--line)}.header-top{display:flex;align-items:center;gap:24px;min-height:96px}.brand{min-width:240px;margin-inline-end:auto}.brand>a{display:flex;align-items:center;gap:12px;font-size:24px;line-height:1.1;font-weight:800;letter-spacing:-.7px}.brand>a>span:not(.brand-mark){min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.brand small{display:block;font-size:11px;line-height:1.5;color:var(--muted);font-weight:400;letter-spacing:0;margin-top:5px}.brand-mark{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:43px;height:43px;border-radius:13px;background:linear-gradient(140deg,var(--accent),#713bd6);color:white;box-shadow:0 4px 18px #7c3aed20}.brand-mark .icon{width:25px;height:25px;fill:currentColor;stroke-width:0;margin-left:-2px}.custom-logo{max-height:60px;width:auto;max-width:250px}.search-form{display:flex;align-items:center;position:relative;width:min(100%,500px);margin:0}.search-form input{width:100%;padding:13px 52px 13px 17px;background:var(--bg);font-size:13px;height:46px}.search-form button{display:grid;place-items:center;position:absolute;inset-inline-end:5px;width:36px;height:36px;border:0;background:var(--accent);border-radius:7px;color:#fff}.icon-button{border:1px solid var(--line);background:var(--surface-2);height:43px;width:43px;display:grid;place-items:center;border-radius:10px;flex-shrink:0}.icon-button:hover{border-color:var(--accent)}.nav-toggle{display:none}.nav-shell{border-top:1px solid var(--line)}.main-navigation{display:flex;align-items:center;justify-content:space-between;min-height:52px}.nav-list{display:flex;flex-wrap:wrap;align-items:center;gap:5px;list-style:none;padding:0;margin:0}.nav-list>li{position:relative}.nav-list>li>a{display:block;font-size:13px;font-weight:600;padding:17px 18px;color:var(--muted);border-bottom:2px solid transparent}.nav-list>li:first-child>a{padding-inline-start:0;padding-inline-end:22px}.nav-list a:hover,.nav-list .current-menu-item>a{color:var(--text);border-color:var(--accent)}.nav-list .sub-menu{position:absolute;min-width:210px;top:100%;inset-inline-start:0;z-index:10;background:var(--surface);padding:8px;list-style:none;border:1px solid var(--line);border-radius:9px;display:none;box-shadow:0 12px 30px #0004}.nav-list li:hover>.sub-menu,.nav-list li:focus-within>.sub-menu{display:block}.sub-menu a{display:block;padding:12px}.site-content{padding-top:28px;padding-bottom:50px;min-height:60vh}.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 272px;gap:30px}.main-column{min-width:0}.nt-no-sidebar .content-layout{grid-template-columns:minmax(0,1fr)}.breadcrumbs{display:flex;gap:9px;align-items:center;margin-bottom:23px;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden}.breadcrumbs span{overflow:hidden;text-overflow:ellipsis}.breadcrumbs .icon{width:12px;height:12px}.breadcrumbs a:hover{color:var(--accent)}.home-intro{padding:5px 0 26px}.eyebrow{display:flex;align-items:center;gap:7px;color:var(--accent);letter-spacing:1.5px;font-size:10px;font-weight:750;margin-bottom:12px}.live-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 12%,transparent)}.home-intro h1{font-size:clamp(25px,2.6vw,37px);font-weight:750;margin-bottom:10px}.home-intro p{color:var(--muted);font-size:14px;margin:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.section-heading h2,.section-heading h1{min-width:0;overflow-wrap:anywhere;display:flex;align-items:center;gap:9px;font-size:20px;font-weight:700}.section-heading h2 .icon{color:var(--accent);width:18px;height:18px}.result-count{font-size:12px;color:var(--muted);white-space:nowrap}.featured-section{padding-bottom:26px;margin-bottom:28px;border-bottom:1px solid var(--line)}.featured-track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 36px)/3);gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}.featured-track::-webkit-scrollbar{display:none}.featured-track .video-card{scroll-snap-align:start}.carousel-buttons{display:flex;gap:7px}.carousel-buttons button{width:30px;height:30px;border-radius:7px;background:var(--surface-2);border:1px solid var(--line)}.carousel-buttons button:hover{background:var(--accent);color:white}.filter-bar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:24px}.filter{padding:8px 13px;border-radius:8px;font-size:12px;font-weight:500;color:var(--muted);background:var(--surface);border:1px solid var(--line);transition:background .15s}.filter:hover{color:var(--text);border-color:var(--accent)}.filter.active{color:#fff;background:var(--accent);border-color:var(--accent)}.video-grid{display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));gap:25px 18px}.video-card{min-width:0}.card-media{position:relative;aspect-ratio:16/9;border-radius:var(--radius);overflow:hidden;background:var(--surface-2);isolation:isolate}.card-image{height:100%;width:100%;object-fit:cover;transition:transform .25s}.card-media::after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#0006);pointer-events:none;z-index:1}.card-link:hover .card-image{transform:scale(1.035)}.card-title{font-size:13px;font-weight:600;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:40px;margin-top:10px}.card-link:hover .card-title{color:var(--accent)}.quality-badge,.duration-badge{position:absolute;bottom:8px;z-index:2;font-size:10px;font-weight:650;color:white;border-radius:4px;padding:2px 5px;background:#08090ccc;backdrop-filter:blur(4px)}.quality-badge{top:9px;bottom:auto;left:9px;background:#070a12b3;border:1px solid #ffffff25}.duration-badge{right:8px;font-variant-numeric:tabular-nums;letter-spacing:.3px}.hover-play{position:absolute;inset:0;display:grid;place-items:center;opacity:0;transition:opacity .2s;z-index:3;pointer-events:none}.hover-play .icon{height:42px;width:42px;background:#ffffffeb;color:#16171f;border-radius:50%;padding:12px;fill:currentColor;stroke-width:0}.card-link:hover .hover-play{opacity:1}.card-meta{display:flex;align-items:center;gap:9px;font-size:10px;color:var(--muted);margin-top:6px;white-space:nowrap}.card-meta>a{overflow:hidden;text-overflow:ellipsis;margin-inline-end:auto}.card-meta span{display:flex;align-items:center;gap:4px}.card-meta .icon{width:12px;height:12px}.card-meta a:hover{color:var(--accent)}.card-preview{position:absolute;inset:0;object-fit:cover;width:100%;height:100%;z-index:2;pointer-events:none}.no-thumbnail{display:grid;height:100%;place-items:center;background:linear-gradient(130deg,#282035,#191b2a)}.no-thumbnail .icon{width:48px;height:48px;color:#a18eb9;stroke-width:1}.sidebar{min-width:0;padding-top:5px}.widget{background:var(--surface);border:1px solid var(--line);padding:20px;border-radius:var(--radius);margin-bottom:22px}.widget-title{font-size:15px;font-weight:650;margin-bottom:15px}.sidebar-terms{display:flex;flex-direction:column}.sidebar-terms>a{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px;padding:10px 0;border-bottom:1px solid var(--line)}.sidebar-terms>a:last-child{border-bottom:0;padding-bottom:0}.sidebar-terms a:hover{color:var(--text)}.sidebar-terms small{background:var(--surface-2);font-size:10px;border-radius:5px;padding:1px 6px}.compact-videos{display:flex;flex-direction:column;gap:18px}.compact-videos .card-link{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;align-items:center}.compact-videos .card-media{border-radius:7px}.compact-videos .card-title{font-size:11px;margin-top:0;min-height:0}.compact-videos .card-meta{padding-inline-start:100px;font-size:9px;margin-top:4px}.compact-videos .quality-badge{display:none}.compact-videos .duration-badge{font-size:8px;bottom:3px;right:4px}.compact-videos .hover-play .icon{width:25px;height:25px;padding:7px}.sidebar-note{padding:14px 15px;text-align:center;color:var(--muted);font-size:11px}.sidebar-note .brand-mark{margin:0 auto 12px;width:36px;height:36px;border-radius:10px;opacity:.8}.sidebar-note strong{color:var(--text);font-size:12px}.sidebar-note p{margin-top:7px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 22px;background:var(--accent);color:#fff;border:1px solid var(--accent);border-radius:9px;font-size:12px;font-weight:650;transition:filter .15s}.button:hover{filter:brightness(1.12)}.button-secondary{background:var(--surface);border-color:var(--line);color:var(--text)}.button-secondary:hover{border-color:var(--accent)}.button .icon{width:15px;height:15px}.load-more-wrap{text-align:center;margin-top:35px}.pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin-top:28px}.pagination:empty{display:none}.page-numbers{min-width:34px;height:34px;display:grid;place-items:center;padding:0 10px;border:1px solid var(--line);border-radius:7px;font-size:12px}.page-numbers.current{background:var(--accent);color:#fff;border-color:var(--accent)}.pagination a:hover{border-color:var(--accent)}.archive-description{color:var(--muted);margin-bottom:22px}.site-footer{background:var(--surface);border-top:1px solid var(--line);padding:32px 0 25px}.footer-bottom{display:flex;align-items:center;gap:30px;justify-content:space-between}.footer-bottom strong{font-size:18px;letter-spacing:-.5px}.footer-bottom p{font-size:11px;color:var(--muted);margin:6px 0 0}.footer-links{display:flex;flex-wrap:wrap;gap:24px;list-style:none;font-size:12px;color:var(--muted);margin:0;padding:0}.footer-links a:hover{color:var(--accent)}.back-top{display:grid;place-items:center;border:1px solid var(--line);background:var(--surface-2);border-radius:9px;width:35px;height:35px;font-size:19px}.footer-description{color:var(--muted);font-size:12px;margin-top:25px}.footer-widgets{display:grid;grid-template-columns:repeat(var(--footer-columns,1),minmax(0,1fr));gap:20px}.footer-widgets>.widget{min-width:0}.ad{text-align:center;overflow:hidden;margin:0 auto 24px;max-width:100%}.ad-header{width:min(var(--container),calc(100% - 64px));margin-top:24px}.ad iframe{max-width:100%;border:0}.ad-sidebar{margin-bottom:22px}.ad img{margin-inline:auto}.player{position:relative;aspect-ratio:16/9;width:100%;background:#050508;border-radius:14px;overflow:hidden;color:white}.player-poster{width:100%;height:100%;object-fit:cover;opacity:.6}.player-start{position:absolute;inset:0;background:linear-gradient(transparent,#0004);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;border:0;font-size:13px;letter-spacing:.25px;color:#fff}.player-start .icon{width:72px;height:72px;border-radius:50%;padding:23px;background:var(--accent);color:white;fill:currentColor;stroke-width:0;box-shadow:0 0 0 12px #ffffff0c}.player-start:hover .icon{transform:scale(1.05)}.player-stage{position:absolute;inset:0}.player-stage video,.player-stage iframe,.external-player iframe,.external-player video{width:100%;height:100%;border:0}.player-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:#9a9bae}.player-empty>.icon{width:50px;height:50px}.player-error{position:absolute;bottom:20%;left:12%;right:12%;background:#20131eea;text-align:center;color:#fff;padding:14px;border-radius:10px;z-index:5}.source-bar{display:flex;align-items:center;gap:14px;background:var(--surface);padding:12px 16px;border-radius:10px;margin-top:12px;font-size:12px;color:var(--muted)}.source-bar select{padding:7px 12px;margin-inline-start:auto;min-width:150px}.video-info{padding:22px 0 25px;border-bottom:1px solid var(--line)}.video-info h1{font-size:25px;line-height:1.4;margin-bottom:18px}.video-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}.video-statistics{display:flex;gap:16px;align-items:center;color:var(--muted);font-size:11px;flex-wrap:wrap}.video-statistics>span{display:flex;align-items:center;gap:5px}.video-statistics .icon{width:15px;height:15px}.video-actions{display:flex;gap:7px;flex-wrap:wrap}.action-button{display:flex;align-items:center;gap:7px;background:var(--surface-2);border:1px solid var(--line);border-radius:8px;padding:9px 12px;font-size:11px}.action-button .icon{width:15px;height:15px}.action-button:hover,.action-button[aria-pressed=true]{color:var(--accent);border-color:var(--accent)}.dislike-icon{transform:rotate(180deg)}.term-chips{display:flex;gap:7px;flex-wrap:wrap}.chip{display:block;font-size:11px;background:var(--surface-2);color:var(--muted);border:1px solid var(--line);padding:5px 10px;border-radius:6px}.chip:hover{color:var(--accent);border-color:var(--accent)}.video-description{margin-top:20px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:15px 18px}.video-description summary{cursor:pointer;font-size:12px;font-weight:650}.video-description .entry-content{font-size:13px;color:var(--muted);margin-top:15px;overflow-wrap:anywhere}.related-section{margin-top:28px}.directory-page{padding:8px 0 20px}.directory-page>.section-heading h1{font-size:30px}.directory-search{display:flex;gap:10px;max-width:600px;margin:25px 0 32px}.directory-search input{width:100%;min-width:0}.directory-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:22px}.directory-card{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}.directory-card:hover{border-color:var(--accent)}.directory-media{aspect-ratio:16/9;background:linear-gradient(135deg,#322442,#1a1d2c);overflow:hidden}.directory-media img{width:100%;height:100%;object-fit:cover}.directory-symbol{height:100%;display:grid;place-items:center;color:#a68ebf}.directory-symbol .icon{width:38px;height:38px;stroke-width:1}.directory-label{padding:14px}.directory-label h2{font-size:13px;margin-bottom:5px}.directory-label span{font-size:10px;color:var(--muted)}.tag-directory{grid-template-columns:repeat(4,minmax(0,1fr))}.page-content{max-width:940px;margin:0 auto;padding:15px 0 60px}.page-content h1{margin-bottom:25px}.entry-content{line-height:1.8;overflow-wrap:anywhere}.entry-content p{margin-bottom:16px}.entry-content h2,.entry-content h3{margin:24px 0 15px}.entry-content a{color:var(--accent)}.entry-content iframe{max-width:100%}.entry-content pre{white-space:pre-wrap}.entry-content table{width:100%;border-collapse:collapse}.entry-content td,.entry-content th{border:1px solid var(--line);padding:10px}.empty-state{padding:65px 20px;text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:14px;margin-top:20px}.empty-state>.icon{width:42px;height:42px;color:var(--muted);margin-bottom:20px}.empty-state h2,.empty-state h1{margin-bottom:12px}.empty-state p{color:var(--muted);margin-bottom:22px}.empty-state .search-form{margin:0 auto 24px}.error-code{font-size:85px;font-weight:800;display:block;color:var(--accent);letter-spacing:-5px;line-height:1.2;margin-bottom:22px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--text);color:var(--bg);padding:13px 22px;border-radius:10px;z-index:999;max-width:calc(100% - 32px);box-shadow:0 10px 30px #0004;font-size:12px}.comments-area{margin-top:32px}.comments-area h2{margin-bottom:22px}.comment-list{list-style:none;padding:0}.comment-body{background:var(--surface);border:1px solid var(--line);padding:18px;border-radius:10px;margin-bottom:15px}.comment-author .avatar{display:inline-block;margin-inline-end:8px;border-radius:50%}.comment-metadata{color:var(--muted);font-size:11px}.comment-content{margin-top:12px}.comment-form{display:grid;gap:12px}.comment-form p{margin:0}.comment-form label{display:block;margin-bottom:5px}.comment-form textarea,.comment-form input:not([type=checkbox]){width:100%}.comment-form-cookies-consent{display:flex;gap:10px}.comment-form .submit{background:var(--accent);color:white;cursor:pointer;border:0}.alignleft{float:left;margin:0 20px 15px 0}.alignright{float:right;margin:0 0 15px 20px}.aligncenter{margin-inline:auto}.wp-caption-text,.gallery-caption{font-size:12px;color:var(--muted)}.sticky{position:relative}.bypostauthor{border-left:2px solid var(--accent)}
@media(min-width:1600px){.container{width:min(var(--container),calc(100% - 96px))}.content-layout{grid-template-columns:minmax(0,1fr) 290px;gap:36px}.card-title{font-size:14px}.card-meta{font-size:11px}.header-top{min-height:104px}}
@media(max-width:1180px){.content-layout{grid-template-columns:minmax(0,1fr) 240px;gap:22px}.video-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 15px}.widget{padding:16px}.compact-videos .card-link{grid-template-columns:75px minmax(0,1fr)}.compact-videos .card-meta{padding-inline-start:85px}.directory-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.container{width:calc(100% - 40px)}.header-top{gap:16px}.brand{min-width:210px}.brand>a{font-size:22px}.content-layout{grid-template-columns:minmax(0,1fr)}.sidebar{display:none}.featured-track{grid-auto-columns:calc((100% - 36px)/3)}.site-content{padding-top:22px}.video-info h1{font-size:23px}.directory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.footer-widgets{grid-template-columns:repeat(var(--footer-columns-tablet,2),minmax(0,1fr))}.ad-header{width:calc(100% - 40px)}}
@media(max-width:600px){.container{width:calc(100% - 28px)}.header-top{min-height:128px;flex-wrap:wrap;gap:12px;padding-block:15px}.brand{min-width:0;flex:1}.brand>a{font-size:22px;gap:9px}.brand-mark{width:37px;height:37px;border-radius:11px}.brand>a>span:not(.brand-mark){min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.brand small{font-size:10px}.header-top .search-form{order:5;width:100%;max-width:none}.search-form input{height:42px;font-size:12px}.search-form button{height:32px;width:32px}.icon-button{height:36px;width:36px;border-radius:9px}.nav-toggle{display:grid}html.js .main-navigation{display:none}html.js .nav-open .main-navigation{display:flex}.main-navigation{min-height:0;padding-block:8px}.nav-list{width:100%;gap:0}.nav-list>li{width:50%}.nav-list>li>a,.nav-list>li:first-child>a{padding:12px}.nav-list .sub-menu{position:static;display:block;box-shadow:none;min-width:0;padding:0 0 0 12px;border:none}.sub-menu a{font-size:11px;padding:8px}.site-content{padding-top:22px;padding-bottom:35px}.home-intro{padding-bottom:22px}.home-intro h1{font-size:26px;line-height:1.25}.home-intro p{font-size:12px;max-width:300px}.eyebrow{font-size:9px;margin-bottom:10px}.section-heading{margin-bottom:15px;gap:10px}.section-heading h1,.section-heading h2{font-size:17px}.result-count{font-size:10px}.featured-section{margin-bottom:23px;padding-bottom:22px}.featured-track{grid-auto-columns:72%;gap:14px}.featured-track .card-title{min-height:0;-webkit-line-clamp:1}.filter-bar{gap:6px;flex-wrap:nowrap;overflow-x:auto;margin-bottom:20px;scrollbar-width:none;padding-bottom:3px}.filter{padding:7px 10px;font-size:10px;flex-shrink:0}.video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}.card-media{border-radius:9px}.card-title{font-size:11px;margin-top:8px;line-height:1.6;min-height:35px}.card-meta{font-size:9px;gap:6px}.card-meta span:last-child:not(:nth-child(2)){display:none}.quality-badge{font-size:8px;top:6px;left:6px;padding:1px 4px}.duration-badge{font-size:9px;bottom:5px;right:5px}.hover-play{display:none}.load-more-wrap{margin-top:27px}.button{padding:11px 17px;font-size:11px}.pagination{gap:5px;margin-top:22px}.page-numbers{height:30px;min-width:30px;font-size:11px;padding:0 8px}.footer-bottom{flex-wrap:wrap;gap:18px}.footer-links{width:100%;order:3;gap:18px;font-size:11px}.footer-bottom>div{flex:1}.footer-widgets{grid-template-columns:1fr}.site-footer{padding:25px 0}.footer-description{font-size:11px}.player{border-radius:10px}.player-start .icon{width:55px;height:55px;padding:18px}.player-start{gap:12px;font-size:11px}.source-bar{font-size:10px;padding:10px 12px}.source-bar select{min-width:125px;font-size:11px}.video-info{padding-top:18px}.video-info h1{font-size:20px;line-height:1.45}.video-statistics{gap:10px;font-size:10px}.video-toolbar{gap:15px}.video-actions{width:100%}.action-button{padding:8px 11px;font-size:10px}.video-description{padding:12px 14px}.video-description .entry-content{font-size:12px}.breadcrumbs{font-size:10px;margin-bottom:17px;gap:6px}.related-section{margin-top:25px}.chip{font-size:10px;padding:4px 8px}.directory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.directory-label{padding:11px}.directory-label h2{font-size:12px}.directory-page>.section-heading h1{font-size:25px}.directory-search{margin:22px 0 25px;gap:8px}.directory-search input{font-size:12px}.empty-state{padding:45px 16px}.empty-state h1{font-size:23px}.empty-state p{font-size:12px}.page-content h1{font-size:25px}.ad-header{width:calc(100% - 28px)}.custom-logo{max-width:100%;max-height:42px}.custom-logo-link{display:block;max-width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* Trạng thái player trong khi API Google Drive chuẩn bị URL nhúng. */
.player-loading{position:absolute;inset:0;display:grid;place-items:center;background:#050508;color:#fff;font-size:14px;padding:20px;text-align:center}.player-retry{position:absolute;bottom:8%;left:50%;transform:translateX(-50%);z-index:6;border:1px solid #ffffff40;border-radius:8px;background:#252130;color:#fff;padding:8px 18px;font-size:12px;cursor:pointer}.player-retry:hover{background:var(--accent)}
.player-loading{margin:0}@media(max-width:600px){.player-error{bottom:28%;left:6%;right:6%;padding:10px;font-size:12px;max-height:55%;overflow:auto}.player-retry{bottom:6%;padding:6px 14px;font-size:11px}}

/* Logo chữ/ảnh đều có slogan; ảnh giữ đúng tỷ lệ trên điện thoại. */
.brand{max-width:360px;min-width:0;flex-shrink:1}.brand>a{min-width:0}.brand-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand .brand-slogan{margin:6px 0 0 55px;white-space:normal;overflow-wrap:anywhere}.brand-image .brand-slogan{margin-inline-start:0}.brand-image .custom-logo{display:block;object-fit:contain;max-width:260px;height:auto;width:auto}.brand-image>a{display:block}@media(max-width:600px){.brand{max-width:calc(100% - 96px)}.brand .brand-slogan{margin-inline-start:46px;font-size:10px}.brand-image .brand-slogan{margin-inline-start:0}.brand-image .custom-logo{max-width:100%;max-height:42px}}

/* Hai lớp liên kết giữ giao diện từ CSS theme cũ. */
.lienket{margin:.3em .3em;background:#3d393d;padding:6px 10px;border-radius:10px;line-height:15px;word-wrap:break-word;display:inline-block;font-size:.9em}
.starlink{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem 1rem}
.entry-content .starlink{list-style:none;padding:0;margin:0}
@media(min-width:640px){.starlink{grid-template-columns:repeat(3,1fr)}}
@media(min-width:768px){.starlink{grid-template-columns:repeat(4,1fr)}}
@media(min-width:1024px){.starlink{grid-template-columns:repeat(5,1fr)}}
.starlink li{position:relative;padding-left:1.25rem;min-width:0;overflow-wrap:anywhere}.starlink li::before{content:"★";position:absolute;left:0;top:.25rem;color:#fff;font-size:.95rem;line-height:1}.starlink a{text-decoration:none}.starlink a:hover{text-decoration:underline}
body.nt-light .lienket{color:#fff}body.nt-light .starlink li::before{color:var(--text)}

/* Chuyên mục thành các ô như widget từ khóa, icon SVG không tải font ngoài. */
.category-chip,.tag-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%}.category-chip .icon,.tag-chip .icon{width:13px;height:13px;flex-shrink:0}.category-chip span,.tag-chip span{min-width:0;overflow-wrap:anywhere}.category-chip small,.tag-chip small{font-size:10px;color:var(--muted);margin-inline-start:2px}.random-tag-cloud{align-items:center}.widget .random-tag-cloud .tag-cloud-link{font-size:11px!important}
.widget_categories ul,.widget .wp-block-categories-list{display:flex;flex-wrap:wrap;gap:7px;list-style:none;padding:0;margin:0}.widget_categories li,.widget .wp-block-categories-list li{display:inline-flex;align-items:center;flex-wrap:wrap;gap:5px;max-width:100%;margin:0;padding:5px 10px;background:var(--surface-2);color:var(--muted);border:1px solid var(--line);border-radius:6px;font-size:11px;line-height:1.55}.widget_categories li:hover,.widget .wp-block-categories-list li:hover{color:var(--accent);border-color:var(--accent)}.widget_categories li>a,.widget .wp-block-categories-list li>a{display:inline-flex;align-items:center;gap:6px;min-width:0;overflow-wrap:anywhere}.widget_categories li>a::before,.widget .wp-block-categories-list li>a::before{content:"";width:13px;height:13px;flex-shrink:0;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7V5a2 2 0 0 1 2-2h5l2 3h7a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7V5a2 2 0 0 1 2-2h5l2 3h7a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7z'/%3E%3C/svg%3E") center/contain no-repeat}.widget .wp-block-categories-list ul.children{flex-basis:100%;margin-top:5px}

/* Widget tag WordPress / khối tag: ô cùng kiểu chuyên mục, icon thẻ tag. */
.widget_tag_cloud .tagcloud,.widget .wp-block-tag-cloud{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0}
.widget_tag_cloud .tagcloud a,.widget .wp-block-tag-cloud a{display:inline-flex;align-items:center;gap:6px;max-width:100%;font-size:11px!important;line-height:1.55;background:var(--surface-2);color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:5px 10px;overflow-wrap:anywhere}
.widget_tag_cloud .tagcloud a:hover,.widget .wp-block-tag-cloud a:hover{color:var(--accent);border-color:var(--accent)}
.widget_tag_cloud .tagcloud a::before,.widget .wp-block-tag-cloud a::before{content:"";width:13px;height:13px;flex-shrink:0;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3h8l10 10-8 8L3 11V3z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3h8l10 10-8 8L3 11V3z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1'/%3E%3C/svg%3E") center/contain no-repeat}

/* Mô tả trang chủ nằm dưới phân trang, hỗ trợ nội dung HTML. */
.home-description{margin-top:28px;padding:22px 24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);color:var(--muted);font-size:13px}
.home-description h2,.home-description h3{color:var(--text)}.home-description>:first-child{margin-top:0}.home-description>:last-child{margin-bottom:0}
@media(max-width:600px){.home-description{padding:16px;font-size:12px}}

/* Mô tả nằm ngay dưới tiêu đề; breadcrumb tùy chọn giữ nhịp dòng. */
.archive-description>:first-child{margin-top:0}.archive-description>:last-child{margin-bottom:0}.breadcrumb-separator{flex-shrink:0;font-size:14px;color:var(--muted)}

/* Quảng cáo cuối trang: giữ iframe và phần tử cố định không bị cắt. */
.ad-footer,.ad-footer_desktop,.ad-footer_mobile{overflow:visible;margin-top:24px;margin-bottom:0}.ad iframe{display:block;margin-inline:auto;max-width:100%}.ad-footer_desktop{display:none!important}.footer-description iframe{max-width:100%;border:0}

.ad-footer-custom{overflow:visible;margin-top:24px;margin-bottom:0}.ad-footer-custom:empty{display:none}

/* Các khối widget video ở trang chủ dùng cùng lưới responsive của theme. */
.home-widgets{min-width:0}.home-widgets>.home-widget{padding:0;margin:0 0 32px;background:transparent;border:0;border-radius:0;min-width:0}.home-widgets .widget-title{margin-bottom:0}.home-widget-categories{margin:-4px 0 20px}.home-widget-empty{padding:20px;color:var(--muted);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.home-widgets .section-heading h2{overflow-wrap:anywhere}
@media(max-width:600px){.home-widgets>.home-widget{margin-bottom:26px}.home-widget-categories{margin-bottom:16px}.home-widget-empty{padding:16px;font-size:12px}}

/* Video gợi ý khi trang tìm kiếm không có kết quả. */
.search-empty-notice{margin:0 0 24px;color:var(--muted);line-height:1.7}.search-recommendations{margin-top:24px}.search-recommendations .section-heading{margin-bottom:20px}
@media(max-width:600px){.search-empty-notice{font-size:12px;margin-bottom:20px}.search-recommendations{margin-top:20px}.search-recommendations .section-heading{margin-bottom:16px}}

/* Quảng cáo chỉ được kích hoạt khi trình duyệt được nhận diện là điện thoại. */
html:not(.nt-phone) .ad{display:none!important}
html.nt-phone .nt-footer-text-fallback{display:none}
