/* ==========================================================================
   Giao diện chính — nền tối, lưới thẻ phim, sidebar "Top", trang chi tiết có player.
   Tên lớp mới có tiền tố nc-; phần cuối file giữ vài lớp cũ mà player/theme còn dùng.
   ========================================================================== */

:root {
    --nc-bg: #121212;
    --nc-header: #000;
    --nc-panel: #1a1a1a;
    --nc-panel-2: #232323;
    --nc-line: #2c2c2c;
    --nc-text: #e9e9e9;
    --nc-muted: #9b9b9b;
    --nc-accent: #e0262d;
    --nc-accent-hover: #ff4650;
    --nc-radius: 8px;
    --nc-wrap: 1160px;
    --nc-side: 346px;
    --nc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--nc-bg);
    color: var(--nc-text);
    font: 14px/1.5 var(--nc-font);
    -webkit-font-smoothing: antialiased;
}
body.nc-lock { overflow: hidden; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--nc-accent-hover); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.3; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--nc-accent); outline-offset: 2px; }

.nc-wrap { max-width: var(--nc-wrap); margin: 0 auto; padding: 0 16px; }
.nc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.clearfix, .clear { clear: both; }

/* ---------- Header ---------- */

.nc-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nc-header);
    border-top: 3px solid #2b2b2b;
    box-shadow: 0 1px 0 #1b1b1b;
}
.nc-header__bar {
    display: flex;
    align-items: center;
    gap: 22px;
    height: 54px;
}
.nc-logo { display: flex; align-items: center; flex: none; }
.nc-logo img { display: block; height: 34px; width: auto; max-width: 190px; object-fit: contain; }
.nc-logo__text { font-size: 24px; font-weight: 800; letter-spacing: -.5px; color: var(--nc-accent); text-transform: uppercase; }

.nc-nav { flex: 1; min-width: 0; }
.nc-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.nc-menu li { position: relative; }
.nc-menu a {
    display: block;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
    color: #dcdcdc;
    border-radius: 4px;
}
.nc-menu a:hover,
.nc-menu .current-menu-item > a,
.nc-menu .current-menu-ancestor > a,
.nc-menu .current_page_item > a { color: #fff; background: #1c1c1c; }
.nc-menu .current-menu-item > a,
.nc-menu .current-menu-ancestor > a { box-shadow: inset 0 -2px 0 var(--nc-accent); border-radius: 4px 4px 0 0; }
.nc-menu .menu-item-has-children > a::after { content: "▾"; margin-left: 5px; font-size: 10px; color: var(--nc-muted); }
.nc-menu .sub-menu {
    display: none;
    position: absolute; top: 100%; left: 0; z-index: 130;
    min-width: 190px; padding: 6px 0;
    background: #0b0b0b; border: 1px solid #222; border-radius: 0 0 6px 6px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .5);
}
.nc-menu li:hover > .sub-menu, .nc-menu li:focus-within > .sub-menu { display: block; }
.nc-menu .sub-menu a { border-radius: 0; box-shadow: none; padding: 9px 16px; }

.nc-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 6px;
    background: #111;
    cursor: pointer;
    flex: none;
}
.nc-icon-btn:hover { background: #1f1f1f; }
.nc-icon-btn svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nc-burger { display: none; }
.nc-search-toggle { margin-left: auto; }

.nc-search {
    display: none;
    background: #0b0b0b;
    border-top: 1px solid #1d1d1d;
}
.nc-search.is-open { display: block; }
.nc-search form { display: flex; gap: 8px; padding: 10px 0; }
.nc-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    background: #151515;
    color: #fff;
    font-size: 14px;
}
.nc-search input[type="search"]::placeholder { color: #777; }
.nc-search button[type="submit"] {
    height: 40px;
    padding: 0 20px;
    border: 0;
    border-radius: 6px;
    background: var(--nc-accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.nc-search button[type="submit"]:hover { background: var(--nc-accent-hover); }

/* Ngăn kéo menu trên điện thoại */
.nc-drawer-bg {
    position: fixed; inset: 0; z-index: 190;
    background: rgba(0, 0, 0, .6);
    opacity: 0; visibility: hidden; transition: opacity .2s;
}
.nc-drawer {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 200;
    width: 270px; max-width: 82vw;
    background: #0d0d0d;
    border-right: 1px solid #1f1f1f;
    transform: translateX(-100%);
    transition: transform .22s ease;
    overflow-y: auto;
    padding: 14px 0 24px;
}
.nc-drawer.is-open { transform: none; }
.nc-drawer.is-open + .nc-drawer-bg, .nc-drawer-bg.is-open { opacity: 1; visibility: visible; }
.nc-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 12px; border-bottom: 1px solid #1f1f1f; }
.nc-drawer .nc-menu { display: block; }
.nc-drawer .nc-menu a { padding: 12px 18px; border-radius: 0; border-bottom: 1px solid #161616; background: none; box-shadow: none; }
.nc-drawer .nc-menu .current-menu-item > a, .nc-drawer .nc-menu .current-menu-ancestor > a { color: var(--nc-accent-hover); }
.nc-drawer .nc-menu .sub-menu { display: block; position: static; min-width: 0; padding: 0 0 0 14px; background: transparent; border: 0; box-shadow: none; }
.nc-drawer .nc-menu .menu-item-has-children > a::after { content: none; }

/* ---------- Bố cục ---------- */

.nc-main-wrap { padding: 28px 0 40px; }
.nc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--nc-side);
    gap: 26px;
    align-items: start;
}
.nc-layout.is-wide { grid-template-columns: minmax(0, 1fr); }
.nc-layout.is-wide .nc-side { display: none; }

.nc-panel {
    background: var(--nc-panel);
    border-radius: var(--nc-radius);
    padding: 12px 10px 16px;
}
.nc-panel + .nc-panel { margin-top: 18px; }
.nc-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px; margin-bottom: 14px; min-height: 28px; }
.nc-panel__title { font-size: 18px; font-weight: 500; color: #fff; }
.nc-panel__desc { margin: -6px 2px 14px; color: var(--nc-muted); font-size: 13px; }
.nc-dots { color: var(--nc-muted); font-size: 18px; letter-spacing: 2px; line-height: 1; }

/* ---------- Thẻ phim ---------- */

.nc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 18px;
}
.nc-card { min-width: 0; }
.nc-card__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 7px;
    overflow: hidden;
    background: linear-gradient(135deg, #262626, #1d1d1d);
}
.nc-card__thumb img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .3s;
}
.nc-card__thumb::after {
    content: "";
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background .2s;
}
.nc-card:hover .nc-card__thumb img { transform: scale(1.05); }
.nc-card:hover .nc-card__thumb::after { background: rgba(0, 0, 0, .22); }
.nc-card__views {
    position: absolute; right: 7px; bottom: 7px; z-index: 2;
    padding: 1px 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .62);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
}
.nc-card__play {
    position: absolute; left: 50%; top: 50%; z-index: 2;
    width: 44px; height: 44px; margin: -22px 0 0 -22px;
    border-radius: 50%;
    background: rgba(224, 38, 45, .92);
    opacity: 0; transform: scale(.8);
    transition: opacity .2s, transform .2s;
}
.nc-card__play::before {
    content: "";
    position: absolute; left: 17px; top: 13px;
    border-left: 14px solid #fff;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
}
.nc-card:hover .nc-card__play { opacity: 1; transform: none; }
.nc-card__title {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #e6e6e6;
}
.nc-card__title a:hover { color: #fff; text-decoration: underline; }
.nc-empty { padding: 40px 10px; text-align: center; color: var(--nc-muted); }

/* ---------- Sidebar ---------- */

.nc-side .nc-panel { padding: 12px 12px 14px; }
.nc-side .nc-panel__title { font-size: 18px; }
.nc-list-icon { width: 22px; height: 22px; stroke: var(--nc-muted); fill: none; stroke-width: 1.8; stroke-linecap: round; }

.nc-top { display: flex; flex-direction: column; gap: 14px; }
.nc-top__item { display: flex; gap: 12px; align-items: flex-start; }
.nc-top__thumb {
    position: relative; flex: none;
    width: 144px; aspect-ratio: 16 / 10;
    border-radius: 5px; overflow: hidden;
    background: linear-gradient(135deg, #262626, #1d1d1d);
}
.nc-top__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nc-top__body { min-width: 0; }
.nc-top__title {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 13px; line-height: 1.5; color: #f0f0f0;
}
.nc-top__title:hover { color: #fff; text-decoration: underline; }
.nc-top__view { margin-top: 3px; font-size: 12px; color: var(--nc-muted); }

/* ---------- Từ khóa ---------- */

.nc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.nc-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px 4px 8px;
    border-radius: 4px;
    background: #202020;
    color: #e2e2e2;
    font-size: 12px;
    line-height: 20px;
    white-space: nowrap;
}
.nc-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #cfcfcf; }
.nc-tag:hover { background: #2b2b2b; color: #fff; }
.nc-tag-panel { margin-top: 18px; }
.nc-about { margin-top: 18px; padding: 14px 16px; border-radius: var(--nc-radius); background: #181818; color: #bdbdbd; font-size: 14px; line-height: 1.7; }
.nc-brand-text { color: var(--nc-accent); }

/* ---------- Phân trang (Bootstrap .pagination) ---------- */

.nc-pager { margin-top: 22px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0; list-style: none; }
.pagination .page-link {
    display: block; min-width: 38px; padding: 7px 12px;
    border: 0; border-radius: 6px;
    background: #232323; color: #d8d8d8;
    font-size: 14px; text-align: center;
}
.pagination .page-link:hover { background: #303030; color: #fff; }
.pagination .active .page-link { background: var(--nc-accent); color: #fff; }
.pagination .disabled .page-link { background: transparent; color: #666; }

/* ---------- Tiêu đề trang lưu trữ ---------- */

.nc-archive-title { font-size: 22px; font-weight: 600; color: #fff; }
.nc-archive-sub { margin-top: 4px; color: var(--nc-muted); font-size: 13px; }
.nc-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--nc-muted); }
.nc-crumbs a:hover { color: #fff; }
.nc-crumbs span + span::before { content: "›"; margin-right: 6px; color: #555; }

/* ---------- Trang chi tiết / xem phim ---------- */

.nc-titlebar { padding: 4px 4px 12px; border-bottom: 1px solid var(--nc-line); margin-bottom: 14px; }
.nc-titlebar .video-title { font-size: 20px; font-weight: 500; color: #fff; }

.nc-adslot { display: flex; justify-content: center; background: #000; margin: 0; }
.nc-adslot:empty { display: none; }
.nc-adslot img { max-width: 100%; height: auto; display: block; }

.watch-block-player { background: #000; }
.player-area {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.loading-relative { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 5; pointer-events: none; }
.loading-relative .loading { display: flex; gap: 6px; }
.loading-relative .loading > div { width: 10px; height: 10px; border-radius: 50%; background: var(--nc-accent); animation: nc-bounce 1s infinite ease-in-out both; }
.loading-relative .loading .span2 { animation-delay: .15s; }
.loading-relative .loading .span3 { animation-delay: .3s; }
@keyframes nc-bounce { 0%, 80%, 100% { transform: scale(.4); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

.watch-tvc-area .btn-close-tvc {
    border: 0; border-radius: 4px; padding: 6px 12px;
    background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; cursor: pointer;
}

.underplayer-ads { margin: 10px 0; text-align: center; }
.underplayer-ads:empty { display: none; }

/* Thanh công cụ dưới player: server, media, zoom, lượt xem */
.nc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 14px; }
.nc-actions .watch-block-bottom { display: contents; }
.film-servers { display: contents; }
.list_link { display: contents; }
.pu-link { display: inline-flex; }
.pu-link .btn-play, .nc-btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 30px; padding: 0 11px;
    border: 0; border-radius: 4px;
    background: #2a2a2a; color: #eaeaea;
    font-size: 13px; line-height: 30px; cursor: pointer;
    white-space: nowrap;
}
.pu-link .btn-play:hover, .nc-btn:hover { background: #363636; color: #fff; }
.pu-link.active .btn-play { background: var(--nc-accent); color: #fff; }
.pu-link .btn-play i, .nc-btn i { font-size: 13px; }
.nc-actions .sv-name:empty { display: none; }
.nc-actions__spacer { flex: 1; }
.watch-block-right { margin-left: auto; }
.block-view { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 4px; background: #232323; color: #d6d6d6; font-size: 13px; }
.block-view svg { width: 17px; height: 17px; }
.block-view svg path { fill: #d6d6d6; }

.nc-notice { padding: 10px 12px; border-radius: 4px; background: #262626; color: #cfcfcf; font-size: 13px; }
.nc-notice a { color: var(--nc-accent-hover); font-weight: 600; }
.nc-notice:empty { display: none; }

.video-intro { margin-top: 14px; }
.video-intro .about { color: #d5d5d5; font-size: 13.5px; line-height: 1.65; margin-bottom: 12px; }
.video-intro .about span { display: block; }
.video-intro .about p { margin: 0 0 8px; }
.nc-meta { margin: 6px 0; font-size: 13.5px; color: #cfcfcf; }
.nc-meta .if-head { color: var(--nc-muted); font-weight: 600; margin-right: 4px; }
.nc-meta a { color: #fff; font-weight: 500; }
.nc-meta a:hover { color: var(--nc-accent-hover); }
.nc-meta .actor-avatar-img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; margin-right: 4px; vertical-align: middle; }
.nc-meta .actor-link-with-avatar { display: inline-flex; align-items: center; margin-right: 8px; }
.nc-meta .keywords a, .detail-keywords a { display: inline-block; margin: 0 6px 6px 0; padding: 2px 10px; border-radius: 4px; background: #202020; font-size: 12px; font-weight: 400; color: #ddd; }

.nc-section-title { margin: 28px 0 14px; font-size: 22px; font-weight: 700; color: #cfcfcf; }
.nc-section-title:first-child { margin-top: 0; }

/* Chế độ Zoom+: player rộng hết khung, sidebar xuống dưới */
.nc-layout.is-zoom { grid-template-columns: minmax(0, 1fr); }

/* Album ảnh preview + lightbox */
.film-preview-album { margin: 12px 0; padding: 10px; border-radius: 6px; background: #1e1e1e; }
.film-preview-album[hidden], .film-preview-lightbox[hidden] { display: none !important; }
.film-preview-hint { margin: 0 0 8px; color: var(--nc-muted); font-size: 12px; }
.film-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.film-preview-thumb { padding: 0; border: 0; border-radius: 5px; overflow: hidden; background: #111; cursor: pointer; aspect-ratio: 16 / 10; }
.film-preview-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-preview-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.film-lb-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .88); }
.film-lb-inner { position: relative; max-width: 92vw; max-height: 90vh; }
.film-lb-inner img { max-width: 92vw; max-height: 88vh; display: block; border-radius: 6px; }
.film-lb-close, .film-lb-prev, .film-lb-next {
    position: absolute; z-index: 2; border: 0; cursor: pointer;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(0, 0, 0, .65); color: #fff; font-size: 24px; line-height: 40px;
}
.film-lb-close { top: -14px; right: -14px; }
.film-lb-prev { left: -14px; top: 50%; margin-top: -20px; }
.film-lb-next { right: -14px; top: 50%; margin-top: -20px; }

/* ---------- Trang tĩnh / 404 / diễn viên ---------- */

.nc-article { color: #d8d8d8; line-height: 1.75; }
.nc-article h1 { font-size: 24px; color: #fff; margin-bottom: 14px; }
.nc-article h2, .nc-article h3 { color: #fff; margin: 18px 0 8px; }
.nc-article a { color: var(--nc-accent-hover); }
.nc-article p { margin: 0 0 12px; }

.nc-404 { text-align: center; padding: 50px 10px; }
.nc-404 img { max-width: 420px; width: 100%; opacity: .95; }
.nc-404 h1 { margin: 18px 0 8px; font-size: 24px; color: #fff; }
.nc-404 p { color: var(--nc-muted); max-width: 560px; margin: 0 auto 16px; }
.nc-btn-accent { display: inline-block; padding: 9px 22px; border-radius: 6px; background: var(--nc-accent); color: #fff; font-weight: 600; }
.nc-btn-accent:hover { background: var(--nc-accent-hover); color: #fff; }

.actors-sort-form { display: flex; gap: 8px; align-items: center; }
.actors-sort-form select { height: 34px; padding: 0 10px; border: 1px solid #2f2f2f; border-radius: 6px; background: #151515; color: #fff; }
.actors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.actor-card { text-align: center; }
.actor-thumb { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #262626; margin: 0 auto 8px; max-width: 120px; }
.actor-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.actor-name { display: block; color: #fff; font-weight: 500; }
.actor-meta, .actor-count { color: var(--nc-muted); font-size: 12px; }

/* ---------- Footer ---------- */

.nc-footer { margin-top: 10px; background: #0a0a0a; border-top: 1px solid #1c1c1c; padding: 22px 0 30px; color: var(--nc-muted); font-size: 13px; }
.nc-footer__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nc-footer ul { display: flex; flex-wrap: wrap; gap: 16px; }
.nc-footer a:hover { color: #fff; }
#footer { background: transparent; padding: 0; }
/* .nc-wrap đã có lề 16px: bỏ lề của .container bên trong để logo / nút sát đúng mép nội dung như header */
#footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: none; padding: 0; }
#footer .container > .clearfix { display: none; } /* phần tử rỗng làm space-between đẩy menu ra giữa */
#footer .footer-logo { flex: 0 0 auto; }
#footer .footer-logo img { max-height: 32px; width: auto; }
#footer .footer-logo .clearfix { display: none; }
#footer .footer-links { display: flex; align-items: center; gap: 14px; margin-left: auto; }
#footer .footer-links ul { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; list-style: none; float: none; }
#footer a { color: #bcbcbc; }
#footer a:hover { color: #fff; }
/* Nút lên đầu trang trong widget footer dùng class Bootstrap (xanh + chữ đen): đồng bộ màu với theme */
#footer .footer-links #back-to-top {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 38px; height: 38px; margin: 0 0 0 14px !important; padding: 0; float: none;
    border: 0; border-radius: 50%; background: var(--nc-accent); color: #fff !important;
    transition: background .2s;
}
#footer .footer-links #back-to-top:hover { background: var(--nc-accent-hover); color: #fff !important; }
#footer .footer-links #back-to-top i { color: #fff; font-size: 15px; line-height: 1; }
.nc-top-btn {
    position: fixed; right: 16px; bottom: 18px; z-index: 90;
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: var(--nc-accent); color: #fff; cursor: pointer;
    opacity: 0; visibility: hidden; transition: opacity .25s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}
.nc-top-btn.is-show { opacity: 1; visibility: visible; }
.nc-top-btn svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tương thích với trang xem tập (episode.php) cũ ---------- */

.container { max-width: var(--nc-wrap); margin: 0 auto; padding: 0 16px; }
.left-content { min-width: 0; }
.right-content { margin-top: 20px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; margin: 0; list-style: none; color: var(--nc-muted); }
.list-films ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pre-pagination { margin-top: 22px; }
.lzl { background: #222; }

/* ---------- Responsive ---------- */

@media (max-width: 1060px) {
    .nc-layout { grid-template-columns: minmax(0, 1fr); }
    .nc-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
    .nc-side .nc-panel + .nc-panel { margin-top: 0; }
}

@media (max-width: 900px) {
    .nc-nav { display: none; }
    .nc-burger { display: inline-flex; }
    .nc-header__bar { gap: 12px; }
    .nc-logo { margin-right: auto; }
    .nc-search-toggle { margin-left: 0; }
}

@media (max-width: 720px) {
    .nc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
    .nc-side { grid-template-columns: minmax(0, 1fr); }
    .nc-main-wrap { padding-top: 16px; }
    .nc-titlebar .video-title { font-size: 17px; }
    .nc-panel { padding: 10px 8px 14px; }
    .nc-top__thumb { width: 124px; }
    .list-films ul { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
    .nc-card__title { font-size: 13px; }
    .nc-card__views { font-size: 10px; right: 5px; bottom: 5px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* Widget trên trang chủ / sidebar */
.nc-more { font-size: 13px; color: var(--nc-muted); }
.nc-more:hover { color: #fff; }
.nc-main > .nc-panel + .nc-panel { margin-top: 18px; }
.nc-side > .nc-panel + .nc-panel { margin-top: 18px; }
