:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --soft: #e2e8f0;
    --line: #e5e7eb;
    --brand: #10b981;
    --brand-dark: #059669;
    --brand-deep: #0f766e;
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 34rem),
        linear-gradient(135deg, #f8fafc 0%, #ffffff 52%, #f1f5f9 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 22px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    box-shadow: 0 16px 36px rgba(16, 185, 129, 0.32);
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    color: #475569;
    font-weight: 700;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 14px 28px rgba(16, 185, 129, 0.24);
}

.top-search,
.mobile-search,
.large-search,
.quick-search-panel form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-search {
    width: min(360px, 30vw);
}

.top-search input,
.mobile-search input,
.large-search input,
.quick-search-panel input,
.filter-toolbar input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.95);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.quick-search-panel input:focus,
.filter-toolbar input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.top-search button,
.mobile-search button,
.large-search button,
.quick-search-panel button {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 0 20px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(16, 185, 129, 0.22);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #0f172a;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
}

.mobile-panel-inner {
    display: grid;
    gap: 10px;
    padding: 16px 0 22px;
}

.hero-slider {
    position: relative;
    min-height: clamp(620px, 86vh, 900px);
    overflow: hidden;
    color: #ffffff;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.05);
}

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.72) 43%, rgba(2, 6, 23, 0.24) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, transparent 42%, rgba(2, 6, 23, 0.44) 100%);
}

.hero-content {
    position: relative;
    min-height: clamp(620px, 86vh, 900px);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.6fr);
    align-items: center;
    gap: clamp(36px, 7vw, 90px);
    padding-top: 72px;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow span:first-child,
.section-kicker {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
}

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

.hero-copy p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(18px, 2.1vw, 23px);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 26px 0 34px;
}

.hero-meta span {
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 999px;
    padding: 0 26px;
    font-weight: 900;
    transition: all 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 18px 34px rgba(16, 185, 129, 0.28);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 42px rgba(16, 185, 129, 0.34);
}

.primary-btn.small {
    min-height: 42px;
    padding: 0 18px;
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

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

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.40);
    transform: rotate(2deg);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.42);
    backdrop-filter: blur(12px);
    font-size: 34px;
    line-height: 1;
}

.hero-control.prev {
    left: 24px;
}

.hero-control.next {
    right: 24px;
}

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

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

.hero-dot.active {
    width: 34px;
    background: var(--brand);
}

.quick-search-panel {
    position: relative;
    z-index: 12;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 24px;
    margin-top: -54px;
    padding: 26px;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-search-panel h2,
.section-head h2,
.inner-hero h1,
.detail-copy h1,
.content-card h2,
.category-overview-card h2,
.movie-card h2,
.ranking-info h2 {
    margin: 0;
    letter-spacing: -0.035em;
}

.quick-search-panel p {
    margin: 6px 0 0;
    color: var(--muted);
}

.section-block {
    padding: 78px 0 0;
}

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

.section-head h2 {
    margin-top: 10px;
    font-size: clamp(28px, 4vw, 44px);
}

.section-head > a,
.text-link {
    color: var(--brand-dark);
    font-weight: 900;
}

.compact-head h2 {
    font-size: clamp(24px, 3vw, 32px);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.36);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e2e8f0;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.play-hover {
    position: absolute;
    inset: auto 16px 16px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.72);
    font-weight: 900;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.22s ease;
    backdrop-filter: blur(10px);
}

.movie-card:hover .play-hover {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.24);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.movie-meta-line span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.movie-meta-line span + span::before {
    content: "·";
    margin-right: 4px;
    color: #94a3b8;
}

.movie-card h2 {
    font-size: 19px;
    line-height: 1.28;
}

.movie-card h2 a:hover,
.ranking-info h2 a:hover,
.category-overview-card h2 a:hover {
    color: var(--brand-dark);
}

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

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

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: #047857;
    background: #d1fae5;
    font-size: 12px;
    font-weight: 800;
}

.large-tags span {
    min-height: 32px;
    padding: 0 12px;
}

.category-band {
    padding-top: 88px;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(16, 185, 129, 0.24);
    border-radius: 999px;
    color: #047857;
    background: rgba(16, 185, 129, 0.10);
    font-weight: 900;
    transition: all 0.2s ease;
}

.category-pill:hover {
    color: #ffffff;
    background: var(--brand);
}

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

.category-tile,
.category-overview-card,
.content-card,
.ranking-panel,
.player-card,
.quick-search-panel {
    border: 1px solid rgba(226, 232, 240, 0.88);
}

.category-tile,
.category-overview-card,
.content-card,
.ranking-panel {
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.category-tile {
    padding: 22px;
}

.category-tile > a span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile > a p {
    min-height: 52px;
    margin: 10px 0 18px;
    color: var(--muted);
}

.category-tile div,
.overview-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tile div a,
.overview-links a {
    display: inline-flex;
    min-height: 30px;
    padding: 0 10px;
    align-items: center;
    border-radius: 999px;
    color: #334155;
    background: #f1f5f9;
    font-size: 13px;
    font-weight: 700;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
}

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

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

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

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

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

.horizontal-card {
    display: grid;
    grid-template-columns: 64px 38px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.horizontal-card:hover {
    background: #ecfdf5;
    transform: translateX(4px);
}

.horizontal-card img {
    width: 64px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
}

.horizontal-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    font-weight: 900;
}

.horizontal-card h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.horizontal-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.inner-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.36), transparent 30rem),
        linear-gradient(135deg, #020617 0%, #064e3b 55%, #0f172a 100%);
}

.inner-hero .container {
    padding: 90px 0 70px;
}

.inner-hero h1 {
    margin-top: 16px;
    font-size: clamp(36px, 5vw, 64px);
}

.inner-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
}

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

.filter-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 420px) 1fr;
    gap: 16px;
    align-items: center;
    margin-top: 30px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-buttons button {
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 0 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.filter-buttons button.active,
.filter-buttons button:hover {
    color: #064e3b;
    background: #d1fae5;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    padding: 20px;
}

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

.category-cover-stack img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
}

.category-overview-card h2 {
    margin-bottom: 8px;
    font-size: 24px;
}

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

.category-overview-card .text-link {
    margin-top: 14px;
}

.ranking-page-list {
    display: grid;
    gap: 16px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 58px 90px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.ranking-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-size: 20px;
    font-weight: 900;
}

.ranking-thumb img {
    width: 90px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
}

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

.search-hero .large-search {
    max-width: 760px;
    margin-top: 28px;
}

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

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

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

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.90)),
        linear-gradient(0deg, #020617 0%, transparent 70%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 76px 0 58px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: clamp(28px, 6vw, 70px);
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

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

.detail-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.03;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 12px 18px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.80);
}

.detail-copy .primary-btn {
    margin-top: 28px;
}

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

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.28));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: #064e3b;
    background: #ffffff;
    font-size: 30px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.30);
}

.player-cover strong {
    font-size: clamp(22px, 4vw, 38px);
}

.player-cover em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.78);
}

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

.content-card {
    padding: 28px;
}

.content-card h2 {
    margin-bottom: 12px;
    font-size: 26px;
}

.content-card h2 + p {
    margin-top: 0;
}

.content-card p {
    color: #334155;
    font-size: 17px;
    line-height: 1.9;
}

.meta-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.meta-card dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.meta-card dd {
    margin: -8px 0 6px;
    color: var(--ink);
}

.empty-state {
    padding: 42px;
    border-radius: 24px;
    color: var(--muted);
    background: #ffffff;
    text-align: center;
}

.site-footer {
    margin-top: 96px;
    color: #cbd5e1;
    background: #020617;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 220px 220px;
    gap: 42px;
    padding: 58px 0 34px;
}

.footer-logo {
    color: #ffffff;
}

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

.site-footer h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 17px;
}

.site-footer a:not(.footer-logo) {
    display: block;
    margin: 10px 0;
    color: #94a3b8;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 22px 0 30px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 1120px) {
    .top-search {
        display: none;
    }

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

    .two-column-layout,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
    }

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

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

    .hero-poster {
        display: none;
    }

    .hero-control {
        display: none;
    }

    .quick-search-panel,
    .filter-toolbar,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .quick-search-panel {
        margin-top: -28px;
    }

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

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

    .ranking-row {
        grid-template-columns: 42px 72px 1fr;
    }

    .ranking-row .primary-btn {
        grid-column: 3;
        justify-self: start;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .site-logo {
        font-size: 17px;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
        border-radius: 14px;
    }

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

    .hero-copy h1,
    .hero-copy h2 {
        font-size: clamp(36px, 12vw, 52px);
    }

    .hero-copy p,
    .inner-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .section-block {
        padding-top: 56px;
    }

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

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

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

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

    .movie-card p {
        min-height: 42px;
        font-size: 13px;
    }

    .tag-row span {
        font-size: 11px;
    }

    .inner-hero .container,
    .detail-hero-inner {
        padding-top: 58px;
        padding-bottom: 46px;
    }

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

    .detail-poster {
        max-width: 240px;
    }

    .player-card,
    .content-card {
        border-radius: 20px;
    }

    .content-card {
        padding: 20px;
    }

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

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

    .ranking-row {
        grid-template-columns: 34px 66px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .ranking-number {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        font-size: 15px;
    }

    .ranking-thumb img {
        width: 66px;
    }

    .ranking-info p {
        display: none;
    }
}
