:root {
    --bg: #f6fbfb;
    --panel: #ffffff;
    --ink: #132025;
    --muted: #64748b;
    --line: rgba(15, 118, 110, 0.14);
    --brand: #0f766e;
    --brand-strong: #0d9488;
    --brand-soft: #ccfbf1;
    --accent: #2563eb;
    --shadow: 0 18px 45px rgba(15, 118, 110, 0.13);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(45, 212, 191, 0.18), transparent 32rem),
        linear-gradient(180deg, #f8fffe 0%, var(--bg) 45%, #ffffff 100%);
    color: var(--ink);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

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

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

main {
    min-height: 70vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(13, 148, 136, 0.96), rgba(37, 99, 235, 0.92));
    color: #ffffff;
    box-shadow: 0 10px 35px rgba(15, 118, 110, 0.24);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand {
    flex: 0 0 auto;
    font-size: 24px;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.main-nav a,
.mobile-nav a {
    opacity: 0.92;
    font-weight: 700;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.mobile-nav a:hover {
    opacity: 1;
    color: #d9fffb;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
    padding: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 8px 10px;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.header-search button,
.primary-button,
.secondary-button,
.section-link,
.search-box button,
.player-start {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button {
    color: var(--brand);
    background: #ffffff;
    padding: 8px 14px;
}

.menu-button {
    display: none;
    border: 0;
    color: #ffffff;
    font-size: 28px;
    background: transparent;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: #0f766e;
}

.hero-track {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    background-image:
        linear-gradient(90deg, rgba(5, 32, 38, 0.88) 0%, rgba(15, 118, 110, 0.76) 42%, rgba(37, 99, 235, 0.28) 100%),
        var(--hero-image);
    background-position: center;
    background-size: cover;
    transition: opacity 0.8s ease;
}

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

.hero-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 120px 0 110px;
}

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

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ecfeff;
    font-weight: 800;
    backdrop-filter: blur(14px);
}

.hero h1 {
    margin: 24px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
}

.primary-button {
    color: var(--brand);
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(255, 255, 255, 0.25);
}

.secondary-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.17);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.primary-button:hover,
.secondary-button:hover,
.section-link:hover,
.search-box button:hover,
.player-start:hover {
    transform: translateY(-2px);
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.48);
}

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

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

.section {
    padding: 60px 0;
}

.section-panel {
    margin: 36px auto;
    padding: clamp(24px, 4vw, 44px);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

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

.section-heading h2,
.page-title h1,
.detail-copy h1 {
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.035em;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-heading p,
.page-title p,
.category-intro,
.detail-copy p,
.movie-card p,
.footer-grid p {
    color: var(--muted);
    line-height: 1.75;
}

.section-link {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    padding: 12px 18px;
    white-space: nowrap;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(13, 148, 136, 0.42);
    box-shadow: 0 22px 50px rgba(15, 118, 110, 0.2);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.85), rgba(37, 99, 235, 0.78));
}

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

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

.quality-badge,
.rank-badge,
.score-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 118, 110, 0.92);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.rank-badge {
    left: 12px;
    right: auto;
    background: rgba(37, 99, 235, 0.92);
}

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

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

.movie-meta-line span,
.detail-meta span,
.breadcrumbs a,
.breadcrumbs span {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
}

.movie-card h3 {
    margin: 12px 0 8px;
    color: #0f172a;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--brand);
}

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

.tag-row span {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--brand);
    background: var(--brand-soft);
    font-size: 12px;
    font-weight: 800;
}

.page-hero {
    padding: 70px 0 34px;
}

.page-title {
    display: grid;
    gap: 16px;
    padding: clamp(28px, 5vw, 52px);
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.24), transparent 24rem),
        linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #2563eb 100%);
    box-shadow: var(--shadow);
}

.page-title h1 {
    color: #ffffff;
    font-size: clamp(34px, 5vw, 58px);
}

.page-title p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

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

.category-card {
    display: grid;
    gap: 16px;
    min-height: 220px;
    padding: 26px;
    border-radius: 28px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 12rem),
        linear-gradient(135deg, #0f766e, #2563eb);
    box-shadow: var(--shadow);
}

.category-card h2 {
    margin: 0;
    font-size: 28px;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.category-card strong {
    font-size: 38px;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-samples span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 800;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 68px 86px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.ranking-number {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--accent));
}

.ranking-cover {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.85), rgba(37, 99, 235, 0.78));
}

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

.ranking-main h2 {
    margin: 0 0 8px;
    font-size: 21px;
}

.ranking-main p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.score {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--brand);
    background: var(--brand-soft);
    font-weight: 900;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-top: 18px;
    padding: 10px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-box input {
    border: 0;
    outline: 0;
    min-height: 48px;
    padding: 0 18px;
    font-size: 17px;
}

.search-box button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    padding: 0 24px;
}

.empty-state {
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #ffffff;
    color: var(--muted);
    text-align: center;
}

.detail-hero {
    padding: 42px 0 30px;
}

.breadcrumbs {
    margin-bottom: 18px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
    gap: 30px;
    align-items: start;
}

.detail-copy {
    padding: clamp(24px, 4vw, 42px);
    border-radius: 32px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.detail-copy .lead {
    color: #334155;
    font-size: 20px;
    line-height: 1.8;
}

.detail-poster {
    overflow: hidden;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.9), rgba(37, 99, 235, 0.84));
    box-shadow: var(--shadow);
}

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

.player-card,
.text-card {
    border-radius: 32px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
}

.player-frame {
    position: relative;
    background: #020617;
}

.player-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.38), rgba(2, 6, 23, 0.72));
    pointer-events: auto;
}

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

.player-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 26px;
    color: var(--brand);
    background: #ffffff;
    font-size: 18px;
}

.player-title {
    padding: 22px 26px 26px;
}

.player-title h2 {
    margin: 0 0 8px;
}

.player-title p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.text-card {
    padding: clamp(24px, 4vw, 38px);
}

.text-card h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.text-card p {
    color: #334155;
    font-size: 17px;
    line-height: 1.9;
}

.site-footer {
    margin-top: 70px;
    padding: 52px 0;
    color: #dbeafe;
    background: #0f172a;
}

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

.footer-brand {
    color: #5eead4;
    font-size: 26px;
}

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

.footer-grid p {
    color: #cbd5e1;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    padding: 7px 11px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(20, 184, 166, 0.36);
}

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

    .menu-button {
        display: block;
    }

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

    .header-search {
        margin-left: auto;
    }

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

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

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

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

@media (max-width: 760px) {
    .header-inner {
        min-height: 66px;
        gap: 12px;
    }

    .brand {
        font-size: 19px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
    }

    .header-search {
        display: none;
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        padding: 92px 0 86px;
    }

    .section {
        padding: 38px 0;
    }

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

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

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

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

    .ranking-item {
        grid-template-columns: 48px 72px 1fr;
    }

    .ranking-item .score {
        grid-column: 2 / -1;
        justify-self: start;
    }

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

    .search-box {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .search-box button {
        min-height: 48px;
    }
}

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

    .mobile-nav {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }
}
