:root {
    color-scheme: light;
    --cyan: #0891b2;
    --cyan-dark: #0e7490;
    --blue: #2563eb;
    --teal: #0d9488;
    --emerald: #059669;
    --orange: #f97316;
    --rose: #e11d48;
    --amber: #f59e0b;
    --violet: #7c3aed;
    --indigo: #4f46e5;
    --slate: #0f172a;
    --stone: #57534e;
    --muted: #64748b;
    --text: #111827;
    --line: #e5e7eb;
    --page: #f8fafc;
    --card: #ffffff;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
    --soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--page);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue), var(--teal));
    box-shadow: 0 10px 30px rgba(14, 116, 144, 0.24);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 20px;
}

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

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

.brand-text strong,
.brand-text em {
    display: block;
}

.brand-text strong {
    font-size: 1.55rem;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.brand-text em {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-style: normal;
}

.header-search {
    display: flex;
    flex: 1;
    max-width: 450px;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.header-search input,
.mobile-panel input,
.search-page-form input,
.page-filter input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: #ffffff;
}

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

.header-search button,
.search-page-form button,
.mobile-panel button {
    border: 0;
    color: #ffffff;
    background: var(--cyan-dark);
    padding: 0 20px;
    font-weight: 700;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

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

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

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

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

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

.mobile-panel a {
    display: block;
}

.category-strip {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
}

.strip-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: none;
}

.strip-scroll::-webkit-scrollbar {
    display: none;
}

.strip-scroll a {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.strip-scroll a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.22);
}

.hero-carousel {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #0e7490, #2563eb 55%, #0d9488);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.02);
}

.hero-bg::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 85% 30%, rgba(34, 211, 238, 0.45), transparent 26%),
        linear-gradient(90deg, rgba(8, 47, 73, 0.92), rgba(15, 23, 42, 0.62) 48%, rgba(8, 145, 178, 0.38));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 54px;
    align-items: center;
    padding: 86px 0 104px;
}

.hero-copy {
    max-width: 780px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    border-radius: 999px;
    padding: 7px 14px;
    color: #cffafe;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(2.4rem, 5vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    color: #cffafe;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.18rem;
}

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

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(8, 145, 178, 0.11);
    color: var(--cyan-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

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

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

.primary-button {
    color: var(--cyan-dark);
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(255, 255, 255, 0.18);
}

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

.ghost-button {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.ghost-button.dark {
    color: var(--cyan-dark);
    border-color: rgba(8, 145, 178, 0.26);
    background: rgba(8, 145, 178, 0.08);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.16);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.38);
}

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

.hero-poster span {
    position: absolute;
    right: 16px;
    bottom: 16px;
    border-radius: 999px;
    padding: 8px 13px;
    color: #111827;
    background: #facc15;
    font-weight: 900;
}

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

.hero-dot {
    width: 42px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.home-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: -56px;
    position: relative;
    z-index: 10;
}

.metric-card {
    display: block;
    min-height: 132px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--radius);
    padding: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(14px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover,
.movie-card:hover,
.category-card:hover,
.horizontal-item:hover,
.ranking-spotlight:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.metric-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.35rem;
}

.metric-card span {
    color: var(--muted);
    font-size: 0.96rem;
}

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

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

.section-title h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.6vw, 2.25rem);
    line-height: 1.18;
}

.section-title p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-title a {
    color: var(--cyan-dark);
    font-weight: 800;
}

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

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

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

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
}

.poster img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .poster img,
.horizontal-item:hover img,
.ranking-spotlight:hover img {
    transform: scale(1.08);
}

.poster::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.42));
    opacity: 0.7;
}

.poster-region,
.poster-duration,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
}

.poster-region {
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    background: var(--cyan-dark);
}

.poster-duration {
    right: 12px;
    bottom: 12px;
    padding: 4px 9px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    display: grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    background: linear-gradient(135deg, #ef4444, #f97316);
}

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

.movie-card h3 {
    display: -webkit-box;
    min-height: 3.1em;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--text);
    font-size: 1.04rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 12px;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 700;
}

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

.category-card,
.category-overview-head {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 24px;
    color: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card span,
.category-overview-head span {
    font-size: 1.45rem;
    font-weight: 900;
}

.category-card em,
.category-overview-head em {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.86);
    font-style: normal;
}

.from-cyan.to-blue {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.from-emerald.to-cyan {
    background: linear-gradient(135deg, #059669, #06b6d4);
}

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

.from-blue.to-indigo {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.from-amber.to-orange {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.from-red.to-orange {
    background: linear-gradient(135deg, #dc2626, #f97316);
}

.from-violet.to-blue {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.from-pink.to-rose {
    background: linear-gradient(135deg, #ec4899, #e11d48);
}

.from-lime.to-emerald {
    background: linear-gradient(135deg, #84cc16, #059669);
}

.from-sky.to-cyan {
    background: linear-gradient(135deg, #0284c7, #06b6d4);
}

.from-stone.to-amber {
    background: linear-gradient(135deg, #57534e, #d97706);
}

.from-slate.to-blue {
    background: linear-gradient(135deg, #0f172a, #2563eb);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 34px;
}

.ranking-list,
.side-list {
    display: grid;
    gap: 14px;
}

.horizontal-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.horizontal-item .thumb {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #e0f2fe;
}

.horizontal-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.horizontal-item strong {
    position: absolute;
    left: 8px;
    top: 8px;
    display: grid;
    min-width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: #ef4444;
    font-size: 0.82rem;
}

.horizontal-copy b,
.horizontal-copy em,
.horizontal-copy small {
    display: block;
}

.horizontal-copy b {
    margin-bottom: 5px;
    color: var(--text);
    font-size: 1.02rem;
}

.horizontal-copy em {
    color: var(--cyan-dark);
    font-size: 0.84rem;
    font-style: normal;
    font-weight: 800;
}

.horizontal-copy small {
    display: -webkit-box;
    margin-top: 6px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.88rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.compact-hero,
.search-hero,
.ranking-hero,
.category-hero {
    padding: 72px 0;
}

.page-hero h1 {
    max-width: 850px;
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

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

.page-filter,
.search-page-form {
    display: flex;
    overflow: hidden;
    max-width: 660px;
    margin-top: 28px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.16);
}

.page-filter input,
.search-page-form input {
    padding: 15px 18px;
}

.search-page-form button {
    min-width: 116px;
}

.empty-state {
    display: none;
    border: 1px dashed rgba(100, 116, 139, 0.35);
    border-radius: var(--radius);
    padding: 38px;
    color: var(--muted);
    background: #ffffff;
    text-align: center;
}

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

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

.category-overview-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.category-overview-card .category-preview {
    display: grid;
    gap: 10px;
    padding: 16px;
    background: #ffffff;
}

.related-categories {
    padding-bottom: 60px;
}

.related-categories h2 {
    margin: 0 0 16px;
}

.related-categories div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-categories a {
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--cyan-dark);
    background: rgba(8, 145, 178, 0.09);
    font-weight: 800;
}

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

.ranking-spotlight {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    border-radius: 26px;
    color: #ffffff;
    background: #0f172a;
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-spotlight img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    opacity: 0.72;
    transition: transform 0.4s ease;
}

.ranking-spotlight::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 28%, rgba(15, 23, 42, 0.92));
}

.ranking-spotlight span,
.ranking-spotlight strong,
.ranking-spotlight em {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
}

.ranking-spotlight span {
    top: 24px;
    width: max-content;
    border-radius: 999px;
    padding: 7px 12px;
    background: #ef4444;
    font-weight: 900;
}

.ranking-spotlight strong {
    bottom: 58px;
    font-size: 1.45rem;
}

.ranking-spotlight em {
    bottom: 28px;
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.detail-bg {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) saturate(1.1);
    transform: scale(1.05);
    opacity: 0.42;
}

.detail-bg::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 82% 20%, rgba(34, 211, 238, 0.35), transparent 28%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.72));
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    padding: 64px 0;
}

.detail-poster {
    overflow: hidden;
    border: 9px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

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

.detail-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 4.5vw, 4.8rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 780px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.87);
    font-size: 1.14rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
}

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

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

.player-section {
    padding-top: 48px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 26px 65px rgba(2, 6, 23, 0.28);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, rgba(8, 145, 178, 0.20), transparent 32%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.50));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-overlay button {
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 20px 60px rgba(8, 145, 178, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-overlay button:hover {
    transform: scale(1.08);
    box-shadow: 0 24px 76px rgba(8, 145, 178, 0.64);
}

.player-overlay span {
    margin-left: 6px;
    font-size: 2.3rem;
    line-height: 1;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 38px;
}

.story-block {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    padding: 28px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.story-block h2 {
    margin: 0 0 14px;
    font-size: 1.45rem;
}

.story-block p {
    margin: 0;
    color: #334155;
}

.related-grid {
    padding-bottom: 54px;
}

.site-footer {
    margin-top: 64px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #020617, #0f172a 55%, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr;
    gap: 34px;
    padding: 46px 0;
}

.footer-brand {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

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

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

.footer-links.compact {
    grid-template-columns: repeat(2, max-content);
    gap: 8px 16px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 18px 0;
    color: #94a3b8;
    font-size: 0.92rem;
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 70;
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--cyan-dark);
    box-shadow: 0 16px 40px rgba(8, 145, 178, 0.34);
}

.back-top.is-visible {
    display: block;
}

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

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

    .hero-content {
        grid-template-columns: 1fr 280px;
    }
}

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

    .menu-button {
        display: block;
    }

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

    .hero-carousel {
        min-height: 720px;
    }

    .hero-content,
    .detail-layout,
    .detail-content,
    .split-section,
    .category-overview-grid,
    .spotlight-grid,
    .full-ranking,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 28px;
        padding-top: 54px;
    }

    .hero-poster,
    .detail-poster {
        max-width: 280px;
    }

    .home-metrics {
        margin-top: -28px;
    }
}

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

    .brand-text strong {
        font-size: 1.25rem;
    }

    .brand-text em {
        display: none;
    }

    .hero-carousel {
        min-height: 760px;
    }

    .hero-copy h1 {
        font-size: 2.55rem;
    }

    .home-metrics,
    .category-grid,
    .movie-grid,
    .dense-grid {
        grid-template-columns: 1fr;
    }

    .horizontal-item {
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .page-hero,
    .compact-hero,
    .search-hero,
    .ranking-hero,
    .category-hero {
        padding: 46px 0;
    }

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