:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --cyan: #06b6d4;
    --teal: #14b8a6;
    --slate: #0f172a;
    --slate-soft: #1e293b;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --rose: #f43f5e;
    --amber: #f59e0b;
    --purple: #9333ea;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: #111827;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 45%, #ecfeff 100%);
}

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;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    box-shadow: 0 1px 18px rgba(15, 23, 42, 0.08);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.brand-text {
    font-size: 21px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    position: relative;
    font-size: 14px;
    color: #334155;
    font-weight: 650;
    padding: 23px 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 17px;
    height: 2px;
    border-radius: 999px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--blue);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #334155;
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 45%, #14b8a6 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.22) 0 0.65rem, transparent 0.7rem), radial-gradient(circle at 80% 30%, rgba(255,255,255,0.14) 0 0.4rem, transparent 0.45rem);
    background-size: 72px 72px, 96px 96px;
    opacity: 0.42;
}

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

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

.hero-image-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
    opacity: 0.18;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.24) 45%, rgba(15, 23, 42, 0.52)), linear-gradient(135deg, rgba(37, 99, 235, 0.78), rgba(6, 182, 212, 0.58));
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 430px);
    gap: 48px;
    align-items: center;
}

.hero-copy {
    color: white;
    max-width: 760px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 700;
}

.hero h1,
.page-hero h1 {
    margin: 0 0 22px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero p,
.page-hero p {
    margin: 0;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    border: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.01);
}

.btn-light {
    color: var(--blue);
    background: white;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.btn-glass {
    color: white;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(12px);
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.small-btn {
    min-height: 38px;
    padding: 0 16px;
    font-size: 14px;
}

.hero-poster-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 36px 80px rgba(15, 23, 42, 0.42);
    transform: rotate(2deg);
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.16);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.hero-poster-card span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: white;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 800;
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.hero-dot.is-active {
    width: 36px;
    background: white;
}

.section {
    padding: 72px 0;
}

.white-section {
    background: white;
}

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

.category-section {
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 55%, #fff1f2 100%);
}

.premium-section {
    color: white;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #155e75 100%);
}

.premium-section .section-heading p,
.premium-section .section-heading h2 {
    color: white;
}

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

.section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 38px);
    letter-spacing: -0.03em;
    color: #0f172a;
}

.section-heading p {
    margin: 0;
    color: var(--gray);
    font-size: 16px;
}

.featured-grid,
.movie-grid,
.rank-grid,
.category-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.featured-grid .movie-poster {
    aspect-ratio: 4 / 3;
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 52%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
    opacity: 0.88;
}

.movie-year {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 9px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.9);
}

.movie-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-card-body {
    display: block;
    padding: 16px;
}

.compact-card .movie-card-body {
    padding: 13px;
}

.movie-card-body strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.35;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.movie-card-body em {
    display: -webkit-box;
    min-height: 38px;
    margin-top: 7px;
    color: var(--gray);
    font-size: 13px;
    line-height: 1.45;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    color: #64748b;
    font-size: 12px;
}

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

.rank-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.rank-number {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.rank-thumb {
    flex: 0 0 74px;
    height: 96px;
    overflow: hidden;
    border-radius: 12px;
    background: #e2e8f0;
}

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

.rank-info {
    min-width: 0;
    display: block;
}

.rank-info strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #0f172a;
}

.rank-info em,
.rank-info span {
    display: block;
    color: var(--gray);
    font-size: 13px;
    line-height: 1.45;
    font-style: normal;
}

.list-stack {
    display: grid;
    gap: 18px;
}

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

.category-tile {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    position: relative;
    overflow: hidden;
    padding: 24px;
    color: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.category-tile::before,
.category-overview-card::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(6, 182, 212, 0.74));
    z-index: -2;
}

.from-cyan::before {
    background: linear-gradient(135deg, #0891b2, #14b8a6);
}

.from-rose::before {
    background: linear-gradient(135deg, #e11d48, #f97316);
}

.from-pink::before {
    background: linear-gradient(135deg, #db2777, #f43f5e);
}

.from-purple::before {
    background: linear-gradient(135deg, #7e22ce, #db2777);
}

.from-amber::before {
    background: linear-gradient(135deg, #d97706, #ef4444);
}

.from-emerald::before {
    background: linear-gradient(135deg, #059669, #0d9488);
}

.from-indigo::before {
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.05));
    z-index: -1;
}

.category-cover-stack {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    transform: rotate(6deg);
}

.category-cover-stack img {
    width: 72px;
    height: 98px;
    object-fit: cover;
    margin-left: -32px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.56);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.28);
}

.category-tile strong {
    font-size: 24px;
}

.category-tile em,
.category-tile span:last-child {
    font-style: normal;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.55;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.compact-hero {
    padding: 76px 0;
}

.compact-hero h1 {
    font-size: clamp(38px, 6vw, 58px);
}

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

.detail-main .breadcrumb {
    color: #64748b;
}

.breadcrumb a:hover {
    color: white;
}

.detail-main .breadcrumb a:hover {
    color: var(--blue);
}

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

.category-overview-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    color: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.category-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-images img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.28);
}

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

.category-overview-card p {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

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

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
}

.category-overview-card .tag-row span,
.detail-tags span {
    color: white;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.text-link {
    display: inline-flex;
    margin-top: 18px;
    color: white;
    font-weight: 900;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 190px 180px 130px;
    gap: 16px;
    align-items: end;
    margin-bottom: 32px;
    padding: 20px;
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-soft);
}

.wide-filter {
    grid-template-columns: minmax(260px, 1fr) 180px 150px 150px 130px;
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #475569;
    font-weight: 800;
    font-size: 13px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 0 14px;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.filter-count {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--blue);
    background: #eff6ff;
    font-weight: 800;
}

.filter-count strong {
    margin-right: 4px;
    font-size: 20px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 58px 86px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-soft);
}

.ranking-index {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-size: 20px;
    font-weight: 900;
}

.ranking-cover {
    width: 86px;
    height: 116px;
    overflow: hidden;
    border-radius: 12px;
    background: #e2e8f0;
}

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

.ranking-main h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.ranking-main p {
    margin: 0 0 12px;
    color: var(--gray);
    line-height: 1.55;
}

.detail-shell {
    padding: 42px 0 72px;
}

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

.detail-main,
.detail-sidebar {
    display: grid;
    gap: 24px;
}

.player-card,
.detail-card,
.sidebar-card,
.text-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow);
}

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

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: black;
}

.video-play-toggle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 76px;
    height: 76px;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.34);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.video-play-toggle:hover {
    transform: translate(-50%, -50%) scale(1.07);
}

.video-play-toggle span {
    display: inline-block;
    transform: translateX(3px);
    font-size: 28px;
}

.video-play-toggle.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.player-status {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 10px 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
    font-size: 13px;
}

.detail-card {
    padding: 28px;
}

.detail-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.detail-heading h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 5vw, 42px);
    letter-spacing: -0.03em;
}

.detail-heading p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
    font-weight: 650;
}

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

.info-strip span {
    min-height: 72px;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 12px;
    border-radius: 16px;
    color: #334155;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.info-strip strong {
    color: var(--blue);
    font-size: 12px;
}

.detail-tags {
    margin-bottom: 24px;
}

.detail-tags span {
    color: #1e40af;
    background: #dbeafe;
}

.content-block {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.content-block h2,
.sidebar-card h2,
.text-card h2 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 22px;
}

.content-block p,
.text-card p {
    margin: 0;
    color: #334155;
    line-height: 1.85;
}

.review-block {
    padding: 22px;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.pager-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.pager-links a {
    padding: 14px;
    border-radius: 14px;
    color: #1e40af;
    background: #eff6ff;
    font-weight: 800;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar-card {
    padding: 22px;
}

.poster-panel {
    text-align: center;
}

.poster-panel img {
    width: min(240px, 100%);
    aspect-ratio: 2 / 3;
    object-fit: cover;
    margin: 0 auto 16px;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.poster-panel strong,
.poster-panel span {
    display: block;
}

.poster-panel strong {
    color: #0f172a;
    font-size: 20px;
}

.poster-panel span {
    margin-top: 6px;
    color: var(--gray);
}

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

.side-list .rank-card {
    padding: 10px;
    gap: 10px;
    box-shadow: none;
    background: #f8fafc;
}

.side-list .rank-thumb {
    flex-basis: 82px;
    height: 58px;
}

.side-list .rank-info span {
    display: none;
}

.cta-card {
    color: white;
    background: linear-gradient(135deg, var(--purple), var(--rose));
}

.cta-card h2,
.cta-card p {
    color: white;
}

.cta-card p {
    line-height: 1.7;
}

.text-stack {
    display: grid;
    gap: 24px;
}

.text-card {
    padding: 30px;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #111827);
    padding: 56px 0 28px;
}

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

.footer-brand {
    color: white;
    font-size: 20px;
    margin-bottom: 14px;
}

.site-footer p {
    color: #94a3b8;
    line-height: 1.75;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: white;
    font-size: 17px;
}

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

.site-footer a {
    color: #94a3b8;
    font-size: 14px;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 36px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #94a3b8;
    font-size: 13px;
}

[hidden],
.is-filter-hidden {
    display: none !important;
}

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

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

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

    .filter-panel,
    .wide-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 820px) {
    .site-nav {
        height: 64px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        padding: 13px 14px;
        border-radius: 12px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.is-active {
        background: #eff6ff;
    }

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

    .hero-inner {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 26px;
        padding: 48px 0 84px;
    }

    .hero-poster-card {
        max-width: 260px;
        justify-self: center;
    }

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

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

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

    .ranking-row {
        grid-template-columns: 46px 72px minmax(0, 1fr);
    }

    .ranking-row .btn {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .info-strip,
    .pager-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-heading {
        display: grid;
    }
}

@media (max-width: 560px) {
    .container,
    .site-nav,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 24px, 1180px);
    }

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

    .section {
        padding: 52px 0;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 38px;
    }

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

    .featured-grid,
    .movie-grid,
    .premium-grid,
    .all-grid,
    .rank-grid,
    .category-grid,
    .category-overview-grid,
    .filter-panel,
    .wide-filter,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-images {
        grid-template-columns: repeat(2, 1fr);
    }

    .rank-card {
        align-items: flex-start;
    }

    .rank-number {
        display: none;
    }

    .info-strip,
    .pager-links {
        grid-template-columns: 1fr;
    }

    .detail-card,
    .sidebar-card,
    .text-card {
        padding: 20px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
