:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-strong: #f1f5f9;
    --ink: #111827;
    --muted: #64748b;
    --line: #e2e8f0;
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-soft: #fff7ed;
    --accent: #2563eb;
    --radius: 18px;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.94);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(18px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 12px 22px rgba(249, 115, 22, 0.34);
}

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

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 15px;
    border-radius: 12px;
    color: #dbe4f0;
    font-weight: 650;
    transition: 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: #ffffff;
    background: var(--primary);
}

.header-search {
    display: flex;
    align-items: center;
    width: min(320px, 30vw);
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.header-search input {
    min-width: 0;
    flex: 1;
    color: #ffffff;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 10px;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.header-search button {
    border: 0;
    color: #ffffff;
    background: var(--primary);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #334155 48%, #7c2d12);
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.16), transparent 28%), radial-gradient(circle at 84% 20%, rgba(37, 99, 235, 0.16), transparent 34%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(48px);
    opacity: 0.42;
}

.glow-a {
    width: 280px;
    height: 280px;
    left: 7%;
    top: 18%;
    background: var(--primary);
}

.glow-b {
    width: 360px;
    height: 360px;
    right: 7%;
    bottom: 0;
    background: var(--accent);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    padding: 82px 0 70px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #fed7aa;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.hero-copy p,
.page-hero p {
    max-width: 680px;
    margin: 22px 0 0;
    color: #e2e8f0;
    font-size: 20px;
}

.hero-search {
    display: flex;
    gap: 10px;
    max-width: 620px;
    margin-top: 34px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    color: #ffffff;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 14px 16px;
}

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

.hero-search button,
.btn.primary {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 14px;
    padding: 13px 22px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.32);
    transition: 0.25s ease;
}

.hero-search button:hover,
.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(249, 115, 22, 0.38);
}

.hero-link-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.hero-link-row a,
.btn.ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 750;
    transition: 0.25s ease;
}

.hero-link-row a:hover,
.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero-carousel {
    position: relative;
    min-height: 450px;
}

.hero-slide {
    display: none;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    padding: 24px;
    min-height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.36);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(22px);
}

.hero-slide.active {
    display: grid;
    animation: fadeUp 0.55s ease both;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    height: 340px;
    border-radius: 24px;
    background: linear-gradient(135deg, #334155, #111827);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-play,
.poster-play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.32);
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.hero-tags span,
.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(251, 146, 60, 0.22);
    font-size: 12px;
    font-weight: 800;
}

.hero-info h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.14;
}

.hero-info p {
    margin: 18px 0 0;
    color: #dbeafe;
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--dark);
    box-shadow: var(--shadow-soft);
}

.hero-controls button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--surface-strong);
    cursor: pointer;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    background: #cbd5e1;
}

.hero-dots button.active {
    width: 24px;
    border-radius: 999px;
    background: var(--primary);
}

.feature-strip {
    width: min(1180px, calc(100% - 32px));
    margin: -34px auto 0;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.feature-item {
    padding: 24px;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.feature-item span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 850;
}

.feature-item strong {
    display: block;
    margin-top: 14px;
    font-size: 20px;
}

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

.content-section,
.player-section,
.article-section,
.ranking-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.content-section.top-tight {
    padding-top: 26px;
}

.soft-bg {
    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, #eff6ff);
}

.section-title {
    max-width: 680px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-title.align-left {
    margin-left: 0;
    text-align: left;
}

.section-title span {
    color: var(--primary);
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title h2 {
    margin: 8px 0 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}

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

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

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

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

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

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    height: 280px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

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

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

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.64), transparent 54%);
    opacity: 0;
    transition: 0.3s ease;
}

.movie-card:hover .poster::after {
    opacity: 1;
}

.poster-year {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    opacity: 0;
    z-index: 2;
    transition: 0.28s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
}

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

.movie-meta-line,
.movie-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.movie-category {
    color: var(--primary-dark);
    font-weight: 800;
}

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

.movie-card h3 a:hover {
    color: var(--primary-dark);
}

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

.movie-card-foot {
    margin-top: 16px;
}

.movie-card-foot a {
    color: var(--primary-dark);
    font-weight: 800;
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 22px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #334155);
    box-shadow: var(--shadow-soft);
}

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

.category-card:hover img {
    transform: scale(1.08);
    opacity: 0.42;
}

.category-card span,
.category-card p {
    position: relative;
    z-index: 2;
}

.category-card span {
    display: block;
    margin-top: 90px;
    font-size: 24px;
    font-weight: 850;
}

.category-card p {
    margin: 8px 0 0;
    color: #e2e8f0;
}

.category-overview-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.category-stack img {
    height: 92px;
    width: 100%;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

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

.category-overview-card p {
    margin: 0;
    color: #e2e8f0;
}

.category-overview-card span {
    display: inline-flex;
    margin-top: 16px;
    color: #fed7aa;
    font-weight: 800;
}

.split-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 34px;
    align-items: start;
}

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 26px;
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.rank-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-item {
    display: grid;
    grid-template-columns: 48px 66px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: none;
}

.rank-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 850;
}

.rank-thumb {
    overflow: hidden;
    width: 66px;
    height: 82px;
    border-radius: 12px;
    background: #e2e8f0;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-copy h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.rank-copy p {
    min-height: 0;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
}

.rank-copy div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.rank-copy a {
    color: var(--primary-dark);
    font-weight: 800;
}

.rank-action {
    padding: 9px 12px;
    border-radius: 12px;
    color: #ffffff;
    background: var(--primary);
    font-weight: 800;
}

.rank-list.expanded {
    gap: 16px;
}

.rank-list.expanded .rank-item {
    grid-template-columns: 64px 92px minmax(0, 1fr) auto;
}

.rank-list.expanded .rank-thumb {
    width: 92px;
    height: 118px;
}

.btn.full {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1e293b 55%, #7c2d12);
}

.small-hero {
    padding: 76px max(16px, calc((100% - 1180px) / 2));
}

.filter-bar {
    width: min(1180px, calc(100% - 32px));
    margin: -28px auto 0;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px)) auto;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    background: #ffffff;
    padding: 12px 14px;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.filter-bar button {
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: var(--dark-soft);
    padding: 12px 18px;
    cursor: pointer;
}

.empty-state {
    display: none;
    margin: 36px auto 0;
    padding: 24px;
    border: 1px dashed var(--line);
    border-radius: 20px;
    color: var(--muted);
    text-align: center;
    background: var(--surface);
}

.empty-state.show {
    display: block;
}

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

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

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72), rgba(124, 45, 18, 0.7));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 72px;
}

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

.breadcrumb a {
    color: #fed7aa;
    font-weight: 800;
}

.detail-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #111827;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.detail-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px 16px;
    border-radius: 16px;
    color: #ffffff;
    background: var(--primary);
    font-weight: 850;
    text-align: center;
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.detail-copy .lead {
    max-width: 760px;
    margin: 20px 0 0;
    color: #e2e8f0;
    font-size: 20px;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.detail-info-grid div {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.detail-info-grid span {
    display: block;
    color: #cbd5e1;
    font-size: 13px;
}

.detail-info-grid strong {
    display: block;
    margin-top: 4px;
    color: #ffffff;
}

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

.player-section {
    padding-bottom: 30px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.74));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-playing .play-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.42);
    font-size: 30px;
}

.play-overlay strong {
    font-size: 20px;
}

.article-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 30px;
}

.story-card {
    padding: 30px;
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.story-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.story-card p {
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.9;
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
}

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

.footer-logo {
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-grid p {
    max-width: 460px;
    margin: 0;
}

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

.footer-grid a:not(.logo) {
    display: block;
    margin-top: 8px;
    color: #cbd5e1;
}

.footer-grid a:not(.logo):hover {
    color: #fed7aa;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-size: 14px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .hero-inner,
    .split-section {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        min-height: auto;
    }

    .ranking-panel {
        position: static;
    }

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

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

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

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

    .hero-inner {
        padding-top: 58px;
        grid-template-columns: 1fr;
    }

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        height: 420px;
    }

    .feature-strip,
    .movie-grid,
    .category-grid,
    .overview-grid,
    .compact-grid,
    .article-section,
    .footer-grid,
    .detail-grid,
    .detail-info-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .filter-bar input {
        grid-column: 1 / -1;
    }

    .rank-list.expanded .rank-item,
    .rank-item {
        grid-template-columns: 44px 72px minmax(0, 1fr);
    }

    .rank-action {
        grid-column: 2 / -1;
        text-align: center;
    }
}

@media (max-width: 580px) {
    .nav-wrap {
        min-height: 64px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }

    .logo-text {
        font-size: 18px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 34px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-copy .lead {
        font-size: 17px;
    }

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

    .hero-search button {
        width: 100%;
    }

    .feature-strip,
    .movie-grid,
    .category-grid,
    .overview-grid,
    .compact-grid,
    .article-section,
    .footer-grid,
    .detail-grid,
    .detail-info-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .poster {
        height: 360px;
    }

    .hero-poster,
    .detail-poster img {
        height: 390px;
    }

    .hero-controls {
        position: static;
        transform: none;
        width: max-content;
        margin: 18px auto 0;
    }

    .detail-hero-inner {
        padding-top: 34px;
    }

    .rank-item,
    .rank-list.expanded .rank-item {
        grid-template-columns: 42px 70px minmax(0, 1fr);
        padding: 10px;
    }

    .rank-thumb,
    .rank-list.expanded .rank-thumb {
        width: 70px;
        height: 90px;
    }

    .rank-copy p {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
