:root {
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --amber-400: #fbbf24;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-3xl: 1.75rem;
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 24px 70px rgba(15, 23, 42, 0.24);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-800);
    background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 48%, #f8fafc 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, var(--blue-600), var(--blue-700) 52%, var(--cyan-600));
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.28);
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

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

.brand-mark {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
    font-size: 20px;
}

.brand-text strong,
.footer-brand {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-text small {
    display: block;
    margin-top: 4px;
    color: #dbeafe;
    font-size: 13px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.88);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--blue-700);
    background: #fff;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    border-radius: 99px;
}

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

.hero-slides {
    position: relative;
    min-height: 650px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 25%, rgba(14, 165, 233, 0.28), transparent 30%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.78) 52%, rgba(15, 23, 42, 0.35) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
    align-items: center;
    gap: 54px;
    padding: 82px 0 132px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #a5f3fc;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.inner-hero h1,
.detail-title-block h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-copy p {
    width: min(680px, 100%);
    margin: 24px 0 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.85;
}

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

.tag-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    font-size: 13px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.primary-button,
.ghost-button,
.section-action,
.panel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    box-shadow: 0 16px 38px rgba(37, 99, 235, 0.38);
}

.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.section-action:hover,
.panel-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    width: min(360px, 100%);
    justify-self: end;
    aspect-ratio: 3 / 4;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

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

.hero-score {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 8px 13px;
    color: #fff;
    background: rgba(0, 0, 0, 0.66);
    border-radius: 999px;
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 4;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    pointer-events: none;
}

.hero-dots,
.hero-thumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 34px;
    background: #fff;
}

.hero-thumb {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 160px;
    padding: 8px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    text-align: left;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    cursor: pointer;
    opacity: 0.72;
}

.hero-thumb.is-active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.22);
}

.hero-thumb img {
    width: 46px;
    height: 58px;
    border-radius: 10px;
    object-fit: cover;
    background: linear-gradient(135deg, #1d4ed8, #0f172a);
}

.hero-thumb span {
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.category-strip {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
    padding: 22px;
    border-radius: var(--radius-3xl);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.category-strip a,
.filter-chip,
.card-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--blue-700);
    background: #eff6ff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.category-strip a:hover,
.filter-chip:hover,
.filter-chip.is-active,
.card-category:hover {
    color: #fff;
    background: var(--blue-600);
    transform: translateY(-1px);
}

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

.section-head,
.category-overview-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.section-head h2,
.rank-panel h2,
.category-overview-head h2,
.article-card h2,
.side-card h2 {
    margin: 0;
    color: var(--slate-800);
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -0.03em;
}

.section-head p,
.category-overview-head p {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--slate-600);
    line-height: 1.7;
}

.section-action,
.panel-link {
    color: var(--blue-700);
    background: #dbeafe;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

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

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.86), transparent 58%);
    transition: opacity 0.28s ease;
}

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

.poster-play,
.play-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-700);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
}

.poster-play {
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.rating-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 6px 9px;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.movie-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 15px;
}

.movie-info h3,
.horizontal-body h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.7em;
    margin: 0;
    color: var(--slate-800);
    font-size: 16px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card-link:hover h3,
.horizontal-link:hover h3 {
    color: var(--blue-600);
}

.movie-info p,
.horizontal-body p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    color: var(--slate-600);
    font-size: 13px;
    line-height: 1.6;
}

.movie-meta,
.card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--slate-500);
    font-size: 13px;
}

.card-category {
    align-self: flex-start;
    margin-top: auto;
    font-size: 12px;
}

.spotlight-section {
    padding: 72px 0;
    color: #fff;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.spotlight-section .section-head h2,
.spotlight-section .section-head p {
    color: #fff;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
}

.rank-panel {
    align-self: start;
    padding: 26px;
    border-radius: var(--radius-3xl);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.rank-panel h2 {
    color: #fff;
    margin-bottom: 18px;
}

.rank-panel ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-panel li a,
.rank-row a {
    display: grid;
    align-items: center;
    gap: 12px;
}

.rank-panel li a {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 11px 0;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    font-weight: 900;
}

.rank-panel strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-panel em,
.rank-row em,
.podium-card em {
    color: var(--amber-400);
    font-style: normal;
    font-weight: 900;
}

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

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

.category-tile {
    display: block;
    overflow: hidden;
    min-height: 230px;
    padding: 20px;
    border-radius: var(--radius-2xl);
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.category-tile.compact {
    min-height: 150px;
}

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

.category-posters img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

.category-tile h3 {
    margin: 0 0 8px;
    color: var(--slate-800);
    font-size: 20px;
}

.category-tile p {
    margin: 0;
    color: var(--slate-600);
    line-height: 1.7;
}

.search-panel,
.advanced-search {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--slate-800);
    background: transparent;
}

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

.advanced-search {
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(140px, 190px));
    align-items: center;
}

.advanced-search select {
    min-height: 48px;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    padding: 0 12px;
    color: var(--slate-700);
    background: #fff;
}

.empty-state {
    display: none;
    margin-top: 24px;
    padding: 36px;
    text-align: center;
    color: var(--slate-500);
    background: #fff;
    border-radius: var(--radius-xl);
}

.empty-state.is-visible {
    display: block;
}

.inner-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 82px;
    color: #fff;
    background:
        radial-gradient(circle at 72% 20%, rgba(6, 182, 212, 0.32), transparent 30%),
        linear-gradient(135deg, var(--slate-900), var(--blue-700));
}

.inner-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

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

.breadcrumb a:hover {
    color: #fff;
}

.overview-stack {
    display: grid;
    gap: 34px;
    padding-bottom: 72px;
}

.category-overview-card {
    padding: 28px;
    border-radius: var(--radius-3xl);
    background: #fff;
    box-shadow: var(--shadow-md);
}

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

.podium-card {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px;
    color: #fff;
    border-radius: var(--radius-3xl);
    background: var(--slate-900);
    box-shadow: var(--shadow-xl);
}

.podium-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    transition: transform 0.45s ease;
}

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

.podium-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), transparent 60%);
}

.podium-card > *:not(img) {
    position: relative;
    z-index: 2;
}

.podium-rank {
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-weight: 900;
}

.podium-card strong {
    font-size: 28px;
    line-height: 1.18;
}

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

.rank-row a {
    grid-template-columns: 42px 62px minmax(0, 1fr) auto;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row a:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.rank-row img {
    width: 62px;
    height: 82px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

.rank-text strong,
.rank-text small {
    display: block;
}

.rank-text small {
    margin-top: 6px;
    color: var(--slate-500);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--slate-900);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.72)),
        var(--detail-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.detail-container {
    position: relative;
    z-index: 2;
    padding: 38px 0 72px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    color: #fff;
    background:
        radial-gradient(circle at center, rgba(37, 99, 235, 0.22), transparent 26%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.42));
    cursor: pointer;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.player-play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: var(--blue-700);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 48px rgba(37, 99, 235, 0.28);
    font-size: 30px;
}

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

.player-overlay em {
    color: #cbd5e1;
    font-style: normal;
}

.player-message {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: none;
    padding: 12px 14px;
    color: #fee2e2;
    background: rgba(127, 29, 29, 0.82);
    border-radius: 12px;
}

.player-message.is-visible {
    display: block;
}

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

.detail-title-block h1 {
    font-size: clamp(30px, 4vw, 52px);
}

.detail-score {
    min-width: max-content;
    padding: 12px 16px;
    border-radius: 16px;
    color: var(--amber-400);
    background: rgba(255, 255, 255, 0.12);
    font-size: 22px;
    font-weight: 900;
}

.detail-one-line {
    max-width: 850px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #e0f2fe;
}

.detail-side {
    display: grid;
    gap: 18px;
}

.detail-poster {
    width: 100%;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.side-card,
.article-card {
    border-radius: var(--radius-2xl);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.side-card {
    padding: 20px;
    color: var(--slate-800);
}

.side-card .hero-tags {
    margin-top: 14px;
}

.side-card .tag-chip {
    color: var(--blue-700);
    background: #eff6ff;
    border-color: #dbeafe;
}

.nav-neighbor {
    display: grid;
    gap: 12px;
}

.nav-neighbor a {
    color: var(--blue-700);
    font-weight: 700;
}

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

.article-card {
    padding: 30px;
}

.article-card p {
    color: var(--slate-700);
    font-size: 16px;
    line-height: 1.9;
}

.movie-card-horizontal .horizontal-link {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizontal-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.horizontal-poster {
    position: relative;
    min-height: 190px;
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

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

.play-badge {
    inset: auto 12px 12px auto;
    width: 42px;
    height: 42px;
}

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

.site-footer {
    margin-top: 40px;
    color: #cbd5e1;
    background: var(--slate-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 34px;
    padding: 46px 0;
}

.footer-brand {
    color: #fff;
    margin-bottom: 12px;
}

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

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

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

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

    .detail-side {
        grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: calc(100% + 10px);
        display: none;
        justify-content: flex-start;
        padding: 14px;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.96);
        box-shadow: var(--shadow-xl);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a:hover,
    .site-nav a.active {
        color: #fff;
        background: rgba(255, 255, 255, 0.16);
    }

    .hero-content {
        grid-template-columns: 1fr;
        min-height: 720px;
        padding-top: 64px;
    }

    .hero-poster {
        justify-self: start;
        width: 220px;
        transform: rotate(0);
    }

    .hero-controls {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-thumbs {
        display: none;
    }

    .movie-grid-6,
    .movie-grid-4,
    .category-grid,
    .category-grid-large,
    .podium-grid,
    .detail-content,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .advanced-search {
        grid-template-columns: 1fr;
    }

    .section-head,
    .category-overview-head,
    .detail-title-block {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

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

    .brand-text small {
        font-size: 12px;
    }

    .hero-slides,
    .hero-content {
        min-height: 690px;
    }

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

    .movie-grid-6,
    .movie-grid-4,
    .category-grid,
    .category-grid-large,
    .podium-grid,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .movie-info {
        padding: 12px;
    }

    .movie-info h3 {
        font-size: 14px;
    }

    .category-strip,
    .category-overview-card,
    .article-card {
        padding: 18px;
    }

    .spotlight-section,
    .content-section {
        padding: 46px 0;
    }

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

    .rank-row em {
        grid-column: 3;
    }

    .rank-row img {
        width: 52px;
        height: 70px;
    }

    .movie-card-horizontal .horizontal-link {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .horizontal-poster {
        min-height: 150px;
    }

    .player-play-icon {
        width: 68px;
        height: 68px;
    }
}
