:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.92);
    --border: rgba(148, 163, 184, 0.18);
    --border-hot: rgba(34, 211, 238, 0.45);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --orange: #f97316;
    --red: #ef4444;
    --shadow: 0 24px 70px rgba(2, 6, 23, 0.58);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 34rem),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.12), transparent 30rem),
        linear-gradient(135deg, #020617 0%, #0f172a 42%, #020617 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    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 var(--border);
    box-shadow: 0 16px 50px rgba(2, 6, 23, 0.42);
    backdrop-filter: blur(16px);
}

.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 {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 14px 32px rgba(34, 211, 238, 0.28);
    transition: transform 0.28s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-4deg);
}

.brand-text strong {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    color: transparent;
}

.brand-text small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

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

.nav-link,
.mobile-nav-link {
    color: var(--soft);
    border-radius: 12px;
    font-weight: 650;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link {
    padding: 10px 13px;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #ffffff;
    background: rgba(51, 65, 85, 0.62);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.72);
    color: #ffffff;
    padding: 10px;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    margin: 5px 0;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.mobile-nav-link {
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.62);
}

main {
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: calc(100vh - 68px);
    background: #020617;
}

.hero > h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.hero-stage {
    position: relative;
    min-height: calc(100vh - 68px);
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(1.02);
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.9) 42%, rgba(2, 6, 23, 0.18) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0) 38%),
        radial-gradient(circle at 16% 38%, rgba(34, 211, 238, 0.18), transparent 28rem);
}

.hero-content {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    max-width: 760px;
    padding: 72px 0 120px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    border: 1px solid rgba(34, 211, 238, 0.52);
    background: rgba(34, 211, 238, 0.12);
    border-radius: 999px;
    padding: 9px 15px;
    font-size: 14px;
    font-weight: 750;
    backdrop-filter: blur(12px);
}

.hero-content h2,
.page-hero h1,
.detail-intro h1 {
    margin: 22px 0 20px;
    font-weight: 850;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.hero-content h2 {
    font-size: clamp(42px, 7vw, 82px);
}

.hero-content p,
.page-hero p,
.detail-one-line {
    margin: 0;
    color: var(--soft);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-tags,
.genre-row,
.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags {
    margin: 24px 0 0;
}

.hero-tags span,
.genre-row span,
.tag-row span,
.detail-tags a {
    color: #bae6fd;
    border: 1px solid rgba(125, 211, 252, 0.22);
    background: rgba(15, 23, 42, 0.62);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 45px rgba(34, 211, 238, 0.28);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.primary-button:hover {
    box-shadow: 0 22px 60px rgba(34, 211, 238, 0.42);
}

.ghost-button {
    color: var(--soft);
    background: rgba(15, 23, 42, 0.45);
    border-color: var(--border);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    color: #ffffff;
    border-color: rgba(34, 211, 238, 0.5);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    margin-top: 26px;
    font-size: 14px;
}

.hero-meta span {
    padding-right: 14px;
    border-right: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-meta span:last-child {
    border-right: 0;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(12px);
    font-size: 34px;
    line-height: 1;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
    background: rgba(34, 211, 238, 0.28);
    transform: translateY(-50%) scale(1.08);
}

.hero-arrow.prev {
    left: 24px;
    transform: translateY(-50%);
}

.hero-arrow.next {
    right: 24px;
    transform: translateY(-50%);
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.45);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 32px;
    background: var(--cyan);
}

.hero-category-bar {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 8;
    width: min(980px, calc(100% - 32px));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    transform: translateX(-50%);
}

.hero-category-bar a {
    color: var(--text);
    text-align: center;
    padding: 15px 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(16px);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.hero-category-bar a:hover {
    transform: translateY(-3px);
    border-color: var(--border-hot);
}

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

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

.intro-card,
.filter-panel,
.player-card {
    border: 1px solid var(--border);
    border-radius: 26px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.intro-card {
    padding: 30px;
}

.intro-card span {
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
}

.intro-card h2 {
    margin: 10px 0 12px;
    font-size: clamp(26px, 3vw, 38px);
}

.intro-card p {
    color: var(--soft);
    line-height: 1.8;
    margin: 0;
}

.glow-card {
    background:
        radial-gradient(circle at 90% 20%, rgba(34, 211, 238, 0.16), transparent 16rem),
        var(--panel);
}

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

.heading-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-line,
.section-icon {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 9px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.section-icon {
    width: 42px;
    color: var(--cyan);
    border: 1px solid rgba(34, 211, 238, 0.28);
    background: rgba(34, 211, 238, 0.1);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.03em;
}

.section-heading p {
    color: var(--muted);
    margin: 6px 0 0;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.64);
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.24);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hot);
    box-shadow: 0 24px 60px rgba(34, 211, 238, 0.14);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .movie-cover img {
    transform: scale(1.06);
}

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(2, 6, 23, 0.78));
    opacity: 0.9;
}

.play-mark,
.rank-badge {
    position: absolute;
    display: grid;
    place-items: center;
    font-style: normal;
}

.play-mark {
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    color: #ffffff;
    background: rgba(34, 211, 238, 0.82);
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    border-radius: 999px;
    font-weight: 850;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.movie-info {
    padding: 16px;
}

.movie-title {
    display: block;
    color: var(--text);
    font-size: 18px;
    font-weight: 780;
    line-height: 1.32;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
    color: var(--cyan);
}

.movie-info p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    min-height: 46px;
    margin: 9px 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 12px;
}

.movie-meta span:not(:last-child)::after {
    content: "";
}

.tag-row {
    gap: 6px;
}

.tag-row span {
    padding: 4px 8px;
    color: #93c5fd;
    background: rgba(30, 41, 59, 0.68);
}

.movie-card.compact .movie-info p {
    min-height: 42px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    min-height: 260px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.68);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.25);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hot);
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.category-thumbs img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
    filter: saturate(1.08);
}

.category-card h3 {
    font-size: 22px;
    margin: 0 0 8px;
}

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

.category-card span {
    color: var(--cyan);
    font-weight: 800;
}

.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    margin-bottom: 26px;
}

.filter-panel h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.filter-panel p {
    color: var(--muted);
    margin: 0;
}

.filter-controls {
    display: flex;
    gap: 10px;
    width: min(560px, 100%);
}

.search-input,
.type-select,
.clear-filter {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(2, 6, 23, 0.52);
    outline: none;
}

.search-input {
    flex: 1;
    padding: 0 15px;
}

.type-select {
    padding: 0 12px;
}

.clear-filter {
    padding: 0 14px;
    cursor: pointer;
}

.search-input:focus,
.type-select:focus {
    border-color: var(--border-hot);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.empty-state {
    display: none;
    color: var(--muted);
    text-align: center;
}

.empty-state.show {
    display: block;
}

.rank-strip {
    padding-bottom: 90px;
}

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

.center-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.page-hero,
.detail-hero {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 10%, rgba(34, 211, 238, 0.16), transparent 28rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.98));
}

.page-hero > div,
.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
}

.page-hero h1 {
    font-size: clamp(38px, 6vw, 68px);
}

.page-hero.slim-hero {
    min-height: 360px;
}

.category-hero img,
.detail-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
}

.page-hero-shade,
.detail-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.9) 48%, rgba(2, 6, 23, 0.28)),
        linear-gradient(0deg, rgba(2, 6, 23, 1), transparent 44%);
}

.ranking-hero {
    background:
        radial-gradient(circle at 80% 15%, rgba(249, 115, 22, 0.14), transparent 25rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    margin-bottom: 28px;
    font-size: 14px;
}

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

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

.detail-poster {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

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

.detail-intro h1 {
    font-size: clamp(36px, 5vw, 64px);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.detail-meta span {
    color: var(--soft);
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.56);
}

.genre-row {
    margin-top: 12px;
}

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

.player-card {
    overflow: hidden;
}

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

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
    cursor: pointer;
}

.poster-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.74));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.poster-play span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 20px 50px rgba(34, 211, 238, 0.35);
    font-size: 36px;
    padding-left: 6px;
}

.video-player.playing .poster-play {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent);
    transform: translateY(100%);
    transition: transform 0.25s ease;
    pointer-events: none;
}

.video-player:hover .player-controls,
.video-player:focus-within .player-controls {
    transform: translateY(0);
    pointer-events: auto;
}

.player-controls button {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    cursor: pointer;
}

.player-controls button:hover {
    background: rgba(34, 211, 238, 0.72);
}

.player-copy {
    padding: 30px;
}

.player-copy h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.player-copy h2:not(:first-child) {
    margin-top: 28px;
}

.player-copy p {
    color: var(--soft);
    line-height: 1.9;
    margin: 0;
}

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

.detail-tags a:hover {
    color: #ffffff;
    border-color: var(--border-hot);
}


.site-footer {
    border-top: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
}

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

.footer-brand {
    color: #ffffff;
    font-size: 24px;
    font-weight: 850;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    color: transparent;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer p {
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
}

.site-footer a {
    display: block;
    color: var(--muted);
    margin: 9px 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer a:hover {
    color: var(--cyan);
    transform: translateX(3px);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid var(--border);
    color: #64748b;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

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

    .hero-arrow {
        display: none;
    }
}

@media (max-width: 820px) {
    .hero-content {
        padding: 56px 0 190px;
    }

    .hero-category-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .intro-strip,
    .filter-panel,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        display: block;
    }

    .filter-controls {
        margin-top: 16px;
    }

    .movie-grid,
    .rank-list,
    .ranking-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-poster {
        max-width: 320px;
    }
}

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

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

    .hero-stage,
    .hero {
        min-height: 760px;
    }

    .hero-content h2 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-category-bar {
        bottom: 20px;
        gap: 8px;
    }

    .hero-category-bar a {
        padding: 12px 8px;
        font-size: 14px;
    }

    .container-section {
        width: min(100% - 24px, 1180px);
        padding: 48px 0;
    }

    .movie-grid,
    .rank-list,
    .ranking-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .filter-controls,
    .center-actions {
        flex-direction: column;
    }

    .search-input,
    .type-select,
    .clear-filter,
    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .page-hero,
    .detail-hero {
        min-height: auto;
    }

    .detail-hero-inner,
    .page-hero > div {
        padding: 42px 0;
    }

    .poster-play span {
        width: 66px;
        height: 66px;
        font-size: 28px;
    }
}
