* {
    box-sizing: border-box;
}

:root {
    --bg: #030712;
    --bg-soft: #08111f;
    --panel: #111827;
    --panel-soft: rgba(17, 24, 39, 0.72);
    --panel-deep: rgba(3, 7, 18, 0.92);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f9fafb;
    --muted: #9ca3af;
    --muted-2: #6b7280;
    --amber: #f59e0b;
    --amber-2: #fbbf24;
    --amber-deep: #d97706;
    --danger: #ef4444;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.13), transparent 32rem),
        linear-gradient(180deg, #030712 0%, #0b1120 48%, #030712 100%);
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

img,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-icon,
.footer-logo span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--amber-deep));
    box-shadow: 0 0 32px rgba(245, 158, 11, 0.35);
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-text em {
    margin-top: 3px;
    font-size: 12px;
    color: var(--muted);
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link,
.header-search,
.mobile-nav a,
.mobile-category-row a {
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 14px;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: rgba(245, 158, 11, 0.18);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search {
    padding: 10px 14px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.95);
}

.header-search:hover {
    background: var(--amber-deep);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    color: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.88);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 18px;
    border-top: 1px solid var(--line);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    color: #d1d5db;
    font-weight: 700;
}

.mobile-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.mobile-category-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.mobile-category-row a {
    text-align: center;
    background: rgba(245, 158, 11, 0.12);
}

.main-wrap,
.section,
.page-hero,
.filter-panel,
.detail-wrap {
    width: min(1180px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.hero {
    position: relative;
    min-height: 650px;
    margin-bottom: 64px;
    overflow: hidden;
    background: #020617;
}

.hero-track,
.hero-slide,
.hero-backdrop {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.85s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-backdrop::after,
.hero-backdrop::before {
    position: absolute;
    inset: 0;
    content: "";
}

.hero-backdrop::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 43%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-backdrop::before {
    z-index: 1;
    background: linear-gradient(0deg, #030712 0%, transparent 42%, rgba(3, 7, 18, 0.24) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 42px;
    padding-top: 42px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 12px;
    color: var(--amber-2);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.13);
    font-size: 14px;
    font-weight: 800;
}

.hero h1,
.hero h2 {
    max-width: 760px;
    margin: 0 0 20px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 24px;
    color: #d1d5db;
    font-size: clamp(16px, 2.2vw, 20px);
    line-height: 1.8;
}

.hero-meta,
.detail-tags,
.card-tags,
.category-cloud,
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta {
    margin-bottom: 28px;
}

.type-pill,
.hero-meta span,
.detail-tags span,
.card-tags span,
.category-cloud a,
.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    color: #ffffff;
    border-radius: 10px;
    background: rgba(31, 41, 55, 0.82);
    font-size: 12px;
    font-weight: 800;
}

.type-pill,
.hero-meta span:first-child,
.filter-chip.is-selected {
    background: linear-gradient(135deg, var(--amber), var(--amber-deep));
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.btn-primary,
.btn-secondary,
.section-more,
.category-card a,
.rank-more,
.player-side a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.btn-primary,
.section-more,
.category-card a,
.rank-more {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--amber-deep));
}

.btn-secondary {
    color: #ffffff;
    border: 1px solid var(--line);
    background: rgba(17, 24, 39, 0.72);
}

.btn-primary:hover,
.btn-secondary:hover,
.section-more:hover,
.category-card a:hover,
.rank-more:hover,
.player-side a:hover {
    transform: translateY(-2px);
}

.hero-search {
    display: flex;
    width: min(600px, 100%);
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(3, 7, 18, 0.68);
    backdrop-filter: blur(12px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    color: #ffffff;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 14px;
}

.hero-search button {
    color: #ffffff;
    border: 0;
    border-radius: 14px;
    background: var(--amber);
    padding: 10px 16px;
    font-weight: 800;
}

.hero-panel {
    position: relative;
    padding: 18px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 28px;
    background: rgba(3, 7, 18, 0.56);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 20px;
}

.hero-panel strong {
    display: block;
    margin-top: 16px;
    font-size: 22px;
}

.hero-panel em {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-style: normal;
}

.hero-controls {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-btn,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(12px);
}

.hero-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 24px;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px;
    border-radius: 999px;
    background: rgba(3, 7, 18, 0.56);
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 30px;
    background: var(--amber);
}

.section {
    margin-bottom: 72px;
}

.section-heading,
.filter-title,
.page-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading h2,
.filter-title h2,
.page-hero h1,
.detail-main h1,
.search-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.search-title p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.poster-row {
    display: flex;
    gap: 18px;
    margin: 0 -16px;
    padding: 4px 16px 18px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.poster-row .poster-card {
    width: 224px;
    flex: 0 0 224px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.video-grid.large-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.video-grid.compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.poster-card,
.wide-card,
.compact-card,
.category-card,
.rank-card,
.info-card,
.filter-panel,
.page-hero,
.detail-panel,
.player-side,
.content-box {
    border: 1px solid var(--line);
    background: var(--panel-soft);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.poster-card,
.wide-card,
.compact-card {
    overflow: hidden;
    border-radius: 18px;
    transition: transform 0.24s ease, border 0.24s ease, background 0.24s ease;
}

.poster-card:hover,
.wide-card:hover,
.compact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(17, 24, 39, 0.95);
}

.poster-card a,
.wide-card a,
.compact-card a {
    display: block;
    height: 100%;
}

.poster-image,
.wide-image,
.compact-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster-image {
    aspect-ratio: 3 / 4;
}

.poster-image img,
.wide-image img,
.compact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.poster-card:hover img,
.wide-card:hover img,
.compact-card:hover img {
    transform: scale(1.08);
}

.card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.86) 100%);
}

.rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 5px 8px;
    color: var(--amber-2);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.card-play,
.mini-play {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.92);
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.card-play {
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    transform: translate(-50%, -50%) scale(0.86);
}

.poster-card:hover .card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.poster-info {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.poster-info strong,
.wide-content strong,
.compact-content strong {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.35;
}

.poster-info em,
.wide-content em,
.compact-content em {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
    font-style: normal;
}

.poster-info small,
.wide-content small,
.compact-content small {
    color: var(--muted-2);
}

.wide-card a {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 18px;
    padding: 14px;
}

.wide-image {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
}

.wide-content,
.compact-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
}

.compact-card a {
    display: grid;
    grid-template-columns: 122px 1fr;
    gap: 12px;
    padding: 12px;
}

.compact-thumb {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
}

.compact-card:hover .mini-play {
    opacity: 1;
    transform: scale(1);
}

.mini-play {
    top: calc(50% - 16px);
    left: calc(50% - 16px);
    width: 32px;
    height: 32px;
}

.page-hero {
    margin-top: 34px;
    margin-bottom: 34px;
    padding: clamp(28px, 5vw, 52px);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 28rem),
        rgba(17, 24, 39, 0.62);
}

.page-hero h1 {
    max-width: 760px;
}

.page-hero p {
    max-width: 800px;
}

.category-cloud {
    margin-top: 24px;
}

.category-cloud a {
    color: #e5e7eb;
    border: 1px solid var(--line);
}

.category-cloud a:hover {
    color: #ffffff;
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.16);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 14rem),
        var(--panel-soft);
}

.category-card strong {
    font-size: 24px;
}

.category-card p {
    color: var(--muted);
    line-height: 1.7;
}

.filter-panel {
    margin-top: 26px;
    margin-bottom: 34px;
    padding: 22px;
    border-radius: 22px;
}

.filter-title {
    margin-bottom: 18px;
}

.filter-title a {
    color: var(--amber-2);
    font-weight: 800;
}

.filter-input {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.filter-input input {
    width: 100%;
    height: 48px;
    color: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    background: rgba(3, 7, 18, 0.52);
    padding: 0 15px;
}

.filter-chip {
    border: 1px solid var(--line);
    color: #e5e7eb;
    background: rgba(31, 41, 55, 0.68);
}

.filter-chip:hover {
    border-color: rgba(245, 158, 11, 0.5);
}

.filter-item.is-hidden {
    display: none;
}

.rank-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 22px;
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-card a {
    display: grid;
    grid-template-columns: 54px 96px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
}

.rank-number {
    font-size: 24px;
    font-weight: 900;
    color: var(--amber-2);
    text-align: center;
}

.rank-poster {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
}

.rank-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info strong {
    display: block;
    margin-bottom: 5px;
    font-size: 17px;
}

.rank-info em {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
}

.rank-score {
    color: var(--amber-2);
    font-weight: 900;
}

.info-card {
    padding: 24px;
    border-radius: 22px;
}

.info-card h3 {
    margin: 0 0 14px;
    font-size: 24px;
}

.info-card p,
.info-card li {
    color: var(--muted);
    line-height: 1.8;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: #d1d5db;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.72);
    font-weight: 800;
}

.pagination a:hover,
.pagination a.is-current {
    color: #ffffff;
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.22);
}

.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--amber-2);
}

.detail-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    margin-bottom: 72px;
}

.detail-main {
    min-width: 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 24px;
    background: #000000;
    box-shadow: var(--shadow);
}

.player-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    border: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.82)),
        rgba(0, 0, 0, 0.34);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-cover span {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--amber-deep));
    box-shadow: 0 0 38px rgba(245, 158, 11, 0.42);
    font-size: 34px;
}

.player-cover strong {
    font-size: 20px;
}

.player-error {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 5;
    display: none;
    max-width: 80%;
    padding: 10px 12px;
    color: #ffffff;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.9);
    font-size: 14px;
}

.player-error.is-visible {
    display: block;
}

.detail-panel,
.content-box,
.player-side {
    border-radius: 22px;
    padding: 24px;
}

.detail-panel {
    margin-top: 24px;
}

.detail-panel h1 {
    margin-bottom: 12px;
}

.detail-panel .lead {
    color: #d1d5db;
    font-size: 18px;
    line-height: 1.8;
}

.detail-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.fact {
    padding: 16px;
    border-radius: 16px;
    background: rgba(31, 41, 55, 0.72);
}

.fact span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 5px;
}

.fact strong {
    color: #ffffff;
    font-size: 18px;
}

.content-box {
    margin-top: 20px;
}

.content-box h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.content-box p {
    color: #d1d5db;
    line-height: 1.9;
    font-size: 16px;
}

.player-side {
    position: sticky;
    top: 92px;
    height: fit-content;
}

.side-poster {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 3 / 4;
    margin-bottom: 18px;
}

.side-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meta-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.meta-list div {
    display: grid;
    gap: 4px;
}

.meta-list dt {
    color: var(--muted);
    font-size: 13px;
}

.meta-list dd {
    margin: 0;
    color: #ffffff;
    font-weight: 800;
}

.related-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 72px;
}

.search-title {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 20px;
}

.search-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 72px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(3, 7, 18, 0.92);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 34px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-logo strong {
    font-size: 20px;
}

.site-footer h3 {
    margin: 0 0 14px;
    font-size: 16px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: var(--muted);
    line-height: 1.8;
}

.site-footer ul {
    list-style: none;
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
}

.site-footer a:hover {
    color: var(--amber-2);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 30px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

@media (max-width: 1080px) {
    .video-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .video-grid.large-grid,
    .video-grid.compact-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-content,
    .detail-wrap,
    .rank-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        display: none;
    }

    .player-side {
        position: static;
    }
}

@media (max-width: 820px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav.is-open {
        display: block;
    }

    .hero,
    .hero-content {
        min-height: 610px;
    }

    .hero-content {
        padding-top: 34px;
        align-items: end;
        padding-bottom: 92px;
    }

    .hero-controls {
        right: 16px;
        bottom: 20px;
        left: 16px;
        justify-content: center;
    }

    .section-heading,
    .filter-title,
    .page-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .video-grid,
    .video-grid.large-grid,
    .video-grid.compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .rank-card a {
        grid-template-columns: 42px 80px 1fr;
    }

    .rank-score {
        grid-column: 3;
    }
}

@media (max-width: 560px) {
    .header-inner {
        width: min(100% - 24px, 1180px);
    }

    .brand-icon {
        width: 34px;
        height: 34px;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-text em {
        display: none;
    }

    .hero-search {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .hero-search input {
        min-height: 42px;
    }

    .video-grid,
    .video-grid.large-grid,
    .video-grid.compact-grid,
    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .poster-info {
        padding: 12px;
    }

    .poster-info em {
        display: none;
    }

    .wide-card a,
    .compact-card a {
        grid-template-columns: 1fr;
    }

    .compact-thumb,
    .wide-image {
        aspect-ratio: 16 / 9;
    }

    .page-hero,
    .filter-panel,
    .detail-panel,
    .content-box,
    .player-side {
        padding: 18px;
        border-radius: 18px;
    }

    .detail-facts {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}
