* {
    box-sizing: border-box;
}

:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(30, 41, 59, 0.88);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --orange: #fb923c;
    --radius: 20px;
    --shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 32rem), linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
}

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: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #fff;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(34, 211, 238, 0.24);
}

.brand-title {
    display: block;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-subtitle {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted-strong);
}

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

.nav-link {
    position: relative;
    color: #dbeafe;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--cyan);
    transition: width 0.2s ease;
}

.nav-link:hover {
    color: #fff;
}

.nav-link:hover::after {
    width: 100%;
}

.header-search,
.mobile-search,
.hero-search {
    position: relative;
}

.header-search {
    width: 240px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-line input,
.filter-line select {
    width: 100%;
    border: 1px solid var(--line);
    outline: none;
    color: var(--text);
    background: rgba(15, 23, 42, 0.72);
    border-radius: 999px;
    padding: 12px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-line input:focus,
.filter-line select:focus {
    border-color: rgba(34, 211, 238, 0.72);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
    background: rgba(15, 23, 42, 0.94);
}

.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 70;
    max-height: 420px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
    padding: 8px;
}

.search-results.is-open {
    display: block;
}

.search-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    padding: 8px;
    border-radius: 12px;
    color: var(--muted-strong);
}

.search-item:hover {
    background: rgba(51, 65, 85, 0.78);
    color: var(--text);
}

.search-item img {
    width: 44px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
}

.search-item strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text);
}

.search-item span {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    color: var(--muted);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.82);
    cursor: pointer;
    padding: 10px;
}

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

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

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

.mobile-link {
    display: block;
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.36);
}

.mobile-link:hover {
    color: #fff;
    background: rgba(51, 65, 85, 0.88);
}

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

main {
    display: block;
}

.hero-slider {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 640px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

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

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.92) 34%, rgba(15, 23, 42, 0.55) 62%, rgba(2, 6, 23, 0.1) 100%), linear-gradient(0deg, #020617 0%, transparent 38%, rgba(2, 6, 23, 0.28) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.18);
    color: #67e8f9;
    border: 1px solid rgba(34, 211, 238, 0.28);
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-content h1,
.hero-content h2 {
    margin: 18px 0 12px;
    max-width: 760px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.08em;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.hero-movie-title {
    display: block;
    max-width: 760px;
    font-size: clamp(28px, 4vw, 46px);
    color: #e0f2fe;
    margin-bottom: 16px;
}

.hero-content p {
    max-width: 700px;
    margin: 0 0 20px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.8;
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
}

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

.hero-meta span,
.detail-meta span,
.movie-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--muted-strong);
    padding: 6px 10px;
    font-size: 13px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #fff;
    box-shadow: 0 18px 40px rgba(34, 211, 238, 0.24);
}

.btn-ghost {
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #e0f2fe;
}

.btn-line,
.text-link {
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: #67e8f9;
    background: rgba(34, 211, 238, 0.08);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 6;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(16px);
}

.hero-controls button {
    border: 0;
    color: #fff;
    background: rgba(51, 65, 85, 0.75);
    cursor: pointer;
}

.hero-controls > button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    padding: 0;
    opacity: 0.45;
}

.hero-dot.is-active {
    width: 28px;
    opacity: 1;
    background: var(--cyan);
}

.quick-search-panel,
.content-section,
.page-hero,
.filter-panel,
.overview-grid,
.ranking-board,
.movie-detail-shell {
    margin-top: 56px;
}

.quick-search-panel {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 28px;
    align-items: center;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.54));
    box-shadow: var(--shadow);
}

.quick-search-panel h2,
.section-heading h2,
.page-hero h1 {
    margin: 14px 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.quick-search-panel p,
.page-hero p {
    margin: 0;
    color: var(--muted-strong);
    line-height: 1.8;
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.hero-search input {
    min-height: 54px;
    border-radius: 16px;
}

.hero-search button {
    border: 0;
    border-radius: 16px;
    padding: 0 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-weight: 900;
    cursor: pointer;
}

.search-results-large {
    top: calc(100% + 12px);
    grid-column: 1 / -1;
}

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

.section-muted {
    position: relative;
    margin-left: calc((100vw - min(1200px, calc(100vw - 32px))) / -2);
    margin-right: calc((100vw - min(1200px, calc(100vw - 32px))) / -2);
    padding-left: calc((100vw - min(1200px, calc(100vw - 32px))) / 2);
    padding-right: calc((100vw - min(1200px, calc(100vw - 32px))) / 2);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.48), rgba(2, 6, 23, 0));
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading-inline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.movie-grid {
    display: grid;
    gap: 18px;
}

.movie-grid-poster {
    grid-template-columns: repeat(6, 1fr);
}

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.46);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.movie-card-link:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.38);
    background: rgba(30, 41, 59, 0.84);
    box-shadow: 0 20px 50px rgba(34, 211, 238, 0.12);
}

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

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.85));
}

.play-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.poster-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.66);
    color: #e0f2fe;
    padding: 5px 9px;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

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

.movie-card-body strong {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    color: var(--text);
    font-size: 16px;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-desc {
    display: -webkit-box;
    min-height: 44px;
    margin-top: 8px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    margin-top: 12px;
    gap: 6px;
}

.movie-meta span {
    font-size: 11px;
    padding: 4px 7px;
}

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

.movie-card-wide .poster-wrap,
.movie-card-compact .poster-wrap {
    height: 100%;
    aspect-ratio: auto;
}

.movie-card-compact .movie-card-link {
    grid-template-columns: 38% 1fr;
    min-height: 154px;
}

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

.category-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 16px 48px rgba(2, 6, 23, 0.28);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.category-card:hover img {
    transform: scale(1.06);
}

.category-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.92));
}

.category-card-content {
    position: absolute;
    inset: auto 0 0;
    padding: 18px;
}

.category-card strong,
.category-card em,
.category-card small {
    display: block;
}

.category-card strong {
    font-size: 20px;
    font-style: normal;
    margin-bottom: 8px;
}

.category-card em,
.category-card small {
    color: var(--muted-strong);
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
}

.category-card small {
    color: var(--muted);
    margin-top: 8px;
}

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

.rank-row,
.ranking-card {
    display: grid;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.48);
    padding: 10px;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.rank-row {
    grid-template-columns: 48px 58px 1fr auto;
}

.rank-row:hover,
.ranking-card:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.38);
    background: rgba(30, 41, 59, 0.82);
}

.rank-number {
    color: #67e8f9;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 58px;
    height: 76px;
    border-radius: 10px;
    object-fit: cover;
}

.rank-copy strong,
.rank-copy em,
.ranking-card-body strong,
.ranking-card-body em,
.ranking-card-body span {
    display: block;
}

.rank-copy strong,
.ranking-card-body strong {
    color: var(--text);
    margin-bottom: 5px;
}

.rank-copy em,
.ranking-card-body em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-tag {
    color: var(--muted-strong);
    font-size: 13px;
}

.page-shell {
    padding-bottom: 72px;
}

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

.breadcrumb a:hover {
    color: #67e8f9;
}

.page-hero {
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 22rem), linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.58));
    box-shadow: var(--shadow);
}

.compact-hero h1 {
    max-width: 860px;
}

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

.overview-card {
    display: grid;
    grid-template-columns: 38% 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.6);
}

.overview-cover img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.overview-body {
    padding: 24px;
}

.overview-body h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.overview-body p,
.overview-links a {
    color: var(--muted-strong);
    line-height: 1.7;
}

.overview-links {
    display: grid;
    gap: 6px;
    margin: 18px 0;
}

.overview-links a:hover {
    color: #67e8f9;
}

.filter-panel {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.52);
    padding: 22px;
}

.filter-line {
    display: grid;
    grid-template-columns: 1fr 180px 160px;
    gap: 12px;
    margin-bottom: 16px;
}

.filter-line select {
    appearance: none;
    border-radius: 16px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.filter-chips button {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(30, 41, 59, 0.56);
    padding: 8px 12px;
    cursor: pointer;
}

.filter-chips button.is-active,
.filter-chips button:hover {
    border-color: rgba(34, 211, 238, 0.45);
    color: #e0f2fe;
    background: rgba(34, 211, 238, 0.18);
}

.empty-state {
    display: none;
    margin: 26px 0 8px;
    color: var(--muted);
    text-align: center;
}

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

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

.ranking-column {
    display: grid;
    gap: 12px;
}

.ranking-card {
    grid-template-columns: 54px 82px 1fr;
}

.ranking-card img {
    width: 82px;
    height: 110px;
    border-radius: 12px;
    object-fit: cover;
}

.ranking-card-body span {
    margin-top: 9px;
    color: var(--muted);
    font-size: 12px;
}

.player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    align-items: start;
}

.player-main {
    min-width: 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 24px;
    background: #000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.7));
    cursor: pointer;
}

.player-cover.is-hidden {
    display: none;
}

.player-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.detail-card,
.side-card {
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.64);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.24);
}

.detail-card {
    padding: 28px;
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.05em;
}

.detail-card section {
    margin-top: 28px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.detail-card p {
    color: var(--muted-strong);
    line-height: 1.9;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list span {
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(51, 65, 85, 0.74);
    padding: 8px 12px;
}

.detail-side {
    position: sticky;
    top: 100px;
}

.cover-card {
    overflow: hidden;
}

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

.info-card {
    padding: 22px;
}

.info-card dl {
    margin: 0;
}

.info-card div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.info-card div:last-child {
    border-bottom: 0;
}

.info-card dt {
    color: var(--muted);
}

.info-card dd {
    margin: 0;
    color: var(--text);
    text-align: right;
}

.info-card a {
    color: #67e8f9;
}

.related-section {
    margin-top: 42px;
}

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

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.6fr 0.8fr 0.8fr 0.8fr;
    gap: 26px;
}

.footer-brand p,
.footer-column li,
.footer-column a {
    color: var(--muted);
    line-height: 1.8;
}

.footer-column h2 {
    margin: 0 0 14px;
    font-size: 17px;
}

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

.footer-column a:hover {
    color: #67e8f9;
}

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: #64748b;
    text-align: center;
    font-size: 13px;
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .movie-grid-poster {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .player-layout,
    .ranking-board,
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
        display: grid;
        grid-template-columns: 240px 1fr;
        gap: 18px;
    }
}

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

    .brand-title {
        font-size: 18px;
    }

    .brand-subtitle {
        display: none;
    }

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

    .hero-content h1,
    .hero-content h2 {
        font-size: clamp(34px, 10vw, 54px);
    }

    .hero-movie-title {
        font-size: 28px;
    }

    .quick-search-panel,
    .hero-search,
    .filter-line {
        grid-template-columns: 1fr;
    }

    .movie-grid-poster,
    .movie-grid-wide,
    .category-grid,
    .ranking-list,
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .movie-card-wide .movie-card-link,
    .movie-card-compact .movie-card-link {
        grid-template-columns: 1fr;
    }

    .movie-card-wide .poster-wrap,
    .movie-card-compact .poster-wrap {
        aspect-ratio: 2 / 3;
    }

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

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

@media (max-width: 560px) {
    main,
    .page-shell,
    .header-inner,
    .mobile-panel,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 20px, 1200px);
    }

    .hero-content {
        width: min(100% - 24px, 1200px);
    }

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

    .hero-actions,
    .section-heading-inline {
        align-items: stretch;
        flex-direction: column;
    }

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

    .movie-grid-poster,
    .movie-grid-wide,
    .category-grid,
    .ranking-list,
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .quick-search-panel,
    .page-hero,
    .detail-card,
    .filter-panel {
        padding: 20px;
        border-radius: 18px;
    }

    .rank-row {
        grid-template-columns: 42px 54px 1fr;
    }

    .rank-tag {
        display: none;
    }

    .ranking-card {
        grid-template-columns: 42px 68px 1fr;
    }

    .ranking-card img {
        width: 68px;
        height: 92px;
    }
}
