:root {
    --red: #dc2626;
    --red-dark: #b91c1c;
    --orange: #ea580c;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --green: #059669;
    --gold: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #ffffff;
    --soft: #f9fafb;
    --dark: #0f172a;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-icon,
.footer-logo span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 10px 28px rgba(220, 38, 38, 0.28);
}

.brand-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--red), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 700;
    color: #374151;
}

.main-nav > a,
.nav-dropdown > button {
    padding: 22px 0;
    border: 0;
    background: transparent;
    color: inherit;
}

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

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    left: -18px;
    top: 64px;
    width: 220px;
    padding: 10px;
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

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

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

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

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.local-filter {
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.header-search input {
    width: min(250px, 20vw);
    padding: 7px 10px 7px 14px;
}

.header-search button,
.mobile-search button,
.search-page-form button {
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    padding: 8px 16px;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--ink);
    background: #f3f4f6;
}

.mobile-panel {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 18px;
    border-top: 1px solid var(--line);
}

.mobile-panel a {
    display: block;
    padding: 10px 4px;
    font-weight: 700;
    color: #374151;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin: 8px 0 12px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.mobile-search input {
    flex: 1;
    padding: 8px 10px;
}

.hero-carousel {
    position: relative;
    height: min(620px, calc(100vh - 68px));
    min-height: 520px;
    overflow: hidden;
    background: #000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.12));
}

.hero-content {
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1180px;
}

.hero-content > * {
    max-width: 690px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 18px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.hero-content h1 {
    margin: 18px 0 14px;
    color: #fff;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2.4vw, 24px);
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.hero-meta span,
.detail-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.side-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.2s ease;
}

.primary-button {
    color: #fff;
    background: var(--blue);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.primary-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.26);
}

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.48);
    font-size: 40px;
    line-height: 1;
    transition: 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.72);
}

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

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

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

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    transition: 0.2s ease;
}

.hero-dots button.active {
    width: 34px;
    background: #fff;
}

.quick-categories {
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.quick-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.quick-inner a {
    padding: 18px;
    min-height: 112px;
    border-radius: 18px;
    background: linear-gradient(145deg, #fff, #f8fafc);
    border: 1px solid #eef2f7;
    box-shadow: var(--shadow-soft);
    transition: 0.2s ease;
}

.quick-inner a:hover {
    transform: translateY(-4px);
    border-color: #fecaca;
}

.quick-inner strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.quick-inner span {
    color: var(--muted);
    font-size: 14px;
}

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

.tint-blue,
.tint-green {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
}

.tint-blue {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.tint-green {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.dark-section {
    background: linear-gradient(135deg, #111827, #030712);
}

.inner-dark {
    color: #fff;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 26px;
}

.section-heading > span {
    width: 5px;
    height: 38px;
    margin-top: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--red), var(--orange));
}

.section-heading.blue > span {
    background: linear-gradient(180deg, var(--blue), var(--cyan));
}

.section-heading.gold > span {
    background: linear-gradient(180deg, #facc15, var(--orange));
}

.section-heading.green > span {
    background: linear-gradient(180deg, var(--green), #10b981);
}

.section-heading.orange > span {
    background: linear-gradient(180deg, #d97706, var(--orange));
}

.section-heading h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

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

.inner-dark .section-heading p {
    color: rgba(255, 255, 255, 0.66);
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111827;
}

.movie-card.large .poster-link {
    aspect-ratio: 16 / 13;
}

.poster-link img,
.tile-card img,
.wide-thumb img,
.category-cover img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img,
.tile-card:hover img,
.wide-card:hover .wide-thumb img,
.category-overview-card:hover .category-cover img {
    transform: scale(1.08);
}

.duration,
.rank-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 9px;
    border-radius: 9px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.78);
}

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

.movie-info {
    padding: 16px;
}

.meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.category-chip {
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--red);
    background: #fef2f2;
}

.rating {
    color: #d97706;
}

.movie-card h2,
.wide-card h2 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.25;
}

.movie-card h2 a:hover,
.wide-card h2 a:hover,
.sample-links a:hover {
    color: var(--red);
}

.movie-card p,
.wide-card p {
    margin: 0;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag-row span {
    padding: 4px 9px;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 12px;
    font-weight: 700;
}

.tag-row.large span {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

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

.tile-card {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 16px;
    background: #111827;
}

.tile-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.86));
}

.tile-card span,
.tile-card strong {
    position: absolute;
    z-index: 1;
    left: 14px;
    right: 14px;
    color: #fff;
}

.tile-card span {
    bottom: 50px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.tile-card strong {
    bottom: 18px;
    line-height: 1.25;
}

.editor-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

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

.wide-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    position: relative;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: 0.25s ease;
}

.wide-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.wide-thumb {
    height: 120px;
    overflow: hidden;
    background: #111827;
}

.wide-body {
    padding: 14px 16px 14px 0;
}

.mini-meta {
    margin-top: 8px;
    color: #9ca3af;
    font-size: 13px;
}

.list-rank {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.more-panel {
    padding-top: 36px;
}

.more-box {
    padding: clamp(26px, 5vw, 48px);
    border-radius: 30px;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    box-shadow: var(--shadow);
}

.more-box h2 {
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(30px, 4vw, 44px);
}

.glass-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.glass-link {
    padding: 18px;
    border-radius: 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transition: 0.2s ease;
    backdrop-filter: blur(12px);
}

.glass-link:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
}

.glass-link strong,
.glass-link span,
.glass-link em {
    display: block;
}

.glass-link span {
    margin: 7px 0;
    color: rgba(255, 255, 255, 0.82);
}

.glass-link em {
    color: rgba(255, 255, 255, 0.68);
    font-style: normal;
    font-size: 13px;
}

.page-main {
    background: var(--soft);
}

.page-hero {
    min-height: 300px;
    display: grid;
    align-items: center;
    color: #fff;
    background: linear-gradient(135deg, #991b1b, #ea580c);
}

.categories-hero {
    background: linear-gradient(135deg, #991b1b, #ea580c, #f59e0b);
}

.category-detail-hero {
    background: linear-gradient(135deg, #111827, #991b1b);
}

.ranking-hero {
    background: linear-gradient(135deg, #78350f, #b45309, #ea580c);
}

.search-hero {
    background: linear-gradient(135deg, #1e3a8a, #0891b2);
}

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

.page-hero span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 900;
}

.page-hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.category-cover {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    background: #111827;
}

.category-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.category-cover span {
    position: absolute;
    z-index: 1;
    left: 14px;
    bottom: 14px;
    color: #fff;
    font-weight: 900;
}

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

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

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

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

.sample-links a {
    padding: 4px 9px;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 13px;
    font-weight: 700;
}

.filter-bar {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.local-filter {
    width: 100%;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

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

.filter-buttons button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: #374151;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.filter-buttons button.active,
.filter-buttons button:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.ranking-list {
    gap: 14px;
}

.search-page-form {
    display: flex;
    gap: 10px;
    padding: 8px;
    margin-bottom: 22px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.search-page-form input {
    flex: 1;
    padding: 14px 16px;
}

.search-page-form button {
    padding: 0 24px;
}

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

.movie-hero {
    position: relative;
    min-height: 560px;
    background-image: var(--hero-poster);
    background-size: cover;
    background-position: center;
    color: #fff;
}

.movie-hero-shade {
    min-height: inherit;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.2));
}

.movie-hero-inner {
    padding-top: 36px;
    padding-bottom: 56px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

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

.movie-hero-grid {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    background: #111827;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
}

.detail-headline h1 {
    margin: 18px 0 14px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-headline p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
}

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

.detail-main,
.detail-side {
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.detail-main {
    padding: clamp(20px, 4vw, 34px);
}

.detail-main h2,
.detail-side h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.detail-main p {
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

.player-shell {
    position: relative;
    margin: 0 0 28px;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
    transition: 0.2s ease;
}

.player-start span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 14px 36px rgba(220, 38, 38, 0.38);
    font-size: 34px;
    padding-left: 4px;
}

.player-start.hidden {
    opacity: 0;
    pointer-events: none;
}

.player-message {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    padding: 12px 18px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.68);
    font-weight: 800;
}

.detail-side {
    position: sticky;
    top: 92px;
    padding: 22px;
}

.detail-side dl {
    margin: 0;
}

.detail-side dl > div {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.detail-side dt {
    color: #9ca3af;
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
    color: #374151;
    font-weight: 700;
}

.side-link {
    width: 100%;
    margin-top: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.side-link.muted {
    margin-top: 10px;
    color: var(--ink);
    background: #f3f4f6;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #030712);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.footer-grid p {
    margin: 14px 0 0;
    color: #9ca3af;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a:hover {
    color: #f87171;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #6b7280;
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .quick-inner,
    .four-grid,
    .tile-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .compact-grid,
    .three-grid,
    .glass-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .editor-layout,
    .detail-layout,
    .movie-hero-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-side {
        position: static;
    }
}

@media (max-width: 640px) {
    .header-inner {
        width: min(100% - 24px, 1180px);
        height: 62px;
    }

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

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

    .hero-content h1,
    .detail-headline h1 {
        font-size: 38px;
    }

    .hero-control {
        display: none;
    }

    .quick-inner,
    .compact-grid,
    .three-grid,
    .four-grid,
    .tile-grid,
    .glass-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        width: min(100% - 24px, 1180px);
        padding: 38px 0;
    }

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

    .wide-thumb {
        height: 190px;
    }

    .wide-body {
        padding: 0 16px 16px;
    }

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

    .movie-hero {
        min-height: 620px;
    }

    .detail-layout {
        width: min(100% - 24px, 1180px);
    }

    .search-page-form {
        flex-direction: column;
        border-radius: 18px;
    }
}
