:root {
    color-scheme: light;
    --bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.78);
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.24);
    --orange: #f97316;
    --orange-dark: #ea580c;
    --pink: #ec4899;
    --yellow: #facc15;
    --shadow: 0 18px 45px rgba(249, 115, 22, 0.16);
    --deep-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.20), transparent 34rem),
        linear-gradient(180deg, #fff7ed 0%, #f9fafb 34%, #ffffff 100%);
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(251, 146, 60, 0.18);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    font-size: 1.45rem;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.24);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.main-nav > a,
.nav-dropdown > a {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav > a:hover,
.nav-dropdown > a:hover,
.main-nav .active {
    color: var(--orange-dark);
    background: #ffedd5;
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    width: 13rem;
    padding: 0.6rem;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

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

.dropdown-panel a {
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    color: #4b5563;
    font-weight: 650;
}

.dropdown-panel a:hover {
    color: var(--orange-dark);
    background: #fff7ed;
}

.menu-button {
    display: none;
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    border-radius: 14px;
    background: #ffedd5;
    color: var(--orange-dark);
}

.menu-button span {
    display: block;
    width: 1.2rem;
    height: 2px;
    margin: 0.23rem auto;
    border-radius: 999px;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 500px;
    height: 70vh;
    overflow: hidden;
    background: #111827;
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

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

.hero-shade {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.06) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.75) 0%, transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 5rem 1.25rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.18);
    color: #fdba74;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h2 {
    max-width: 46rem;
    margin: 1rem 0 0.9rem;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero-content p {
    max-width: 42rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.02rem, 2vw, 1.25rem);
    line-height: 1.8;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.35rem;
}

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.38rem 0.72rem;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

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

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 16px 30px rgba(236, 72, 153, 0.28);
}

.secondary-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-copy {
    position: absolute;
    left: 50%;
    bottom: 1.4rem;
    z-index: 3;
    width: min(1280px, calc(100% - 2.5rem));
    transform: translateX(-50%);
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    color: #fff;
}

.hero-copy h1 {
    max-width: 38rem;
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2.5rem);
    line-height: 1.1;
}

.hero-copy p {
    max-width: 32rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.hero-dots {
    position: absolute;
    right: calc((100% - min(1280px, 100% - 2.5rem)) / 2);
    bottom: 7.5rem;
    z-index: 4;
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 0.72rem;
    height: 0.72rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
}

.hero-dot.active {
    width: 2.1rem;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1.25rem;
}

.section-heading,
.center-heading {
    margin-bottom: 1.6rem;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.section-heading h2,
.center-heading h2 {
    margin: 0;
    font-size: clamp(1.85rem, 4vw, 2.7rem);
    line-height: 1;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--orange), var(--pink), var(--yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-heading a {
    color: var(--orange-dark);
    font-weight: 900;
}

.center-heading {
    text-align: center;
}

.center-heading p {
    max-width: 42rem;
    margin: 0.9rem auto 0;
    color: var(--muted);
    line-height: 1.8;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.16);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(249, 115, 22, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

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

.poster-link img,
.list-poster img,
.detail-poster img,
.page-hero-poster img,
.category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-link img {
    transition: transform 0.3s ease;
}

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

.play-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.6rem;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    max-width: calc(100% - 1.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    color: #fff;
    background: var(--orange);
    font-size: 0.76rem;
    font-weight: 800;
}

.card-body {
    padding: 1rem;
}

.card-body h2,
.card-body h3 {
    margin: 0 0 0.55rem;
    color: #111827;
    font-size: 1.03rem;
    line-height: 1.35;
}

.card-body h2 a,
.card-body h3 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body h2 a:hover,
.card-body h3 a:hover,
.list-info h3 a:hover {
    color: var(--orange-dark);
}

.card-body p {
    display: -webkit-box;
    min-height: 3.15rem;
    margin: 0 0 0.9rem;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 700;
}

.card-meta span,
.card-meta a {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #fff7ed;
    color: #6b7280;
}

.card-meta a:hover {
    color: var(--orange-dark);
}

.category-section {
    max-width: none;
    background: rgba(255, 255, 255, 0.54);
}

.category-section > * {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

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

.category-tile,
.category-overview-card .category-cover {
    position: relative;
    overflow: hidden;
    min-height: 10.5rem;
    border-radius: var(--radius);
    color: #fff;
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.2rem;
    text-align: center;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px rgba(236, 72, 153, 0.22);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 0.6rem;
    transform: translateZ(0);
}

.category-tile strong {
    font-size: 1.18rem;
    margin-bottom: 0.4rem;
}

.category-tile small {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
}

.orange-pink,
.category-hero.orange-pink {
    background: linear-gradient(135deg, #f97316, #ec4899);
}

.red-orange,
.category-hero.red-orange {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.yellow-orange,
.category-hero.yellow-orange {
    background: linear-gradient(135deg, #facc15, #fb923c);
}

.violet-pink,
.category-hero.violet-pink {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.slate-purple,
.category-hero.slate-purple {
    background: linear-gradient(135deg, #334155, #7c3aed);
}

.green-orange,
.category-hero.green-orange {
    background: linear-gradient(135deg, #22c55e, #f97316);
}

.pink-purple,
.category-hero.pink-purple {
    background: linear-gradient(135deg, #ec4899, #9333ea);
}

.blue-red,
.category-hero.blue-red {
    background: linear-gradient(135deg, #2563eb, #ef4444);
}

.cyan-blue,
.category-hero.cyan-blue {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.amber-green,
.category-hero.amber-green {
    background: linear-gradient(135deg, #f59e0b, #16a34a);
}

.purple-orange,
.category-hero.purple-orange {
    background: linear-gradient(135deg, #9333ea, #f97316);
}

.teal-pink,
.category-hero.teal-pink {
    background: linear-gradient(135deg, #14b8a6, #ec4899);
}

.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 2rem;
    align-items: start;
}

.list-stack,
.ranking-list,
.ranking-page-list {
    display: grid;
    gap: 1rem;
}

.list-card {
    display: grid;
    grid-template-columns: 10rem minmax(0, 1fr);
    gap: 1rem;
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.14);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.list-poster {
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.list-info {
    min-width: 0;
    padding: 1rem 1rem 1rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-title-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.list-info h3 {
    min-width: 0;
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.4;
}

.list-info h3 a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-info p {
    display: -webkit-box;
    margin: 0.45rem 0 0.8rem;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-no {
    flex: 0 0 auto;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    font-weight: 900;
    font-size: 0.8rem;
}

.ranking-panel {
    position: sticky;
    top: 6rem;
    padding: 1.15rem;
    border: 1px solid rgba(251, 146, 60, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.ranking-panel .list-card {
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 0.8rem;
    border-radius: 16px;
    box-shadow: none;
}

.ranking-panel .list-info {
    padding: 0.65rem 0.65rem 0.65rem 0;
}

.ranking-panel .list-info p {
    display: none;
}

.compact-heading h2 {
    font-size: 1.45rem;
}

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

.search-panel {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.08);
}

.search-panel label {
    display: block;
    margin-bottom: 0.7rem;
    color: #9a3412;
    font-weight: 900;
}

.search-box {
    display: flex;
    gap: 0.75rem;
}

.search-box input {
    flex: 1;
    min-height: 3rem;
    padding: 0 1rem;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 16px;
    outline: none;
    background: #fff;
    color: #111827;
}

.search-box input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13);
}

.search-box button {
    min-height: 3rem;
    padding: 0 1.1rem;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    font-weight: 900;
}

.page-hero {
    max-width: 1280px;
    margin: 2rem auto 0;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.small-hero {
    padding: clamp(3rem, 8vw, 6rem) 1.5rem;
    color: #fff;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.24), transparent 22rem),
        linear-gradient(135deg, #f97316, #ec4899);
}

.small-hero > div {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.small-hero h1,
.category-hero h1 {
    margin: 1rem 0;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.07em;
}

.small-hero p,
.category-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.8;
}

.category-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
    gap: 2rem;
    align-items: center;
    padding: clamp(2rem, 5vw, 4rem);
    color: #fff;
}

.page-hero-poster {
    overflow: hidden;
    aspect-ratio: 16 / 11;
    border-radius: 28px;
    box-shadow: var(--deep-shadow);
    background: rgba(255, 255, 255, 0.20);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 10rem minmax(0, 1fr);
    gap: 1.2rem;
    align-items: center;
    padding: 1rem;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 16px 35px rgba(249, 115, 22, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-card .category-cover {
    min-height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-overview-card .category-cover span {
    font-size: 4rem;
}

.category-overview-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.45rem;
}

.category-overview-card p {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.7;
}

.mini-link-list,
.side-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.mini-link-list a,
.side-links a {
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.86rem;
    font-weight: 800;
}

.detail-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.25rem 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: start;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: #6b7280;
    font-weight: 700;
}

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

.player-card,
.movie-detail-text,
.side-card {
    border: 1px solid rgba(251, 146, 60, 0.15);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 18px 45px rgba(249, 115, 22, 0.10);
}

.player-card {
    padding: 0.75rem;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #030712;
    box-shadow: var(--deep-shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.24), rgba(0, 0, 0, 0.48));
    cursor: pointer;
}

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

.player-button {
    width: clamp(4rem, 8vw, 6rem);
    height: clamp(4rem, 8vw, 6rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 20px 45px rgba(236, 72, 153, 0.35);
    font-size: clamp(1.4rem, 3vw, 2rem);
    padding-left: 0.15rem;
}

.movie-detail-text {
    margin-top: 1rem;
    padding: clamp(1.2rem, 3vw, 2rem);
}

.movie-detail-text h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.2rem;
}

.detail-meta span,
.detail-meta a {
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 800;
    font-size: 0.9rem;
}

.lead-text {
    margin: 0;
    color: #374151;
    font-size: 1.1rem;
    line-height: 1.85;
}

.movie-detail-text .tag-list span {
    color: #9a3412;
    background: #ffedd5;
}

.story-card,
.review-card {
    margin-top: 1.2rem;
    padding: 1.35rem;
    border-radius: 20px;
}

.story-card {
    background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.review-card {
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.18);
}

.story-card h2,
.review-card h2,
.side-card h2 {
    margin: 0 0 0.8rem;
    font-size: 1.3rem;
}

.story-card p,
.review-card p {
    margin: 0;
    color: #374151;
    line-height: 1.9;
}

.detail-side {
    position: sticky;
    top: 6rem;
    display: grid;
    gap: 1rem;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
    box-shadow: var(--shadow);
}

.side-card {
    padding: 1.1rem;
}

.side-card dl {
    display: grid;
    gap: 0.8rem;
    margin: 0;
}

.side-card dl div {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
}

.side-card dt {
    color: #9a3412;
    font-weight: 900;
}

.side-card dd {
    margin: 0;
    color: #4b5563;
    line-height: 1.55;
}

.bright-side {
    background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

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

.ranking-hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.24), transparent 18rem),
        linear-gradient(135deg, #111827, #7c2d12 48%, #ec4899);
}

.site-footer {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.86);
    background: linear-gradient(135deg, #111827, #7c2d12);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.25rem 2rem;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 2rem;
}

.footer-about p {
    max-width: 34rem;
    margin: 1rem 0 0;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
}

.footer-links h2 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

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

.footer-links a {
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.copyright {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem 2rem;
    color: rgba(255, 255, 255, 0.56);
}

.is-filtered-out {
    display: none !important;
}

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

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

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

    .ranking-panel,
    .detail-side {
        position: static;
    }

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

@media (max-width: 760px) {
    .header-inner {
        padding: 0.75rem 1rem;
    }

    .menu-button {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 4.2rem;
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        padding: 0.8rem;
        border: 1px solid rgba(251, 146, 60, 0.18);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: var(--shadow);
    }

    body.menu-open .main-nav {
        display: flex;
    }

    .main-nav > a,
    .nav-dropdown > a {
        justify-content: center;
        border-radius: 14px;
    }

    .nav-dropdown {
        display: grid;
    }

    .dropdown-panel {
        position: static;
        width: auto;
        max-height: 15rem;
        overflow: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 14px;
        background: #fff7ed;
    }

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

    .hero-content {
        padding: 5rem 1rem 10rem;
    }

    .hero-copy {
        display: block;
        bottom: 1.2rem;
    }

    .hero-copy p {
        margin-top: 0.7rem;
    }

    .hero-dots {
        left: 1rem;
        right: auto;
        bottom: 8.3rem;
    }

    .content-section {
        padding: 2.6rem 1rem;
    }

    .section-heading {
        display: block;
    }

    .section-heading a {
        display: inline-flex;
        margin-top: 0.7rem;
    }

    .movie-grid,
    .hot-grid,
    .masonry-like,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

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

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

    .category-hero {
        margin: 1rem;
        grid-template-columns: 1fr;
        border-radius: 26px;
    }

    .small-hero {
        margin: 1rem;
        border-radius: 26px;
    }

    .list-card {
        grid-template-columns: 7.2rem minmax(0, 1fr);
    }

    .list-info {
        padding: 0.75rem 0.75rem 0.75rem 0;
    }

    .list-info p {
        -webkit-line-clamp: 1;
    }

    .detail-layout {
        padding: 1rem;
    }

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

@media (max-width: 480px) {
    .movie-grid,
    .hot-grid,
    .masonry-like,
    .related-grid {
        grid-template-columns: 1fr;
    }

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

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

    .list-poster {
        aspect-ratio: 16 / 9;
    }

    .list-info {
        padding: 1rem;
    }
}
