:root {
    --bg: #fff7ed;
    --panel: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #ffedd5;
    --line: rgba(251, 146, 60, 0.24);
    --brand: #f97316;
    --brand-dark: #c2410c;
    --gold: #f59e0b;
    --shadow: 0 22px 60px rgba(154, 52, 18, 0.14);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #fffaf0 48%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.18), transparent 30rem),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 28rem);
    z-index: -1;
}

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

img {
    display: block;
    width: 100%;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(234, 88, 12, 0.96), rgba(245, 158, 11, 0.94));
    color: #ffffff;
    box-shadow: 0 14px 35px rgba(154, 52, 18, 0.22);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.82rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 1.05rem;
    display: grid;
    place-items: center;
    color: var(--brand-dark);
    background: #ffffff;
    font-weight: 900;
    font-size: 1.25rem;
    box-shadow: inset 0 0 0 2px rgba(251, 191, 36, 0.45), 0 12px 22px rgba(154, 52, 18, 0.22);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 1.22rem;
    letter-spacing: 0.03em;
}

.brand-text small {
    color: #ffedd5;
    font-size: 0.76rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.38rem;
}

.nav-link {
    padding: 0.58rem 0.86rem;
    border-radius: 0.9rem;
    color: #fff7ed;
    font-weight: 650;
    transition: 0.24s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-dark);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(154, 52, 18, 0.18);
}

.menu-toggle {
    display: none;
    width: 2.7rem;
    height: 2.7rem;
    border: 0;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 1.25rem;
    height: 2px;
    margin: 0.28rem auto;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem 1rem;
}

.mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.mobile-link {
    padding: 0.78rem 0.9rem;
    border-radius: 1rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.hero {
    position: relative;
    max-width: 1240px;
    min-height: 680px;
    margin: 1.3rem auto 0;
    border-radius: 2.2rem;
    overflow: hidden;
    color: #ffffff;
    box-shadow: var(--shadow);
    background: #431407;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 360px;
    gap: 3rem;
    align-items: center;
    padding: 6rem 4rem 12.5rem;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg img {
    height: 100%;
    object-fit: cover;
    filter: blur(9px) saturate(1.15) brightness(0.75);
    transform: scale(1.08);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(67, 20, 7, 0.95), rgba(124, 45, 18, 0.65), rgba(0, 0, 0, 0.28)),
        radial-gradient(circle at 18% 20%, rgba(251, 191, 36, 0.28), transparent 20rem);
}

.hero-content {
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fed7aa;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.hero h1,
.page-hero h1,
.detail-intro h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 680px;
    margin: 1.1rem 0 1.3rem;
    color: #ffedd5;
    font-size: 1.12rem;
}

.hero-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hero-tags span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0.26rem 0.62rem;
    border-radius: 999px;
    color: #9a3412;
    background: #fff7ed;
    font-size: 0.78rem;
    font-weight: 750;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.7rem;
}

.hero-actions.inline {
    margin-top: 1.15rem;
}

.primary-btn,
.ghost-btn,
.section-more,
.card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    border: 0;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 16px 34px rgba(194, 65, 12, 0.3);
}

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

.primary-btn.small,
.ghost-btn.small {
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(154, 52, 18, 0.2);
}

.hero-poster {
    position: relative;
    width: min(360px, 100%);
    aspect-ratio: 3 / 4;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 36px 70px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

.hero-poster img {
    height: 100%;
    object-fit: cover;
}

.hero-poster::after {
    content: "▶";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4rem;
    height: 4rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand);
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-panel {
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
    z-index: 5;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.hero-search,
.hero-thumbs {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.hero-search {
    padding: 1rem;
}

.hero-search label {
    display: block;
    margin-bottom: 0.55rem;
    color: #ffedd5;
    font-weight: 850;
}

.search-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
}

.search-line input,
.toolbar input,
.toolbar select {
    width: 100%;
    border: 1px solid rgba(251, 146, 60, 0.26);
    outline: none;
    border-radius: 1rem;
    color: var(--ink);
    background: #ffffff;
    padding: 0.78rem 0.95rem;
    box-shadow: inset 0 0 0 1px rgba(255, 237, 213, 0.45);
}

.search-line a {
    display: inline-flex;
    align-items: center;
    padding: 0 1rem;
    border-radius: 1rem;
    color: #9a3412;
    background: #ffffff;
    font-weight: 800;
}

.hero-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.75rem;
}

.hero-thumb {
    position: relative;
    min-height: 112px;
    border: 0;
    overflow: hidden;
    border-radius: 1rem;
    color: #ffffff;
    background: #431407;
    cursor: pointer;
    opacity: 0.74;
    transition: 0.24s ease;
}

.hero-thumb.active,
.hero-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.hero-thumb img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
}

.hero-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.hero-thumb span {
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.55rem;
    z-index: 1;
    font-size: 0.78rem;
    font-weight: 850;
    text-align: left;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.content-section,
.category-strip,
.rank-section,
.toolbar-section,
.ranking-list,
.detail-content,
.detail-nav,
.player-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 3rem 1.25rem 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-head.narrow {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.section-more {
    color: #9a3412;
    background: #ffedd5;
}

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

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

.movie-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 38px rgba(154, 52, 18, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.18);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 58px rgba(154, 52, 18, 0.18);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #f97316);
}

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

.movie-card:hover .poster img,
.category-tile:hover img,
.rank-cover:hover img {
    transform: scale(1.06);
}

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

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
}

.poster-badge {
    left: 0.75rem;
    top: 0.75rem;
    padding: 0.34rem 0.64rem;
    border-radius: 999px;
    color: #9a3412;
    background: rgba(255, 255, 255, 0.94);
    font-size: 0.75rem;
    font-weight: 850;
}

.poster-play {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.card-body {
    padding: 1rem;
}

.card-title,
.rank-title {
    display: block;
    color: #111827;
    font-weight: 900;
    font-size: 1.06rem;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.card-title:hover,
.rank-title:hover {
    color: var(--brand);
}

.card-meta {
    margin-top: 0.32rem;
    color: #c2410c;
    font-size: 0.82rem;
    font-weight: 750;
}

.card-body p {
    min-height: 3.2rem;
    margin: 0.55rem 0 0.75rem;
    color: var(--muted);
    font-size: 0.92rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-link {
    min-height: 2.4rem;
    width: 100%;
    margin-top: 0.85rem;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    font-size: 0.9rem;
}

.movie-card.compact .card-body p {
    min-height: 2.9rem;
}

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

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

.category-tile {
    position: relative;
    min-height: 168px;
    overflow: hidden;
    border-radius: 1.45rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    isolation: isolate;
    box-shadow: 0 18px 35px rgba(154, 52, 18, 0.14);
}

.category-tile.large {
    min-height: 230px;
}

.category-tile img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.35s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(67, 20, 7, 0.1), rgba(67, 20, 7, 0.85));
}

.category-tile span {
    width: max-content;
    padding: 0.26rem 0.58rem;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 0.76rem;
    font-weight: 850;
}

.category-tile strong {
    margin-top: 0.45rem;
    font-size: 1.3rem;
    line-height: 1.2;
}

.category-tile em {
    margin-top: 0.5rem;
    color: #ffedd5;
    font-style: normal;
    font-size: 0.92rem;
}

.rank-section {
    padding-top: 3.5rem;
}

.rank-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.rank-mini {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    border-radius: 1.2rem;
    padding: 0.95rem;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(154, 52, 18, 0.08);
}

.rank-mini span,
.rank-number {
    display: grid;
    place-items: center;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 1rem;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    font-weight: 950;
}

.rank-mini strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-mini small {
    color: var(--muted);
}

.inner-page {
    padding-bottom: 2rem;
}

.page-hero {
    max-width: 1240px;
    margin: 1.25rem auto 0;
    padding: 5.5rem 2rem;
    color: #ffffff;
    border-radius: 2rem;
    background:
        linear-gradient(135deg, rgba(194, 65, 12, 0.96), rgba(245, 158, 11, 0.92)),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.26), transparent 18rem);
    box-shadow: var(--shadow);
}

.page-hero.soft {
    background: linear-gradient(135deg, #fb923c, #f59e0b);
}

.page-hero.hot {
    background:
        linear-gradient(135deg, rgba(124, 45, 18, 0.96), rgba(234, 88, 12, 0.94)),
        radial-gradient(circle at 78% 24%, rgba(253, 186, 116, 0.35), transparent 18rem);
}

.page-hero p {
    max-width: 720px;
    margin: 1rem 0 0;
    color: #fff7ed;
    font-size: 1.08rem;
}

.toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    padding: 1rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    box-shadow: 0 16px 36px rgba(154, 52, 18, 0.08);
}

.toolbar select {
    min-width: 170px;
}

.page-list {
    padding-top: 2rem;
}

.ranking-list {
    display: grid;
    gap: 0.75rem;
}

.rank-row {
    display: grid;
    grid-template-columns: 4.2rem 84px minmax(0, 1fr) 110px;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem;
    border-radius: 1.2rem;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(154, 52, 18, 0.08);
}

.rank-cover {
    aspect-ratio: 3 / 4;
    border-radius: 0.9rem;
    overflow: hidden;
    background: var(--soft);
}

.rank-cover img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
}

.rank-info p {
    margin: 0.35rem 0 0.6rem;
    color: var(--muted);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.detail-page {
    padding-bottom: 2rem;
}

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

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

.detail-backdrop img {
    height: 100%;
    object-fit: cover;
    filter: blur(12px) brightness(0.58) saturate(1.14);
    transform: scale(1.08);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(67, 20, 7, 0.96), rgba(124, 45, 18, 0.8), rgba(0, 0, 0, 0.36));
}

.detail-wrap {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 4.5rem 1.25rem;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 1.7rem;
    aspect-ratio: 3 / 4;
    background: var(--soft);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

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

.detail-poster span {
    position: absolute;
    inset: auto 1rem 1rem auto;
    width: 3.2rem;
    height: 3.2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    color: #fed7aa;
}

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

.detail-intro .lead {
    max-width: 850px;
    margin: 1rem 0;
    color: #ffedd5;
    font-size: 1.12rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1rem 0;
}

.detail-meta span {
    padding: 0.36rem 0.72rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.player-section {
    padding-top: 2rem;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 1.8rem;
    background: #0f172a;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.24);
    aspect-ratio: 16 / 9;
}

.player-box video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #0f172a;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-overlay span {
    width: 5.2rem;
    height: 5.2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    font-size: 2rem;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

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

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

.story-card {
    padding: 1.45rem;
    border-radius: 1.4rem;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 36px rgba(154, 52, 18, 0.08);
}

.story-card.accent {
    background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.story-card h2 {
    margin: 0 0 0.8rem;
    font-size: 1.45rem;
}

.story-card p {
    margin: 0 0 0.9rem;
    color: #4b5563;
}

.detail-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding-top: 1rem;
}

.detail-nav a {
    padding: 1rem;
    border-radius: 1.15rem;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 800;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.related-section {
    padding-top: 2.5rem;
}

.site-footer {
    margin-top: 4rem;
    padding: 3rem 1.25rem 1.3rem;
    color: #ffedd5;
    background: linear-gradient(135deg, #7c2d12, #c2410c);
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand {
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 950;
}

.site-footer h2 {
    margin: 0 0 0.75rem;
    color: #ffffff;
    font-size: 1.05rem;
}

.site-footer p {
    margin: 0.65rem 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.footer-links a {
    padding: 0.42rem 0.68rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.footer-bottom {
    max-width: 1240px;
    margin: 2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #fed7aa;
    font-size: 0.9rem;
}

[data-hidden="true"] {
    display: none !important;
}

@media (max-width: 1080px) {
    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 270px;
        padding: 5rem 2rem 13rem;
    }

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

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

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

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

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 760px;
        margin-left: 1rem;
        margin-right: 1rem;
        border-radius: 1.5rem;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: start;
        padding: 3.2rem 1.25rem 19rem;
    }

    .hero-poster {
        display: none;
    }

    .hero-panel {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

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

    .hero-thumb {
        min-height: 86px;
    }

    .movie-grid,
    .movie-grid.dense,
    .category-grid,
    .category-grid.wide,
    .rank-mini-grid,
    .detail-content,
    .detail-nav,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-wrap {
        grid-template-columns: 1fr;
        padding-top: 2rem;
    }

    .detail-poster {
        width: min(260px, 72vw);
    }

    .rank-row {
        grid-template-columns: 3.8rem 72px minmax(0, 1fr);
    }

    .rank-row .card-link {
        grid-column: 1 / -1;
        margin-top: 0;
    }

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

@media (max-width: 540px) {
    .nav-wrap {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .brand-text small {
        display: none;
    }

    .search-line {
        grid-template-columns: 1fr;
    }

    .content-section,
    .category-strip,
    .rank-section,
    .toolbar-section,
    .ranking-list,
    .detail-content,
    .detail-nav,
    .player-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .page-hero {
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 3.4rem 1.25rem;
        border-radius: 1.5rem;
    }

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