:root {
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-200: #bae6fd;
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --blue-500: #3b82f6;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(14, 116, 144, 0.12);
    --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.10);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    color: var(--slate-900);
    background: linear-gradient(180deg, #ffffff 0%, var(--sky-50) 45%, #ecfeff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.container.narrow {
    width: min(100% - 32px, 920px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(14, 165, 233, 0.16);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--sky-500), var(--cyan-500));
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    color: var(--sky-700);
    font-size: 18px;
    letter-spacing: 0.02em;
}

.brand-text small {
    color: var(--sky-500);
    font-size: 12px;
    margin-top: 3px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-link,
.mobile-nav-link {
    color: var(--slate-700);
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--sky-700);
    background: var(--sky-100);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
}

.header-search input {
    width: 230px;
    padding: 10px 14px;
    border: 1px solid var(--sky-200);
    border-radius: 999px;
    outline: none;
    background: #ffffff;
}

.header-search input:focus,
.toolbar-search input:focus {
    border-color: var(--sky-400);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

.header-search button,
.btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.header-search button {
    padding: 10px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky-500), var(--cyan-500));
}

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

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--sky-700);
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--container));
    margin: 0 auto 12px;
    padding-top: 10px;
    border-top: 1px solid var(--sky-100);
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

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

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky-400), var(--blue-500) 50%, var(--cyan-400));
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-position: center;
    background-size: cover;
    filter: saturate(1.2);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.34), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.28), transparent 28%),
        linear-gradient(180deg, rgba(2, 132, 199, 0.18), rgba(15, 23, 42, 0.46));
}

.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 96px;
    background: linear-gradient(180deg, transparent, #ffffff);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 74px 0 120px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
    gap: 56px;
    align-items: center;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeIn 0.45s ease both;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 44px rgba(15, 23, 42, 0.26);
}

.hero-copy p {
    max-width: 640px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(17px, 2vw, 23px);
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.tag-row a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

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

.btn {
    min-height: 46px;
    padding: 12px 22px;
}

.btn-primary {
    color: var(--sky-700);
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.2);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 700;
}

.hero-stats span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.16);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.26);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.42));
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 54px;
    background: #ffffff;
}

.page-section {
    padding: 54px 0;
}

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

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

.section-heading p {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--slate-500);
}

.section-link,
.text-link,
.panel-title a {
    color: var(--sky-700);
    font-weight: 800;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.34);
    box-shadow: 0 22px 48px rgba(14, 116, 144, 0.18);
}

.movie-card-compact {
    border-radius: 20px;
}

.poster-frame,
.category-overview-cover,
.detail-poster {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sky-100), var(--cyan-400));
}

.poster-frame {
    display: block;
    aspect-ratio: 4 / 5;
}

.poster-frame img,
.category-overview-cover img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.poster-frame.poster-missing::after,
.category-overview-cover.poster-missing::after,
.detail-poster.poster-missing::after {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    color: var(--sky-700);
    text-align: center;
    font-weight: 900;
    background: linear-gradient(135deg, var(--sky-50), #cffafe);
}

.play-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.92);
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.35);
}

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

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

.card-meta-line span,
.detail-meta span,
.category-overview-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--sky-50);
}

.movie-card h3 {
    margin: 12px 0 8px;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.35;
}

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

.card-category {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--sky-700);
    font-size: 13px;
    font-weight: 800;
}

.tag-row span,
.tag-row a {
    color: var(--sky-700);
    background: var(--sky-100);
}

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

.category-card {
    min-height: 164px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: var(--radius-xl);
    color: var(--sky-700);
    background: linear-gradient(135deg, #ffffff, var(--sky-50));
    border: 1px solid rgba(14, 165, 233, 0.16);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(14, 116, 144, 0.16);
}

.category-card strong {
    font-size: 22px;
}

.category-card span {
    font-weight: 900;
}

.category-card small {
    color: var(--slate-500);
}

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

.ranking-panel,
.panel {
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
}

.panel {
    padding: 26px;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.panel-title h2 {
    font-size: 24px;
}

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

.ranking-list-full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-row {
    display: grid;
    grid-template-columns: 36px 62px minmax(0, 1fr) 18px;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--slate-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
    background: var(--sky-50);
    transform: translateX(4px);
}

.ranking-number {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--sky-700);
    background: var(--sky-100);
    font-weight: 900;
}

.ranking-number.top-one {
    color: #ffffff;
    background: #facc15;
}

.ranking-number.top-two {
    color: #ffffff;
    background: #94a3b8;
}

.ranking-number.top-three {
    color: #ffffff;
    background: #b45309;
}

.ranking-row img {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--sky-100);
}

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

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

.ranking-info strong {
    color: var(--slate-900);
    font-size: 15px;
}

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

.ranking-arrow {
    color: var(--sky-500);
    font-size: 24px;
}

.sub-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky-400), var(--blue-500), var(--cyan-500));
}

.sub-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.24), transparent 28%),
        radial-gradient(circle at 88% 0%, rgba(255, 255, 255, 0.22), transparent 32%);
}

.sub-hero .container {
    position: relative;
    z-index: 1;
}

.sub-hero h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 58px);
    letter-spacing: -0.04em;
}

.sub-hero p {
    max-width: 760px;
    margin: 16px auto 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.sub-hero .narrow {
    text-align: center;
}

.category-overview-grid {
    display: grid;
    gap: 24px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.category-overview-cover {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
}

.category-overview-cover span {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.92);
    font-weight: 900;
}

.category-overview-card h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.category-overview-card p {
    color: var(--slate-500);
}

.toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid rgba(14, 165, 233, 0.14);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.toolbar-large {
    grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
}

.toolbar-search {
    display: grid;
    gap: 8px;
    color: var(--slate-700);
    font-weight: 900;
}

.toolbar-search input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--sky-200);
    border-radius: 999px;
    outline: none;
    background: #ffffff;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-pill {
    padding: 10px 15px;
    border: 1px solid var(--sky-200);
    border-radius: 999px;
    color: var(--sky-700);
    background: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.filter-pill.is-active,
.filter-pill:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky-500), var(--cyan-500));
}

.result-count {
    margin: 0 0 22px;
    color: var(--slate-500);
    font-weight: 800;
}

.rank-badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.34);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 44px 0 68px;
    color: #ffffff;
    background: var(--slate-900);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.26;
    background-position: center;
    background-size: cover;
    filter: blur(2px) saturate(1.2);
    transform: scale(1.04);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.74), rgba(15, 23, 42, 0.86));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-flex;
    margin-bottom: 24px;
    color: #ffffff;
    font-weight: 800;
}

.detail-title-block {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 4 / 5;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.34);
}

.detail-title-block h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-title-block p {
    max-width: 760px;
    margin: 18px 0 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
}

.detail-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

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

.detail-tags a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

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

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

.detail-side {
    display: grid;
    gap: 22px;
    position: sticky;
    top: 92px;
}

.player-panel {
    overflow: hidden;
    padding: 0;
}

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

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

.player-button {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    border: 0;
    border-radius: 999px;
    color: var(--sky-700);
    background: #ffffff;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.player-button span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky-500), var(--cyan-500));
}

.player-frame.is-playing .player-button {
    display: none;
}

.player-note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 18px;
    color: var(--slate-500);
    background: var(--slate-50);
}

.prose-panel h2,
.info-panel h2 {
    margin: 0 0 14px;
    color: var(--slate-900);
    font-size: 24px;
}

.prose-panel h2:not(:first-child) {
    margin-top: 30px;
}

.prose-panel p {
    margin: 0;
    color: var(--slate-700);
    font-size: 16px;
    line-height: 1.9;
}

.info-panel dl {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
}

.info-panel dt {
    color: var(--slate-500);
    font-weight: 800;
}

.info-panel dd {
    margin: 0;
    color: var(--slate-900);
    font-weight: 700;
}

.text-page,
.support-grid {
    width: min(100% - 32px, 920px);
}

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

.site-footer {
    margin-top: 48px;
    border-top: 1px solid rgba(14, 165, 233, 0.14);
    background: rgba(255, 255, 255, 0.86);
}

.footer-inner {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 28px;
}

.footer-brand p,
.footer-column a,
.footer-bottom {
    color: var(--slate-500);
}

.footer-column h3 {
    margin: 0 0 14px;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-column ul {
    display: grid;
    gap: 9px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-column a:hover {
    color: var(--sky-700);
}

.footer-bottom {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 20px 0 30px;
    border-top: 1px solid var(--sky-100);
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-slide,
    .detail-title-block,
    .split-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        min-height: 420px;
        transform: none;
    }

    .hero-poster img {
        min-height: 420px;
    }

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

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

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

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

@media (max-width: 820px) {
    .hero-section {
        min-height: auto;
    }

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

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

    .hero-controls {
        bottom: 42px;
    }

    .movie-grid,
    .movie-grid-featured,
    .movie-grid-compact,
    .category-grid,
    .ranking-list-full,
    .support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .toolbar,
    .toolbar-large {
        grid-template-columns: 1fr;
    }

    .detail-title-block {
        gap: 22px;
    }

    .detail-poster {
        width: min(100%, 260px);
    }
}

@media (max-width: 560px) {
    .container,
    .header-inner,
    .mobile-nav,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 24px, var(--container));
    }

    .brand-text small {
        display: none;
    }

    .hero-slide,
    .detail-title-block {
        gap: 24px;
    }

    .hero-poster,
    .hero-poster img {
        min-height: 340px;
    }

    .hero-actions {
        display: grid;
    }

    .movie-grid,
    .movie-grid-featured,
    .movie-grid-compact,
    .category-grid,
    .ranking-list-full,
    .support-grid {
        grid-template-columns: 1fr;
    }

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

    .panel,
    .ranking-panel {
        padding: 20px;
    }

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

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