:root {
    --cyan: #0891b2;
    --cyan-dark: #0e7490;
    --blue: #2563eb;
    --teal: #0d9488;
    --ink: #111827;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #f3f7fb;
    font-family: Inter, ui-sans-serif, system-ui, -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,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(100deg, #0891b2 0%, #2563eb 50%, #0d9488 100%);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.2);
}

.header-main {
    display: flex;
    align-items: center;
    gap: 22px;
    width: min(1180px, calc(100% - 32px));
    min-height: 78px;
    margin: 0 auto;
}

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

.brand-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

.brand-text em {
    display: block;
    margin-top: 3px;
    color: #cffafe;
    font-size: 12px;
    font-style: normal;
}

.header-search {
    position: relative;
    display: flex;
    flex: 1 1 420px;
    max-width: 460px;
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.header-search input,
.mobile-panel input,
.filter-input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #0f172a;
    background: #fff;
}

.header-search input {
    padding: 12px 16px;
}

.header-search button,
.mobile-panel button,
.filter-box button {
    border: 0;
    color: #fff;
    background: var(--cyan);
    cursor: pointer;
}

.header-search button {
    padding: 0 20px;
}

.desktop-nav {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.desktop-nav a,
.mobile-panel nav a {
    padding: 10px 14px;
    border-radius: 13px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel nav a:hover,
.mobile-panel nav a.active {
    background: rgba(255, 255, 255, 0.16);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
    border-radius: 5px;
}

.quick-cats {
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(12px);
}

.quick-cats div {
    display: flex;
    gap: 10px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 10px 0;
    overflow-x: auto;
}

.quick-cats a {
    flex: 0 0 auto;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 14px;
    transition: background 0.25s ease;
}

.quick-cats a:hover {
    background: rgba(255, 255, 255, 0.24);
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 16px;
}

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

.mobile-panel form {
    display: flex;
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 14px;
    background: #fff;
}

.mobile-panel input {
    padding: 12px 14px;
}

.mobile-panel button {
    padding: 0 16px;
}

.mobile-panel nav {
    display: grid;
    gap: 6px;
}

main {
    min-height: 60vh;
}

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

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(115deg, #0891b2 0%, #2563eb 48%, #0d9488 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 30%), radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.18), transparent 24%);
    pointer-events: none;
}

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

.hero-slide {
    display: none;
    min-height: 560px;
    align-items: center;
    gap: 42px;
    padding: 70px 0 82px;
}

.hero-slide.active {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.75fr);
    animation: fadeSlide 0.7s ease both;
}

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

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

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

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

.hero p {
    margin: 0 0 26px;
    color: #e0f7ff;
    font-size: clamp(17px, 2.3vw, 24px);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.hero-tags span,
.movie-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.12);
    color: #0e7490;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    padding: 7px 12px;
}

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

.btn-primary,
.btn-ghost,
.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    color: var(--cyan-dark);
    background: #fff;
    box-shadow: 0 14px 25px rgba(15, 23, 42, 0.18);
}

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

.btn-soft {
    color: var(--cyan-dark);
    background: #ecfeff;
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-soft:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-media {
    position: relative;
    z-index: 2;
    min-height: 420px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 35px 65px rgba(15, 23, 42, 0.36);
    transform: rotate(1.5deg);
}

.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-media:hover img {
    transform: scale(1.05);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.74), transparent 55%);
}

.hero-card-caption {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.hero-card-caption strong {
    display: block;
    font-size: 22px;
}

.hero-card-caption em {
    display: block;
    color: #d9f7ff;
    font-style: normal;
}

.hero-controls {
    position: absolute;
    right: 0;
    bottom: 34px;
    left: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.hero-controls button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(15, 23, 42, 0.28);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.active {
    width: 28px;
    border-radius: 999px;
    background: #fff;
}

.hero-fade {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 88px;
    background: linear-gradient(to top, #f3f7fb, transparent);
}

.section {
    padding: 56px 0;
}

.section-tight {
    padding: 34px 0;
}

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

.section-head h2,
.page-title h1,
.detail-text h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.section-head p,
.page-title p {
    max-width: 740px;
    margin: 8px 0 0;
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: -24px;
    position: relative;
    z-index: 5;
}

.stat-card {
    padding: 24px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    box-shadow: var(--shadow);
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #10b981, #0d9488);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #14b8a6, #06b6d4);
}

.stat-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 30px;
    line-height: 1;
}

.stat-card span {
    color: rgba(255, 255, 255, 0.86);
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.58), transparent 58%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.movie-badge,
.movie-duration,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.movie-badge {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    background: var(--cyan);
}

.movie-duration {
    right: 12px;
    bottom: 12px;
    padding: 4px 8px;
    background: rgba(2, 6, 23, 0.66);
    backdrop-filter: blur(10px);
}

.rank-badge {
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

.play-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #fff;
    background: var(--cyan);
    box-shadow: 0 16px 35px rgba(8, 145, 178, 0.35);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

.movie-info strong {
    color: #0f172a;
    font-size: 18px;
    line-height: 1.35;
    transition: color 0.25s ease;
}

.movie-card:hover .movie-info strong {
    color: var(--cyan);
}

.movie-info em {
    display: -webkit-box;
    min-height: 44px;
    margin-top: 8px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta,
.movie-score {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: #64748b;
    font-size: 13px;
}

.movie-meta span {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

.movie-score {
    justify-content: space-between;
    margin-top: auto;
    padding-top: 13px;
}

.movie-score b {
    color: #f59e0b;
}

.movie-score i {
    color: #94a3b8;
    font-style: normal;
}

.movie-card-small {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    border-radius: 16px;
}

.movie-card-small .poster-frame {
    height: 100%;
    min-height: 120px;
    aspect-ratio: auto;
}

.movie-card-small .movie-info em {
    min-height: 0;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 28px;
}

.panel {
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.panel-pad {
    padding: 24px;
}

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

.compact-item {
    display: grid;
    grid-template-columns: auto 96px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.compact-item:hover {
    background: #f8fafc;
    transform: translateX(2px);
}

.compact-rank {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    font-weight: 900;
}

.compact-item img {
    width: 96px;
    height: 62px;
    border-radius: 12px;
    object-fit: cover;
}

.compact-item strong,
.compact-item em,
.compact-item b {
    display: block;
}

.compact-item strong {
    overflow: hidden;
    color: #0f172a;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-item em {
    display: -webkit-box;
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    font-style: normal;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.compact-item b {
    margin-top: 4px;
    color: #f59e0b;
    font-size: 13px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 24px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.category-card:nth-child(4n) {
    background: linear-gradient(135deg, #6366f1, #0891b2);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.2);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.category-card h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 25px;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.page-hero {
    color: #fff;
    background: linear-gradient(115deg, #0891b2, #2563eb 52%, #0d9488);
}

.page-title {
    padding: 64px 0 58px;
}

.page-title h1 {
    color: #fff;
}

.page-title p {
    color: #dffaff;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: #cffafe;
    font-size: 14px;
}

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

.filter-panel {
    margin-top: -26px;
    margin-bottom: 30px;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 4;
}

.filter-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.filter-input {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
}

.filter-box button {
    min-width: 108px;
    border-radius: 14px;
    font-weight: 800;
}

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

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 8px 13px;
    color: #0e7490;
    background: #ecfeff;
    cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
    color: #fff;
    background: var(--cyan);
}

.empty-state {
    display: none;
    margin-top: 24px;
    padding: 38px;
    border-radius: 22px;
    color: #64748b;
    text-align: center;
    background: #fff;
}

.empty-state.show {
    display: block;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 36px 0 56px;
    color: #fff;
    background: #020617;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.38;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) saturate(1.1);
    transform: scale(1.06);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.62)), linear-gradient(to top, #020617, transparent 55%);
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
    gap: 28px;
    align-items: center;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 0;
    color: #fff;
    background: rgba(2, 6, 23, 0.36);
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button-inner {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 18px 42px rgba(8, 145, 178, 0.5);
    font-size: 34px;
}

.detail-text h1 {
    color: #fff;
}

.detail-text p {
    margin: 16px 0 0;
    color: #dbeafe;
    font-size: 17px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #e0f2fe;
    font-weight: 700;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.detail-tags span {
    padding: 6px 11px;
}

.detail-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding: 42px 0 62px;
}

.article-card {
    padding: 30px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.article-card h2 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 26px;
}

.article-card p {
    margin: 0 0 18px;
    color: #334155;
    font-size: 17px;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.movie-tags span {
    padding: 6px 10px;
}

.side-card {
    position: sticky;
    top: 118px;
    padding: 20px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.side-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 46px 140px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    font-weight: 900;
}

.rank-row:nth-child(-n+3) .rank-num {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.rank-row img {
    width: 140px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-row h2 {
    margin: 0 0 5px;
    font-size: 20px;
}

.rank-row p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #64748b;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-score {
    color: #f59e0b;
    font-weight: 900;
    white-space: nowrap;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1e293b 52%, #111827);
}

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

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

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

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a:hover {
    color: #22d3ee;
}

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

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--cyan);
    box-shadow: 0 16px 34px rgba(8, 145, 178, 0.32);
    cursor: pointer;
}

.back-top.show {
    display: block;
}

@media (max-width: 1080px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .two-column,
    .detail-body {
        grid-template-columns: 1fr;
    }

    .side-card {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .hero-slide.active {
        grid-template-columns: 1fr;
    }

    .hero-media {
        min-height: 330px;
        transform: none;
    }

    .hero-media img {
        min-height: 330px;
    }

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

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

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

    .rank-score {
        grid-column: 3;
    }

    .rank-row img {
        width: 108px;
        height: 72px;
    }

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

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

@media (max-width: 580px) {
    .header-main {
        min-height: 68px;
    }

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

    .brand-text em {
        display: none;
    }

    .quick-cats div {
        width: calc(100% - 20px);
    }

    .container,
    .header-main,
    .mobile-panel,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 20px, 1180px);
    }

    .hero-slider,
    .hero-slide {
        min-height: auto;
    }

    .hero-slide {
        padding: 44px 0 76px;
    }

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

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

    .hero-actions a {
        width: 100%;
    }

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

    .movie-card-small {
        grid-template-columns: 110px minmax(0, 1fr);
    }

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

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

    .article-card {
        padding: 22px;
    }

    .compact-item {
        grid-template-columns: auto 82px minmax(0, 1fr);
    }

    .compact-item img {
        width: 82px;
        height: 58px;
    }

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

    .rank-row img {
        width: 88px;
        height: 62px;
    }

    .rank-row h2 {
        font-size: 17px;
    }
}
