:root {
    color-scheme: dark;
    --slate-950: #020617;
    --slate-925: #07111f;
    --slate-900: #0f172a;
    --slate-850: #111c31;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --white: #ffffff;
    --emerald: #10b981;
    --emerald-strong: #059669;
    --cyan: #22d3ee;
    --amber: #fbbf24;
    --red: #fb7185;
    --shadow: 0 22px 70px rgba(2, 6, 23, 0.42);
    --soft-shadow: 0 15px 35px rgba(2, 6, 23, 0.28);
    --ring: 0 0 0 1px rgba(16, 185, 129, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 32rem),
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.10), transparent 30rem),
        linear-gradient(180deg, var(--slate-950), var(--slate-900) 42%, var(--slate-950));
    color: var(--slate-300);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
}

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

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

button,
input,
select {
    font: inherit;
}

.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.14);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.32);
    backdrop-filter: blur(16px);
}

.site-nav,
.footer-grid,
.page-shell,
.detail-page,
.hero-content,
.home-intro,
.sub-hero > div {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.site-nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand span:last-child {
    background: linear-gradient(90deg, #34d399, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(34, 211, 238, 0.88));
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.28);
}

.brand-icon span {
    position: absolute;
    left: 14px;
    top: 10px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid white;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--slate-300);
    font-weight: 600;
}

.nav-link {
    position: relative;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #34d399;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -11px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, #10b981, #22d3ee);
}

.nav-cat {
    color: var(--slate-400);
    font-size: 14px;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.86);
    color: white;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: white;
    border-radius: 99px;
}

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

.mobile-nav a {
    display: block;
    padding: 10px 4px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--slate-300);
    font-weight: 600;
}

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

.hero {
    position: relative;
    height: 72vh;
    min-height: 560px;
    overflow: hidden;
    background: var(--slate-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 4.8s ease;
}

.hero-slide.active > img {
    transform: scale(1.0);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.82) 22%, rgba(15, 23, 42, 0.36) 58%, rgba(2, 6, 23, 0.56) 100%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(2, 6, 23, 0.34) 50%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 82px;
    transform: translateX(-50%);
    color: white;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-tags span,
.hero-tags a,
.tag-row a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--slate-200, #e2e8f0);
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.hero-tags a,
.tag-row a {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.9), rgba(34, 211, 238, 0.82));
    color: white;
    border: 0;
}

.hero h1 {
    max-width: 780px;
    margin: 0 0 18px;
    color: white;
    font-size: clamp(44px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-shadow: 0 20px 45px rgba(2, 6, 23, 0.5);
}

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

.hero-actions,
.detail-title-row,
.section-head,
.card-meta,
.home-intro,
.category-card-head,
.rank-panel,
.filter-panel,
.global-search form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

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

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(90deg, var(--emerald), var(--cyan));
    color: white;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.25);
}

.btn-ghost {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(12px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.55);
    color: white;
    font-size: 35px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease;
}

.hero-control:hover {
    background: rgba(15, 23, 42, 0.9);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

.hero-dot.active {
    width: 34px;
    background: var(--emerald);
}

.hero-search {
    position: absolute;
    right: max(24px, calc((100vw - 1200px) / 2));
    bottom: 88px;
    z-index: 4;
    width: min(360px, calc(100% - 32px));
    display: flex;
    padding: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(16px);
}

.hero-search input,
.global-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.17);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.76);
    color: white;
    padding: 0 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search input {
    min-height: 42px;
    border: 0;
    background: transparent;
}

.hero-search input:focus,
.global-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(16, 185, 129, 0.86);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.hero-search button,
.global-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    background: var(--emerald);
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.home-intro {
    margin-top: -1px;
    padding: 34px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.home-intro span,
.rank-panel-copy span,
.sub-hero p {
    color: var(--emerald);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 13px;
}

.home-intro h2,
.section-head h2,
.rank-panel h2,
.sub-hero h1,
.detail-card h1,
.detail-card h2,
.side-related h2,
.footer-grid h2,
.category-card h2 {
    margin: 0;
    color: white;
    line-height: 1.16;
}

.home-intro h2 {
    margin-top: 8px;
    font-size: clamp(26px, 4vw, 42px);
}

.home-intro p,
.section-head p,
.rank-panel p,
.sub-hero span,
.category-card p {
    color: var(--slate-400);
    margin: 8px 0 0;
}

.page-shell {
    padding: 56px 0 76px;
}

.content-section + .content-section,
.content-section + .rank-panel,
.rank-panel + .content-section {
    margin-top: 64px;
}

.section-head {
    margin-bottom: 26px;
}

.section-head h2 {
    font-size: clamp(26px, 4vw, 38px);
}

.section-more {
    flex: 0 0 auto;
    color: #34d399;
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: var(--soft-shadow);
    transform: translateY(0);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: var(--shadow);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--slate-800);
}

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

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

.cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.08) 58%, transparent);
    opacity: 0.72;
    transition: opacity 0.28s ease;
}

.movie-card:hover .cover-gradient {
    opacity: 0.94;
}

.play-dot,
.player-cover span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%) scale(0.74);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.92);
    box-shadow: 0 18px 35px rgba(16, 185, 129, 0.35);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.play-dot::after,
.player-cover span::after {
    content: "";
    position: absolute;
    left: 24px;
    top: 19px;
    border-left: 17px solid white;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

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

.card-region,
.card-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 10px;
    color: white;
    font-size: 12px;
    font-weight: 800;
}

.card-region {
    left: 12px;
    top: 12px;
    background: rgba(16, 185, 129, 0.92);
}

.card-year {
    right: 12px;
    bottom: 12px;
    background: rgba(2, 6, 23, 0.72);
}

.rank-badge {
    right: 12px;
    top: 12px;
    min-width: 34px;
    text-align: center;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    min-height: 50px;
    margin: 0 0 10px;
    color: white;
    font-size: 18px;
    line-height: 1.35;
}

.card-body a:hover {
    color: #34d399;
}

.card-body p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--slate-400);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    color: var(--slate-500);
    font-size: 13px;
}

.soft-panel,
.rank-panel,
.category-card,
.global-search,
.detail-card,
.player-card,
.meta-list,
.side-related,
.poster-box,
.filter-panel {
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(30, 41, 59, 0.52);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(14px);
}

.soft-panel {
    padding: 34px;
    border-radius: 32px;
}

.rank-panel {
    align-items: stretch;
    padding: 36px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.16), transparent 32rem),
        linear-gradient(90deg, rgba(30, 41, 59, 0.70), rgba(15, 23, 42, 0.72));
}

.rank-panel-copy {
    max-width: 360px;
}

.rank-panel h2 {
    margin-top: 10px;
    font-size: clamp(30px, 5vw, 48px);
}

.rank-list {
    width: min(560px, 100%);
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.rank-list-two {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rank-item a {
    display: grid;
    grid-template-columns: 40px 80px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.10);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-item a:hover {
    transform: translateX(4px);
    border-color: rgba(16, 185, 129, 0.35);
}

.rank-index {
    color: #34d399;
    font-size: 22px;
    font-weight: 900;
    text-align: center;
}

.rank-item img {
    width: 80px;
    height: 52px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-content strong,
.rank-content small {
    display: block;
}

.rank-content strong {
    color: white;
    font-size: 15px;
}

.rank-content small {
    color: var(--slate-500);
    font-size: 12px;
}

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

.category-tile,
.category-card {
    display: block;
    border-radius: 24px;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 18rem),
        rgba(30, 41, 59, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover,
.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.35);
}

.category-tile strong {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-size: 20px;
}

.category-tile span,
.category-card p {
    color: var(--slate-400);
    font-size: 14px;
}

.sub-hero {
    position: relative;
    padding: 76px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.24), transparent 34rem),
        linear-gradient(90deg, rgba(6, 78, 59, 0.30), rgba(8, 47, 73, 0.28));
    border-bottom: 1px solid rgba(16, 185, 129, 0.14);
}

.sub-hero h1 {
    margin-top: 10px;
    font-size: clamp(36px, 6vw, 60px);
}

.sub-hero span {
    display: block;
    max-width: 780px;
    margin-top: 14px;
    font-size: 18px;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 500;
}

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

.category-card {
    padding: 28px;
}

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

.category-mini-list a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 16 / 9;
    background: var(--slate-800);
}

.category-mini-list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-mini-list span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 10px 9px;
    color: white;
    font-size: 13px;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(120px, 180px));
    margin-bottom: 34px;
    padding: 16px;
    border-radius: 24px;
}

.global-search {
    margin-bottom: 42px;
    padding: 16px;
    border-radius: 28px;
}

.global-search form {
    align-items: stretch;
}

.global-search input {
    min-height: 58px;
    border-radius: 20px;
}

.global-search button {
    min-width: 110px;
}

.search-results:not(:empty) {
    margin-top: 26px;
}

.detail-page {
    padding: 36px 0 76px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--slate-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--slate-300);
}

.breadcrumb a:hover {
    color: #34d399;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.82fr);
    gap: 28px;
    align-items: start;
}

.detail-main {
    display: grid;
    gap: 22px;
}

.player-card,
.detail-card,
.meta-list,
.side-related,
.poster-box {
    border-radius: 28px;
}

.player-card {
    padding: 14px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #000;
}

.player-wrap video,
.player-cover,
.player-cover img {
    width: 100%;
    height: 100%;
}

.player-wrap video {
    display: block;
    object-fit: contain;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #000;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.player-cover img {
    object-fit: cover;
    opacity: 0.82;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.16));
}

.player-cover span {
    z-index: 2;
    width: 82px;
    height: 82px;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.player-cover span::after {
    left: 34px;
    top: 27px;
    border-left-width: 22px;
    border-top-width: 14px;
    border-bottom-width: 14px;
}

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

.detail-card {
    padding: 28px;
}

.detail-card h1 {
    margin-bottom: 10px;
    font-size: clamp(32px, 5vw, 52px);
}

.detail-card h2 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 24px;
}

.detail-card p {
    margin: 0;
    color: var(--slate-300);
}

.detail-title-row {
    align-items: flex-start;
}

.tag-row {
    margin-top: 22px;
    margin-bottom: 0;
}

.detail-side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 20px;
}

.poster-box {
    overflow: hidden;
    background: var(--slate-800);
}

.poster-box img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.meta-list {
    margin: 0;
    padding: 18px;
    list-style: none;
}

.meta-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

.meta-list li:last-child {
    border-bottom: 0;
}

.meta-list span {
    color: var(--slate-500);
}

.meta-list strong {
    color: white;
    text-align: right;
}

.side-related {
    padding: 20px;
}

.side-related h2 {
    margin-bottom: 16px;
    font-size: 24px;
}

.side-grid {
    display: grid;
    gap: 16px;
}

.movie-card-compact .card-body h3 {
    min-height: auto;
    font-size: 16px;
}

.movie-card-compact .card-body p {
    min-height: auto;
}

.site-footer {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), #020617);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 42px;
    padding: 48px 0 32px;
}

.footer-brand p {
    max-width: 520px;
    color: var(--slate-400);
}

.footer-grid h2 {
    margin-bottom: 16px;
    font-size: 18px;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
    color: var(--slate-400);
}

.footer-grid a:hover {
    color: #34d399;
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.10);
    color: var(--slate-500);
    text-align: center;
}

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

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 14px;
    }

    .nav-cat {
        display: none;
    }

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

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

    .detail-side {
        position: static;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .hero {
        height: 78vh;
        min-height: 620px;
    }

    .hero-content {
        bottom: 150px;
    }

    .hero-search {
        left: 16px;
        right: 16px;
        bottom: 78px;
        width: auto;
    }

    .hero-control {
        display: none;
    }

    .hero-actions,
    .home-intro,
    .section-head,
    .rank-panel,
    .detail-title-row,
    .global-search form {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid-small,
    .category-grid,
    .category-overview-grid,
    .rank-list-two,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 620px) {
    .site-nav,
    .footer-grid,
    .page-shell,
    .detail-page,
    .hero-content,
    .home-intro,
    .sub-hero > div {
        width: min(100% - 24px, 1200px);
    }

    .brand {
        font-size: 20px;
    }

    .hero h1 {
        font-size: 42px;
    }

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

    .movie-grid,
    .movie-grid-small,
    .category-grid,
    .category-overview-grid,
    .rank-list-two,
    .footer-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .soft-panel,
    .rank-panel,
    .detail-card {
        padding: 22px;
        border-radius: 24px;
    }

    .rank-item a {
        grid-template-columns: 34px 72px 1fr;
    }

    .rank-item img {
        width: 72px;
        height: 48px;
    }
}
