:root {
    --pudding-50: #fefdfb;
    --pudding-100: #fef9f3;
    --pudding-200: #fdebd4;
    --pudding-500: #e8ad64;
    --pudding-600: #c88438;
    --pudding-700: #9f6429;
    --moonlight-50: #f5f7ff;
    --moonlight-100: #e9eefc;
    --moonlight-300: #d1daf1;
    --moonlight-400: #b8c6ea;
    --moonlight-500: #7d93d9;
    --moonlight-600: #6178ca;
    --moonlight-700: #4c60ad;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow-soft: 0 10px 30px -18px rgba(15, 23, 42, 0.25);
    --shadow-large: 0 24px 60px -28px rgba(76, 96, 173, 0.45);
    --radius-soft: 24px;
    --radius-card: 28px;
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-800);
    background: linear-gradient(180deg, var(--pudding-50) 0%, #ffffff 45%, var(--moonlight-50) 100%);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon {
    width: 1.2em;
    height: 1.2em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.icon.tiny {
    width: 1em;
    height: 1em;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(253, 235, 212, 0.9);
    box-shadow: 0 12px 36px -30px rgba(15, 23, 42, 0.4);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--pudding-600), var(--moonlight-600));
    -webkit-background-clip: text;
    color: transparent;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--moonlight-700);
    background: linear-gradient(135deg, #fff4e3, #dfe6ff);
    box-shadow: var(--shadow-soft);
}

.logo-icon .icon {
    width: 23px;
    height: 23px;
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--gray-700);
    font-weight: 650;
    transition: all 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--moonlight-700);
    background: var(--moonlight-100);
}

.header-search {
    position: relative;
    width: min(250px, 24vw);
}

.header-search span {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    display: inline-flex;
}

.header-search input,
.mobile-panel input,
.search-page-form input {
    width: 100%;
    border: 1px solid var(--pudding-200);
    border-radius: 999px;
    background: rgba(254, 249, 243, 0.8);
    color: var(--gray-800);
    outline: none;
    transition: all 0.22s ease;
}

.header-search input {
    padding: 11px 16px 11px 40px;
}

.header-search input:focus,
.mobile-panel input:focus,
.search-page-form input:focus {
    border-color: var(--moonlight-400);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(184, 198, 234, 0.32);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--pudding-100);
    color: var(--gray-800);
    align-items: center;
    justify-content: center;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--pudding-100);
    padding: 0 16px 18px;
    background: rgba(255, 255, 255, 0.96);
}

.mobile-panel.is-open {
    display: grid;
    gap: 12px;
}

.mobile-panel a {
    font-weight: 700;
    color: var(--gray-700);
}

.mobile-panel input {
    padding: 12px 16px;
}

.hero-section {
    position: relative;
    height: min(680px, 86vh);
    min-height: 540px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pudding-100), var(--moonlight-300));
}

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

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

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

.hero-slide img.image-error {
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 20%, rgba(255, 255, 255, 0.45), transparent 28%),
        linear-gradient(90deg, rgba(254, 253, 251, 0.96), rgba(254, 249, 243, 0.72) 45%, rgba(97, 120, 202, 0.55));
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 690px;
    animation: fadeInUp 0.72s ease both;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-700);
    background: rgba(255, 255, 255, 0.86);
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 0.95;
    margin: 0 0 24px;
    letter-spacing: -0.07em;
    color: var(--gray-900);
}

.hero-copy p {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: var(--gray-600);
    line-height: 1.85;
    margin: 0 0 24px;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--pudding-700);
    font-size: 0.82rem;
    font-weight: 650;
}

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

.primary-button,
.ghost-button,
.search-page-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 999px;
    min-height: 48px;
    padding: 0 22px;
    font-weight: 800;
    transition: all 0.22s ease;
}

.primary-button,
.search-page-form button {
    background: var(--moonlight-600);
    color: #ffffff;
    border: 1px solid var(--moonlight-600);
    box-shadow: 0 18px 34px -20px rgba(76, 96, 173, 0.9);
}

.primary-button:hover,
.search-page-form button:hover {
    background: var(--moonlight-700);
    transform: translateY(-2px);
}

.ghost-button {
    color: var(--gray-800);
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(8px);
}

.ghost-button:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.22s ease;
}

.hero-dot.is-active {
    width: 38px;
    background: var(--moonlight-600);
}

.feature-strip {
    position: relative;
    z-index: 3;
    margin-top: -90px;
}

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

.page-section {
    padding: 64px 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    color: var(--gray-900);
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--gray-500);
    line-height: 1.7;
}

.section-heading a {
    color: var(--moonlight-700);
    background: #ffffff;
    border: 1px solid var(--moonlight-100);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 750;
    box-shadow: var(--shadow-soft);
}

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.cover-frame,
.poster-frame,
.compact-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pudding-100), var(--moonlight-100));
}

.cover-frame {
    aspect-ratio: 16 / 10;
}

.feature-card .cover-frame {
    aspect-ratio: 16 / 9;
}

.cover-frame img,
.poster-frame img,
.compact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.52s ease, opacity 0.2s ease;
}

.image-error {
    opacity: 0;
}

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

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.72));
    opacity: 0;
    transition: opacity 0.24s ease;
}

.movie-card:hover .cover-shade {
    opacity: 1;
}

.play-badge {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--moonlight-700);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: scale(0.82);
    transition: all 0.24s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: scale(1);
}

.card-duration,
.card-category {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 5px 9px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
}

.card-duration {
    top: 12px;
    right: 12px;
}

.card-category {
    left: 12px;
    bottom: 12px;
    background: rgba(97, 120, 202, 0.86);
}

.card-body {
    display: block;
    padding: 18px;
}

.card-body strong {
    display: -webkit-box;
    min-height: 3em;
    margin-bottom: 12px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--gray-800);
    line-height: 1.5;
    transition: color 0.22s ease;
}

.movie-card:hover .card-body strong {
    color: var(--moonlight-700);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    color: var(--gray-500);
    font-size: 0.88rem;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-meta .icon:last-child,
.detail-meta .icon:last-child {
    color: #f59e0b;
}

.card-body .tag-row span {
    background: var(--pudding-50);
    color: var(--pudding-700);
}

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

.category-pill,
.category-card {
    border-radius: var(--radius-soft);
    padding: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(253, 235, 212, 0.85);
    box-shadow: var(--shadow-soft);
    transition: all 0.22s ease;
}

.category-pill:hover,
.category-card:hover {
    transform: translateY(-4px);
    background: #ffffff;
    box-shadow: var(--shadow-large);
}

.category-pill span,
.category-card strong {
    display: block;
    color: var(--gray-900);
    font-size: 1.1rem;
    font-weight: 850;
    margin-bottom: 8px;
}

.category-pill small,
.category-card p {
    color: var(--gray-500);
    line-height: 1.6;
}

.category-card div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-card div span {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--moonlight-50);
    color: var(--moonlight-700);
    font-size: 0.78rem;
}

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

.ranking-panel,
.poster-panel,
.content-card,
.detail-card,
.ranking-list {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(253, 235, 212, 0.75);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.ranking-panel {
    padding: 22px;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--moonlight-700);
}

.panel-title h2 {
    color: var(--gray-900);
    margin: 0;
    font-size: 1.25rem;
}

.compact-card {
    display: grid;
    grid-template-columns: auto 66px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    transition: all 0.22s ease;
}

.compact-card:hover {
    background: var(--pudding-50);
}

.rank-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--moonlight-100);
    color: var(--moonlight-700);
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.compact-thumb {
    width: 66px;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
}

.compact-info {
    min-width: 0;
}

.compact-info strong,
.compact-info span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.compact-info strong {
    color: var(--gray-800);
    margin-bottom: 4px;
}

.compact-info span {
    color: var(--gray-500);
    font-size: 0.84rem;
}

.page-hero {
    background: linear-gradient(135deg, var(--pudding-100), var(--moonlight-300));
    padding: 58px 0 52px;
    border-bottom: 1px solid rgba(253, 235, 212, 0.8);
}

.page-hero h1 {
    margin: 14px 0 14px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    letter-spacing: -0.06em;
    color: var(--gray-900);
}

.page-hero p {
    max-width: 760px;
    color: var(--gray-600);
    line-height: 1.8;
    margin: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    font-size: 0.92rem;
}

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

.filter-bar,
.quick-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.filter-chip,
.quick-tags button {
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: var(--gray-700);
    padding: 10px 14px;
    box-shadow: var(--shadow-soft);
    font-weight: 700;
    transition: all 0.22s ease;
}

.filter-chip:hover,
.filter-chip.is-active,
.quick-tags button:hover {
    background: var(--moonlight-600);
    color: #ffffff;
}

.ranking-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 32px;
    align-items: start;
}

.ranking-list {
    padding: 24px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}

.ranking-row:last-child {
    border-bottom: 0;
}

.ranking-row span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--pudding-100);
    color: var(--pudding-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 850;
}

.ranking-row strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-row em {
    font-style: normal;
    color: var(--moonlight-700);
    font-size: 0.88rem;
}

.ranking-row b {
    color: var(--gray-500);
    font-size: 0.88rem;
}

.search-hero {
    padding-bottom: 70px;
}

.search-page-form {
    display: flex;
    max-width: 780px;
    gap: 12px;
    margin-top: 26px;
}

.search-page-form input {
    padding: 16px 22px;
    background: #ffffff;
    font-size: 1.05rem;
}

.search-page-form button {
    border: 0;
    white-space: nowrap;
}

.search-state {
    color: var(--gray-500);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--pudding-100);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 26px;
}

.detail-main {
    padding: 34px 0 70px;
}

.detail-breadcrumb {
    margin-bottom: 22px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
}

.player-card {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: #020617;
    box-shadow: var(--shadow-large);
    margin-bottom: 24px;
    isolation: isolate;
}

.player-card video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #020617;
}

.player-loading {
    position: absolute;
    width: 42px;
    height: 42px;
    left: 50%;
    top: 50%;
    margin-left: -21px;
    margin-top: -21px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.28);
    border-top-color: #ffffff;
    animation: spin 1s linear infinite;
    pointer-events: none;
}

.player-loading.is-hidden {
    display: none;
}

.center-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    transform: translate(-50%, -50%);
    width: 78px;
    height: 78px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--moonlight-700);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 42px -18px rgba(0, 0, 0, 0.55);
    transition: all 0.22s ease;
}

.center-play:hover {
    transform: translate(-50%, -50%) scale(1.06);
}

.player-card.is-playing .center-play {
    opacity: 0;
    pointer-events: none;
}

.player-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent);
    color: #ffffff;
}

.player-controls button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.player-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 750;
}

.detail-card {
    padding: clamp(22px, 4vw, 36px);
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(1.9rem, 4vw, 3rem);
    letter-spacing: -0.05em;
    color: var(--gray-900);
}

.detail-card h2 {
    margin: 28px 0 12px;
    font-size: 1.35rem;
    color: var(--gray-900);
}

.detail-card p {
    color: var(--gray-600);
    line-height: 1.95;
    margin: 0 0 14px;
}

.lead-text {
    font-size: 1.08rem;
    color: var(--gray-700) !important;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.detail-meta span,
.detail-meta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.detail-meta a {
    color: var(--moonlight-700);
    font-weight: 800;
}

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

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

.movie-info-list div {
    padding: 14px;
    border-radius: 18px;
    background: var(--pudding-50);
}

.movie-info-list dt {
    color: var(--gray-500);
    font-size: 0.84rem;
    margin-bottom: 6px;
}

.movie-info-list dd {
    margin: 0;
    font-weight: 760;
    color: var(--gray-800);
}

.related-section {
    padding-bottom: 0;
}

.detail-sidebar {
    display: grid;
    gap: 22px;
}

.poster-panel {
    padding: 22px;
}

.poster-frame {
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    margin-bottom: 18px;
}

.poster-panel strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.poster-panel p {
    color: var(--gray-500);
    line-height: 1.75;
    margin: 0 0 18px;
}

.sticky-panel {
    position: sticky;
    top: 102px;
}

.content-card {
    max-width: 900px;
    padding: clamp(26px, 5vw, 48px);
}

.content-card h2 {
    color: var(--gray-900);
    font-size: 1.8rem;
    margin: 0 0 18px;
}

.content-card p {
    color: var(--gray-600);
    line-height: 2;
    font-size: 1.05rem;
}

.site-footer {
    background: linear-gradient(180deg, #ffffff, var(--pudding-50));
    border-top: 1px solid var(--pudding-100);
    padding-top: 46px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 36px;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 1rem;
    color: var(--gray-900);
}

.site-footer p,
.site-footer a {
    color: var(--gray-500);
    line-height: 1.8;
}

.site-footer a {
    display: block;
    margin-bottom: 8px;
    transition: color 0.22s ease;
}

.site-footer a:hover {
    color: var(--moonlight-700);
}

.footer-bottom {
    text-align: center;
    color: var(--gray-500);
    padding: 26px 16px 32px;
}

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1080px) {
    .movie-grid,
    .category-grid,
    .category-list-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .split-section,
    .ranking-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

    .sticky-panel {
        position: static;
    }
}

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

    .main-nav,
    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .hero-section {
        min-height: 620px;
        height: 76vh;
    }

    .feature-grid,
    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-list-grid,
    .footer-grid,
    .detail-sidebar {
        grid-template-columns: 1fr 1fr;
    }

    .feature-strip {
        margin-top: -60px;
    }

    .section-heading,
    .search-page-form {
        align-items: stretch;
        flex-direction: column;
    }

    .ranking-row {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .ranking-row em,
    .ranking-row b {
        display: none;
    }
}

@media (max-width: 560px) {
    .site-container {
        width: min(100% - 24px, 1180px);
    }

    .logo {
        font-size: 1.1rem;
    }

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

    .hero-section {
        min-height: 680px;
    }

    .hero-copy h1 {
        font-size: 2.8rem;
    }

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

    .primary-button,
    .ghost-button,
    .search-page-form button {
        width: 100%;
    }

    .feature-grid,
    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-list-grid,
    .footer-grid,
    .detail-sidebar,
    .movie-info-list {
        grid-template-columns: 1fr;
    }

    .page-section {
        padding: 44px 0;
    }

    .detail-main {
        padding-top: 20px;
    }

    .player-controls {
        gap: 8px;
        padding: 12px;
    }

    .player-controls button {
        width: 38px;
        height: 38px;
    }
}
