:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --red: #ef4444;
    --orange: #f97316;
    --yellow: #f59e0b;
    --green: #10b981;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --violet: #7c3aed;
    --rose: #e11d48;
    --indigo: #4f46e5;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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;
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(14px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.35);
}

.brand-text {
    font-size: 22px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #f87171, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-weight: 600;
    font-size: 15px;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #fb7185;
}

.header-search,
.mobile-search,
.hero-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-panel input,
.filter-panel select,
.search-page-form input {
    border: 0;
    outline: none;
    border-radius: 999px;
}

.header-search input {
    width: 210px;
    color: var(--white);
    background: rgba(51, 65, 85, 0.9);
    padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.hero-search button {
    border: 0;
    color: var(--white);
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    background: linear-gradient(90deg, var(--red), var(--orange));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 10px;
    color: var(--white);
    background: rgba(51, 65, 85, 0.75);
    padding: 8px 12px;
    cursor: pointer;
}

.mobile-nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.mobile-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    color: var(--white);
    background: var(--slate-700);
    padding: 10px 14px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.32), transparent 32%),
                linear-gradient(135deg, var(--slate-950), #1e3a8a 48%, #164e63);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.35) 1px, transparent 0);
    background-size: 34px 34px;
}

.hero-shell {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 78px 0 86px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 42px;
    align-items: center;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 800;
}

.hero-intro h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, #a5f3fc, #bfdbfe, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-intro p {
    max-width: 680px;
    margin: 0 0 28px;
    color: #cffafe;
    font-size: 19px;
}

.hero-search {
    max-width: 620px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    color: var(--white);
    background: transparent;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

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

.hero-actions a,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 18px;
    color: var(--white);
    font-weight: 800;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-actions a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.22);
}

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

.hero-card {
    position: relative;
    min-height: 245px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--slate-800);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.32);
    transform: translateZ(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-card:nth-child(1) {
    grid-row: span 2;
    min-height: 508px;
}

.hero-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 35px 65px rgba(0, 0, 0, 0.42);
}

.hero-card-media,
.poster-frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #1e293b 48%, #0e7490);
}

.poster-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.25;
    background-image: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.38), transparent 16%),
                      linear-gradient(135deg, rgba(239, 68, 68, 0.5), transparent 40%, rgba(6, 182, 212, 0.5));
}

.poster-img,
.hero-card-media img,
.summary-image img,
.category-bg img,
.detail-poster img,
.detail-backdrop img,
.ranking-thumb img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

img.image-missing {
    opacity: 0;
}

.hero-card-overlay,
.category-mask,
.detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.34) 52%, rgba(0, 0, 0, 0.04));
}

.hero-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
}

.hero-card-content h3 {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.25;
}

.hero-card-content p {
    display: -webkit-box;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.82);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-card-meta,
.meta-row,
.card-stats,
.ranking-meta,
.detail-meta,
.player-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-card-meta {
    color: #e2e8f0;
    font-size: 13px;
}

.play-hover {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    transform: translate(-50%, -50%) scale(0.78);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero-card:hover .play-hover,
.video-card:hover .play-hover,
.category-tile:hover .play-hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.white-section {
    background: transparent;
}

.warm-section {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

.dark-feature-section {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    color: var(--white);
    background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.28), transparent 34%),
                linear-gradient(135deg, #2e1065, #581c87, #701a75);
}

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

.section-head.center {
    justify-content: center;
    text-align: center;
}

.section-head.light h2,
.section-head.light .more-link {
    color: var(--white);
}

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -0.03em;
}

.section-kicker.green { color: var(--green); }
.section-kicker.orange { color: var(--orange); }
.section-kicker.violet { color: #c4b5fd; }
.section-kicker.blue { color: var(--blue); }

.more-link {
    color: var(--orange);
    font-weight: 800;
}

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

.video-card {
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.video-card:hover .poster-img {
    transform: scale(1.08);
}

.card-link {
    display: block;
    height: 100%;
}

.video-card .poster-frame {
    aspect-ratio: 16 / 10;
    height: auto;
}

.compact-card .poster-frame {
    aspect-ratio: 3 / 4;
}

.duration-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    color: var(--white);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.66);
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 16px;
}

.meta-row {
    color: var(--slate-600);
    font-size: 12px;
    margin-bottom: 8px;
}

.card-body h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    color: #64748b;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    color: #075985;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(90deg, #cffafe, #dbeafe);
}

.card-stats {
    margin-top: 14px;
    justify-content: space-between;
    color: var(--slate-600);
    font-size: 13px;
    font-weight: 700;
}

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

.ranking-list {
    width: min(980px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.ranking-item {
    position: relative;
    display: grid;
    grid-template-columns: 50px 150px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.rank-badge {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 999px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--rose));
}

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

.ranking-copy h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.ranking-copy p {
    display: -webkit-box;
    margin: 0 0 10px;
    color: #64748b;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-meta {
    color: #64748b;
    font-size: 13px;
}

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

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

.category-tile,
.category-summary-card {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    border-radius: 24px;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-summary-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.category-bg,
.summary-image {
    position: absolute;
    inset: 0;
}

.category-content,
.summary-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    color: var(--white);
    padding: 24px;
}

.category-content span,
.summary-copy span {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.category-content h3,
.summary-copy h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.category-content p,
.summary-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.category-summary-card {
    display: block;
    min-height: 320px;
}

.page-hero {
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 68px 0;
    text-align: center;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 780px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.red-hero { background: linear-gradient(135deg, #991b1b, #ea580c); }
.orange-hero { background: linear-gradient(135deg, #9a3412, #e11d48); }
.blue-hero { background: linear-gradient(135deg, #1e3a8a, #0891b2); }
.indigo-hero { background: linear-gradient(135deg, #312e81, #7e22ce); }
.green-hero { background: linear-gradient(135deg, #064e3b, #059669); }
.cyan-hero { background: linear-gradient(135deg, #164e63, #2563eb); }
.violet-hero { background: linear-gradient(135deg, #581c87, #7c3aed); }
.rose-hero { background: linear-gradient(135deg, #881337, #e11d48); }
.yellow-hero { background: linear-gradient(135deg, #78350f, #f59e0b); }
.indigo-hero { background: linear-gradient(135deg, #312e81, #4f46e5); }

.filter-panel {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 14px;
    padding: 18px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 11px 13px;
    color: #111827;
    background: #f1f5f9;
}

.filter-status,
.search-summary {
    margin: 0 0 20px;
    color: #475569;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--slate-950);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    filter: blur(12px) saturate(1.25);
    transform: scale(1.08);
    opacity: 0.38;
}

.detail-overlay {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.96));
}

.detail-shell {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0 66px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    color: #cbd5e1;
    font-size: 14px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 34px;
    align-items: end;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.detail-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 780px;
    margin: 0 0 20px;
    color: #e2e8f0;
    font-size: 20px;
}

.detail-meta {
    margin-bottom: 18px;
    color: #cbd5e1;
}

.detail-meta span,
.player-meta-row span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.primary-button {
    margin-top: 24px;
    border: 0;
    background: linear-gradient(90deg, var(--red), var(--orange));
}

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

.player-card,
.article-card,
.side-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.player-stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    cursor: pointer;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.18));
}

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

.big-play {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 32px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 18px 45px rgba(239, 68, 68, 0.38);
}

.player-message {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 5;
    color: var(--white);
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
    display: none;
}

.player-message.is-visible {
    display: block;
}

.player-meta-row {
    padding: 16px;
    color: #475569;
    font-size: 14px;
}

.player-meta-row span {
    background: #f1f5f9;
}

.article-card,
.side-card {
    padding: 24px;
    margin-top: 22px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.article-card p {
    margin: 0;
    color: #475569;
    font-size: 17px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.side-card dt {
    color: #64748b;
    font-weight: 800;
}

.side-card dd {
    margin: 0;
    color: #111827;
}

.next-prev-card {
    display: grid;
    gap: 12px;
}

.next-prev-card a {
    display: block;
    padding: 12px;
    border-radius: 12px;
    color: #111827;
    background: #f8fafc;
}

.next-prev-card a:hover {
    color: var(--red);
}

.search-page-form {
    width: min(680px, 100%);
    margin: 26px auto 0;
}

.search-result-empty {
    grid-column: 1 / -1;
    padding: 28px;
    text-align: center;
    color: #64748b;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

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

.sitemap-section {
    border-radius: 22px;
    padding: 22px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.sitemap-section h2 {
    margin: 0 0 14px;
}

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

.sitemap-section li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #e2e8f0;
}

.sitemap-section li span {
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, var(--slate-950), #000000);
}

.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: 30px;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: var(--white);
}

.site-footer p,
.site-footer a {
    color: #94a3b8;
}

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

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

.copyright {
    padding: 18px;
    text-align: center;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.32);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

[hidden],
.is-filtered-out {
    display: none !important;
}

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

    .mobile-menu-button {
        display: block;
    }

    .header-search {
        margin-left: auto;
    }

    .hero-shell,
    .detail-grid,
    .content-layout {
        grid-template-columns: 1fr;
    }

    .hero-card:nth-child(1) {
        min-height: 340px;
    }

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

    .filter-panel {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 760px) {
    .nav-shell {
        height: auto;
        min-height: 64px;
        padding: 12px 0;
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        width: 100%;
    }

    .header-search input {
        width: 100%;
        flex: 1;
    }

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

    .hero-shell,
    .section,
    .page-hero-shell,
    .detail-shell,
    .footer-grid {
        width: min(100% - 24px, 1180px);
    }

    .hero-shell {
        padding: 48px 0 56px;
    }

    .hero-feature-grid,
    .ranking-grid,
    .category-grid,
    .category-summary-grid,
    .sitemap-wrap,
    .movie-grid,
    .poster-strip {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .hero-card:nth-child(1) {
        min-height: 260px;
    }

    .hero-search {
        border-radius: 22px;
        align-items: stretch;
        flex-direction: column;
    }

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

    .ranking-item {
        grid-template-columns: 42px 92px 1fr;
        gap: 12px;
    }

    .ranking-copy p,
    .ranking-meta span:nth-child(2) {
        display: none;
    }

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

    .detail-copy h1 {
        font-size: 36px;
    }

    .detail-one-line {
        font-size: 17px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
