:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-solid: #111827;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --blue: #38bdf8;
    --cyan: #22d3ee;
    --accent: #60a5fa;
    --gold: #fbbf24;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(15, 23, 42, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 10%, rgba(14, 165, 233, 0.20), transparent 30%),
        radial-gradient(circle at 88% 5%, rgba(34, 211, 238, 0.16), transparent 28%),
        linear-gradient(135deg, #020617 0%, #0f172a 46%, #020617 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 58, 138, 0.92), rgba(15, 23, 42, 0.94));
    border-bottom: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.32);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    box-shadow: 0 12px 34px rgba(34, 211, 238, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
}

.brand-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

.nav-link {
    color: #cbd5e1;
    font-size: 15px;
    transition: color 0.2s ease;
}

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

.header-search,
.mobile-search,
.wide-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search {
    margin-left: auto;
}

.header-search input,
.mobile-search input,
.wide-search input,
.filter-input,
.search-page-form input {
    min-width: 0;
    color: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(15, 23, 42, 0.72);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    width: 240px;
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.filter-input:focus,
.search-page-form input:focus {
    border-color: rgba(56, 189, 248, 0.78);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
    background: rgba(15, 23, 42, 0.95);
}

.header-search button,
.mobile-search button,
.wide-search button,
.search-page-form button {
    border: 0;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 14px 28px rgba(14, 165, 233, 0.18);
}

.header-search button {
    height: 42px;
    padding: 0 18px;
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.8);
}

.mobile-panel {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.mobile-panel a {
    display: block;
    padding: 12px 4px;
    color: #cbd5e1;
}

.mobile-search input,
.wide-search input,
.search-page-form input {
    flex: 1;
    height: 48px;
    padding: 0 18px;
    border-radius: 999px;
}

.mobile-search button,
.wide-search button,
.search-page-form button {
    height: 48px;
    padding: 0 22px;
}

.hero-slider {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

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

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(22px) saturate(1.15);
    transform: scale(1.08);
    opacity: 0.24;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.90)),
        radial-gradient(circle at 70% 40%, rgba(56, 189, 248, 0.20), transparent 28%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 660px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 420px);
    align-items: center;
    gap: 56px;
    padding: 72px 0 106px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 7px 13px;
    color: #7dd3fc;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    border: 1px solid rgba(56, 189, 248, 0.34);
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
}

.hero-copy h1,
.sub-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #ffffff;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    font-size: clamp(44px, 6vw, 82px);
}

.hero-copy p {
    max-width: 680px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: 18px;
}

.hero-tags,
.detail-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #c7d2fe;
    background: rgba(30, 41, 59, 0.70);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 12px;
}

.hero-actions,
.detail-copy .primary-button {
    margin-top: 30px;
}

.primary-button,
.ghost-button,
.section-more,
.category-overview-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 18px 42px rgba(14, 165, 233, 0.24);
}

.ghost-button,
.section-more,
.category-overview-head a {
    color: #dbeafe;
    border: 1px solid rgba(125, 211, 252, 0.30);
    background: rgba(15, 23, 42, 0.58);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.category-overview-head a:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 52px rgba(14, 165, 233, 0.22);
}

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

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.64);
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-6deg);
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.26);
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 38px rgba(2, 6, 23, 0.40);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 76px;
    z-index: 4;
    width: min(1180px, calc(100% - 32px));
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.68);
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 30px;
    height: 8px;
    border-radius: 999px;
    opacity: 0.52;
}

.hero-dot.active {
    width: 54px;
    opacity: 1;
    background: linear-gradient(90deg, #38bdf8, #22d3ee);
}

.hero-category-bar {
    position: absolute;
    left: 50%;
    bottom: 20px;
    z-index: 4;
    width: min(1180px, calc(100% - 32px));
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    transform: translateX(-50%);
    backdrop-filter: blur(14px);
}

.hero-category-bar span,
.hero-category-bar a {
    white-space: nowrap;
}

.hero-category-bar span {
    color: #7dd3fc;
    font-weight: 800;
    padding: 0 8px;
}

.hero-category-bar a {
    padding: 7px 13px;
    color: #dbeafe;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.hero-category-bar a:hover {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.18);
}

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

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3.2vw, 42px);
    line-height: 1.16;
}

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

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

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

.single-column {
    grid-template-columns: 1fr;
}

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

.movie-card a {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.82));
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card a:hover {
    transform: translateY(-7px) scale(1.01);
    border-color: rgba(56, 189, 248, 0.42);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.95));
}

.poster-box {
    position: relative;
    display: block;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9);
}

.poster-box img {
    width: 100%;
    aspect-ratio: 3 / 4.05;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card a:hover .poster-box img {
    transform: scale(1.07);
    filter: saturate(1.12);
}

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

.play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    opacity: 0;
    background: rgba(37, 99, 235, 0.80);
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.corner-tag,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
}

.corner-tag {
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.rank-badge {
    right: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.card-title {
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta,
.card-desc {
    color: var(--muted);
    font-size: 13px;
}

.card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    margin-top: 4px;
}

.card-tags span {
    min-height: 24px;
    padding: 2px 8px;
}

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

.category-tile {
    display: block;
    overflow: hidden;
    min-height: 220px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.42), rgba(15, 23, 42, 0.88));
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.42);
}

.category-posters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.category-posters img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
}

.category-name {
    display: block;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.category-desc {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

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

.ranking-panel,
.side-recommend,
.story-card,
.player-shell,
.filter-panel,
.category-overview-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 58px rgba(2, 6, 23, 0.18);
}

.ranking-panel,
.side-recommend {
    padding: 24px;
    position: sticky;
    top: 92px;
}

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

.rank-row a {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.42);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.rank-row a:hover {
    transform: translateX(4px);
    border-color: rgba(56, 189, 248, 0.36);
    background: rgba(30, 41, 59, 0.72);
}

.rank-poster img {
    width: 82px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

.rank-info,
.rank-title,
.rank-meta,
.rank-desc {
    min-width: 0;
    display: block;
}

.rank-title {
    color: #ffffff;
    font-weight: 900;
    line-height: 1.35;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    border-radius: 9px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-size: 13px;
}

.rank-meta,
.rank-desc {
    color: var(--muted);
    font-size: 13px;
}

.rank-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-score {
    color: var(--gold);
    font-size: 22px;
    font-weight: 900;
}

.sub-hero {
    padding: 58px 0 34px;
}

.sub-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 62px);
}

.sub-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 17px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #7dd3fc;
}

.wide-search,
.search-page-form {
    max-width: 760px;
    margin-top: 26px;
}

.category-overview {
    display: grid;
    gap: 26px;
    padding-bottom: 56px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
}

.category-overview-head span {
    color: #7dd3fc;
    font-weight: 800;
}

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

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

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

.filter-panel {
    margin-top: 26px;
    padding: 18px;
}

.filter-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border-radius: 16px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-buttons button {
    min-height: 38px;
    padding: 0 14px;
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.62);
}

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

.empty-state {
    margin: 28px 0;
    padding: 32px;
    text-align: center;
    color: #cbd5e1;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.52);
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(24px) saturate(1.16);
    transform: scale(1.08);
    opacity: 0.22;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.94));
}

.detail-inner {
    position: relative;
    z-index: 2;
    padding: 52px 0 64px;
}

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

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

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

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

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

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 12px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000000;
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 78vh;
    background: #000000;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.70));
    z-index: 2;
}

.play-cover span {
    width: 96px;
    height: 96px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 38px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 24px 70px rgba(14, 165, 233, 0.35);
}

.play-cover.hidden {
    display: none;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.story-card {
    padding: 28px;
}

.story-card h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 24px;
}

.story-card p {
    margin: 0;
    color: #cbd5e1;
}

.site-footer {
    margin-top: 34px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(2, 6, 23, 0.96));
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 1fr 1fr;
    gap: 38px;
    padding: 46px 0;
}

.footer-brand p {
    max-width: 520px;
    margin: 16px 0 0;
    color: var(--muted);
}

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

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

.footer-links a:hover {
    color: #7dd3fc;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    color: #64748b;
    font-size: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

[hidden] {
    display: none !important;
}

@media (max-width: 1080px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .two-column,
    .ranking-layout {
        grid-template-columns: 1fr;
    }

    .ranking-panel,
    .side-recommend {
        position: static;
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 42px;
    }

    .hero-poster {
        max-width: 320px;
        transform: none;
    }

    .detail-grid,
    .category-overview-card,
    .detail-content,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

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

    .brand-text {
        font-size: 19px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .hero-slider,
    .hero-content {
        min-height: 720px;
    }

    .hero-category-bar {
        border-radius: 20px;
    }

    .hero-copy p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-actions,
    .wide-search,
    .search-page-form {
        flex-direction: column;
        align-items: stretch;
    }

    .movie-grid,
    .category-grid,
    .category-preview-grid,
    .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-body {
        padding: 12px;
    }

    .card-title {
        font-size: 15px;
    }

    .card-desc,
    .card-tags {
        display: none;
    }

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

    .rank-poster img {
        width: 68px;
    }

    .rank-score {
        display: none;
    }

    .story-card {
        padding: 22px;
    }
}
