:root {
    --bg: #05070d;
    --panel: rgba(17, 24, 39, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.92);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --accent: #f59e0b;
    --accent-2: #38bdf8;
    --red: #ef4444;
    --radius: 24px;
    --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 15% 0%, rgba(245, 158, 11, 0.16), transparent 32%), radial-gradient(circle at 82% 12%, rgba(56, 189, 248, 0.13), transparent 28%), linear-gradient(180deg, #070b16 0%, #05070d 42%, #030409 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 80%);
    z-index: -1;
}

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

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

.is-hidden {
    display: none !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(3, 7, 18, 0.78);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px);
}

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

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

.brand-icon,
.footer-brand span {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #111827;
    background: linear-gradient(135deg, var(--accent), #fde68a 48%, var(--accent-2));
    box-shadow: 0 14px 36px rgba(245, 158, 11, 0.28);
}

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

.brand-copy strong {
    font-size: 18px;
    letter-spacing: 0.08em;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--accent-2);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--soft);
    font-weight: 700;
}

.desktop-nav > a,
.nav-more > button {
    position: relative;
    padding: 10px 0;
    color: var(--soft);
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.desktop-nav > a::after,
.nav-more > button::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.active,
.nav-more:hover > button {
    color: #ffffff;
}

.desktop-nav > a:hover::after,
.desktop-nav > a.active::after,
.nav-more:hover > button::after {
    transform: scaleX(1);
}

.nav-more {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 44px;
    right: 0;
    width: 180px;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.nav-more:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--soft);
}

.nav-dropdown a:hover {
    background: rgba(148, 163, 184, 0.12);
    color: #ffffff;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 8px;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.mobile-nav a {
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.08);
    color: var(--soft);
}

.mobile-nav a.active {
    color: #111827;
    background: linear-gradient(135deg, var(--accent), #fde68a);
}

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

main {
    overflow: hidden;
}

.hero-section {
    width: min(1240px, calc(100% - 32px));
    margin: 32px auto 0;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
}

.hero-slider {
    position: relative;
    min-height: 640px;
    border: 1px solid var(--line);
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.96));
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.7s ease;
}

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

.hero-bg,
.detail-backdrop-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
    filter: saturate(1.12) contrast(1.05);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.95) 0%, rgba(3, 7, 18, 0.78) 42%, rgba(3, 7, 18, 0.25) 100%), linear-gradient(0deg, rgba(3, 7, 18, 0.96) 0%, transparent 46%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: center;
    gap: 34px;
    padding: 64px;
}

.hero-kicker,
.section-heading span,
.page-hero > span,
.story-card span,
.side-title span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.1);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.hero-summary {
    max-width: 720px;
    color: #dbeafe;
    font-size: 17px;
    line-height: 1.9;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.rank-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.quick-search button,
.filter-panel button,
.panel-link,
.rank-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.quick-search button,
.filter-panel button,
.rank-play {
    color: #111827;
    background: linear-gradient(135deg, var(--accent), #fde68a);
    box-shadow: 0 16px 38px rgba(245, 158, 11, 0.28);
}

.ghost-btn,
.panel-link {
    color: #ffffff;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
}

.primary-btn:hover,
.ghost-btn:hover,
.quick-search button:hover,
.filter-panel button:hover,
.panel-link:hover,
.rank-play:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(56, 189, 248, 0.1));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

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

.hero-poster span,
.movie-score {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 44px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, #fde68a, var(--accent));
    font-weight: 950;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

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

.hero-controls > button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.75);
    cursor: pointer;
    font-size: 26px;
}

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

.hero-dots button {
    width: 26px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 42px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.hero-side,
.ranking-panel {
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 22px;
    background: rgba(15, 23, 42, 0.64);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.side-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.side-title strong {
    font-size: 18px;
}

.compact-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.compact-item:last-child {
    border-bottom: 0;
}

.compact-item > span {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    background: linear-gradient(135deg, var(--accent), #fde68a);
    font-weight: 950;
}

.compact-item strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-item small {
    color: var(--muted);
}

.search-band,
.content-section,
.filter-panel,
.rank-list,
.detail-content {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.search-band {
    margin-top: 28px;
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    gap: 20px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(56, 189, 248, 0.1));
}

.search-band span {
    color: var(--accent);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.search-band h2 {
    margin: 6px 0 0;
    font-size: clamp(24px, 3vw, 40px);
}

.quick-search {
    display: flex;
    gap: 10px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 16px;
    outline: none;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.62);
}

.filter-panel select option {
    color: #0f172a;
}

.content-section {
    margin-top: 58px;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 48px);
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    max-width: 680px;
}

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

.category-card,
.category-overview-card,
.story-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    background: rgba(15, 23, 42, 0.58);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover,
.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.42);
    background: rgba(15, 23, 42, 0.82);
}

.category-card span,
.category-card-main span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 18px;
    background: rgba(245, 158, 11, 0.12);
    font-size: 22px;
}

.category-card strong,
.category-card-main h2 {
    display: block;
    margin: 14px 0 8px;
    font-size: 20px;
}

.category-card small,
.category-card-main p,
.category-mini-links a {
    color: var(--muted);
    line-height: 1.7;
}

.category-mini-links {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.category-mini-links a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

.movie-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.56);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(56, 189, 248, 0.12));
}

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

.movie-card:hover .movie-poster {
    transform: scale(1.06);
}

.poster-shine {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.86), transparent);
}

.rank-mark {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(239, 68, 68, 0.84);
    font-size: 12px;
    font-weight: 950;
}

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

.movie-meta {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

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

.movie-card h3 a:hover,
.compact-item:hover strong,
.rank-info h2 a:hover,
.category-mini-links a:hover {
    color: #fde68a;
}

.movie-one-line {
    min-height: 66px;
    margin: 10px 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.card-actions a {
    flex: 1;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 900;
}

.card-actions a:first-child {
    color: #111827;
    background: linear-gradient(135deg, var(--accent), #fde68a);
}

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

.ranking-panel {
    position: sticky;
    top: 96px;
}

.panel-link {
    width: 100%;
    margin-top: 18px;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 34px;
    padding: 46px;
    background: radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.16), transparent 30%), linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.92));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(36px, 6vw, 64px);
    letter-spacing: -0.06em;
}

.page-hero p {
    margin: 0;
    max-width: 760px;
    color: #cbd5e1;
    line-height: 1.9;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 22px;
    color: var(--muted);
}

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

.breadcrumb em {
    font-style: normal;
    color: #ffffff;
}

.filter-panel {
    margin-top: 26px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(150px, 0.7fr)) auto;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.62);
}

.large-filter {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(150px, 0.7fr)) auto;
}

.empty-state {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
    background: rgba(15, 23, 42, 0.62);
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 96px minmax(0, 1fr) 88px;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.58);
}

.rank-number {
    font-size: 24px;
    font-weight: 950;
    color: #fde68a;
    text-align: center;
}

.rank-thumb {
    height: 128px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(56, 189, 248, 0.12));
}

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-info p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.7;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-hero {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    margin: 32px auto 0;
    border: 1px solid var(--line);
    border-radius: 34px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.82);
    box-shadow: var(--shadow);
}

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

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.96), rgba(3, 7, 18, 0.72), rgba(3, 7, 18, 0.92)), linear-gradient(0deg, rgba(3, 7, 18, 0.95), transparent 60%);
}

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

.detail-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(56, 189, 248, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.detail-info h1 {
    margin: 22px 0 14px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 820px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    margin: 18px 0;
}

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

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #000000;
    box-shadow: var(--shadow);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.18), rgba(3, 7, 18, 0.35) 34%, rgba(3, 7, 18, 0.76));
    cursor: pointer;
}

.player-cover span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #111827;
    background: linear-gradient(135deg, var(--accent), #fde68a);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.35);
    font-size: 30px;
}

.player-cover strong {
    font-size: 20px;
    letter-spacing: 0.08em;
}

.detail-content {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.story-card p {
    margin: 16px 0 0;
    color: #dbeafe;
    line-height: 2;
    font-size: 16px;
}

.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 72px auto 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.58);
    overflow: hidden;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

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

.site-footer p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 14px;
    font-size: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
    color: var(--soft);
    font-size: 13px;
}

.footer-links a:hover {
    color: #111827;
    background: linear-gradient(135deg, var(--accent), #fde68a);
}

.footer-bottom {
    padding: 16px 28px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

@media (max-width: 1120px) {
    .hero-shell,
    .split-section {
        grid-template-columns: 1fr;
    }

    .hero-side,
    .ranking-panel {
        position: static;
    }

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

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

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero-slider,
    .hero-content {
        min-height: 700px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 34px;
        align-content: center;
    }

    .hero-poster {
        width: min(260px, 72vw);
    }

    .hero-controls {
        left: 28px;
        right: 28px;
        bottom: 24px;
    }

    .search-band,
    .detail-layout,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .rank-play {
        grid-column: 2 / -1;
    }

    .detail-layout {
        padding: 28px;
    }

    .detail-poster {
        width: min(240px, 70vw);
    }
}

@media (max-width: 640px) {
    .header-inner {
        height: 68px;
    }

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

    .brand-copy small {
        display: none;
    }

    .hero-section,
    .detail-hero,
    .search-band,
    .content-section,
    .filter-panel,
    .rank-list,
    .detail-content,
    .player-section,
    .page-hero,
    .site-footer {
        width: min(100% - 22px, 1180px);
    }

    .hero-slider {
        min-height: 640px;
        border-radius: 24px;
    }

    .hero-content {
        min-height: 640px;
        padding: 24px;
    }

    .hero-text h1,
    .detail-info h1 {
        font-size: 38px;
    }

    .hero-summary,
    .detail-one-line {
        font-size: 15px;
    }

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

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

    .movie-card h3 {
        font-size: 16px;
    }

    .movie-one-line {
        min-height: 58px;
        font-size: 13px;
    }

    .card-actions {
        flex-direction: column;
    }

    .page-hero {
        padding: 28px;
        border-radius: 24px;
    }

    .quick-search {
        flex-direction: column;
    }

    .rank-row {
        grid-template-columns: 42px 70px minmax(0, 1fr);
        gap: 10px;
    }

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

    .rank-info p {
        display: none;
    }

    .player-cover span {
        width: 64px;
        height: 64px;
    }
}
