:root {
    --bg: #f8fafc;
    --bg-soft: #eef7f8;
    --card: #ffffff;
    --text: #172033;
    --muted: #657083;
    --line: rgba(15, 23, 42, 0.1);
    --teal: #0fbaaf;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --orange: #f97316;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 24px;
    --header: rgba(255, 255, 255, 0.88);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #eef7f8 46%, #f8fafc 100%);
    color: var(--text);
    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: 80;
    backdrop-filter: blur(20px);
    background: var(--header);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    color: #0f766e;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.36);
}

.main-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
}

.main-nav a {
    color: #334155;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #0f766e;
}

.header-search {
    width: 240px;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 0 0 12px;
    color: #0f172a;
}

.header-search button,
.btn,
.filter-panel button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    color: #ffffff;
    font-weight: 800;
    padding: 10px 18px;
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.header-search button:hover,
.btn:hover,
.filter-panel button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.25);
}

.btn-light {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(12px);
}

.btn-soft {
    color: #0f766e;
    background: #ffffff;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(15, 118, 110, 0.1);
    padding: 10px;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 4px;
    background: #0f766e;
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 46%, #2563eb 100%);
}

.hero:before,
.hero:after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(6px);
    opacity: 0.42;
    pointer-events: none;
}

.hero:before {
    width: 480px;
    height: 480px;
    right: -120px;
    top: -140px;
    background: rgba(255, 255, 255, 0.28);
}

.hero:after {
    width: 360px;
    height: 360px;
    left: -80px;
    bottom: -130px;
    background: rgba(15, 118, 110, 0.35);
}

.hero-slide {
    display: none;
    min-height: 650px;
    position: relative;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.18;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(14px) saturate(1.2);
    transform: scale(1.08);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.72fr);
    align-items: center;
    gap: 56px;
    padding: 70px 0;
}

.hero-copy {
    max-width: 760px;
}

.hero-kicker,
.section-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e0fffb;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.hero h1 {
    margin: 22px 0 20px;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    font-weight: 950;
    text-shadow: 0 18px 60px rgba(15, 23, 42, 0.28);
}

.hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2.2vw, 24px);
}

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

.hero-tags {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags a,
.hero-tags span {
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 700;
}

.hero-poster {
    position: relative;
    max-width: 390px;
    margin-left: auto;
}

.hero-poster a {
    display: block;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-poster a:hover img {
    transform: scale(1.05);
}

.hero-card-info {
    position: absolute;
    left: -28px;
    right: 28px;
    bottom: 28px;
    border-radius: 24px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}

.hero-card-info strong {
    display: block;
    font-size: 20px;
    line-height: 1.25;
}

.hero-card-info span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 22px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    padding: 0;
}

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

main {
    overflow: hidden;
}

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

.section {
    padding: 72px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-title {
    margin: 0;
    color: #102033;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.section-head p,
.page-hero p,
.archive-lead,
.detail-lead {
    color: var(--muted);
    margin: 10px 0 0;
    max-width: 760px;
}

.section-link {
    color: #0f766e;
    font-weight: 900;
    white-space: nowrap;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link,
.rank-poster,
.detail-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(37, 99, 235, 0.18));
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 900;
}

.movie-card-body {
    padding: 18px;
}

.movie-title,
.rank-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.28;
    font-weight: 950;
}

.movie-title:hover,
.rank-title:hover {
    color: #0f766e;
}

.movie-meta,
.movie-line,
.rank-content p,
.detail-meta,
.breadcrumb {
    color: var(--muted);
    font-size: 14px;
}

.movie-meta,
.movie-line {
    margin: 8px 0 0;
}

.movie-line {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span,
.info-pill,
.category-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    color: #0f766e;
    background: rgba(15, 186, 175, 0.1);
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    border-radius: 28px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #14b8a6, #2563eb);
    box-shadow: var(--shadow-soft);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #06b6d4, #1d4ed8);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #0f766e, #0891b2);
}

.category-card:after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -42px;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.category-card strong {
    display: block;
    position: relative;
    z-index: 1;
    font-size: 24px;
    font-weight: 950;
}

.category-card span {
    display: block;
    position: relative;
    z-index: 1;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.84);
}

.page-hero {
    position: relative;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #06b6d4 52%, #2563eb);
    padding: 82px 0 72px;
    overflow: hidden;
}

.page-hero:after {
    content: "";
    position: absolute;
    right: -100px;
    top: -140px;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1,
.page-hero p,
.page-hero .breadcrumb,
.page-hero .breadcrumb a {
    color: #ffffff;
}

.page-hero p,
.page-hero .breadcrumb {
    color: rgba(255, 255, 255, 0.86);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 170px 190px auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    margin-bottom: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: #334155;
    font-weight: 900;
    font-size: 13px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.11);
    background: #ffffff;
    color: #0f172a;
    outline: 0;
    padding: 0 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(6, 182, 212, 0.7);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.filter-count {
    min-width: 110px;
    color: #0f766e;
    font-size: 14px;
    font-weight: 950;
    padding: 12px 0;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 58px 112px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.rank-num {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), #ef4444);
    font-size: 18px;
    font-weight: 950;
}

.rank-poster {
    border-radius: 18px;
}

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

.rank-content p {
    margin: 6px 0 0;
}

.detail-wrap {
    padding: 54px 0 78px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 34px;
    align-items: start;
}

.detail-poster {
    border-radius: 32px;
    box-shadow: var(--shadow);
}

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

.detail-panel,
.player-panel,
.story-panel {
    border-radius: 30px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 28px;
}

.detail-title {
    margin-top: 10px;
}

.detail-meta {
    margin: 14px 0 18px;
}

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

.info-box {
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(15, 186, 175, 0.08);
}

.info-box span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.info-box strong {
    display: block;
    color: #0f172a;
    margin-top: 4px;
}

.player-panel {
    margin-top: 30px;
    background: #0f172a;
    color: #ffffff;
    overflow: hidden;
}

.player-panel h2,
.story-panel h2 {
    margin: 0 0 18px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 950;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f766e;
    font-size: 34px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

.player-cover strong {
    font-size: 18px;
    font-weight: 950;
}

.story-panel {
    margin-top: 30px;
}

.story-panel p {
    color: #334155;
    margin: 0 0 16px;
}

.related-strip {
    margin-top: 30px;
}

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

.related-strip .movie-card-body {
    padding: 14px;
}

.related-strip .movie-title {
    font-size: 15px;
}

.site-footer {
    color: #e5edf5;
    background: linear-gradient(135deg, #0f172a, #111827 55%, #0f766e);
    padding: 54px 0 24px;
}

.footer-grid {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1fr;
    gap: 40px;
}

.site-footer p {
    color: rgba(226, 232, 240, 0.75);
    max-width: 440px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer a {
    display: block;
    color: rgba(226, 232, 240, 0.82);
    margin: 8px 0;
}

.site-footer a:hover {
    color: #67e8f9;
}

.footer-links {
    columns: 2;
}

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 22px;
    color: rgba(226, 232, 240, 0.68);
    border-top: 1px solid rgba(226, 232, 240, 0.14);
    font-size: 14px;
}

.empty-state {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

@media (max-width: 1100px) {
    .header-search {
        width: 200px;
    }

    .main-nav {
        gap: 12px;
    }

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

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

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

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

    .menu-button {
        display: block;
        margin-left: auto;
    }

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

    .main-nav.is-open {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: grid;
        gap: 12px;
        padding: 18px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

    .hero,
    .hero-slide,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 48px 0 96px;
    }

    .hero-poster {
        margin: 0;
        max-width: 320px;
    }

    .hero-card-info {
        left: 14px;
        right: 14px;
    }

    .section-head {
        display: block;
    }

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

    .rank-list,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .movie-grid,
    .movie-grid.large-grid,
    .related-strip .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-card-body {
        padding: 14px;
    }

    .movie-title {
        font-size: 15px;
    }

    .movie-line,
    .tag-row {
        display: none;
    }

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

    .rank-card {
        grid-template-columns: 44px 88px minmax(0, 1fr);
        padding: 12px;
        gap: 12px;
    }

    .rank-num {
        width: 38px;
        height: 38px;
        border-radius: 13px;
        font-size: 14px;
    }

    .detail-panel,
    .player-panel,
    .story-panel {
        padding: 20px;
        border-radius: 24px;
    }

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