:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --accent-50: #ecfdf5;
    --accent-600: #059669;
    --orange-500: #f97316;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-800);
    background: var(--slate-50);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.05) rotate(-2deg);
}

.brand-mark.small {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 16px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--slate-900);
}

.brand-subtitle {
    margin-top: 2px;
    color: var(--slate-500);
    font-size: 12px;
}

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

.nav-link {
    padding: 10px 15px;
    border-radius: 12px;
    color: var(--slate-700);
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--primary-700);
    background: var(--primary-50);
}

.site-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-search input {
    width: 240px;
    border: 1px solid var(--slate-300);
    border-radius: 14px;
    padding: 10px 13px;
    color: var(--slate-800);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.site-search button,
.primary-button {
    border: 0;
    border-radius: 14px;
    padding: 10px 18px;
    color: var(--white);
    background: var(--primary-600);
    font-weight: 750;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.24);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.site-search button:hover,
.primary-button:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(2, 132, 199, 0.28);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--slate-800);
    background: var(--slate-100);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 18px;
    border-top: 1px solid var(--slate-200);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.mobile-panel a {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--slate-100);
    font-weight: 650;
}

.mobile-search input {
    width: 100%;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    background: var(--slate-900);
}

.hero-stage {
    position: relative;
    height: min(72vh, 680px);
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-content {
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1180px;
    color: var(--white);
}

.hero-content > * {
    max-width: 680px;
}

.hero-pill,
.page-kicker,
.section-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    color: var(--white);
    background: rgba(2, 132, 199, 0.92);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

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

.hero-content p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(18px, 2.2vw, 22px);
}

.hero-tags,
.hero-topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-tags span,
.hero-topic-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 12px;
    padding: 6px 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

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

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 10px 18px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-weight: 750;
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.ghost-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.28);
}

.ghost-button.light {
    color: var(--white);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(12px);
    font-size: 34px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.hero-rail {
    width: min(1180px, calc(100% - 32px));
    margin: -82px auto 0;
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    padding-bottom: 28px;
}

.hero-mini-card {
    min-height: 116px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: var(--slate-800);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease;
}

.hero-mini-card:hover {
    transform: translateY(-4px);
}

.hero-mini-card img {
    width: 100%;
    height: 116px;
    object-fit: cover;
    opacity: 0.72;
}

.hero-mini-card span {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    color: var(--white);
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

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

.white-section {
    background: var(--white);
}

.soft-section {
    background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

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

.section-heading h2 {
    margin: 10px 0 4px;
    color: var(--slate-900);
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
}

.section-heading p {
    margin: 0;
    color: var(--slate-600);
}

.section-kicker {
    color: var(--primary-700);
    background: var(--primary-50);
}

.section-more {
    color: var(--primary-700);
    font-weight: 800;
}

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

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

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

.movie-card {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: var(--shadow-md);
}

.card-cover {
    display: block;
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-200), var(--primary-100));
}

.large-card .card-cover {
    aspect-ratio: 16 / 10;
}

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

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

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.72);
    font-weight: 800;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

.card-title:hover {
    color: var(--primary-700);
}

.card-desc {
    display: -webkit-box;
    min-height: 44px;
    margin: 8px 0 12px;
    color: var(--slate-600);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
}

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    font-size: 13px;
}

.card-meta span,
.detail-meta span {
    border-radius: 999px;
    padding: 4px 8px;
    background: var(--slate-100);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span {
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--primary-700);
    background: var(--primary-50);
    font-size: 12px;
    font-weight: 700;
}

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

.horizontal-list {
    display: grid;
    gap: 16px;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 12px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizontal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.horizontal-cover {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    background: var(--slate-100);
}

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

.horizontal-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.horizontal-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--slate-900);
    font-size: 19px;
    font-weight: 850;
}

.horizontal-title:hover {
    color: var(--primary-700);
}

.horizontal-body p {
    display: -webkit-box;
    margin: 7px 0 10px;
    color: var(--slate-600);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-chip {
    width: fit-content;
    margin-bottom: 6px;
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--white);
    background: var(--accent-600);
    font-size: 12px;
    font-weight: 800;
}

.ranking-panel,
.side-panel,
.detail-article,
.ranking-block {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.ranking-panel {
    padding: 20px;
    position: sticky;
    top: 88px;
}

.panel-heading span {
    color: var(--orange-500);
    font-weight: 850;
}

.panel-heading h2 {
    margin: 4px 0 16px;
    color: var(--slate-900);
    font-size: 26px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 40px 54px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    border-radius: 16px;
    padding: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: var(--primary-50);
    transform: translateX(3px);
}

.rank-number {
    color: var(--primary-700);
    font-weight: 900;
    font-size: 18px;
}

.rank-cover {
    width: 54px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--slate-100);
}

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

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

.rank-info strong {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--slate-900);
}

.rank-info em {
    color: var(--slate-500);
    font-style: normal;
    font-size: 13px;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    color: var(--white);
    background: var(--slate-900);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.46;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.88));
}

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

.category-card span {
    margin-bottom: 6px;
    font-size: 20px;
    font-weight: 900;
}

.category-card em {
    display: -webkit-box;
    color: rgba(255, 255, 255, 0.84);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: normal;
    font-size: 14px;
}

.page-hero {
    padding: 64px 0;
    color: var(--white);
    background: radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.28), transparent 34%), linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.small-page-hero {
    padding: 52px 0;
}

.page-hero h1 {
    max-width: 780px;
    margin: 14px 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 14px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.overview-cover {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--slate-100);
}

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

.overview-title {
    color: var(--slate-900);
    font-size: 22px;
    font-weight: 900;
}

.overview-title:hover {
    color: var(--primary-700);
}

.category-overview-card p {
    margin: 6px 0 12px;
    color: var(--slate-600);
}

.overview-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.overview-links a {
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--primary-700);
    background: var(--primary-50);
    font-size: 13px;
    font-weight: 700;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-button {
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--slate-700);
    background: var(--white);
    cursor: pointer;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.filter-button:hover,
.filter-button.is-active {
    color: var(--primary-700);
    border-color: var(--primary-400);
    background: var(--primary-50);
}

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

.ranking-block {
    padding: 20px;
}

.ranking-block h2 {
    margin: 0 0 16px;
    color: var(--slate-900);
    font-size: 24px;
}

.wide-rank-list {
    grid-template-columns: 1fr;
}

.search-page-form {
    max-width: 620px;
    margin-top: 24px;
}

.search-page-form input {
    width: 100%;
    min-height: 50px;
}

.search-page-form button {
    min-height: 50px;
}

.search-status {
    margin-bottom: 22px;
    color: var(--slate-600);
    font-weight: 700;
}

.detail-top {
    padding: 34px 0 46px;
    color: var(--white);
    background: radial-gradient(circle at 15% 0%, rgba(56, 189, 248, 0.25), transparent 30%), linear-gradient(135deg, var(--slate-900), #111827);
}

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

.player-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #020617;
    box-shadow: var(--shadow-lg);
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.74));
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    color: var(--white);
    background: rgba(2, 132, 199, 0.92);
    box-shadow: 0 18px 42px rgba(2, 132, 199, 0.35);
    font-size: 34px;
}

.detail-info {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.detail-poster {
    width: 128px;
    height: 178px;
    border-radius: 18px;
    object-fit: cover;
    background: var(--slate-800);
}

.detail-copy h1 {
    margin: 0 0 10px;
    color: var(--white);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.14;
}

.detail-line {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.82);
}

.detail-tags span {
    color: var(--primary-100);
    background: rgba(255, 255, 255, 0.12);
}

.detail-content-section {
    background: var(--white);
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    align-items: start;
}

.detail-article {
    padding: 28px;
}

.detail-article h2 {
    margin: 0 0 12px;
    color: var(--slate-900);
    font-size: 26px;
}

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

.detail-article p {
    margin: 0;
    color: var(--slate-700);
    font-size: 17px;
}

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

.info-table div {
    border-radius: 16px;
    padding: 14px;
    background: var(--slate-50);
}

.info-table strong {
    display: block;
    margin-bottom: 4px;
    color: var(--slate-500);
    font-size: 13px;
}

.info-table span {
    color: var(--slate-900);
    font-weight: 750;
}

.side-panel {
    padding: 20px;
    position: sticky;
    top: 88px;
}

.side-panel h2 {
    margin: 0 0 14px;
    color: var(--slate-900);
}

.side-ranks {
    display: grid;
    gap: 8px;
}

.site-footer {
    padding: 34px 0;
    color: var(--slate-300);
    background: var(--slate-900);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 560px;
}

.footer-brand strong {
    display: block;
    color: var(--white);
    margin-bottom: 4px;
}

.footer-brand p {
    margin: 0;
    color: var(--slate-400);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a:hover {
    color: var(--primary-400);
}

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

    .site-search input {
        width: 210px;
    }

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

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

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

    .hero-rail {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: auto;
        min-height: 64px;
        padding: 10px 0;
    }

    .header-inner > .site-search {
        display: none;
    }

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

    .brand-title {
        font-size: 18px;
    }

    .hero-stage {
        min-height: 560px;
        height: 76vh;
    }

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

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

    .hero-arrow {
        display: none;
    }

    .hero-rail {
        grid-template-columns: 1fr;
        margin-top: -72px;
    }

    .hero-mini-card:nth-child(n + 3) {
        display: none;
    }

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

    .movie-grid,
    .featured-grid,
    .category-movie-grid,
    .category-grid,
    .category-overview-grid,
    .ranking-layout {
        grid-template-columns: 1fr;
    }

    .horizontal-card,
    .category-overview-card,
    .detail-info {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .horizontal-cover {
        aspect-ratio: 3 / 4;
    }

    .detail-poster {
        width: 110px;
        height: 156px;
    }

    .detail-article,
    .side-panel,
    .ranking-panel,
    .ranking-block {
        padding: 18px;
    }

    .info-table {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container,
    .header-inner,
    .mobile-panel,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

    .brand-subtitle {
        display: none;
    }

    .hero-content h1 {
        font-size: 34px;
    }

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

    .page-hero {
        padding: 42px 0;
    }

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