*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bluestone-950: #020617;
    --bluestone-900: #0f172a;
    --bluestone-800: #1e293b;
    --bluestone-700: #334155;
    --bluestone-600: #475569;
    --bluestone-100: #e2e8f0;
    --bluestone-50: #f8fafc;
    --accent-600: #b45309;
    --accent-500: #d97706;
    --accent-400: #f59e0b;
    --accent-50: #fffbeb;
    --earth-50: #fdf8f6;
    --stone-900: #1c1917;
    --stone-700: #44403c;
    --stone-500: #78716c;
    --stone-300: #d6d3d1;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --stone-50: #fafaf9;
    --white: #ffffff;
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.08);
    --radius-lg: 22px;
    --radius-md: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--stone-50);
    color: var(--stone-900);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.header-inner {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bluestone-700), var(--accent-500));
    color: var(--white);
    font-size: 13px;
    box-shadow: var(--shadow-soft);
}

.logo-text {
    font-size: 21px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--bluestone-700);
    font-weight: 650;
}

.desktop-nav a,
.mobile-panel a,
.footer-block a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.footer-block a:hover {
    color: var(--accent-500);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-search,
.mobile-search,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-search input,
.mobile-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
    border: 1px solid var(--stone-200);
    background: var(--stone-100);
    border-radius: 999px;
    color: var(--stone-900);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quick-search input {
    width: 240px;
    padding: 10px 16px;
}

.quick-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--accent-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.quick-search button,
.mobile-search button,
.search-page-form button {
    border: 0;
    border-radius: 999px;
    background: var(--bluestone-800);
    color: var(--white);
    padding: 10px 16px;
    cursor: pointer;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--bluestone-700);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--stone-200);
    padding: 16px 24px 22px;
    background: var(--white);
}

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

.mobile-panel nav {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    color: var(--bluestone-700);
    font-weight: 650;
}

.mobile-search input,
.search-page-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
}

.hero {
    position: relative;
    min-height: 500px;
    height: 70vh;
    overflow: hidden;
    background: var(--bluestone-900);
}

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

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.08) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--white);
}

.hero-label,
.section-kicker,
.category-kicker {
    display: inline-flex;
    align-items: center;
    color: var(--accent-400);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
    max-width: 760px;
    margin: 16px 0 16px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 19px;
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta span,
.detail-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
}

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

.hero-tags {
    margin: 22px 0 28px;
}

.tag,
.card-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 13px;
}

.detail-tags .tag,
.text-card .tag {
    background: var(--accent-50);
    color: var(--accent-600);
}

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    background: var(--accent-500);
    color: var(--white);
    padding: 13px 24px;
    box-shadow: 0 14px 26px rgba(217, 119, 6, 0.24);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.primary-button:hover {
    background: var(--accent-600);
    box-shadow: 0 18px 34px rgba(217, 119, 6, 0.32);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--white);
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 52px;
    height: 52px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
}

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

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: var(--accent-400);
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 24px 0;
}

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

.section-heading h2 {
    margin: 6px 0 0;
    color: var(--bluestone-900);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.section-heading p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--stone-500);
}

.section-link {
    padding: 10px 16px;
    color: var(--accent-600);
    background: var(--accent-50);
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--bluestone-800);
}

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 50%;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.78));
}

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(217, 119, 6, 0.94);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-500);
    color: var(--white);
    font-weight: 900;
    box-shadow: var(--shadow-soft);
}

.card-body {
    padding: 18px;
}

.card-meta {
    color: var(--stone-500);
    font-size: 13px;
}

.card-meta span + span::before {
    content: "·";
    margin-right: 10px;
    color: var(--stone-300);
}

.card-body h2 {
    margin: 8px 0 8px;
    color: var(--bluestone-900);
    font-size: 19px;
    line-height: 1.25;
}

.card-body h2 a:hover {
    color: var(--accent-600);
}

.card-body p {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--stone-500);
    font-size: 14px;
}

.card-tags span {
    background: var(--bluestone-50);
    color: var(--bluestone-700);
    max-width: 100%;
}

.category-band,
.accent-panel {
    max-width: 1280px;
}

.category-band {
    margin-top: 70px;
    padding: 48px 24px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--accent-50), var(--earth-50));
}

.accent-panel {
    margin-top: 70px;
    padding: 48px 24px;
    border-radius: 28px;
    background: var(--bluestone-50);
}

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

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

.category-tile {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(217, 119, 6, 0.36);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
}

.category-tile h2 {
    margin: 12px 0 8px;
    color: var(--bluestone-900);
    font-size: 25px;
}

.category-tile p {
    margin: 0 0 20px;
    color: var(--stone-500);
}

.category-tile strong {
    color: var(--accent-600);
}

.all-tile {
    background: linear-gradient(135deg, var(--bluestone-800), var(--bluestone-950));
    color: var(--white);
}

.all-tile h2,
.all-tile p,
.all-tile strong {
    color: var(--white);
}

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

.latest-item {
    display: grid;
    grid-template-columns: 108px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.latest-item img {
    grid-row: 1 / 3;
    width: 108px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--bluestone-800);
}

.latest-item span {
    color: var(--bluestone-900);
    font-weight: 800;
}

.latest-item em {
    color: var(--stone-500);
    font-style: normal;
    font-size: 14px;
}

.page-hero {
    background: radial-gradient(circle at top left, rgba(217, 119, 6, 0.22), transparent 36%), linear-gradient(135deg, var(--bluestone-700), var(--bluestone-950));
    color: var(--white);
}

.small-hero {
    min-height: 270px;
    display: flex;
    align-items: center;
    padding: 70px 24px;
}

.small-hero > div {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.small-hero h1 {
    max-width: 900px;
    margin: 12px 0 12px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

.filter-panel,
.search-panel {
    margin-bottom: 28px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px;
    gap: 12px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 12px 16px;
}

.search-page-form {
    max-width: 760px;
    margin: 0 auto;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: var(--bluestone-950);
    color: var(--white);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    filter: blur(2px) saturate(0.9);
}

.detail-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.78) 56%, rgba(15, 23, 42, 0.34));
}

.detail-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 620px;
    margin: 0 auto;
    padding: 72px 24px;
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 48px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
    background: var(--bluestone-800);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.66);
}

.breadcrumb a:hover {
    color: var(--accent-400);
}

.detail-info h1 {
    margin: 0 0 18px;
    max-width: 860px;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.detail-line {
    max-width: 820px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 20px;
}

.detail-tags {
    margin: 24px 0 28px;
}

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

.main-detail-column,
.related-column {
    display: grid;
    gap: 22px;
}

.player-card,
.text-card,
.related-column {
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.player-card,
.text-card {
    padding: 24px;
}

.related-column {
    position: sticky;
    top: 88px;
    padding: 22px;
}

.player-card h2,
.text-card h2,
.related-column h2 {
    margin: 0 0 18px;
    color: var(--bluestone-900);
    font-size: 25px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    cursor: pointer;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
}

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

.player-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--accent-500);
    color: var(--white);
    font-size: 30px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

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

.text-card p {
    margin: 0;
    color: var(--stone-700);
    font-size: 17px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    border-radius: 16px;
    box-shadow: none;
    border: 1px solid var(--stone-200);
}

.compact-card:hover {
    transform: translateY(-2px);
}

.compact-card .poster-link {
    aspect-ratio: 2 / 3;
    min-height: 144px;
}

.compact-card .card-body {
    padding: 12px 12px 12px 0;
}

.compact-card .card-body h2 {
    font-size: 16px;
}

.compact-card .card-body p,
.compact-card .card-tags,
.compact-card .play-chip {
    display: none;
}

.site-footer {
    margin-top: 90px;
    background: var(--bluestone-900);
    color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.footer-logo {
    color: var(--white);
    margin-bottom: 14px;
}

.footer-brand p {
    max-width: 480px;
    margin: 0;
}

.footer-block {
    display: grid;
    gap: 8px;
}

.footer-block h2 {
    margin: 0 0 8px;
    color: var(--white);
    font-size: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.54);
}

[data-card-list] .movie-card.is-filtered {
    display: none;
}

.empty-results {
    grid-column: 1 / -1;
    padding: 36px;
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--stone-500);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

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

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

    .related-column {
        position: static;
    }
}

@media (max-width: 860px) {
    .desktop-nav,
    .quick-search {
        display: none;
    }

    .menu-button {
        display: inline-flex;
    }

    .hero-arrow {
        display: none;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 44px;
    }

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

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

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

    .detail-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .detail-poster {
        max-width: 260px;
    }

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

@media (max-width: 560px) {
    .header-inner {
        padding: 0 16px;
    }

    .logo-text {
        font-size: 18px;
    }

    .hero {
        height: 78vh;
    }

    .hero-content {
        padding: 0 18px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 36px;
    }

    .hero-content p,
    .detail-line {
        font-size: 17px;
    }

    .content-section,
    .category-band,
    .accent-panel {
        padding-left: 16px;
        padding-right: 16px;
    }

    .movie-grid.four-columns,
    .category-grid,
    .category-grid.wide,
    .latest-list {
        grid-template-columns: 1fr;
    }

    .latest-item {
        grid-template-columns: 92px 1fr;
    }

    .latest-item img {
        width: 92px;
        height: 66px;
    }

    .small-hero {
        padding: 54px 16px;
    }

    .detail-inner {
        padding: 48px 16px;
    }

    .player-card,
    .text-card,
    .related-column {
        padding: 18px;
    }
}
