:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-solid: #0f172a;
    --panel-soft: rgba(30, 41, 59, 0.58);
    --line: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --accent: #06b6d4;
    --accent-2: #22d3ee;
    --orange: #fb923c;
    --violet: #a78bfa;
    --gold: #facc15;
    --danger: #fb7185;
    --shadow: 0 24px 80px rgba(8, 47, 73, 0.28);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(8, 145, 178, 0.20), transparent 34rem),
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.16), transparent 32rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
}

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

.header-inner {
    width: min(1440px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #2563eb);
    box-shadow: 0 16px 36px rgba(6, 182, 212, 0.28);
    font-weight: 900;
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

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

.nav-link,
.mobile-nav-link {
    color: var(--muted);
    border-radius: 999px;
    transition: 0.22s ease;
}

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

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--accent-2);
    background: rgba(6, 182, 212, 0.10);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 300px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.70);
}

.header-search input {
    width: 100%;
    min-width: 0;
    padding: 8px 12px;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.header-search button {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    color: #001018;
    background: var(--accent-2);
    font-weight: 800;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 12px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.78);
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.mobile-nav {
    display: none;
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.92);
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-nav-link {
    padding: 12px 14px;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 70vh;
    height: min(840px, 85vh);
    overflow: hidden;
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.85s ease;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.26), rgba(2, 6, 23, 0.68)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.36) 42%, rgba(2, 6, 23, 0.18) 100%),
        var(--hero-image) center / cover no-repeat,
        linear-gradient(135deg, #0f172a, #082f49);
}

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

.hero-backdrop {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, var(--bg), transparent);
    pointer-events: none;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-2);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 780px;
    margin: 16px 0 18px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 700px;
    margin: 0;
    color: #cbd5e1;
    font-size: clamp(16px, 2.1vw, 21px);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-tags span,
.tag-list span,
.poster-tags span,
.category-count {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(6, 182, 212, 0.32);
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-2);
    font-weight: 800;
}

.hero-tags span {
    padding: 7px 12px;
    font-size: 13px;
}

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

.primary-button,
.secondary-button,
.full-width-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 900;
    transition: 0.22s ease;
}

.primary-button {
    color: #001018;
    background: linear-gradient(135deg, var(--accent-2), #38bdf8);
    box-shadow: 0 18px 40px rgba(6, 182, 212, 0.30);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 56px rgba(6, 182, 212, 0.40);
}

.secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    backdrop-filter: blur(12px);
}

.secondary-button:hover {
    border-color: rgba(6, 182, 212, 0.45);
    color: var(--accent-2);
    transform: translateY(-2px);
}

.hero-controls {
    position: absolute;
    right: max(28px, calc((100vw - 1440px) / 2 + 32px));
    bottom: 96px;
    display: flex;
    gap: 12px;
}

.hero-control {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-size: 32px;
    line-height: 1;
    transition: 0.2s ease;
}

.hero-control:hover {
    background: rgba(6, 182, 212, 0.42);
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    transition: 0.22s ease;
}

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

.section {
    padding: 54px 0;
}

.container-panel,
.footer-inner,
.footer-bottom,
.detail-main,
.page-hero-inner {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.18;
}

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

.section-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #041018;
    background: var(--orange);
    font-weight: 900;
}

.section-icon.cyan {
    background: var(--accent-2);
}

.section-icon.violet {
    background: var(--violet);
}

.section-icon.gold {
    background: var(--gold);
}

.section-link {
    margin-left: auto;
    color: var(--accent-2);
    font-weight: 900;
}

.inline-heading {
    align-items: flex-start;
}

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

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

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

.movie-card {
    min-width: 0;
}

.movie-card.is-hidden {
    display: none;
}

.movie-card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.42));
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.28);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.52);
    box-shadow: 0 24px 60px rgba(6, 182, 212, 0.12);
}

.poster-shell {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #082f49);
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.25s ease;
}

.movie-card-link:hover .poster-image {
    transform: scale(1.08);
}

.poster-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 55%);
    transition: opacity 0.25s ease;
}

.movie-card-link:hover .poster-overlay {
    opacity: 1;
}

.play-badge {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.88);
    box-shadow: 0 0 0 10px rgba(6, 182, 212, 0.16);
}

.poster-tags {
    position: absolute;
    top: 12px;
    left: 12px;
}

.poster-tags span {
    padding: 5px 9px;
    font-size: 12px;
}

.poster-score {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 8px;
    border-radius: 10px;
    color: #fef9c3;
    background: rgba(2, 6, 23, 0.72);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.movie-card-body {
    padding: 16px;
}

.movie-card-body h3 {
    min-height: 48px;
    margin: 0 0 8px;
    display: -webkit-box;
    overflow: hidden;
    color: #f8fafc;
    font-size: 16px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card-link:hover h3 {
    color: var(--accent-2);
}

.movie-card-body p {
    min-height: 42px;
    margin: 0 0 14px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted-2);
    font-size: 12px;
}

.movie-meta-line span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-section {
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.44), transparent);
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.52));
    box-shadow: 0 16px 48px rgba(2, 6, 23, 0.30);
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card {
    min-height: 168px;
    padding: 24px;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.42);
}

.category-count {
    padding: 5px 10px;
    font-size: 12px;
}

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

.category-card p,
.category-overview-card p {
    margin: 0;
    color: var(--muted);
}

.category-overview-card {
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    padding: 28px;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.16)),
        var(--category-image) center / cover no-repeat,
        linear-gradient(135deg, #0f172a, #082f49);
}

.category-overview-content {
    position: relative;
    z-index: 2;
}

.category-overview-content span {
    color: var(--accent-2);
    font-weight: 900;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 30px;
    align-items: start;
}

.rank-panel,
.sidebar-card,
.detail-card,
.player-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.68);
    box-shadow: var(--shadow);
}

.rank-panel {
    padding: 24px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 38px 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 16px;
    color: var(--muted);
    transition: 0.2s ease;
}

.rank-row:hover {
    color: var(--text);
    background: rgba(148, 163, 184, 0.08);
}

.rank-number {
    color: var(--muted-2);
    font-weight: 900;
}

.hot-rank {
    color: var(--gold);
}

.rank-row img {
    width: 72px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    background: #0f172a;
}

.rank-info {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.rank-info strong {
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info em {
    overflow: hidden;
    font-size: 12px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-score {
    color: #fef9c3;
    font-size: 12px;
    font-weight: 900;
}

.full-width-button {
    width: 100%;
    margin-top: 18px;
    color: var(--text);
    background: rgba(6, 182, 212, 0.14);
    border: 1px solid rgba(6, 182, 212, 0.28);
}

.full-width-button:hover {
    color: #001018;
    background: var(--accent-2);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 70px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.22), transparent 36rem),
        linear-gradient(180deg, rgba(8, 47, 73, 0.35), transparent);
}

.page-hero-inner {
    text-align: center;
}

.page-hero h1 {
    margin: 10px 0 16px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 850px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 18px;
}

.centered-actions {
    justify-content: center;
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.68);
}

.filter-panel input,
.filter-panel select {
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    color: var(--text);
    outline: 0;
    background: rgba(2, 6, 23, 0.62);
}

.filter-panel input {
    flex: 1 1 280px;
    padding: 0 16px;
}

.filter-panel select {
    flex: 0 1 170px;
    padding: 0 12px;
}

.filter-panel span {
    margin-left: auto;
    color: var(--accent-2);
    font-weight: 900;
}

.compact-filter {
    max-width: 780px;
}

.sticky-panel {
    position: sticky;
    top: 100px;
}

.long-rank-list {
    max-height: 1180px;
    overflow: auto;
    padding-right: 4px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 28px 0;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
}

.detail-primary {
    display: grid;
    gap: 24px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background:
        radial-gradient(circle at center, rgba(6, 182, 212, 0.18), transparent 22rem),
        #020617;
}

.video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: var(--text);
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.42)),
        transparent;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #001018;
    background: var(--accent-2);
    box-shadow: 0 0 0 14px rgba(6, 182, 212, 0.18);
    font-size: 30px;
}

.player-overlay strong {
    font-size: 22px;
}

.player-overlay em,
.player-message {
    color: var(--muted);
    font-style: normal;
}

.player-message {
    position: absolute;
    left: 18px;
    bottom: 16px;
    margin: 0;
    font-size: 13px;
}

.detail-card {
    padding: clamp(22px, 4vw, 36px);
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.detail-title-row h1 {
    margin: 8px 0 0;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-score {
    min-width: 64px;
    padding: 9px 12px;
    border-radius: 16px;
    text-align: center;
    color: #fef9c3;
    background: rgba(250, 204, 21, 0.12);
    font-weight: 900;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.10);
}

.summary-block {
    margin-top: 24px;
}

.summary-block h2,
.sidebar-card h2,
.sidebar-rank h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

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

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.tag-list span {
    padding: 6px 11px;
    font-size: 13px;
}

.detail-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 100px;
}

.poster-large {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, #0f172a, #082f49);
    box-shadow: var(--shadow);
}

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

.sidebar-card {
    padding: 22px;
}

.sidebar-card dl {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
}

.sidebar-card dt {
    color: var(--muted-2);
}

.sidebar-card dd {
    margin: 0;
    color: #cbd5e1;
}

.sidebar-card a {
    color: var(--accent-2);
}

.sidebar-rank {
    padding: 20px;
}

.related-section {
    padding-top: 10px;
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 560px;
    gap: 42px;
    padding: 46px 0;
}

.footer-brand p {
    max-width: 580px;
    color: var(--muted);
}

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

.footer-columns section {
    display: grid;
    gap: 10px;
}

.footer-columns h2 {
    margin: 0 0 6px;
    font-size: 16px;
}

.footer-columns a {
    color: var(--muted);
    font-size: 14px;
}

.footer-columns a:hover {
    color: var(--accent-2);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 32px;
    color: var(--muted-2);
    border-top: 1px solid var(--line);
    font-size: 13px;
}

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

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

    .two-column-section,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .detail-sidebar,
    .sticky-panel {
        position: static;
    }

    .poster-large {
        max-width: 360px;
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
        margin-left: auto;
    }

    .hero {
        min-height: 680px;
        height: auto;
    }

    .hero-content {
        padding-bottom: 110px;
    }

    .hero-controls {
        right: 16px;
        bottom: 34px;
    }

    .hero-dots {
        left: 16px;
        bottom: 52px;
        transform: none;
    }

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

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

    .filter-panel span {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .header-inner,
    .container-panel,
    .footer-inner,
    .footer-bottom,
    .detail-main,
    .page-hero-inner {
        width: min(100% - 24px, 1440px);
    }

    .site-logo .logo-text {
        font-size: 16px;
    }

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

    .hero-tags span {
        max-width: 100%;
    }

    .hero-actions,
    .centered-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .section {
        padding: 38px 0;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-link {
        display: none;
    }

    .movie-grid,
    .small-grid,
    .all-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .movie-card-body {
        padding: 12px;
    }

    .movie-card-body h3 {
        min-height: 44px;
        font-size: 14px;
    }

    .movie-card-body p {
        display: none;
    }

    .movie-meta-line {
        display: grid;
        gap: 2px;
    }

    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 32px 62px minmax(0, 1fr);
    }

    .rank-score {
        display: none;
    }

    .filter-panel input,
    .filter-panel select {
        flex-basis: 100%;
    }

    .detail-title-row {
        flex-direction: column;
    }

    .detail-meta span {
        font-size: 13px;
    }

    .footer-columns,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}
