:root{--bg:#0f0f0f;--panel:#232323;--hover:#333;--text:#f7f7f7;--sub:#aaa;--line:#303030;--red:#f03b38;--focus:#f3f3f3;--sidebar:242px;--header:94px;font-family:Arial,Roboto,"Segoe UI",sans-serif;color-scheme:dark}
*{box-sizing:border-box}html,body{height:100%;margin:0;background:var(--bg);color:var(--text)}body{overflow:hidden}button,input{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,input:focus-visible{outline:3px solid var(--focus);outline-offset:3px}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.sr{position:absolute;clip:rect(0 0 0 0);width:1px;height:1px;overflow:hidden}
.app{height:100vh;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);grid-template-rows:var(--header) minmax(0,1fr)}.masthead{grid-column:1/-1;display:flex;align-items:center;padding:0 30px;gap:17px;z-index:2;background:var(--bg)}.icon-button{flex:none;width:45px;height:45px;background:transparent;border:0;border-radius:50%;display:inline-grid;place-items:center;color:#eee}.icon-button:hover{background:var(--hover)}.icon-button svg{width:25px;height:25px}.brand{border:0;background:none;display:flex;align-items:center;gap:12px;min-width:256px;text-align:left;padding:0;color:white;font-size:21px;font-weight:bold;line-height:1.05;letter-spacing:-.3px}.brand-play{background:#e52221;width:54px;height:38px;border-radius:12px;display:grid;place-items:center}.brand-play svg{width:26px;height:26px}.search-form{display:flex;margin:0 auto;width:min(700px,45vw);height:49px;border-radius:28px;border:1px solid #3b3b3b;overflow:hidden;background:#1b1b1b}.search-form:focus-within{border-color:#6e99e7}.search-form input{border:0;outline:none!important;background:none;color:white;padding:0 20px;min-width:0;width:100%;font-size:17px}.search-form input::placeholder{color:#a9a9a9}.search-btn{border:0;border-left:1px solid #303030;width:67px;background:#292929;flex:none;display:grid;place-items:center}.header-spacer{flex:1;min-width:0}.avatar{border:0;border-radius:50%;background:#9050bd;color:white;width:42px;height:42px;flex:none;font-size:23px}.sidebar{min-height:0;display:flex;flex-direction:column;padding:16px 11px 18px 14px;border-right:1px solid #191919;overflow-y:auto}.nav{display:flex;flex-direction:column;gap:6px}.nav-item{border:0;border-radius:13px;background:transparent;display:flex;align-items:center;gap:25px;padding:12px 16px;min-height:56px;text-align:left;white-space:nowrap;font-size:17px}.nav-item:hover,.nav-item.selected{background:#2e2e2e}.nav-ico{font-size:29px;width:29px;text-align:center;font-family:Arial;line-height:1}.nav-divider{height:1px;margin:10px 7px;background:var(--line)}.sidebar-foot{margin-top:auto;padding:14px 16px;font-size:12px;color:var(--sub);display:flex;align-items:center;flex-wrap:wrap;gap:6px}.sidebar-foot small{display:block;flex-basis:100%;margin-left:14px}.dot{width:8px;height:8px;background:#e9ae45;border-radius:50%}.dot.ok{background:#34d27d}
.main{min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#454545 transparent}.content{padding:19px 29px 100px}.chips{display:flex;gap:11px;overflow:auto;padding:4px 0 22px;scrollbar-width:none}.chip{flex:none;border:0;background:#272727;border-radius:11px;padding:11px 17px;font-size:15px;font-weight:bold;white-space:nowrap}.chip:hover{background:#464646}.chip.active{color:#151515;background:#fff}.section-head{display:flex;align-items:center;gap:12px;margin:6px 1px 17px}.section-head h1{margin:0;font-size:25px;letter-spacing:-.5px}.section-head p{color:var(--sub);font-size:14px;margin:5px 0 0}.section-head .right{margin-left:auto;color:var(--sub);font-size:13px}.section-sub{font-size:22px;font-weight:bold;margin:34px 0 18px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 20px}.card{min-width:0;cursor:pointer;border:0;background:none;text-align:left;padding:0;color:#f5f5f5;border-radius:11px}.card .poster{aspect-ratio:16/9;position:relative;border-radius:12px;overflow:hidden;background:linear-gradient(125deg,#381e52,#26384b);width:100%;margin-bottom:10px}.card .poster img{width:100%;height:100%;object-fit:cover;display:block}.card .poster img:not([src]){opacity:0}.poster .length{position:absolute;right:8px;bottom:8px;padding:4px 5px;background:rgba(0,0,0,.85);border-radius:5px;font-size:12px;font-weight:bold}.poster .overlay-play{position:absolute;inset:0;display:grid;place-items:center;background:rgba(0,0,0,.22);opacity:0;transition:opacity .15s}.overlay-play span{border-radius:50%;width:66px;height:66px;background:rgba(0,0,0,.72);display:grid;place-items:center;font-size:28px}.card:hover .overlay-play,.card:focus-visible .overlay-play{opacity:1}.card:focus-visible .poster{outline:4px solid white;outline-offset:3px}.poster.no-video:after{content:'Chưa có ID YouTube';position:absolute;left:8px;bottom:8px;background:#1d1d1ddd;padding:6px;border-radius:5px;font-size:11px;color:#d8d8d8}.poster.type-collection:before{content:'▤';position:absolute;inset:0;display:grid;place-items:center;color:#ffffff77;font-size:64px}.card .meta{display:flex;gap:12px;min-height:69px}.card .mini-avatar{width:40px;height:40px;flex:none;background:linear-gradient(135deg,#8752c4,#5c4c7d);border-radius:50%;display:grid;place-items:center;font-size:18px}.card .texts{min-width:0;flex:1}.card h3{font-size:15.5px;line-height:1.38;font-weight:700;margin:0 0 5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card p{font-size:13.5px;line-height:1.42;color:#b4b4b4;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card .more{width:24px;height:30px;border-radius:18px;background:none;border:none;font-size:22px;align-self:flex-start}.banner{padding:26px 30px;border:1px solid #3c3232;background:linear-gradient(100deg,#21141c,#171717 60%,#161d27);border-radius:17px;margin-bottom:26px;display:flex;align-items:center;gap:24px}.banner h2{margin:0 0 6px;font-size:24px}.banner p{margin:0;font-size:14px;color:#c1c1c1;line-height:1.55}.banner button{margin-left:auto;border:none;background:#f9f9f9;color:black;border-radius:20px;padding:12px 18px;font-weight:bold;white-space:nowrap}.subtle{color:#a7a7a7}.empty{border:1px dashed #444;border-radius:14px;padding:32px;color:#bbb;font-size:16px;line-height:1.7}.loading{padding:70px;text-align:center;color:#bbb}.action{border-radius:20px;padding:10px 17px;border:1px solid #494949;background:#272727;font-weight:bold}.action.primary{color:#151515;background:white}.settings-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.setting-card{background:#191919;border:1px solid #343434;border-radius:13px;padding:24px}.setting-card h2{margin:0 0 12px}.setting-card p{line-height:1.6;color:#bbb}.setting-card input{width:100%;background:#121212;padding:13px;border:1px solid #444;border-radius:9px;color:white}.setting-card .actions{display:flex;gap:10px;margin-top:14px}.detail-dialog{background:#151515;color:white;border:1px solid #444;border-radius:16px;width:min(1200px,94vw);max-height:88vh;padding:26px;overflow:auto}.detail-dialog::backdrop{background:#000b}.detail-top{display:flex;align-items:center;justify-content:space-between}.detail-top h2{font-size:25px}.detail-desc{color:var(--sub)}.detail-foot{margin-top:18px;color:var(--sub)}.detail-dialog .grid{grid-template-columns:repeat(3,minmax(0,1fr))}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#303030;box-shadow:0 12px 42px #0009;border-radius:13px;padding:13px 22px;max-width:85vw;z-index:20;color:white;opacity:0;pointer-events:none;transition:opacity .2s}.toast.show{opacity:1}.status-good{color:#6ddea0}.status-bad{color:#ff9d9d}.mode-flag{font-size:12px;background:#3d2b15;color:#e9c288;padding:7px 10px;border-radius:12px;white-space:nowrap}
body.sidebar-compact{--sidebar:80px}body.sidebar-compact .sidebar .nav-item{justify-content:center;gap:0;padding-inline:6px}body.sidebar-compact .sidebar .nav-item>span:last-child,body.sidebar-compact .sidebar-foot{display:none}
@media (min-width:2050px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}.content{padding-inline:45px}}
@media (max-width:1200px){:root{--sidebar:205px;--header:78px}.brand{min-width:220px;font-size:18px}.brand-play{width:47px;height:34px}.sidebar{padding-inline:8px}.nav-item{gap:15px;font-size:15px}.content{padding:14px 17px 60px}.grid{gap:22px 13px}.masthead{padding-inline:15px}.search-form{height:45px}}
@media (max-width:800px){:root{--sidebar:72px;--header:65px}.masthead{gap:8px}.brand{font-size:14px;min-width:145px;gap:6px}.brand-play{width:37px;height:29px;border-radius:8px}.brand-play svg{width:22px}.search-form{width:100%;height:38px}.search-form input{font-size:12px;padding:0 8px}.search-btn{width:36px}.sidebar .nav-item{justify-content:center;gap:0;padding:8px 2px;min-height:56px}.sidebar .nav-item>span:last-child,.sidebar-foot{display:none}.nav-ico{font-size:24px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:12px 12px 60px}.card .meta{gap:7px}.card .mini-avatar{width:27px;height:27px;font-size:14px}.card h3{font-size:12px}.card p{font-size:11px}.section-head h1{font-size:20px}.banner{padding:16px;flex-wrap:wrap}.banner h2{font-size:19px}.banner button{margin-left:0}.settings-grid{grid-template-columns:1fr}.detail-dialog .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:480px){.masthead #refresh,.masthead #burger{display:none}.brand{min-width:113px;font-size:12px}.grid{grid-template-columns:1fr}.search-form{min-width:0}.search-form input{font-size:11px}.card h3{font-size:15px}.card .mini-avatar{width:39px;height:39px}.card p{font-size:13px}.chips{gap:6px}.chip{font-size:13px;padding:9px 12px}}

.demo-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #343434;border-radius:11px;color:#bdbdbd;padding:8px 14px;margin:0 0 18px;font-size:12px}.demo-strip button{border:0;color:#f2f2f2;font-weight:bold;background:#303030;border-radius:20px;padding:7px 14px;white-space:nowrap}.demo-strip button:hover{background:#484848}

/* Trường Nguyễn Music TV V014 · Navy Music default / White optional */
:root{--bg:#071f40;--panel:#0e3259;--hover:#174772;--text:#f4f9ff;--sub:#afc7df;--line:#245077;--red:#02c8ef;--focus:#45e5ff;color-scheme:dark}
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="light"]{--bg:#fff;--panel:#f1f6fd;--hover:#e1eefc;--text:#102d52;--sub:#4e6680;--line:#c9d9e8;--red:#0078c9;--focus:#007cba;color-scheme:light}
html,body,.masthead{background:var(--bg)!important;color:var(--text)!important}
.sidebar{border-right-color:var(--line)!important}.nav-item{color:var(--text)}.nav-item:hover,.nav-item.selected{background:var(--hover)!important}.nav-ico svg{height:25px;width:25px;fill:currentColor;stroke:none}
.brand{min-width:226px;width:226px;height:66px;display:flex;align-items:center;justify-content:flex-start}.tn-brand-logo{width:210px;height:59px;object-fit:contain;background:transparent;border:0;border-radius:0;box-shadow:none;filter:drop-shadow(0 2px 8px #00aaff1a)}
.avatar{padding:0;background:transparent!important;overflow:hidden;border:2px solid #12c9e8}.avatar img{width:100%;height:100%;object-fit:contain}
.icon-button{color:var(--text)!important}.icon-button:hover{background:var(--hover)!important}
.search-form{background:var(--panel)!important;border-color:var(--line)!important}.search-form input{color:var(--text)!important}.search-form input::placeholder{color:var(--sub)!important}.search-btn{background:var(--hover)!important;border-color:var(--line)!important}
.chip,.action,.demo-strip button{background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}.chip:hover,.action:hover{background:var(--hover)!important}.chip.active,.action.primary{background:var(--focus)!important;color:#03264c!important}
.card,.card .texts,.card .meta,.section-head,.section-head h1,.section-sub,.setting-card h2{color:var(--text)}
.card .texts p,.card .meta p,.section-head p,.subtle,.sidebar-foot,.empty,.loading{color:var(--sub)!important}
.banner{background:linear-gradient(110deg,var(--panel),var(--bg))!important;border-color:var(--line)!important;color:var(--text)!important}.banner p{color:var(--sub)!important}.banner button{background:var(--focus)!important;color:#062449!important}
.setting-card{background:var(--panel)!important;border-color:var(--line)!important}.setting-card p{color:var(--sub)!important}.theme-settings{grid-template-columns:minmax(0,880px)}
.theme-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.theme-choice{min-width:0;text-align:left;background:var(--bg);border:2px solid var(--line);border-radius:16px;padding:12px;color:var(--text);display:flex;flex-direction:column;gap:9px}.theme-choice.selected{border-color:#05c7e7;box-shadow:0 0 0 3px #10bfea44}.theme-choice:hover{border-color:#4aadd6}.theme-choice strong{font-size:17px}.theme-choice>small{font-size:13px;color:var(--sub)}.theme-preview{height:125px;border:1px solid #c8d9ed;border-radius:12px;display:flex;flex-direction:column;padding:18px;gap:5px;justify-content:center}.theme-preview-dark{background:#071f40;color:#e6f7ff}.theme-preview-light{background:#fff;color:#0c3155}.theme-preview b{font-size:27px}.theme-preview small{font-size:14px}
.detail-dialog{background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}.toast{background:var(--panel)!important;color:var(--text)!important;border:1px solid var(--line)!important}.demo-strip{border-color:var(--line)!important;color:var(--sub)!important}
html[data-theme="light"] .card .poster{border-color:#dbe4ef}html[data-theme="light"] .mode-flag{background:#fff0d9;color:#724b0c}
@media(max-width:1200px){.brand{min-width:185px;width:185px;height:62px}.tn-brand-logo{width:180px;height:56px}}
@media(max-width:800px){.brand{min-width:125px;width:125px;height:49px}.tn-brand-logo{width:120px;height:44px;border-radius:7px}.theme-choices{grid-template-columns:1fr}}


/* Music Box YouTube V014 – approved YouTube-inspired Navy/Cyan layout */
:root {--bg:#031a35;--panel:#0b315b;--hover:#114c7c;--text:#f3f9ff;--sub:#a8c7e5;--line:#19527b;--focus:#22d7f2;--red:#22d7f2;--sidebar:264px;--header:105px}
html[data-theme="light"]{--bg:#ffffff;--panel:#f1f7ff;--hover:#e2f1ff;--text:#102e55;--sub:#526b87;--line:#c8dff0;--focus:#007db8;--red:#007db8}
html,body{background:var(--bg)!important}
.app{background:var(--bg);position:relative}
.masthead{isolation:isolate;position:relative;overflow:hidden;box-shadow:0 1px 0 var(--line);background:linear-gradient(116deg,#041b36 15%,#052e59 69%,#003966 100%)!important;gap:18px;padding-inline:34px}
.masthead::before,.masthead::after{content:"";pointer-events:none;position:absolute;z-index:-1;border-radius:50%;transform:rotate(-12deg);opacity:.65}
.masthead::before{right:-110px;top:-170px;width:720px;height:300px;background:radial-gradient(ellipse at 70% 73%,transparent 47%,#0879be 48%,transparent 50%,#043867 52%,transparent 60%)}
.masthead::after{right:-120px;top:-158px;width:740px;height:250px;border-bottom:1px solid #0ab9ee80;box-shadow:0 20px 35px -25px #13dbef88;opacity:.72}
html[data-theme="light"] .masthead{background:linear-gradient(118deg,#f9fcff 10%,#eef7ff 65%,#dcedf9 100%)!important}
html[data-theme="light"] .masthead::before,html[data-theme="light"] .masthead::after{opacity:.22}
.brand{min-width:226px;width:226px;height:70px;position:relative;flex:none;display:flex;align-items:center;padding:0;outline-offset:1px}
.tn-brand-logo{position:absolute;inset:auto auto auto 0;width:212px;height:66px;object-fit:contain;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.theme-logo-light{display:none!important}html[data-theme="light"] .theme-logo-light{display:block!important}html[data-theme="light"] .theme-logo-dark{display:none!important}
.search-form{margin-left:10px;margin-right:auto;width:min(800px,48vw);height:58px;background:linear-gradient(98deg,#0b315b,#0b3f6c)!important;border:1px solid #147da8!important;box-shadow:inset 0 1px 0 #3ea5d420;border-radius:33px}
.search-form input{font-size:17px;padding-inline:22px}.search-btn{width:77px;background:#124976!important;border-left:1px solid #24658b!important}.search-btn:hover{background:#1c6493!important}
html[data-theme="light"] .search-form{background:#f7fbff!important;border-color:#b1d1e7!important}html[data-theme="light"] .search-btn{background:#e3f2ff!important;border-left-color:#b1d1e7!important}
.sidebar{padding:24px 14px 18px 16px;background:linear-gradient(180deg,#041b38,#052447);border-right:1px solid #126592!important;scrollbar-color:#286b8d transparent}
html[data-theme="light"] .sidebar{background:linear-gradient(180deg,#f5faff,#eaf4fd);border-right-color:var(--line)!important}
.nav-item{min-height:65px;border-radius:14px;gap:21px;padding:13px 19px;font-size:17px;transition:background .12s,color .12s}
.nav-item.selected{background:linear-gradient(110deg,#07558c,#104b78)!important;border:1px solid #167bb6;color:#fff!important;box-shadow:inset 0 0 0 1px #197aaf25}
.nav-item:hover:not(.selected){background:#0d436e!important}
html[data-theme="light"] .nav-item.selected{background:linear-gradient(110deg,#cdeaff,#b5dbf7)!important;border-color:#76b6e1;color:#0b3058!important}
html[data-theme="light"] .nav-item:hover:not(.selected){background:#dceefb!important}
.nav-divider{background:#197db1;height:1px;margin:14px 5px}.nav-ico{font-size:26px;width:31px}.sidebar-foot{font-size:12px;color:#a4d0e6!important}
html[data-theme="light"] .sidebar-foot{color:var(--sub)!important}
.main{scrollbar-color:#216994 transparent;background:radial-gradient(ellipse at 95% -8%,#09558c30,transparent 53%),var(--bg)}
html[data-theme="light"] .main{background:linear-gradient(#ffffff,#f9fbff)}
.content{padding:22px 35px 100px}.chips{gap:12px;padding:2px 0 29px}.chip{padding:12px 19px;border-radius:13px;font-size:15px;background:#0a3159!important;border:1px solid #194a78!important;box-shadow:0 2px 8px #03162a1a}.chip.active{background:#22d7f2!important;border-color:#22d7f2!important;color:#05223c!important}.chip:hover{background:#18588d!important}
html[data-theme="light"] .chip{background:#eaf5ff!important;color:#153a60!important;border-color:#bbd9ee!important}html[data-theme="light"] .chip.active{background:#0c9bca!important;color:#fff!important}
.section-head{margin:4px 0 25px;align-items:flex-start}.section-head h1{font-size:clamp(23px,2.1vw,30px);letter-spacing:-.5px;font-weight:800}.section-head p{font-size:14px;margin-top:7px;line-height:1.5;color:#abc6df!important}.section-head .right{margin-top:11px;color:#4ddbf1;font-size:12px;letter-spacing:.03em;white-space:nowrap}
html[data-theme="light"] .section-head p{color:var(--sub)!important}html[data-theme="light"] .section-head .right{color:#0078aa}
.grid{column-gap:19px;row-gap:31px}.card .poster{border:1px solid #166099;border-radius:13px;margin-bottom:11px;background:linear-gradient(130deg,#0d365e,#0c4b68);box-shadow:0 5px 15px #0002}.card:hover .poster{border-color:#3bccfa;box-shadow:0 7px 25px #06ace52c}.card:focus-visible .poster{outline:3px solid #4de8ff;outline-offset:3px}
.card .meta{gap:11px}.card .mini-avatar{width:42px;height:42px;background:linear-gradient(140deg,#9963c9,#7251a5);color:#fff}.card h3{font-size:16px;font-weight:750;line-height:1.32}.card p{color:#afc8e0!important;font-size:13.5px}.card .more{color:var(--text)!important}
html[data-theme="light"] .card p{color:#5f7289!important}html[data-theme="light"] .card .poster{border-color:#b4d2e9}
.section-sub{margin-top:42px}.avatar{width:43px;height:43px;border-color:#22d7f2!important;background:#002d57!important}.avatar img{object-fit:contain}.search-form svg,.icon-button svg{stroke-width:2.3}
/* compact sidebar TV navigation */
body.sidebar-compact .nav-item{border-color:transparent}
@media(max-width:1250px){:root{--sidebar:224px;--header:84px}.masthead{gap:12px;padding-inline:15px}.brand{min-width:196px;width:196px;height:62px}.tn-brand-logo{width:188px;height:58px}.search-form{height:47px;width:min(650px,49vw)}.content{padding:20px 22px 70px}.nav-item{min-height:59px;font-size:15px;padding:10px 12px;gap:15px}.sidebar{padding:14px 8px}.chip{padding:10px 14px}}
@media(max-width:800px){:root{--sidebar:75px;--header:65px}.masthead{gap:6px;padding-inline:8px}.brand{min-width:131px;width:131px;height:52px}.tn-brand-logo{width:129px;height:47px}.search-form{margin-left:0;height:38px;width:100%}.search-form input{padding-inline:9px;font-size:12px}.search-btn{width:40px}.sidebar{padding:8px 4px}.nav-item{min-height:55px;justify-content:center;padding:8px 2px}.content{padding:14px 13px 60px}.grid{column-gap:11px;row-gap:20px}.card h3{font-size:12.5px}.card p{font-size:11px}.section-head{gap:6px}.section-head .right{font-size:10px}.theme-choices{grid-template-columns:1fr}}
@media(max-width:480px){.brand{min-width:103px;width:103px}.tn-brand-logo{width:102px}.grid{grid-template-columns:1fr}.search-form{max-width:100%}.chips{padding-bottom:15px}.section-head .right{display:none}}
