:root {
    --archive-50: #f5f7fa;
    --archive-100: #eaeff5;
    --archive-200: #d0dae8;
    --archive-300: #a8bdd4;
    --archive-400: #7a9cbc;
    --archive-500: #5a7fa5;
    --archive-600: #46678a;
    --archive-700: #395370;
    --archive-800: #2f445d;
    --archive-900: #2a3b4e;
    --ink: #152030;
    --paper: #ffffff;
    --muted: #627084;
    --shadow: 0 18px 45px rgba(24, 37, 56, 0.13);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f5f7fa 0%, #eef3f8 42%, #ffffff 100%);
    -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(47, 68, 93, 0.08);
}

.site-header__inner {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: auto 1fr minmax(260px, 360px) auto;
    gap: 24px;
    align-items: center;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--archive-900);
    letter-spacing: 0.03em;
}

.site-logo__mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--archive-600), var(--archive-900));
    border-radius: 13px;
    box-shadow: 0 10px 20px rgba(70, 103, 138, 0.25);
}

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

.site-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--archive-700);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.mobile-nav a:hover {
    background: var(--archive-100);
    color: var(--archive-900);
}

.site-search {
    position: relative;
}

.site-search input,
.mobile-nav__search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(47, 68, 93, 0.14);
    border-radius: 999px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--archive-900);
    outline: none;
}

.site-search input:focus,
.mobile-nav__search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--archive-500);
    box-shadow: 0 0 0 4px rgba(90, 127, 165, 0.14);
}

.search-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    padding: 10px;
    background: #ffffff;
    border: 1px solid rgba(47, 68, 93, 0.12);
    border-radius: 18px;
    box-shadow: var(--shadow);
    max-height: 420px;
    overflow: auto;
}

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

.search-result {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
}

.search-result:hover {
    background: var(--archive-50);
}

.search-result strong {
    display: block;
    color: var(--archive-900);
}

.search-result span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--archive-100);
    color: var(--archive-900);
    font-size: 22px;
}

.mobile-nav {
    display: none;
    padding: 12px 24px 20px;
    border-top: 1px solid rgba(47, 68, 93, 0.08);
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-nav__search {
    position: relative;
    margin-top: 8px;
}

.hero {
    position: relative;
    min-height: 600px;
    background: var(--archive-900);
    color: #ffffff;
    overflow: hidden;
}

.hero-stage,
.hero-slide {
    position: relative;
    min-height: 600px;
}

.hero-slide {
    display: none;
    isolation: isolate;
}

.hero-slide.is-active {
    display: block;
}

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

.hero-slide.poster-fallback {
    background:
        radial-gradient(circle at 20% 25%, rgba(122, 156, 188, 0.55), transparent 32%),
        linear-gradient(135deg, var(--archive-800), var(--archive-900));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.15) 100%),
        linear-gradient(0deg, rgba(42, 59, 78, 0.55), rgba(42, 59, 78, 0.05));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    min-height: 600px;
    margin: 0 auto;
    padding: 96px 24px 86px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(70, 103, 138, 0.12);
    color: var(--archive-600);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.hero h1 {
    max-width: 760px;
    margin: 20px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: var(--archive-900);
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(255, 255, 255, 0.18);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
}

.btn-dark {
    color: #ffffff;
    background: var(--archive-900);
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-arrow--prev {
    left: 24px;
}

.hero-arrow--next {
    right: 24px;
}

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

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

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

.home-search-band,
.section-wrap,
.detail-wrap,
.page-hero {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.home-search-band {
    margin-top: -44px;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(47, 68, 93, 0.08);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.home-search-band h2,
.section-head h2,
.page-hero h1,
.detail-content h1 {
    margin: 10px 0;
    color: var(--archive-900);
    line-height: 1.1;
}

.home-search-band h2 {
    font-size: clamp(26px, 3vw, 38px);
}

.home-search-band p,
.page-hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-wrap {
    padding-top: 68px;
}

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

.section-head.compact {
    margin-bottom: 18px;
}

.section-head h2 {
    font-size: clamp(26px, 3vw, 36px);
}

.section-head > a {
    color: var(--archive-600);
    font-weight: 800;
}

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(47, 68, 93, 0.08);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(24, 37, 56, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(24, 37, 56, 0.14);
}

.poster-shell {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background:
        radial-gradient(circle at 25% 18%, rgba(168, 189, 212, 0.75), transparent 32%),
        linear-gradient(135deg, var(--archive-700), var(--archive-900));
}

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

.poster-shell.poster-fallback img,
.hero-slide.poster-fallback img,
.video-player.poster-fallback video {
    display: none;
}

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

.poster-year {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.56);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.movie-card__body {
    padding: 16px;
}

.movie-card h3,
.wide-card h3 {
    margin: 8px 0 8px;
    color: var(--archive-900);
    font-size: 18px;
    line-height: 1.35;
}

.movie-card p,
.wide-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.movie-meta,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--archive-600);
    font-size: 13px;
    font-weight: 700;
}

.movie-meta span,
.movie-meta a,
.detail-tags span,
.detail-tags a {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--archive-50);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.tag-row span {
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--archive-50);
    color: var(--archive-700);
    font-size: 12px;
}

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

.wide-list,
.ranking-list {
    display: grid;
    gap: 14px;
}

.wide-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
}

.ranking-list .wide-card {
    grid-template-columns: 64px 130px minmax(0, 1fr);
}

.wide-card__poster {
    border-radius: 16px;
    aspect-ratio: 3 / 4;
}

.wide-card__body {
    min-width: 0;
}

.rank-no {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: var(--archive-600);
    background: var(--archive-100);
    font-size: 22px;
    font-weight: 900;
}

.hot-panel {
    position: sticky;
    top: 96px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid rgba(47, 68, 93, 0.08);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.hot-list .wide-card {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 6px;
    background: transparent;
    box-shadow: none;
    border: 0;
}

.hot-list .wide-card__poster {
    display: none;
}

.hot-list .rank-no {
    width: 42px;
    height: 42px;
    font-size: 18px;
    border-radius: 14px;
}

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

.category-tile,
.category-overview-card,
.info-card,
.player-card {
    background: #ffffff;
    border: 1px solid rgba(47, 68, 93, 0.08);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.category-tile {
    padding: 18px;
}

.category-tile > a {
    display: block;
}

.category-tile span {
    color: var(--archive-600);
    font-weight: 800;
}

.category-tile strong {
    display: block;
    margin: 12px 0;
    color: var(--archive-900);
    font-size: 34px;
}

.category-tile p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    min-height: 68px;
}

.category-tile__links {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.category-tile__links a {
    color: var(--archive-700);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-hero {
    padding-top: 58px;
    padding-bottom: 10px;
}

.small-hero {
    padding-bottom: 24px;
}

.page-hero h1 {
    font-size: clamp(38px, 5vw, 62px);
    letter-spacing: -0.04em;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    color: var(--archive-600);
    font-weight: 700;
}

.category-overview-list {
    display: grid;
    gap: 24px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    gap: 24px;
    padding: 22px;
}

.category-overview-card__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.category-overview-card__text h2 {
    margin: 12px 0;
    color: var(--archive-900);
    font-size: 32px;
}

.category-overview-card__text p {
    color: var(--muted);
    line-height: 1.8;
}

.category-overview-card__text strong {
    display: block;
    margin: 6px 0 18px;
    color: var(--archive-700);
}

.category-overview-card__movies {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.movie-card--mini h3 {
    font-size: 15px;
}

.movie-card--mini p,
.movie-card--mini .tag-row {
    display: none;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 170px 170px auto;
    gap: 12px;
    align-items: center;
    padding-top: 34px;
}

.filter-bar span {
    color: var(--archive-700);
    font-weight: 800;
}

.detail-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding-top: 36px;
}

.player-card {
    overflow: hidden;
}

.video-player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 20%, rgba(122, 156, 188, 0.38), transparent 32%),
        #000000;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 8px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
    cursor: pointer;
}

.player-start span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    font-size: 38px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.player-start strong {
    font-size: 18px;
}

.video-player.is-playing .player-start {
    opacity: 0;
    pointer-events: none;
}

.player-message {
    position: absolute;
    left: 18px;
    bottom: 18px;
    max-width: calc(100% - 36px);
    padding: 9px 12px;
    border-radius: 10px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
    font-size: 13px;
    display: none;
}

.player-message.is-visible {
    display: block;
}

.detail-content {
    padding: 28px;
}

.detail-content h1 {
    font-size: clamp(34px, 5vw, 56px);
}

.lead {
    color: var(--archive-700);
    font-size: 18px;
    line-height: 1.9;
}

.article-block {
    margin-top: 28px;
}

.article-block h2,
.info-card h2 {
    margin: 0 0 14px;
    color: var(--archive-900);
    font-size: 22px;
}

.article-block h2::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 22px;
    margin-right: 10px;
    vertical-align: -4px;
    border-radius: 999px;
    background: var(--archive-600);
}

.article-block p {
    margin: 0;
    color: #3a485c;
    line-height: 2;
}

.info-card {
    padding: 22px;
}

.sticky-card {
    position: sticky;
    top: 96px;
}

.info-card dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.info-card dt {
    color: var(--archive-600);
    font-size: 13px;
    font-weight: 800;
}

.info-card dd {
    margin: 0 0 8px;
    color: var(--archive-900);
    line-height: 1.6;
}

.tag-row--full {
    margin-top: 18px;
}

.site-footer {
    margin-top: 80px;
    padding: 42px 0;
    color: rgba(255, 255, 255, 0.78);
    background: var(--archive-900);
}

.site-footer__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
}

.site-logo--footer {
    color: #ffffff;
}

.site-footer p {
    margin: 14px 0 0;
    line-height: 1.8;
}

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

.footer-links a {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.is-hidden {
    display: none !important;
}

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

    .site-nav,
    .site-search {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .two-column,
    .detail-wrap,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .hot-panel,
    .sticky-card {
        position: static;
    }
}

@media (max-width: 780px) {
    .hero,
    .hero-stage,
    .hero-slide,
    .hero-content {
        min-height: 560px;
    }

    .hero-content {
        padding-top: 90px;
    }

    .hero-arrow {
        display: none;
    }

    .home-search-band,
    .section-head,
    .category-overview-card {
        display: block;
    }

    .home-search-band .btn,
    .section-head > a {
        margin-top: 16px;
    }

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

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

    .ranking-list .wide-card {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .ranking-list .wide-card__poster {
        display: none;
    }

    .site-footer__inner,
    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .site-header__inner,
    .home-search-band,
    .section-wrap,
    .detail-wrap,
    .page-hero,
    .site-footer__inner {
        padding-left: 16px;
        padding-right: 16px;
    }

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

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

    .hot-list .rank-no {
        display: none;
    }
}
