:root {
    --bg: #fdf8f6;
    --panel: #ffffff;
    --panel-soft: #fffaf8;
    --text: #43302b;
    --muted: #86695f;
    --line: #eaded7;
    --sky: #0284c7;
    --sky-dark: #075985;
    --amber: #d97706;
    --shadow: 0 18px 45px rgba(67, 48, 43, 0.14);
    --radius: 22px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

main {
    min-height: 70vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(234, 222, 215, 0.88);
    box-shadow: 0 10px 30px rgba(67, 48, 43, 0.06);
}

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

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

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sky), var(--amber));
    box-shadow: 0 10px 22px rgba(2, 132, 199, 0.26);
}

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

.desktop-nav,
.mobile-nav,
.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    color: var(--muted);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--sky-dark));
    box-shadow: 0 10px 22px rgba(2, 132, 199, 0.18);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--panel);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    flex-wrap: wrap;
}

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

.hero-carousel {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    min-height: 560px;
    border-radius: 32px;
    overflow: hidden;
    color: #ffffff;
    box-shadow: var(--shadow);
    background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.42), transparent 30%), linear-gradient(135deg, #0f172a, #075985 52%, #432c16);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: 40px;
    align-items: center;
    padding: clamp(34px, 6vw, 74px);
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.24;
    filter: blur(6px) saturate(1.08);
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--amber);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-one-line {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions,
.center-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--sky-dark));
    box-shadow: 0 14px 28px rgba(2, 132, 199, 0.24);
}

.btn-glass {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
}

.btn-line,
.btn-muted {
    color: var(--text);
    background: #ffffff;
    border-color: var(--line);
}

.hero-poster {
    position: relative;
    z-index: 2;
    display: block;
    width: min(360px, 100%);
    justify-self: center;
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

.hero-poster img,
.poster-frame img,
.category-cover img,
.rank-cover img,
.ranking-poster img,
.detail-poster img,
.detail-bg img,
.ranking-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    left: clamp(34px, 6vw, 74px);
    bottom: 28px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 32px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
}

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

.section-block {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto;
    padding: clamp(26px, 4vw, 44px);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: 0 12px 40px rgba(67, 48, 43, 0.08);
    border: 1px solid rgba(234, 222, 215, 0.8);
}

.tinted-section {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(217, 119, 6, 0.08)), var(--panel);
}

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

.section-heading h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 950;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 560px;
    color: var(--muted);
    line-height: 1.8;
}

.compact-heading {
    align-items: flex-start;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr 160px 140px auto auto;
    gap: 12px;
    margin-bottom: 24px;
}

.search-field,
.search-select {
    display: grid;
    gap: 8px;
}

.search-field span,
.search-select span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.search-field input,
.search-select select {
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel-soft);
    padding: 0 14px;
    color: var(--text);
    outline: none;
}

.search-field input:focus,
.search-select select:focus {
    border-color: var(--sky);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

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

.movie-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(234, 222, 215, 0.88);
    box-shadow: 0 10px 28px rgba(67, 48, 43, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(67, 48, 43, 0.14);
}

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(217, 119, 6, 0.12));
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.movie-card h3 {
    color: var(--text);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

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

.movie-meta span,
.detail-meta span {
    padding: 4px 9px;
    border-radius: 999px;
    background: #f7eeea;
}

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

.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.tag-row span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    color: var(--sky-dark);
    background: rgba(2, 132, 199, 0.1);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.card-action {
    margin-top: auto;
    color: var(--sky-dark);
    font-weight: 900;
}

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

.category-card {
    display: grid;
    min-height: 230px;
    padding: 18px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(7, 89, 133, 0.88), rgba(67, 48, 43, 0.78));
    overflow: hidden;
    position: relative;
    box-shadow: 0 16px 36px rgba(67, 48, 43, 0.16);
}

.category-cover {
    position: absolute;
    inset: 0;
    opacity: 0.26;
}

.category-title,
.category-desc {
    position: relative;
    z-index: 2;
}

.category-title {
    align-self: end;
    font-size: 24px;
    font-weight: 950;
}

.category-desc {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.rank-list,
.ranking-grid {
    display: grid;
    gap: 12px;
}

.rank-row,
.ranking-link {
    display: grid;
    grid-template-columns: 58px 66px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px;
    color: var(--text);
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 18px;
    transition: 0.22s ease;
}

.rank-row:hover,
.ranking-card:hover .ranking-link {
    transform: translateX(4px);
    border-color: rgba(2, 132, 199, 0.45);
}

.rank-num,
.ranking-number {
    color: var(--amber);
    font-size: 22px;
    font-weight: 950;
}

.rank-cover,
.ranking-poster {
    width: 54px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: #f2e8e5;
}

.rank-info,
.ranking-body {
    display: grid;
    gap: 5px;
}

.rank-info strong,
.ranking-body strong {
    font-size: 16px;
    font-weight: 900;
}

.rank-info em,
.ranking-body em,
.ranking-body span {
    color: var(--muted);
    font-style: normal;
    line-height: 1.55;
}

.page-hero,
.detail-hero {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding: clamp(36px, 6vw, 72px);
    border-radius: 32px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #075985, #43302b);
    box-shadow: var(--shadow);
}

.small-hero {
    min-height: 280px;
    display: flex;
    align-items: center;
}

.page-hero div {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.category-hero::after,
.small-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.detail-hero {
    min-height: 560px;
    padding: 0;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    filter: blur(5px) saturate(1.08);
}

.detail-content {
    position: relative;
    z-index: 2;
    padding: clamp(30px, 5vw, 64px);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 26px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 26px 64px rgba(0, 0, 0, 0.36);
    background: rgba(255, 255, 255, 0.12);
}

.detail-info {
    max-width: 760px;
}

.detail-meta {
    margin: 20px 0 16px;
}

.detail-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    box-shadow: 0 22px 58px rgba(2, 6, 23, 0.26);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 16px;
    color: #ffffff;
    text-align: center;
    background: radial-gradient(circle at 50% 45%, rgba(2, 132, 199, 0.3), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: opacity 0.22s ease;
}

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

.play-button {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
}

.play-button span {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid var(--sky-dark);
}

.player-overlay strong {
    max-width: min(90%, 640px);
    font-size: clamp(20px, 4vw, 34px);
    font-weight: 950;
}

.movie-article {
    display: grid;
    gap: 16px;
    max-width: 880px;
}

.movie-article h2 {
    color: var(--text);
    font-size: 28px;
    font-weight: 950;
}

.movie-article p {
    color: var(--muted);
    font-size: 17px;
    line-height: 2;
}

.site-footer {
    margin-top: 60px;
    background: #2f221f;
    color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 28px;
}

.footer-logo {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 10px;
}

.footer-inner p {
    line-height: 1.8;
}

.footer-links {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.76);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

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

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

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        padding-bottom: 72px;
    }

    .hero-poster {
        width: min(260px, 76%);
        justify-self: start;
    }

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

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

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

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

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

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

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

    .hero-carousel,
    .section-block,
    .page-hero,
    .detail-hero {
        width: min(100% - 20px, 1180px);
        border-radius: 22px;
    }

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

    .hero-slide {
        padding: 26px;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 34px;
    }

    .hero-content p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

    .search-panel,
    .movie-grid,
    .category-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(230px, 72%);
    }

    .rank-row,
    .ranking-link {
        grid-template-columns: 44px 54px 1fr;
        gap: 10px;
    }

    .ranking-body span {
        display: none;
    }

    .player-wrap {
        border-radius: 18px;
    }
}
