:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --text: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --teal: #14b8a6;
    --yellow: #fde047;
    --dark: #0f172a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.76);
    backdrop-filter: blur(16px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

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

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.26);
    transition: transform 0.25s ease;
}

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

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

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

.brand-text small {
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link {
    padding: 10px 14px;
    color: #334155;
    font-size: 15px;
    font-weight: 650;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 4px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.mobile-link {
    display: block;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 13px 0;
    font-weight: 700;
    color: #334155;
}

.mobile-link.active {
    color: var(--blue);
}

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

.hero-slider {
    position: relative;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: center;
    gap: 52px;
    width: 100%;
    padding: 120px max(32px, calc((100vw - 1180px) / 2)) 120px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.03);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.48), rgba(15, 23, 42, 0.18)), var(--hero-image);
    background-position: center;
    background-size: cover;
}

.hero-backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    background: radial-gradient(circle at 20% 20%, rgba(253, 224, 71, 0.28), transparent 28%), radial-gradient(circle at 72% 30%, rgba(6, 182, 212, 0.32), transparent 34%);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 720px;
    color: #ffffff;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-kicker {
    color: var(--yellow);
    margin-bottom: 18px;
}

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

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

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.tag-row span {
    color: var(--blue);
    background: #eff6ff;
    border-color: #dbeafe;
}

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

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

.button:hover {
    transform: translateY(-2px);
}

.button-light {
    color: var(--blue);
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.24);
}

.button-ghost,
.button-glass {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.44);
}

.hero-poster {
    justify-self: end;
    width: min(360px, 33vw);
    padding: 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(12px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
}

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 116px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-50%);
}

.hero-controls button {
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    cursor: pointer;
}

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

.hero-dot {
    width: 10px !important;
    height: 10px !important;
    padding: 0;
}

.hero-dot.active {
    width: 28px !important;
    background: #ffffff;
}

.hero-thumbs {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(6, minmax(90px, 1fr));
    gap: 12px;
    width: min(920px, calc(100% - 32px));
    transform: translateX(-50%);
}

.hero-thumb {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.hero-thumb.active {
    background: rgba(37, 99, 235, 0.72);
}

.hero-thumb img {
    width: 42px;
    height: 54px;
    object-fit: cover;
    border-radius: 10px;
}

.hero-thumb span {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-main {
    padding-top: 76px;
}

.section {
    padding: 76px 0;
    background: #ffffff;
}

.section-light {
    background: var(--bg);
}

.section-head {
    margin-bottom: 30px;
}

.section-head h2,
.page-hero h1,
.ranking-layout h2 {
    margin: 8px 0 8px;
    color: var(--text);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-head p,
.ranking-layout p,
.page-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.split-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.text-link {
    color: var(--blue);
    font-weight: 800;
}

.stats-section {
    position: relative;
    z-index: 4;
    margin-top: -46px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.stats-grid div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 84px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.stats-grid strong {
    color: var(--blue);
    font-size: 30px;
    line-height: 1;
}

.stats-grid span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    padding: 22px;
    color: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    isolation: isolate;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.category-card::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.86));
}

.category-glow {
    position: absolute;
    right: -42px;
    bottom: -42px;
    width: 126px;
    height: 126px;
    background: rgba(6, 182, 212, 0.44);
    border-radius: 999px;
    filter: blur(16px);
}

.category-card strong {
    display: block;
    margin-top: 78px;
    font-size: 24px;
}

.category-card small {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.84);
}

.category-card em {
    display: inline-flex;
    margin-top: 16px;
    padding: 6px 12px;
    font-style: normal;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

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

.compact-grid {
    gap: 18px;
}

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.82);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: var(--shadow);
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: #dbeafe;
}

.movie-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.72));
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.play-bubble {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.cover-region,
.cover-year {
    position: absolute;
    top: 12px;
    padding: 5px 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
}

.cover-region {
    right: 12px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.cover-year {
    left: 12px;
    background: rgba(15, 23, 42, 0.72);
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--text);
    font-size: 18px;
    line-height: 1.28;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-info h3 a:hover {
    color: var(--blue);
}

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

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    color: #475569;
    font-size: 13px;
    font-weight: 750;
}

.filter-panel {
    margin-bottom: 30px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.search-box span {
    color: var(--muted);
    font-size: 24px;
}

.search-box input {
    width: 100%;
    height: 52px;
    color: var(--text);
    background: transparent;
    border: 0;
    outline: 0;
}

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

.filter-chip-row button {
    min-height: 38px;
    padding: 8px 14px;
    color: #475569;
    font-weight: 800;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
}

.filter-chip-row button.active,
.filter-chip-row button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-color: transparent;
}

.filter-status {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.3fr);
    gap: 42px;
    align-items: start;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(37, 99, 235, 0.32);
}

.rank-number {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 14px;
}

.rank-item img {
    width: 58px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-content {
    min-width: 0;
}

.rank-content b,
.rank-content small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-content b {
    color: var(--text);
    font-size: 16px;
}

.rank-content small {
    color: var(--muted);
    font-size: 13px;
}

.page-hero {
    position: relative;
    color: #ffffff;
    overflow: hidden;
}

.gradient-hero {
    padding: 86px 0;
    background: linear-gradient(135deg, var(--blue), var(--cyan) 55%, var(--teal));
}

.small-hero {
    padding: 74px 0 64px;
}

.page-hero h1,
.page-hero p,
.page-hero .eyebrow {
    color: #ffffff;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.86);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.category-overview-cover {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

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

.category-overview-cover span {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 6px 10px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(37, 99, 235, 0.88);
    border-radius: 999px;
}

.category-overview-card h2 {
    margin: 6px 0 8px;
    font-size: 24px;
}

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

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.mini-links a {
    padding: 5px 9px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    background: #eff6ff;
    border-radius: 999px;
}

.detail-main {
    background: var(--bg);
}

.detail-hero {
    position: relative;
    min-height: 620px;
    padding: 112px 0 72px;
    color: #ffffff;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.64)), var(--detail-image);
    background-position: center;
    background-size: cover;
}

.detail-hero-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 20%, rgba(37, 99, 235, 0.42), transparent 32%), radial-gradient(circle at 86% 12%, rgba(6, 182, 212, 0.36), transparent 32%);
}

.detail-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    padding: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(10px);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 20px;
}

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

.breadcrumbs a:hover {
    color: #ffffff;
}

.detail-heading .eyebrow {
    color: var(--yellow);
}

.detail-heading h1 {
    margin: 10px 0 16px;
    color: #ffffff;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

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

.detail-meta span {
    padding: 7px 12px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.large-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
}

.detail-section {
    padding-top: 46px;
    background: var(--bg);
}

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

.detail-content,
.detail-sidebar {
    display: grid;
    gap: 22px;
}

.player-card,
.content-block,
.side-card,
.prose-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.62));
    border: 0;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    color: var(--blue);
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.32);
}

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

.content-block,
.side-card,
.prose-card {
    padding: 26px;
}

.content-block h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.content-block p,
.prose-card p {
    margin: 0 0 16px;
    color: #334155;
    font-size: 17px;
}

.review-block {
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    border-left: 5px solid var(--blue);
}

.info-table {
    display: grid;
    gap: 10px;
    margin: 0;
}

.info-table div {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.info-table dt {
    color: var(--muted);
    font-weight: 800;
}

.info-table dd {
    margin: 0;
    color: var(--text);
}

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

.side-card .rank-item {
    grid-template-columns: 42px 54px minmax(0, 1fr);
    padding: 9px;
}

.side-card .rank-number {
    width: 34px;
    height: 34px;
}

.side-card .rank-item img {
    width: 54px;
    height: 70px;
}

.side-category {
    display: block;
    margin-top: 10px;
    padding: 12px 14px;
    color: var(--blue);
    font-weight: 800;
    background: #eff6ff;
    border-radius: 14px;
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 54px 0;
}

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

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

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a:hover {
    color: #60a5fa;
}

.footer-badge {
    display: inline-flex;
    padding: 8px 12px;
    color: #bfdbfe !important;
    background: rgba(37, 99, 235, 0.16);
    border-radius: 999px;
}

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

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border: 0;
    border-radius: 999px;
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

[data-card].is-hidden {
    display: none !important;
}

@media (max-width: 1024px) {
    .hero-slide {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 112px;
    }

    .hero-poster {
        display: none;
    }

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

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

    .ranking-layout,
    .detail-layout,
    .detail-hero-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .site-nav {
        min-height: 66px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

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

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

    .brand-text small {
        display: none;
    }

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

    .hero-slide {
        padding: 96px 20px 160px;
    }

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

    .hero-content p {
        font-size: 17px;
    }

    .hero-controls {
        bottom: 110px;
    }

    .hero-thumbs {
        bottom: 18px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-section {
        margin-top: 0;
        padding: 18px 0;
        background: #ffffff;
    }

    .stats-grid,
    .category-grid,
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .split-head {
        align-items: start;
        flex-direction: column;
    }

    .section {
        padding: 52px 0;
    }

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

    .category-overview-cover img {
        height: 260px;
    }

    .detail-hero {
        padding-top: 88px;
    }

    .detail-heading h1 {
        font-size: 38px;
    }

    .detail-heading p {
        font-size: 17px;
    }

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

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