:root {
    color-scheme: dark;
    --bg: #0b1020;
    --bg-deep: #050712;
    --panel: rgba(17, 24, 39, 0.78);
    --panel-solid: #111827;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --soft: #94a3b8;
    --yellow: #facc15;
    --pink: #ec4899;
    --purple: #7c3aed;
    --blue: #38bdf8;
    --radius: 20px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 0%, rgba(124, 58, 237, 0.26), transparent 32rem),
        radial-gradient(circle at 88% 8%, rgba(236, 72, 153, 0.18), transparent 30rem),
        linear-gradient(180deg, #0f172a 0%, #111827 38%, #050712 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.65;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: linear-gradient(90deg, rgba(49, 46, 129, 0.96), rgba(88, 28, 135, 0.96), rgba(131, 24, 67, 0.96));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-weight: 900;
    font-size: clamp(20px, 2vw, 28px);
    letter-spacing: -0.03em;
}

.logo-icon {
    width: 34px;
    height: 34px;
    color: var(--yellow);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand span {
    background: linear-gradient(90deg, #fde047, #f9a8d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.desktop-nav > a,
.nav-dropdown > a {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown > a:hover,
.nav-dropdown > a.active {
    color: var(--yellow);
}

.nav-dropdown {
    position: relative;
    padding: 24px 0;
}

.dropdown-panel {
    position: absolute;
    top: 66px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 190px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

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

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted);
}

.dropdown-panel a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.header-search {
    display: flex;
    align-items: center;
    width: min(280px, 26vw);
}

.header-search input,
.mobile-nav input,
.search-main input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    height: 40px;
    border-radius: 999px 0 0 999px;
    padding: 0 16px;
}

.header-search button,
.mobile-nav button,
.search-main button {
    border: 0;
    background: linear-gradient(90deg, #eab308, #db2777);
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.header-search button {
    height: 40px;
    width: 48px;
    border-radius: 0 999px 999px 0;
}

.header-search input:focus,
.mobile-nav input:focus,
.search-main input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(250, 204, 21, 0.62);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.12);
}

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

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    grid-template-columns: 1fr;
    gap: 10px;
}

.mobile-nav a,
.mobile-nav form {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.mobile-nav form {
    display: flex;
    gap: 8px;
}

.mobile-nav input {
    border-radius: 10px;
    padding: 10px 12px;
}

.mobile-nav button {
    border-radius: 10px;
    padding: 0 14px;
}

.hero-carousel {
    position: relative;
    height: min(720px, 72vh);
    min-height: 520px;
    overflow: hidden;
    background: var(--bg-deep);
}

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

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1.1s ease, visibility 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 7, 18, 0.96) 0%, rgba(15, 23, 42, 0.8) 42%, rgba(15, 23, 42, 0.18) 100%),
        linear-gradient(0deg, rgba(5, 7, 18, 1) 0%, transparent 38%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding-bottom: 92px;
    max-width: 1200px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--yellow);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.detail-meta,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

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

.hero-tags span,
.detail-meta span,
.movie-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
    color: #dbeafe;
    background: rgba(124, 58, 237, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.primary-btn {
    background: linear-gradient(90deg, #eab308, #db2777);
    box-shadow: 0 18px 42px rgba(219, 39, 119, 0.32);
}

.ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: white;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.hero-control.prev {
    left: max(18px, calc((100% - 1200px) / 2));
}

.hero-control.next {
    right: max(18px, calc((100% - 1200px) / 2));
}

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

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

.hero-dot.active {
    width: 28px;
    background: var(--yellow);
}

.content-section {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
}

.alt-section {
    width: 100%;
    padding-left: max(16px, calc((100% - 1200px) / 2));
    padding-right: max(16px, calc((100% - 1200px) / 2));
    background: linear-gradient(90deg, rgba(6, 78, 59, 0.18), rgba(15, 118, 110, 0.12));
}

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

.section-head.compact {
    margin-bottom: 18px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.18;
}

.section-head p {
    margin: 6px 0 0;
    color: var(--soft);
}

.section-head a {
    color: var(--yellow);
    font-weight: 800;
    white-space: nowrap;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(250, 204, 21, 0.32);
    background: rgba(31, 41, 55, 0.86);
    box-shadow: 0 22px 60px rgba(124, 58, 237, 0.18);
}

.poster,
.movie-thumb,
.ranking-thumb,
.category-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster {
    aspect-ratio: 2 / 3;
}

.poster img,
.movie-thumb img,
.ranking-thumb img,
.category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover img,
.ranking-card:hover img,
.category-overview-card:hover img {
    transform: scale(1.08);
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.poster-year {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--yellow);
    color: #111827;
    font-size: 12px;
    font-weight: 900;
}

.poster-play,
.movie-play {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%) scale(0.82);
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.94);
    color: #111827;
    font-weight: 900;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-title {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    color: white;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: var(--yellow);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 43px;
    margin: 8px 0 12px;
    overflow: hidden;
    color: var(--soft);
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    gap: 7px;
    margin-top: 8px;
}

.movie-meta span {
    color: #e9d5ff;
    background: rgba(168, 85, 247, 0.18);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tag-row span {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
}

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

.movie-card-wide {
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 168px;
}

.movie-card-wide .movie-thumb {
    height: 100%;
}

.movie-card-wide .movie-title {
    min-height: auto;
}

.movie-category {
    display: inline-flex;
    margin-top: 12px;
    color: var(--yellow);
    font-size: 13px;
    font-weight: 800;
}

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

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

.category-tile {
    position: relative;
    display: flex;
    min-height: 170px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    flex-direction: column;
    justify-content: flex-end;
    background: #111827;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.25);
}

.category-tile img,
.tile-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-tile img {
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.tile-shade {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.92));
}

.category-tile strong,
.category-tile small {
    position: relative;
    z-index: 2;
}

.category-tile strong {
    font-size: 20px;
}

.category-tile small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-panel,
.prose-panel,
.story-panel,
.related-panel,
.filter-bar,
.category-overview-card,
.ranking-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 14px 46px rgba(0, 0, 0, 0.24);
}

.ranking-panel {
    padding: 22px;
    position: sticky;
    top: 92px;
}

.rank-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-list li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.rank-list li:last-child {
    border-bottom: 0;
}

.rank-no {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--yellow), var(--pink));
    color: #111827;
    font-weight: 900;
}

.rank-list a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.rank-list a:hover {
    color: var(--yellow);
}

.rank-list li > span:last-child {
    color: var(--soft);
    font-size: 13px;
}

.page-hero {
    min-height: 320px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(88, 28, 135, 0.74), rgba(49, 46, 129, 0.52)),
        radial-gradient(circle at 82% 12%, rgba(250, 204, 21, 0.16), transparent 28rem);
    border-bottom: 1px solid var(--line);
}

.page-hero > div {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.small-hero {
    min-height: 280px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-overview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(250, 204, 21, 0.26);
}

.category-cover {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
}

.category-overview-card h2 {
    margin: 2px 0 8px;
}

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

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

.mini-links a {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--muted);
    font-size: 13px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px 220px;
    gap: 14px;
    padding: 16px;
    margin-bottom: 24px;
}

.filter-bar label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 800;
}

.filter-bar input,
.filter-bar select {
    min-height: 44px;
    border-radius: 12px;
    padding: 0 12px;
}

.filter-bar select option {
    color: #111827;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 54px 130px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    align-items: center;
}

.ranking-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--yellow), var(--pink));
    color: #111827;
    font-weight: 900;
}

.ranking-thumb {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
}

.ranking-card h2 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.35;
}

.ranking-card h2 a:hover {
    color: var(--yellow);
}

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

.search-main {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.search-main input {
    min-height: 54px;
    border-radius: 16px;
    padding: 0 16px;
    font-size: 17px;
}

.search-main button {
    min-width: 110px;
    border-radius: 16px;
}

.search-status {
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 800;
}

.prose-panel {
    padding: 30px;
}

.prose-panel h2 {
    margin: 0 0 10px;
    color: white;
}

.prose-panel p {
    margin: 0 0 24px;
    color: var(--muted);
}

.detail-top {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 28px;
}

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

.breadcrumb a:hover {
    color: var(--yellow);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: stretch;
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-card video {
    display: block;
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.3), rgba(2, 6, 23, 0.82));
    color: white;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--yellow), var(--pink));
    color: #111827;
    font-size: 34px;
    box-shadow: 0 22px 52px rgba(219, 39, 119, 0.36);
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.88), rgba(88, 28, 135, 0.2));
}

.detail-info h1 {
    font-size: clamp(32px, 4.6vw, 56px);
}

.detail-one-line {
    margin: 16px 0 20px;
    color: var(--muted);
    font-size: 17px;
}

.detail-meta span {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.14);
}

.detail-tags {
    margin-top: 18px;
}

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

.story-panel {
    padding: 28px;
}

.story-panel h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.story-panel p {
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 16px;
}

.related-panel {
    padding: 20px;
    position: sticky;
    top: 92px;
}

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

.related-list .movie-card-wide {
    min-height: 128px;
}

.related-list .movie-card-body {
    padding: 12px;
}

.related-list .movie-card-body p,
.related-list .tag-row {
    display: none;
}

.site-footer {
    margin-top: 40px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), #020617);
    border-top: 1px solid var(--line);
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 28px;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: white;
    font-size: 18px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: var(--soft);
    font-size: 14px;
}

.site-footer a:hover {
    color: var(--yellow);
}

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

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

.footer-bottom {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    text-align: center;
}

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

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

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

    .ranking-panel,
    .related-panel {
        position: static;
    }
}

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

    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

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

    .hero-carousel {
        height: 68vh;
        min-height: 480px;
    }

    .hero-content {
        padding-bottom: 74px;
    }

    .hero-control {
        display: none;
    }

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

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

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

    .ranking-card {
        grid-template-columns: 42px 108px minmax(0, 1fr);
    }
}

@media (max-width: 620px) {
    .header-inner,
    .mobile-nav,
    .content-section,
    .detail-top,
    .footer-inner,
    .page-hero > div {
        width: min(100% - 24px, 1200px);
    }

    .brand span {
        font-size: 20px;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 34px;
    }

    .poster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

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

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

    .movie-title {
        font-size: 14px;
    }

    .movie-card-body p {
        font-size: 12px;
    }

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

    .page-hero {
        min-height: 240px;
    }

    .ranking-card {
        grid-template-columns: 38px 92px minmax(0, 1fr);
        gap: 10px;
    }

    .ranking-card p {
        display: none;
    }

    .detail-info,
    .story-panel,
    .prose-panel {
        padding: 20px;
    }

    .player-card {
        border-radius: 18px;
    }
}
