:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #eff6ff;
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.10);
    --primary: #2563eb;
    --primary-dark: #1e3a8a;
    --cyan: #06b6d4;
    --warm: #f97316;
    --danger: #ef4444;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, #0f172a 0%, #172554 48%, #0f172a 100%);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.28);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.42);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.86);
}

.desktop-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
    color: #67e8f9;
    transform: translateY(-1px);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.header-search input {
    width: 220px;
    border: 0;
    outline: none;
    color: #ffffff;
    background: transparent;
    padding: 8px 12px;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.header-search button,
.hero-search button,
.primary-button {
    border: 0;
    color: #ffffff;
    font-weight: 800;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.30);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
    padding: 8px 16px;
}

.header-search button:hover,
.hero-search button:hover,
.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.42);
}

.menu-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: #ffffff;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

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

.mobile-nav a,
.mobile-nav form {
    display: block;
    margin-top: 12px;
}

.mobile-nav input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-nav button {
    margin-top: 8px;
    border: 0;
    border-radius: 14px;
    padding: 10px 18px;
    color: #ffffff;
    background: var(--primary);
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    color: #ffffff;
    background: linear-gradient(135deg, #172554 0%, #1d4ed8 48%, #0891b2 100%);
}

.hero-bg {
    position: absolute;
    border-radius: 999px;
    filter: blur(16px);
    opacity: 0.28;
    pointer-events: none;
}

.hero-bg-one {
    width: 360px;
    height: 360px;
    top: 70px;
    left: 8%;
    background: #22d3ee;
}

.hero-bg-two {
    width: 520px;
    height: 520px;
    right: -120px;
    bottom: -120px;
    background: #2563eb;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    padding: 72px 0;
    align-items: stretch;
}

.hero-carousel {
    position: relative;
    min-height: 500px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 44px;
    align-items: center;
    opacity: 0;
    transform: translateX(18px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-label,
.section-kicker,
.panel-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: #67e8f9;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-copy p {
    width: min(680px, 100%);
    margin: 0 0 26px;
    color: rgba(219, 234, 254, 0.96);
    font-size: 20px;
}

.hero-tags,
.tag-list,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-list span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #dffafe;
    background: rgba(8, 145, 178, 0.38);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    font-weight: 900;
}

.ghost-button {
    border: 2px solid rgba(255, 255, 255, 0.50);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(14px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.34);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 30px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.36);
    overflow: hidden;
}

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

.hero-poster-glow {
    position: absolute;
    inset: auto 28px 26px 28px;
    height: 80px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.24);
    filter: blur(28px);
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    gap: 10px;
}

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

.hero-dot.active {
    width: 58px;
    background: #67e8f9;
}

.hero-side-panel {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    padding: 28px;
    align-self: center;
    background: rgba(15, 23, 42, 0.30);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}

.hero-side-panel h2 {
    margin: 16px 0 10px;
    font-size: 34px;
    line-height: 1.15;
}

.hero-side-panel p {
    color: rgba(219, 234, 254, 0.90);
}

.hero-search {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding: 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: none;
    border-radius: 14px;
    padding: 12px 14px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.20);
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.hero-search button {
    padding: 0 18px;
}

.hero-quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.hero-quick-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 16px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
}

.content-section {
    padding: 74px 0;
}

.warm-section {
    background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 100%);
}

.cool-section {
    background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 100%);
}

.category-section-home {
    background: #ffffff;
}

.dark-rank-section {
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a 0%, #172554 100%);
}

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

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

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

.dark-rank-section .section-heading p,
.dark-rank-section .section-more {
    color: rgba(255, 255, 255, 0.75);
}

.content-section .section-kicker {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.14);
}

.dark-rank-section .section-kicker {
    color: #67e8f9;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 900;
}

.section-more span {
    transition: transform 0.2s ease;
}

.section-more:hover span {
    transform: translateX(3px);
}

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.poster-link {
    display: block;
}

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

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.58));
}

.year-badge,
.rank-badge {
    position: absolute;
    top: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(37, 99, 235, 0.88);
    backdrop-filter: blur(8px);
}

.year-badge {
    right: 14px;
}

.rank-badge {
    left: 14px;
    background: rgba(239, 68, 68, 0.92);
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--primary);
}

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

.tag-list span,
.detail-tags span {
    color: #1d4ed8;
    background: #eff6ff;
}

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

.category-card {
    position: relative;
    min-height: 218px;
    overflow: hidden;
    border-radius: 26px;
    padding: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #172554 0%, #2563eb 54%, #06b6d4 100%);
    box-shadow: 0 18px 46px rgba(37, 99, 235, 0.18);
}

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

.category-label {
    display: inline-flex;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 900;
    opacity: 0.72;
}

.category-card strong {
    display: block;
    font-size: 24px;
    line-height: 1.2;
}

.category-card em {
    display: block;
    margin-top: 12px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.category-cover {
    position: absolute;
    right: -18px;
    bottom: -30px;
    width: 128px;
    height: 160px;
    border-radius: 24px;
    overflow: hidden;
    transform: rotate(10deg);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

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

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

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

.compact-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 46px;
    gap: 14px;
    align-items: center;
    border-radius: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.compact-cover {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
}

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

.compact-info {
    min-width: 0;
}

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

.compact-info strong {
    font-size: 15px;
}

.compact-info em {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    font-style: normal;
}

.compact-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--danger), var(--warm));
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 58%, #0e7490 100%);
}

.page-hero .container {
    padding: 70px 0;
}

.page-hero h1 {
    margin: 16px 0 10px;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.05em;
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(219, 234, 254, 0.88);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #67e8f9;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(3, 170px);
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    padding: 12px 14px;
    color: var(--text);
    background: #f8fafc;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.empty-state {
    display: none;
    border-radius: 20px;
    padding: 30px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
}

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

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

.category-overview-card {
    border-radius: 28px;
    padding: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.category-overview-main span {
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.category-overview-main h2 {
    margin: 8px 0;
    font-size: 30px;
}

.category-overview-main p {
    margin: 0 0 18px;
    color: var(--muted);
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-samples span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
    background: #eff6ff;
}

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

.movie-card-wide {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
}

.movie-card-wide .poster-frame {
    height: 100%;
    min-height: 180px;
    aspect-ratio: auto;
}

.detail-hero {
    min-height: 470px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) saturate(1.2);
    transform: scale(1.08);
    opacity: 0.32;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.55));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 70px 0 92px;
}

.detail-title-box {
    max-width: 820px;
    margin-top: 34px;
}

.detail-title-box h1 {
    margin: 16px 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.detail-title-box p {
    margin: 0;
    color: rgba(219, 234, 254, 0.92);
    font-size: 19px;
}

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

.detail-meta span {
    border-radius: 999px;
    padding: 8px 13px;
    color: #dffafe;
    font-weight: 800;
    background: rgba(8, 145, 178, 0.38);
}

.detail-section {
    margin-top: -74px;
    padding-top: 0;
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    align-items: start;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.26);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.24), rgba(15, 23, 42, 0.66));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-icon {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--primary);
    font-size: 30px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.32);
}

.detail-card,
.side-card {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.detail-card {
    margin-top: 24px;
    padding: 30px;
}

.detail-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.detail-card p {
    margin: 0 0 24px;
    color: #334155;
    font-size: 17px;
}

.ghost-mini {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    background: #eff6ff;
}

.detail-tags {
    padding-top: 4px;
}

.side-card {
    padding: 20px;
    margin-bottom: 20px;
}

.poster-side img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    object-fit: cover;
    margin-bottom: 18px;
}

.poster-side h2 {
    margin-bottom: 6px;
}

.poster-side p {
    margin: 0;
    color: var(--muted);
}

.detail-aside .compact-card {
    grid-template-columns: 58px minmax(0, 1fr);
    color: var(--text);
    background: #f8fafc;
    border-color: var(--line);
}

.detail-aside .compact-rank {
    display: none;
}

.detail-aside .compact-info em {
    color: var(--muted);
}

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

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
}

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

.footer-logo {
    color: #ffffff;
}

.footer-brand p {
    max-width: 440px;
    color: #94a3b8;
}

.footer-links {
    display: grid;
    gap: 9px;
    align-content: start;
}

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

.footer-links a:hover {
    color: #67e8f9;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0 28px;
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 1120px) {
    .hero-inner,
    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: 820px;
    }

    .hero-side-panel {
        align-self: stretch;
    }

    .hero-poster {
        width: min(340px, 100%);
    }

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

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

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

    .detail-aside {
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 20px;
    }
}

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

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

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

    .hero-section {
        min-height: 900px;
    }

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

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

    .movie-card-wide {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .header-inner {
        height: 64px;
    }

    .brand {
        font-size: 18px;
    }

    .hero-inner {
        padding: 48px 0;
    }

    .hero-section {
        min-height: 820px;
    }

    .hero-slide {
        gap: 24px;
    }

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

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

    .hero-actions,
    .hero-search {
        flex-direction: column;
    }

    .hero-quick-links {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: block;
    }

    .section-more {
        margin-top: 16px;
    }

    .movie-grid,
    .rank-grid,
    .category-grid,
    .category-overview-grid,
    .compact-list-grid,
    .filter-panel,
    .detail-aside {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 50px 0;
    }

    .detail-card {
        padding: 22px;
    }

    .detail-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
