:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --cyan: #22d3ee;
    --cyan-dark: #06b6d4;
    --yellow: #fde047;
    --dark: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f3f7fb;
    --white: #ffffff;
    --shadow: 0 20px 35px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 30px 60px rgba(15, 23, 42, 0.18);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--dark);
    background: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

main {
    min-height: 70vh;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    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 24px rgba(15, 23, 42, 0.08);
}

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

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

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

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

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

.brand-copy strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.brand-copy small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    font-size: 15px;
    font-weight: 600;
}

.nav-link {
    color: #334155;
    position: relative;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    transition: width 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}

.nav-cta,
.mobile-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-cta {
    color: #ffffff;
    padding: 10px 20px;
    background: linear-gradient(90deg, var(--blue), var(--cyan-dark));
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.22);
}

.nav-cta:hover,
.btn:hover,
.mobile-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.mobile-toggle span {
    width: 18px;
    height: 2px;
    background: #334155;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

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

.mobile-link {
    padding: 11px 12px;
    border-radius: 12px;
    color: #334155;
    font-weight: 700;
}

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

.mobile-cta {
    color: #ffffff;
    padding: 12px 16px;
    background: linear-gradient(90deg, var(--blue), var(--cyan-dark));
}

.hero {
    position: relative;
    min-height: 720px;
    padding: 116px 0 64px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 25% 20%, rgba(34, 211, 238, 0.45), transparent 32%), linear-gradient(135deg, #1d4ed8 0%, #0f6fb7 45%, #06b6d4 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: radial-gradient(circle at 1px 1px, #ffffff 1px, transparent 0);
    background-size: 30px 30px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    right: -120px;
    bottom: -160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    filter: blur(8px);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
    align-items: center;
    gap: 52px;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: #dffbff;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 16px;
}

.eyebrow.dark {
    color: var(--blue);
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.03;
    letter-spacing: -0.055em;
    max-width: 860px;
}

.hero h2 {
    margin: 0 0 14px;
    color: var(--yellow);
    font-size: clamp(26px, 3vw, 40px);
}

.hero p {
    max-width: 760px;
    margin: 0 0 24px;
    color: #e0f2fe;
    font-size: clamp(18px, 2vw, 24px);
}

.hero-tags,
.detail-meta,
.movie-meta,
.genre-pills,
.tag-row,
.page-actions,
.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions {
    margin-top: 30px;
}

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

.btn-primary {
    color: var(--blue-dark);
    background: #ffffff;
}

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

.btn-ghost.dark {
    color: var(--blue-dark);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.btn-line {
    color: #ffffff;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.72);
}

.btn-small {
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan-dark));
    min-height: 40px;
    padding: 10px 18px;
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 32px;
    overflow: hidden;
    min-height: 470px;
    box-shadow: 0 35px 80px rgba(15, 23, 42, 0.35);
    transform: perspective(1000px) rotateY(-7deg);
    transition: transform 0.35s ease;
    background: rgba(255, 255, 255, 0.12);
}

.hero-poster:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-8px);
}

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

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

.hero-score {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 2;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-dark);
    background: var(--yellow);
    border-radius: 50%;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.24);
}

.hero-controls {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

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

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

.stats-band {
    background: #ffffff;
    margin-top: -36px;
    position: relative;
    z-index: 2;
}

.stats-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stats-grid article {
    padding: 24px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.stats-grid strong {
    display: block;
    color: var(--blue);
    font-size: 26px;
    margin-bottom: 4px;
}

.stats-grid span {
    color: var(--muted);
    font-weight: 600;
}

.section {
    padding: 72px 0;
}

.section-white {
    background: #ffffff;
}

.section-gray {
    background: #f8fafc;
}

.section-head,
.section > .filter-panel,
.movie-grid,
.rank-list,
.category-grid,
.category-overview,
.content-card,
.player-layout {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.section-head {
    margin-bottom: 32px;
    text-align: center;
}

.section-head.side {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
}

.section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.035em;
}

.section-head p {
    margin: 0 auto;
    max-width: 760px;
    color: var(--muted);
    font-size: 17px;
}

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

.text-link:hover {
    color: var(--cyan-dark);
}

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

.category-tile,
.category-section-card,
.content-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.category-tile {
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile span {
    color: var(--blue);
    font-weight: 800;
}

.category-tile h3 {
    margin: 8px 0 10px;
    font-size: 22px;
}

.category-tile p {
    margin: 0 0 18px;
    color: var(--muted);
}

.category-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-preview a {
    color: #334155;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
}

.category-preview a:hover {
    color: var(--blue);
    background: #dbeafe;
}

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

.movie-grid.mini {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.movie-card {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    height: 315px;
    overflow: hidden;
    background: #e2e8f0;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.66));
}

.poster-play {
    position: absolute;
    inset: 0;
    width: 62px;
    height: 62px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    font-size: 24px;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: scale(1);
}

.poster-year,
.poster-region,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    padding: 6px 10px;
}

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

.poster-region {
    top: 12px;
    right: 12px;
    background: var(--blue);
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    background: linear-gradient(90deg, #f97316, #facc15);
    color: #1f2937;
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

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

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

.movie-meta {
    color: #64748b;
    font-size: 13px;
    gap: 8px;
    margin-bottom: 12px;
}

.movie-meta span {
    display: inline-flex;
    align-items: center;
}

.movie-meta span + span::before {
    content: "";
    width: 4px;
    height: 4px;
    margin-right: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}

.tag-row span,
.tag-row a,
.genre-pills span {
    color: var(--blue-dark);
    background: #eff6ff;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
}

.tag-row a:hover {
    color: #ffffff;
    background: var(--blue);
}

.page-hero,
.detail-hero {
    position: relative;
    padding: 132px 0 68px;
    color: #ffffff;
    background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.45), transparent 28%), linear-gradient(135deg, #1d4ed8, #06b6d4);
    overflow: hidden;
}

.page-hero > div,
.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.page-hero h1,
.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.page-hero p,
.detail-info .lead {
    margin: 0;
    max-width: 760px;
    color: #e0f2fe;
    font-size: 19px;
}

.page-actions {
    margin-top: 28px;
}

.filter-panel {
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.filter-row {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(150px, 0.5fr));
    gap: 12px;
}

.filter-row input,
.filter-row select {
    width: 100%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 14px;
    padding: 13px 14px;
    color: #334155;
    font: inherit;
    outline: none;
}

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

.empty-state {
    margin: 16px 0 0;
    color: var(--muted);
    font-weight: 700;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 62px 86px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.rank-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan-dark));
    border-radius: 16px;
    font-weight: 900;
}

.rank-poster {
    width: 76px;
    height: 102px;
    overflow: hidden;
    border-radius: 14px;
    background: #e2e8f0;
}

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

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

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

.rank-info p {
    margin: 0 0 8px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.score-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 42px;
    color: #713f12;
    background: #fef3c7;
    border-radius: 999px;
    font-size: 18px;
}

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

.category-section-card {
    padding: 24px;
}

.category-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.category-section-head h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.category-section-head p {
    margin: 0;
    color: var(--muted);
}

.detail-hero {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    padding-top: 128px;
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
    background: rgba(255, 255, 255, 0.15);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: #dffbff;
    font-size: 14px;
}

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

.detail-meta {
    margin: 22px 0 14px;
}

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

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

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
    object-fit: contain;
    cursor: pointer;
}

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

.player-overlay span {
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--cyan-dark));
    box-shadow: 0 20px 38px rgba(37, 99, 235, 0.38);
    font-size: 34px;
    padding-left: 6px;
}

.player-overlay:hover span {
    transform: scale(1.05);
}

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

.player-side {
    padding: 24px;
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.player-side h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.player-side p {
    margin: 0 0 18px;
    color: var(--muted);
}

.content-card {
    padding: 34px;
    max-width: 940px;
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.content-card h2:not(:first-child) {
    margin-top: 32px;
}

.content-card p {
    margin: 0;
    color: #475569;
    font-size: 17px;
}

.simple-card {
    max-width: 860px;
}

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

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

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

.site-footer p {
    margin: 0 0 14px;
    color: #94a3b8;
}

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

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

.footer-badge {
    display: inline-flex;
    color: #ffffff !important;
    background: rgba(34, 211, 238, 0.14);
    border: 1px solid rgba(34, 211, 238, 0.26);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
}

.footer-bottom {
    margin-top: 38px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 18px 0;
}

.footer-bottom p {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    color: #94a3b8;
    font-size: 14px;
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 45;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan-dark));
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.back-top:hover {
    transform: translateY(-3px);
}

[hidden],
.js-movie-card[hidden] {
    display: none !important;
}

@media (max-width: 1080px) {
    .nav-links {
        gap: 14px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-poster {
        display: none;
    }

    .hero-slides {
        min-height: 470px;
    }

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

    .player-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

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

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .brand {
        min-width: auto;
    }

    .brand-copy small {
        display: none;
    }

    .hero {
        min-height: 620px;
        padding-top: 104px;
    }

    .hero-slides {
        min-height: 440px;
    }

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

    .hero h2 {
        font-size: 28px;
    }

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

    .filter-row {
        grid-template-columns: 1fr;
    }

    .section-head.side,
    .category-section-head,
    .detail-hero {
        grid-template-columns: 1fr;
        display: block;
    }

    .detail-poster {
        max-width: 300px;
        margin-bottom: 28px;
    }

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

    .score-pill {
        grid-column: 3;
        width: fit-content;
    }
}

@media (max-width: 560px) {
    .site-nav,
    .hero-inner,
    .stats-grid,
    .section-head,
    .section > .filter-panel,
    .movie-grid,
    .rank-list,
    .category-grid,
    .category-overview,
    .content-card,
    .player-layout,
    .page-hero > div,
    .detail-hero,
    .footer-grid,
    .footer-bottom p {
        width: min(100% - 24px, 1180px);
    }

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

    .hero {
        min-height: 660px;
    }

    .hero-actions,
    .page-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

    .section {
        padding: 54px 0;
    }

    .poster-link {
        height: 360px;
    }

    .rank-row {
        grid-template-columns: 40px 68px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .rank-number {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .rank-poster {
        width: 62px;
        height: 86px;
    }

    .rank-info p {
        -webkit-line-clamp: 1;
    }

    .content-card {
        padding: 24px;
    }

    .player-overlay span {
        width: 74px;
        height: 74px;
        font-size: 28px;
    }
}
