:root {
    --color-bg: #fff7ed;
    --color-bg-soft: #fffbeb;
    --color-card: #ffffff;
    --color-text: #2f1b0c;
    --color-muted: #7c5b37;
    --color-strong: #78350f;
    --color-line: rgba(146, 64, 14, 0.14);
    --color-amber: #d97706;
    --color-orange: #ea580c;
    --color-red: #b91c1c;
    --shadow-card: 0 18px 45px rgba(120, 53, 15, 0.14);
    --shadow-soft: 0 10px 28px rgba(120, 53, 15, 0.10);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 0%, rgba(251, 191, 36, 0.28), transparent 32%),
        radial-gradient(circle at 86% 12%, rgba(234, 88, 12, 0.18), transparent 34%),
        var(--color-bg);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 247, 237, 0.88);
    border-bottom: 1px solid var(--color-line);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-strong);
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand {
    font-size: 22px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.26);
}

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

.main-nav a {
    padding: 9px 15px;
    border-radius: 999px;
    color: #7c2d12;
    font-weight: 700;
    transition: 0.24s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.22);
}

.menu-toggle {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: #ffffff;
    color: var(--color-strong);
    box-shadow: var(--shadow-soft);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(180deg, #78350f, #9a3412);
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 900ms ease;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.04)),
        linear-gradient(0deg, rgba(120, 53, 15, 0.56), transparent 42%);
}

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

.hero-content h1,
.hero-content h2 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    line-height: 1.08;
    text-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.hero-content h1 {
    font-size: clamp(32px, 5vw, 62px);
    margin-bottom: 12px;
}

.hero-content h2 {
    font-size: clamp(28px, 4.4vw, 56px);
}

.hero-content p {
    width: min(620px, 100%);
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-chips,
.movie-meta-line,
.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-chips {
    margin-bottom: 18px;
}

.hero-chips span,
.hero-chips a {
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.92);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.hero-chips span:not(:first-child) {
    background: rgba(255, 255, 255, 0.14);
    color: #fcd34d;
}

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

.btn-primary,
.btn-ghost,
.quick-search button,
.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.24s ease;
}

.btn-primary,
.quick-search button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
    box-shadow: 0 16px 32px rgba(234, 88, 12, 0.30);
}

.btn-primary {
    min-height: 48px;
    padding: 0 28px;
}

.btn-primary:hover,
.quick-search button:hover,
.section-more:hover,
.text-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.btn-ghost {
    min-height: 48px;
    padding: 0 24px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.32);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: 0.24s ease;
}

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

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: 0.24s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #f59e0b;
}

.quick-search-panel {
    width: min(var(--max-width), calc(100% - 32px));
    margin: -42px auto 44px;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr minmax(300px, 520px);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

.quick-search-panel strong {
    display: block;
    color: var(--color-strong);
    font-size: 24px;
}

.quick-search-panel span {
    color: var(--color-muted);
}

.quick-search {
    display: flex;
    gap: 10px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    outline: 0;
    background: #ffffff;
    color: var(--color-text);
    transition: 0.2s ease;
}

.quick-search input {
    min-height: 48px;
    padding: 0 18px;
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(217, 119, 6, 0.58);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.quick-search button {
    min-width: 92px;
    border: 0;
    cursor: pointer;
}

.page-shell {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
}

.page-top {
    padding-top: 34px;
}

.content-section,
.topic-section {
    margin-bottom: 70px;
}

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

.section-heading h2 {
    margin: 0;
    color: var(--color-strong);
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.15;
}

.section-heading p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--color-muted);
}

.section-more,
.text-link {
    color: #ffffff;
    padding: 9px 16px;
    background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.22);
    white-space: nowrap;
}

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

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    transition: 0.28s ease;
}

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

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

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

.movie-card:hover .poster-wrap img,
.category-tile:hover img,
.category-cover:hover img,
.horizontal-card:hover img {
    transform: scale(1.08);
}

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent 55%);
    opacity: 0;
    transition: 0.25s ease;
}

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

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.94);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translateY(8px);
    transition: 0.25s ease;
}

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

.rank-badge,
.rank-number {
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    font-weight: 900;
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
}

.rank-number {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    margin-bottom: 10px;
}

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

.movie-meta-line {
    margin-bottom: 8px;
    color: #92400e;
    font-size: 13px;
    font-weight: 800;
}

.movie-meta-line a {
    color: #ea580c;
}

.movie-meta-line span:not(:last-child)::after {
    content: "";
}

.movie-card h3,
.horizontal-card h3 {
    margin: 0;
    color: var(--color-strong);
    line-height: 1.28;
}

.movie-card h3 {
    min-height: 2.56em;
    font-size: 17px;
}

.movie-card p,
.horizontal-card p {
    color: var(--color-muted);
}

.movie-card p {
    min-height: 3.3em;
    margin: 10px 0 0;
    font-size: 14px;
}

.card-tags {
    margin-top: 12px;
}

.card-tags span,
.detail-tags a {
    border-radius: 999px;
    color: #92400e;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

.card-tags span {
    padding: 4px 8px;
}

.movie-card-large .poster-wrap {
    aspect-ratio: 16 / 9;
}

.movie-card-large h3 {
    font-size: 22px;
}

.movie-card-compact {
    width: 230px;
    flex: 0 0 auto;
}

.scroll-row {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
    scroll-snap-align: start;
}

.topic-section {
    padding: 30px;
    border: 1px solid rgba(251, 191, 36, 0.38);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.94), rgba(255, 237, 213, 0.94));
    box-shadow: var(--shadow-card);
}

.topic-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
}

.topic-side,
.stack-list,
.rank-list {
    display: grid;
    gap: 16px;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    transition: 0.25s ease;
}

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

.horizontal-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #78350f, #ea580c);
}

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

.horizontal-body {
    padding: 14px 14px 14px 0;
}

.horizontal-body p {
    margin: 8px 0 0;
    font-size: 14px;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #ffffff;
    background: #78350f;
    box-shadow: var(--shadow-soft);
}

.category-tile img,
.category-tile span {
    position: absolute;
    inset: 0;
}

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

.category-tile span {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12));
}

.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 2;
}

.category-tile strong {
    font-size: 24px;
}

.category-tile em {
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
}

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

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.rank-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rank-panel h2 {
    margin: 0;
    color: var(--color-strong);
}

.rank-panel-head a {
    color: var(--color-orange);
    font-weight: 800;
}

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

.rank-panel li {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
    transition: 0.2s ease;
}

.rank-panel li:hover {
    background: #fff7ed;
}

.rank-panel li span {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
    font-weight: 900;
}

.rank-panel li a {
    overflow: hidden;
    color: var(--color-strong);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-panel li em {
    color: var(--color-muted);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 34px;
    border-radius: var(--radius-xl);
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(120, 53, 15, 0.94), rgba(194, 65, 12, 0.88)),
        radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.28), transparent 36%);
    box-shadow: var(--shadow-card);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -130px;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.25);
}

.page-hero > div {
    position: relative;
    z-index: 2;
    padding: 46px;
}

.small-hero h1,
.category-hero h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.12;
}

.page-hero p {
    margin: 0 0 10px;
    color: #fde68a;
    font-weight: 900;
}

.page-hero span {
    display: block;
    max-width: 720px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--color-muted);
    font-weight: 800;
}

.breadcrumb a {
    color: var(--color-orange);
}

.category-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 70px;
}

.category-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.category-cover {
    overflow: hidden;
    background: #78350f;
}

.category-cover img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card-body {
    padding: 24px;
}

.category-card-body h2 {
    margin: 0 0 10px;
    color: var(--color-strong);
    font-size: 28px;
}

.category-card-body p {
    color: var(--color-muted);
}

.category-card-body ul {
    padding: 0;
    margin: 16px 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.category-card-body li a {
    color: #92400e;
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.90);
    box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
    min-height: 48px;
    padding: 0 16px;
}

.searchable-grid .movie-card.is-hidden {
    display: none;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
}

.pagination a,
.pagination span {
    min-width: 96px;
    padding: 10px 16px;
    border-radius: 999px;
    text-align: center;
    font-weight: 900;
}

.pagination a {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.22);
}

.pagination span {
    color: var(--color-strong);
    background: #ffffff;
    border: 1px solid var(--color-line);
}

.detail-page {
    padding-bottom: 30px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: center;
    margin-bottom: 34px;
    padding: 34px;
    border-radius: var(--radius-xl);
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(67, 20, 7, 0.96), rgba(154, 52, 18, 0.92)),
        radial-gradient(circle at 84% 10%, rgba(251, 191, 36, 0.28), transparent 32%);
    box-shadow: var(--shadow-card);
}

.detail-info h1 {
    margin: 12px 0 12px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.12;
}

.detail-info p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.detail-meta {
    color: #fde68a;
}

.detail-meta a {
    color: #ffffff;
}

.detail-tags {
    margin-top: 20px;
}

.detail-tags a {
    padding: 6px 12px;
    color: #7c2d12;
    background: #ffedd5;
}

.detail-cover {
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

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

.player-section {
    margin-bottom: 34px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #111827;
    box-shadow: var(--shadow-card);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #0f172a;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.24));
    cursor: pointer;
    transition: 0.28s ease;
}

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

.play-button {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
    font-size: 30px;
    line-height: 1;
    box-shadow: 0 20px 46px rgba(234, 88, 12, 0.36);
}

.player-overlay strong {
    max-width: min(620px, calc(100% - 40px));
    text-align: center;
    font-size: clamp(20px, 4vw, 34px);
    line-height: 1.25;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    margin-bottom: 70px;
}

.detail-content,
.detail-aside {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.detail-content {
    padding: 30px;
}

.detail-content h2,
.detail-aside h2 {
    color: var(--color-strong);
}

.detail-content h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.detail-content p {
    margin: 0 0 24px;
    color: #5c4030;
    font-size: 17px;
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.detail-list div {
    padding: 14px;
    border-radius: 14px;
    background: #fff7ed;
}

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

.detail-list dd {
    margin: 4px 0 0;
    color: var(--color-strong);
    font-weight: 900;
}

.detail-aside {
    align-self: start;
    padding: 24px;
    position: sticky;
    top: 92px;
}

.detail-aside h2 {
    margin: 0 0 16px;
}

.aside-links {
    display: grid;
    gap: 10px;
}

.aside-links a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: #fff7ed;
    transition: 0.2s ease;
}

.aside-links a:hover {
    background: #ffedd5;
    transform: translateX(3px);
}

.aside-links span {
    overflow: hidden;
    color: var(--color-strong);
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aside-links em {
    color: var(--color-muted);
    font-style: normal;
}

.site-footer {
    margin-top: 60px;
    padding: 42px 0;
    background: #431407;
    color: rgba(255, 255, 255, 0.76);
}

.footer-shell {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
}

.site-footer p {
    max-width: 620px;
    margin: 12px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 12px;
}

.footer-links a {
    padding: 8px 13px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1100px) {
    .movie-grid-six,
    .movie-grid-five,
    .movie-grid-four {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .rank-panel,
    .detail-aside {
        position: static;
    }

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

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

@media (max-width: 820px) {
    .nav-shell {
        height: 66px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--color-line);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow-card);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        text-align: center;
    }

    .hero-carousel {
        height: 560px;
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero-control {
        display: none;
    }

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

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

    .quick-search button {
        min-height: 48px;
    }

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

    .movie-grid-six,
    .movie-grid-five,
    .movie-grid-four,
    .movie-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .topic-section,
    .detail-content,
    .detail-hero,
    .page-hero > div {
        padding: 22px;
    }

    .horizontal-card {
        grid-template-columns: 96px 1fr;
    }

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

    .category-cover img {
        max-height: 260px;
    }

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

@media (max-width: 520px) {
    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .hero-carousel {
        height: 520px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-actions {
        width: 100%;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
    }

    .movie-grid-six,
    .movie-grid-five,
    .movie-grid-four,
    .movie-grid-three,
    .category-grid,
    .detail-list {
        grid-template-columns: 1fr;
    }

    .movie-card-compact {
        width: 210px;
    }

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