:root {
    --page-bg: #f8fafc;
    --text-main: #1f2937;
    --text-muted: #64748b;
    --text-soft: #94a3b8;
    --line: #e2e8f0;
    --white: #ffffff;
    --teal: #0f766e;
    --teal-bright: #14b8a6;
    --cyan: #0891b2;
    --blue: #2563eb;
    --red: #ef4444;
    --yellow: #facc15;
    --dark: #0f172a;
    --shadow-sm: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.22);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    background: var(--page-bg);
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(16px);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-bright), var(--blue));
    box-shadow: 0 14px 30px rgba(20, 184, 166, 0.32);
    font-size: 15px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 650;
    color: #334155;
}

.main-nav > a,
.nav-dropdown > a {
    position: relative;
    padding: 24px 0;
    transition: color 0.2s ease;
}

.main-nav > a:hover,
.nav-dropdown > a:hover,
.main-nav .is-active {
    color: var(--teal);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 66px;
    left: 50%;
    min-width: 190px;
    padding: 10px;
    display: grid;
    gap: 2px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition: 0.2s ease;
}

.dropdown-panel a {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    color: #475569;
}

.dropdown-panel a:hover {
    background: #ecfeff;
    color: var(--teal);
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

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

.menu-toggle span {
    width: 19px;
    height: 2px;
    margin: 4px auto;
    display: block;
    background: var(--teal);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 8px 20px 18px;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.mobile-nav a {
    display: block;
    padding: 12px 8px;
    border-radius: 12px;
    color: #334155;
    font-weight: 650;
}

.mobile-nav a:hover {
    background: #ecfeff;
    color: var(--teal);
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    color: var(--white);
    overflow: hidden;
    background: var(--dark);
}

.hero-slides,
.hero-slide,
.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-bg {
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    filter: saturate(1.1);
}

.hero-overlay {
    background:
        radial-gradient(circle at 18% 25%, rgba(20, 184, 166, 0.5), transparent 36%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.78) 44%, rgba(15, 23, 42, 0.42) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    min-height: 600px;
    padding: 82px 20px 130px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 54px;
}

.hero-copy {
    max-width: 720px;
    animation: fadeUp 0.7s ease both;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--teal-bright);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 8vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 640px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
}

.hero-tags,
.tag-list {
    margin: 24px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-list span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #dffcf9;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: 0.2s ease;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-bright), var(--blue));
    box-shadow: 0 15px 30px rgba(8, 145, 178, 0.32);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(8, 145, 178, 0.42);
}

.btn-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn.wide {
    width: 100%;
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 470px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--teal);
    background: rgba(255, 255, 255, 0.88);
    transform: translate(-50%, -50%);
    font-size: 28px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.3);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 106px;
    z-index: 5;
    width: min(1180px, calc(100% - 40px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-arrow,
.hero-dot {
    pointer-events: auto;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    font-size: 30px;
    line-height: 1;
    transition: 0.2s ease;
}

.hero-arrow:hover {
    background: var(--teal-bright);
}

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

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

.hero-dot.is-active {
    width: 32px;
    background: var(--teal-bright);
}

.hero-search-card {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 6;
    width: min(1180px, calc(100% - 40px));
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(20px);
    transform: translateX(-50%);
}

.hero-search {
    display: flex;
    align-items: center;
    min-width: 280px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--white);
}

.hero-search input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 0;
    outline: 0;
    color: var(--text-main);
}

.hero-search button {
    height: 48px;
    padding: 0 20px;
    border: 0;
    color: var(--white);
    background: var(--teal);
    cursor: pointer;
    font-weight: 800;
}

.hero-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.hero-category-links a {
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s ease;
}

.hero-category-links a:hover {
    background: var(--teal-bright);
}

.section-block {
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 20px;
}

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

.section-title-row h2,
.rank-panel h2,
.detail-content h2,
.related-section h2,
.category-overview-card h2 {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: #e2e8f0;
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.7), transparent);
    transition: 0.25s ease;
}

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

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--white);
    background: var(--red);
    font-size: 12px;
    font-weight: 850;
}

.rank-badge {
    left: 12px;
    right: auto;
    background: linear-gradient(135deg, #f97316, var(--red));
}

.rank-badge.large {
    width: 52px;
    height: 52px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--teal);
    background: rgba(255, 255, 255, 0.88);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.84);
    transition: 0.25s ease;
}

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

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

.movie-title,
.update-title {
    display: block;
    color: var(--text-main);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-title:hover,
.update-title:hover {
    color: var(--teal);
}

.movie-card-body p,
.update-card p,
.category-tile p,
.category-overview-card p,
.rank-panel p,
.footer-inner p,
.detail-info p,
.detail-content p {
    color: var(--text-muted);
}

.movie-card-body p {
    min-height: 46px;
    margin: 8px 0 14px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
}

.movie-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

.teal-panel {
    max-width: none;
    padding-left: max(20px, calc((100vw - 1180px) / 2 + 20px));
    padding-right: max(20px, calc((100vw - 1180px) / 2 + 20px));
    background: linear-gradient(135deg, #f0fdfa, #eff6ff 55%, #ffffff);
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-sm);
    isolation: isolate;
}

.category-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(0deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.2)),
        linear-gradient(135deg, rgba(20, 184, 166, 0.55), rgba(37, 99, 235, 0.2));
}

.category-tile span {
    color: var(--white);
    font-size: 22px;
    font-weight: 850;
}

.category-tile p {
    margin: 8px 0 0;
    color: #dbeafe;
    font-size: 14px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 28px;
}

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

.update-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: 0.2s ease;
}

.update-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.update-cover {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 16 / 10;
}

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

.update-cover span {
    position: absolute;
    right: 12px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--teal);
    background: rgba(255, 255, 255, 0.9);
}

.rank-panel {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 26px;
    border-radius: var(--radius-lg);
    color: var(--white);
    background: linear-gradient(145deg, #111827, #0f766e);
    box-shadow: var(--shadow-lg);
}

.rank-panel h2 {
    color: var(--white);
}

.rank-panel ol {
    margin: 24px 0;
    padding: 0;
    display: grid;
    gap: 10px;
    list-style: none;
}

.rank-panel li a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.09);
    transition: 0.2s ease;
}

.rank-panel li a:hover {
    background: rgba(255, 255, 255, 0.18);
}

.rank-num {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--dark);
    background: var(--yellow);
    font-weight: 900;
}

.rank-panel em {
    color: #bae6fd;
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    max-width: 1180px;
    margin: 32px auto 0;
    padding: 76px 36px;
    border-radius: 32px;
    color: var(--white);
    background:
        radial-gradient(circle at 85% 15%, rgba(250, 204, 21, 0.3), transparent 28%),
        linear-gradient(135deg, #0f766e, #0891b2 45%, #2563eb);
    box-shadow: var(--shadow-md);
}

.page-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 720px;
    margin: 18px 0 0;
    color: #e0f2fe;
    font-size: 18px;
}

.category-overview-card {
    min-height: 220px;
    display: grid;
    grid-template-rows: 145px 1fr;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: 0.2s ease;
}

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

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

.category-overview-card div {
    padding: 18px;
}

.category-overview-card h2 {
    font-size: 22px;
}

.filter-panel {
    margin-bottom: 26px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px 160px;
    gap: 14px;
    align-items: end;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text-main);
    background: #f8fafc;
    outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--teal-bright);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.empty-state {
    padding: 36px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    text-align: center;
    background: var(--white);
}

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

.ranking-hero-card {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 28px;
    background: var(--dark);
    box-shadow: var(--shadow-md);
}

.ranking-hero-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
    transition: 0.35s ease;
}

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

.ranking-hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.9), transparent 65%);
}

.ranking-hero-card div {
    position: relative;
    z-index: 2;
    padding: 26px;
    color: var(--white);
}

.ranking-hero-card h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.1;
}

.ranking-hero-card p {
    margin: 0;
    color: #dbeafe;
}

.detail-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 20px 72px;
}

.breadcrumb {
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--teal);
    font-weight: 800;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) 380px;
    gap: 26px;
    align-items: start;
}

.player-card,
.detail-info,
.detail-content,
.related-section {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.player-card {
    padding: 14px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--white);
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.12));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-button {
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 50%;
    color: var(--teal);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 25px 55px rgba(2, 6, 23, 0.32);
    font-size: 30px;
    cursor: pointer;
    transition: 0.2s ease;
}

.player-button:hover {
    transform: scale(1.08);
    background: var(--yellow);
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 4;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(239, 68, 68, 0.9);
    opacity: 0;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.player-status.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.detail-info {
    overflow: hidden;
}

.detail-info > img {
    width: 100%;
    height: 265px;
    object-fit: cover;
}

.detail-info > div {
    padding: 22px;
}

.detail-info h1 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-info dl {
    margin: 18px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.detail-info dl div {
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
}

.detail-info dt {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
}

.detail-info dd {
    margin: 4px 0 0;
    color: var(--text-main);
    font-weight: 800;
}

.detail-info .tag-list span {
    color: var(--teal);
    background: #ccfbf1;
}

.detail-content,
.related-section {
    margin-top: 26px;
    padding: 28px;
}

.detail-content h2 + p {
    margin-top: 10px;
}

.detail-content p {
    margin-bottom: 24px;
    font-size: 17px;
}

.compact-card .movie-card-body p {
    min-height: 0;
}

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

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 20px 36px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    color: var(--white);
}

.footer-inner h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

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

.footer-inner a:hover {
    color: var(--teal-bright);
}

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-size: 14px;
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 30;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: var(--teal);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: 0.2s ease;
}

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .hero-content,
    .detail-grid,
    .split-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

    .rank-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    body.nav-open .mobile-nav {
        display: block;
    }

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

    .hero-content {
        padding-top: 68px;
        padding-bottom: 230px;
        min-height: 660px;
    }

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

    .hero-search-card {
        grid-template-columns: 1fr;
    }

    .hero-category-links {
        justify-content: flex-start;
    }

    .hero-controls {
        bottom: 178px;
    }

    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .ranking-hero-grid,
    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .update-card {
        grid-template-columns: 140px minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .header-inner {
        min-height: 64px;
    }

    .brand,
    .footer-brand {
        font-size: 21px;
    }

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

    .hero-content {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .hero-search button {
        width: 100%;
    }

    .hero-controls {
        display: none;
    }

    .section-block,
    .detail-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .ranking-hero-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .page-hero {
        margin-left: 16px;
        margin-right: 16px;
        padding: 54px 22px;
        border-radius: 24px;
    }

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

    .player-button {
        width: 68px;
        height: 68px;
    }
}
