* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #f8fafc;
    background: #020617;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

img {
    display: block;
    max-width: 100%;
    color: transparent;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.36);
    backdrop-filter: blur(16px);
}

.header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 25%, #ffffff 0 7%, transparent 8%), linear-gradient(135deg, #38bdf8, #2563eb 54%, #7c3aed);
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.28);
    position: relative;
}

.brand-icon::after {
    content: "";
    position: absolute;
    inset: 11px 9px 10px 13px;
    background: #ffffff;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    opacity: 0.9;
}

.brand-icon.small {
    width: 28px;
    height: 28px;
    border-radius: 10px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong,
.footer-brand strong {
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-text em {
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
    margin-top: 3px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link {
    color: #cbd5e1;
    padding: 10px 13px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(14, 165, 233, 0.18);
}

.header-search {
    width: 300px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.72);
    border-radius: 999px;
}

.header-search input,
.mobile-search input,
.filter-input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
}

.header-search input {
    padding: 8px 10px 8px 14px;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.filter-input::placeholder {
    color: #64748b;
}

.header-search button,
.mobile-search button {
    border: 0;
    color: #ffffff;
    background: #0ea5e9;
    padding: 8px 15px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover {
    background: #38bdf8;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: #e2e8f0;
    border-radius: 2px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    padding: 12px 16px 18px;
    background: rgba(15, 23, 42, 0.98);
}

.mobile-panel.open {
    display: block;
}

.mobile-link {
    display: block;
    color: #cbd5e1;
    padding: 11px 4px;
}

.mobile-link.active,
.mobile-link:hover {
    color: #38bdf8;
}

.sub-link {
    padding-left: 16px;
    color: #94a3b8;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.5);
}

.hero {
    position: relative;
    height: clamp(520px, 70vh, 680px);
    overflow: hidden;
    background: #0f172a;
}

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

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.76) 38%, rgba(15, 23, 42, 0.26) 70%), linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.1) 44%, rgba(2, 6, 23, 0.16) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 52px;
}

.hero-badge,
.section-kicker,
.page-hero-inner span {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 25px rgba(14, 165, 233, 0.24);
}

.hero-content h1 {
    max-width: 760px;
    margin: 22px 0 16px;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 660px;
    margin: 0 0 22px;
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #cbd5e1;
}

.hero-meta span,
.detail-meta span {
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.5);
    border-radius: 999px;
    padding: 7px 12px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.primary-button {
    color: #020617;
    background: #ffffff;
}

.primary-button:hover {
    color: #ffffff;
    background: #0ea5e9;
    transform: translateY(-2px);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    border-color: #38bdf8;
    background: rgba(14, 165, 233, 0.2);
    transform: translateY(-2px);
}

.small-button {
    min-height: 38px;
    padding: 0 16px;
    font-size: 14px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.4);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(14, 165, 233, 0.5);
    transform: translateY(-50%) scale(1.04);
}

.hero-arrow.prev {
    left: 22px;
}

.hero-arrow.next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 32px;
    z-index: 5;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: #ffffff;
}

.section {
    padding: 72px 0;
    background: linear-gradient(180deg, #020617, #0f172a);
}

.alt-section {
    background: linear-gradient(180deg, #0f172a, #111827);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-head.compact {
    margin-bottom: 18px;
}

.section-head h2,
.page-hero h1,
.content-block h2,
.category-overview-card h2 {
    margin: 8px 0 0;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-kicker {
    padding: 5px 10px;
    font-size: 12px;
}

.more-link {
    color: #38bdf8;
    font-weight: 700;
}

.more-link:hover {
    color: #7dd3fc;
}

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

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

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

.catalog-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.88);
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.26);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border 0.24s ease;
}

.movie-card:hover {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 24px 54px rgba(14, 165, 233, 0.2);
    transform: translateY(-5px);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #1e293b);
}

.movie-card.large .poster-wrap {
    aspect-ratio: 16 / 10;
}

.movie-card.small .poster-wrap {
    aspect-ratio: 3 / 4;
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.52s ease;
}

.movie-card:hover .poster-wrap img {
    transform: scale(1.08);
}

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.8), rgba(2, 6, 23, 0.08) 56%, rgba(2, 6, 23, 0));
    opacity: 0;
    transition: opacity 0.22s ease;
}

.movie-card:hover .poster-wrap::after {
    opacity: 1;
}

.category-label,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    backdrop-filter: blur(8px);
}

.rank-badge {
    left: 10px;
    right: auto;
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #020617;
    background: #ffffff;
    font-weight: 900;
}

.play-mark {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    backdrop-filter: blur(8px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.card-content {
    padding: 15px;
}

.card-content h3 {
    margin: 0 0 8px;
    min-height: 46px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.4;
}

.card-content h3 a:hover {
    color: #38bdf8;
}

.card-content p {
    margin: 0 0 12px;
    min-height: 44px;
    color: #94a3b8;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    justify-content: space-between;
    gap: 6px;
    color: #64748b;
    font-size: 12px;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span,
.detail-tags span {
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
}

.category-section {
    background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.12), transparent 34%), linear-gradient(180deg, #020617, #0f172a);
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.28);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.44s ease;
}

.category-tile span {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.2));
}

.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 2;
}

.category-tile strong {
    color: #ffffff;
    font-size: 22px;
}

.category-tile em {
    color: #cbd5e1;
    font-size: 13px;
    font-style: normal;
    margin-top: 6px;
}

.category-tile:hover img {
    transform: scale(1.1);
}

.page-hero {
    padding: 82px 0 62px;
    background: radial-gradient(circle at 20% 15%, rgba(14, 165, 233, 0.22), transparent 32%), linear-gradient(135deg, #020617, #111827 55%, #0f172a);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.page-hero-inner p {
    max-width: 720px;
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 18px;
}

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

.category-overview-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    padding: 24px;
    background: rgba(15, 23, 42, 0.86);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.26);
}

.category-overview-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.category-overview-head span {
    color: #38bdf8;
    font-size: 13px;
    font-weight: 800;
}

.category-overview-head p {
    margin: 12px 0 0;
    color: #94a3b8;
}

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

.compact-card {
    display: grid;
    grid-template-columns: auto 54px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: background 0.2s ease, border 0.2s ease;
}

.compact-card:hover {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(56, 189, 248, 0.32);
}

.compact-card.no-rank {
    grid-template-columns: 54px 1fr;
}

.compact-card img {
    width: 54px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

.compact-card span:last-child {
    min-width: 0;
}

.compact-card strong,
.compact-card em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-card strong {
    color: #ffffff;
}

.compact-card em {
    color: #94a3b8;
    font-size: 13px;
    font-style: normal;
}

.compact-rank {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #020617;
    background: #ffffff;
    font-weight: 900;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 16px;
    margin-bottom: 26px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
}

.filter-input {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-button {
    min-height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(2, 6, 23, 0.44);
    padding: 0 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.46);
    background: rgba(14, 165, 233, 0.24);
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 46px 0 70px;
    background: #020617;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.26;
    filter: blur(12px);
    transform: scale(1.05);
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.86)), linear-gradient(0deg, #020617, transparent 42%);
}

.detail-shell {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #94a3b8;
    margin-bottom: 28px;
}

.breadcrumb a:hover {
    color: #38bdf8;
}

.breadcrumb strong {
    color: #e2e8f0;
    font-weight: 600;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-cover {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-info h1 {
    max-width: 850px;
    margin: 18px 0 14px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 840px;
    margin: 0 0 20px;
    color: #cbd5e1;
    font-size: 18px;
}

.detail-tags {
    margin: 18px 0 28px;
}

.player-section {
    padding-top: 54px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background: radial-gradient(circle at center, #1e293b, #020617 65%);
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.38);
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.movie-player {
    display: block;
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: contain;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.18), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-start span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #020617;
    font-size: 32px;
    box-shadow: 0 18px 50px rgba(255, 255, 255, 0.16);
}

.player-start strong {
    font-size: 18px;
}

.player-frame.is-playing .player-start {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.article-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.content-block {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    padding: 26px;
    background: rgba(15, 23, 42, 0.72);
}

.content-block p {
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 16px;
}

.site-footer {
    background: #020617;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
    padding: 46px 0 34px;
}

.footer-grid p {
    max-width: 430px;
    color: #94a3b8;
}

.footer-grid h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 17px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-links a {
    color: #94a3b8;
    font-size: 14px;
}

.footer-links a:hover {
    color: #38bdf8;
}

.footer-bottom {
    padding: 18px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: #64748b;
    text-align: center;
    font-size: 14px;
}

[data-card].hidden {
    display: none !important;
}

@media (max-width: 1080px) {
    .header-search {
        width: 240px;
    }

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

    .movie-grid,
    .mosaic-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero {
        height: 580px;
    }

    .hero-overlay {
        background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.82) 46%, rgba(2, 6, 23, 0.25));
    }

    .hero-content {
        justify-content: end;
        padding-bottom: 88px;
    }

    .hero-arrow {
        display: none;
    }

    .movie-grid,
    .small-grid,
    .hot-grid,
    .catalog-grid,
    .mosaic-grid,
    .category-grid,
    .category-overview-grid,
    .rank-list,
    .article-layout,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

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

    .brand-text em {
        display: none;
    }

    .hero {
        height: 620px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-meta span,
    .detail-meta span {
        padding: 5px 9px;
        font-size: 13px;
    }

    .section {
        padding: 50px 0;
    }

    .section-head,
    .category-overview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .small-grid,
    .hot-grid,
    .catalog-grid,
    .mosaic-grid,
    .category-grid,
    .category-overview-grid,
    .rank-list,
    .article-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-cover {
        max-width: 260px;
    }

    .player-frame {
        border-radius: 16px;
    }

    .compact-card {
        grid-template-columns: auto 50px 1fr;
    }
}
