:root {
    color-scheme: light;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-soft: #fff7ed;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-brand: #d97706;
    --color-brand-dark: #92400e;
    --color-brand-soft: #fef3c7;
    --color-danger: #dc2626;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, #fff7ed 0, transparent 32rem), var(--color-bg);
    color: var(--color-text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.82);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr minmax(240px, 360px);
    align-items: center;
    gap: 24px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #111827;
    white-space: nowrap;
}

.brand__mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #d97706 52%, #92400e);
    box-shadow: 0 14px 26px rgba(217, 119, 6, 0.28);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: #92400e;
    background: #fef3c7;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #92400e;
    background: #fef3c7;
}

.site-search {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
}

.site-search input,
.inline-filter input,
.inline-filter select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0 16px;
    color: #111827;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search input:focus,
.inline-filter input:focus,
.inline-filter select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.site-search button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.24);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-search button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(217, 119, 6, 0.32);
}

.btn--ghost {
    color: #92400e;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(146, 64, 14, 0.18);
    box-shadow: none;
}

.search-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 120;
    display: none;
    width: min(440px, calc(100vw - 32px));
    max-height: 520px;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.search-result {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    transition: background-color 0.2s ease;
}

.search-result:hover {
    background: #fff7ed;
}

.search-result img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
    background: #f3f4f6;
}

.search-result strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
}

.search-result span {
    display: block;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.45;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    color: #ffffff;
    background: #111827;
}

.hero-slider {
    position: relative;
    min-height: 640px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    min-height: 640px;
    opacity: 0;
    pointer-events: none;
    background-position: center;
    background-size: cover;
    transition: opacity 0.8s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(251, 191, 36, 0.30), transparent 24rem), linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.70) 48%, rgba(17, 24, 39, 0.46));
}

.hero__content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
    gap: 44px;
    align-items: center;
    padding: 92px 0 74px;
}

.hero__eyebrow,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-weight: 900;
    font-size: 14px;
}

.hero__title {
    max-width: 780px;
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.hero__summary {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.hero__meta,
.movie-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 13px;
    font-weight: 800;
}

.hero .pill {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #1f2937;
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 32px;
    pointer-events: none;
}

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

.hero-dots button {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: #f59e0b;
}

.section {
    padding: 68px 0;
}

.section--soft {
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.72), rgba(255, 255, 255, 0.0));
}

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

.section-title {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.section-desc {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--color-muted);
    line-height: 1.8;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 172px;
    padding: 22px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.category-card strong {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 21px;
}

.category-card span {
    color: var(--color-muted);
    line-height: 1.65;
}

.category-card em {
    position: absolute;
    right: 18px;
    bottom: 12px;
    color: rgba(217, 119, 6, 0.12);
    font-size: 56px;
    font-style: normal;
    font-weight: 950;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.48);
    box-shadow: var(--shadow-soft);
}

.movie-card__cover {
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
}

.movie-card__cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.28s ease;
}

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

.movie-card__badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.74);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 800;
}

.movie-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px;
}

.movie-card h3 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    margin: 0 0 8px;
    color: #111827;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 900;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.movie-card__foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    color: #92400e;
    font-size: 12px;
    font-weight: 900;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 70px 104px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    font-size: 22px;
    font-weight: 950;
}

.rank-item img {
    width: 104px;
    height: 138px;
    object-fit: cover;
    border-radius: 16px;
    background: #f3f4f6;
}

.rank-item h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 20px;
    font-weight: 950;
}

.rank-item p {
    margin: 0 0 12px;
    color: var(--color-muted);
    line-height: 1.7;
}

.page-hero {
    padding: 76px 0 54px;
    background: linear-gradient(135deg, #111827, #78350f 56%, #f59e0b);
    color: #ffffff;
}

.page-hero h1 {
    max-width: 920px;
    margin: 0;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.06em;
}

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

.inline-filter {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 160px 160px;
    gap: 12px;
    margin: 28px 0 30px;
}

.empty-state {
    display: none;
    padding: 42px;
    border: 1px dashed #f59e0b;
    border-radius: var(--radius-lg);
    color: #92400e;
    background: #fff7ed;
    text-align: center;
    font-weight: 800;
}

.empty-state.is-visible {
    display: block;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #92400e;
    font-weight: 800;
}

.detail-hero {
    padding: 58px 0;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.detail-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 38px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
}

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

.detail-title {
    margin: 0 0 18px;
    color: #111827;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.detail-lead {
    max-width: 820px;
    margin: 20px 0 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.85;
}

.player-section {
    padding: 58px 0 28px;
    background: #111827;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-cover span {
    display: inline-grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    font-size: 34px;
    box-shadow: 0 24px 46px rgba(217, 119, 6, 0.34);
}

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

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.article-card,
.side-card {
    padding: 26px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.article-card h2,
.side-card h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 26px;
    font-weight: 950;
}

.article-card p {
    margin: 0 0 18px;
    color: #374151;
    line-height: 1.9;
}

.related-list {
    display: grid;
    gap: 12px;
}

.related-item {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #f9fafb;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.related-item:hover {
    background: #fff7ed;
    transform: translateY(-2px);
}

.related-item img {
    width: 68px;
    height: 92px;
    object-fit: cover;
    border-radius: 12px;
    background: #f3f4f6;
}

.related-item strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
}

.related-item span {
    display: block;
    color: var(--color-muted);
    font-size: 13px;
}

.site-footer {
    padding: 44px 0;
    color: #6b7280;
    background: #ffffff;
    border-top: 1px solid var(--color-border);
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: center;
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: none;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 18px;
    color: #ffffff;
    background: #d97706;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.back-top.is-visible {
    display: grid;
    place-items: center;
}

@media (max-width: 1100px) {
    .site-header__inner {
        grid-template-columns: auto auto;
    }

    .site-nav,
    .site-search {
        grid-column: 1 / -1;
    }

    .site-search {
        max-width: none;
    }

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

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

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

@media (max-width: 760px) {
    .site-header__inner {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        padding: 12px 0;
    }

    .brand {
        font-size: 22px;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

    .site-nav {
        display: none;
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

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

    .site-search {
        order: 4;
        flex-basis: 100%;
    }

    .hero,
    .hero-slider,
    .hero-slide {
        min-height: 760px;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 64px 0 90px;
    }

    .hero-poster {
        width: min(78vw, 320px);
        margin: 0 auto;
    }

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

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

    .rank-item {
        grid-template-columns: 52px 1fr;
    }

    .rank-item img {
        display: none;
    }

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

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

    .detail-poster {
        width: min(82vw, 320px);
        margin: 0 auto;
    }
}

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

    .hero__title,
    .page-hero h1,
    .detail-title {
        letter-spacing: -0.04em;
    }
}
