:root {
    --honey-50: #fff8e7;
    --honey-100: #fff0d1;
    --honey-300: #ffd875;
    --honey-400: #ffcc47;
    --honey-600: #d18b19;
    --flame-400: #ffa726;
    --flame-500: #ff6b35;
    --flame-600: #f4511e;
    --phoenix-500: #c1440e;
    --phoenix-700: #7b2f11;
    --phoenix-900: #3b1609;
    --ink-900: #1f130a;
    --ink-700: #4b3423;
    --muted: #84684e;
    --line: rgba(193, 68, 14, 0.14);
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 24px 70px rgba(82, 39, 8, 0.14);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink-900);
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 204, 71, 0.38), transparent 32rem),
        linear-gradient(135deg, var(--honey-50), #ffffff 42%, #fff4e4);
    line-height: 1.6;
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: #ffffff;
    background: linear-gradient(90deg, #a94e10, var(--flame-500), var(--honey-400));
    box-shadow: 0 14px 38px rgba(117, 52, 9, 0.22);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff7d6;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 20%, #fff1a6, #ff8a1e 42%, #b7340e 100%);
    box-shadow: 0 10px 24px rgba(87, 30, 6, 0.28);
    animation: flamePulse 3.8s ease-in-out infinite;
}

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

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

.nav-link,
.mobile-link {
    padding: 9px 13px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.site-search {
    position: relative;
    width: min(280px, 28vw);
}

.search-input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    outline: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 10px 16px;
    backdrop-filter: blur(10px);
}

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

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(420px, 92vw);
    max-height: 480px;
    overflow: auto;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(50, 20, 6, 0.94);
    box-shadow: 0 24px 60px rgba(31, 13, 4, 0.35);
    display: none;
}

.search-results.is-open {
    display: grid;
    gap: 8px;
}

.search-result-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    color: #fff7df;
    transition: 0.2s ease;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.search-result-item img {
    width: 48px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
}

.search-result-item strong,
.search-result-item small {
    display: block;
}

.search-result-item small {
    color: rgba(255, 240, 209, 0.76);
}

.search-empty {
    padding: 16px;
    color: rgba(255, 255, 255, 0.8);
}

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

.menu-toggle span {
    width: 20px;
    height: 2px;
    margin: 4px auto;
    display: block;
    border-radius: 8px;
    background: #ffffff;
}

.mobile-panel {
    display: none;
    padding: 14px 20px 20px;
    background: linear-gradient(180deg, rgba(138, 59, 12, 0.98), rgba(244, 81, 30, 0.98));
}

.mobile-panel.is-open {
    display: block;
}

.mobile-nav {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-search {
    width: 100%;
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: #160905;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(22, 9, 5, 0.92), rgba(68, 27, 7, 0.72), rgba(22, 9, 5, 0.42)),
        linear-gradient(0deg, rgba(22, 9, 5, 0.92), transparent 54%),
        var(--hero-image) center / cover no-repeat;
    transform: scale(1.06);
    filter: saturate(1.12);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    min-height: 610px;
    margin: 0 auto;
    padding: 86px 0 170px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 360px;
    gap: 52px;
    align-items: center;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8b3d09;
    background: linear-gradient(90deg, rgba(255, 204, 71, 0.24), rgba(255, 107, 53, 0.14));
    border: 1px solid rgba(255, 204, 71, 0.34);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero-copy .eyebrow {
    color: #fff1b8;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-shadow: 0 16px 44px rgba(0, 0, 0, 0.44);
}

.hero-summary {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.movie-tags span {
    border-radius: 999px;
    color: #8a3a08;
    background: var(--honey-100);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #fff4cf;
    background: rgba(255, 255, 255, 0.16);
}

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

.primary-button,
.ghost-button,
.text-link,
.filter-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    transition: 0.25s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--flame-500), var(--phoenix-500));
    border-radius: 999px;
    padding: 13px 22px;
    box-shadow: 0 18px 35px rgba(193, 68, 14, 0.26);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(193, 68, 14, 0.34);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    padding: 12px 20px;
    backdrop-filter: blur(10px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.22);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.44);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.hero-poster span,
.poster-play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.94);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.hero-arrow {
    position: absolute;
    top: 45%;
    z-index: 6;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.26);
    cursor: pointer;
    font-size: 38px;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.hero-rail {
    position: absolute;
    z-index: 8;
    left: 50%;
    bottom: 22px;
    width: min(1120px, calc(100% - 32px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.hero-rail-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-rail-card img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-rail-card span {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 800;
}

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

.section-overlap {
    position: relative;
    z-index: 10;
    margin-top: -16px;
}

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

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.text-link {
    color: var(--phoenix-500);
    border-radius: 999px;
    padding: 8px 0;
}

.text-link:hover {
    color: var(--flame-600);
    transform: translateX(3px);
}

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

.category-card,
.category-overview-card,
.ranking-panel,
.detail-content,
.side-card,
.related-section,
.player-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--card);
    box-shadow: var(--shadow);
}

.category-card {
    position: relative;
    min-height: 160px;
    padding: 24px;
    overflow: hidden;
}

.category-card strong,
.category-card em {
    position: relative;
    z-index: 2;
    display: block;
}

.category-card strong {
    margin-bottom: 12px;
    font-size: 22px;
}

.category-card em {
    color: var(--muted);
    font-style: normal;
}

.category-glow {
    position: absolute;
    right: -36px;
    bottom: -48px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.22), transparent 70%);
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(105, 49, 10, 0.1);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 60px rgba(105, 49, 10, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--honey-100), var(--flame-400));
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.32s ease;
}

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

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

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

.poster-play {
    z-index: 3;
    width: 52px;
    height: 52px;
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.poster-rating {
    position: absolute;
    z-index: 4;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    border-radius: 999px;
    padding: 4px 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    font-weight: 900;
}

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

.movie-tags {
    margin-bottom: 10px;
}

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

.movie-card h3 a:hover {
    color: var(--flame-600);
}

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

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.movie-meta span,
.detail-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 240, 209, 0.7);
}

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.panel-title h2 {
    margin: 0;
    font-size: 24px;
}

.ranking-list,
.side-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.ranking-item a,
.side-related-list a {
    display: grid;
    grid-template-columns: 42px 58px 1fr;
    gap: 10px;
    align-items: center;
    border-radius: 16px;
    padding: 8px;
    transition: 0.2s ease;
}

.ranking-item a:hover,
.side-related-list a:hover {
    background: var(--honey-100);
}

.ranking-number {
    color: var(--flame-600);
    font-size: 20px;
    font-weight: 950;
}

.ranking-item img,
.side-related-list img {
    width: 58px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--honey-100);
}

.ranking-copy strong,
.ranking-copy small,
.side-related-list strong,
.side-related-list small {
    display: block;
}

.ranking-copy small,
.side-related-list small {
    color: var(--muted);
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    position: relative;
    overflow: hidden;
    width: min(1240px, calc(100% - 32px));
    margin: 34px auto 0;
    padding: 54px;
    border: 1px solid rgba(255, 204, 71, 0.28);
    border-radius: 34px;
    color: #fffdf7;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 204, 71, 0.34), transparent 22rem),
        linear-gradient(135deg, var(--phoenix-900), var(--phoenix-700) 50%, var(--flame-500));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
}

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

.page-hero .eyebrow {
    color: #fff1b8;
    background: rgba(255, 255, 255, 0.14);
}

.page-hero-strip,
.rank-hero-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.page-hero-strip a,
.rank-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    min-height: 160px;
    background: rgba(255, 255, 255, 0.12);
}

.page-hero-strip img,
.rank-hero-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    opacity: 0.86;
}

.page-hero-strip span,
.rank-hero-card span,
.rank-hero-card em {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-weight: 900;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.rank-hero-card em {
    top: 12px;
    right: auto;
    bottom: auto;
    color: #fff7c2;
    font-style: normal;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    padding: 18px;
    align-items: center;
}

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

.category-cover-row img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--honey-100);
}

.category-overview-card h2 {
    margin: 0 0 10px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(120px, 170px)) 110px;
    gap: 12px;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 16px 38px rgba(105, 49, 10, 0.08);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(193, 68, 14, 0.18);
    border-radius: 999px;
    padding: 11px 14px;
    color: var(--ink-900);
    background: #ffffff;
    outline: none;
}

.filter-panel button {
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--flame-500), var(--phoenix-500));
}

.filter-empty {
    color: var(--muted);
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
}

.breadcrumb {
    width: min(1240px, calc(100% - 32px));
    margin: 28px auto 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--phoenix-500);
    font-weight: 800;
}

.detail-layout {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.detail-primary {
    display: grid;
    gap: 24px;
}

.player-card {
    overflow: hidden;
    padding: 0;
    background: #050201;
}

.player-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 5;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000000;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 107, 53, 0.12), rgba(0, 0, 0, 0.58));
}

.player-play-button {
    position: absolute;
    z-index: 8;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--flame-500), var(--phoenix-500));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
    font-size: 30px;
}

.detail-content,
.related-section,
.side-card {
    padding: 26px;
}

.detail-content h1 {
    margin: 16px 0 12px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
}

.detail-one-line {
    color: var(--phoenix-500);
    font-size: 18px;
    font-weight: 800;
}

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

.detail-content p {
    color: var(--ink-700);
    font-size: 17px;
}

.detail-meta {
    margin: 18px 0;
}

.detail-tags {
    margin-bottom: 8px;
}

.detail-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 20px;
}

.cover-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    background: var(--honey-100);
    margin-bottom: 16px;
}

.full-button {
    width: 100%;
}

.compact-heading {
    margin-bottom: 18px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.related-card {
    display: block;
}

.related-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
    background: var(--honey-100);
    box-shadow: 0 12px 30px rgba(105, 49, 10, 0.12);
}

.related-card span,
.related-card em {
    display: block;
}

.related-card span {
    margin-top: 8px;
    font-weight: 900;
}

.related-card em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.site-footer {
    margin-top: 64px;
    color: #fff8e5;
    background: linear-gradient(135deg, var(--phoenix-900), #5f220d 48%, var(--flame-600));
}

.footer-grid {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 34px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: rgba(255, 248, 229, 0.78);
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: #ffd875;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer-grid a:hover {
    color: #ffffff;
}

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

@keyframes flamePulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }
    50% {
        transform: translateY(-2px) scale(1.04);
        filter: brightness(1.14);
    }
}

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

    .menu-toggle {
        display: block;
    }

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

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

    .hero-poster {
        display: none;
    }

    .hero-rail,
    .page-hero-strip,
    .rank-hero-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

@media (max-width: 820px) {
    .header-inner {
        height: 64px;
    }

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

    .header-inner > .site-search {
        display: none;
    }

    .hero-carousel {
        min-height: 720px;
    }

    .hero-content {
        min-height: 580px;
        padding: 56px 0 200px;
    }

    .hero-copy h1 {
        font-size: clamp(38px, 16vw, 64px);
    }

    .hero-arrow {
        display: none;
    }

    .hero-rail,
    .category-grid,
    .category-overview-grid,
    .page-hero-strip,
    .rank-hero-grid,
    .movie-grid,
    .movie-grid-home,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .page-hero {
        padding: 32px 24px;
        border-radius: 26px;
    }

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

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

    .footer-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .section-wrap,
    .page-hero,
    .breadcrumb,
    .detail-layout,
    .header-inner,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 20px, 1240px);
    }

    .hero-rail,
    .movie-grid,
    .movie-grid-home,
    .related-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .hero-rail-card:nth-child(n+4) {
        display: none;
    }

    .movie-card p {
        min-height: auto;
    }
}
