:root {
    --teal: #0d9488;
    --cyan: #0891b2;
    --amber: #fde68a;
    --blue-dark: #0f172a;
    --panel: #ffffff;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.1);
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
    background: #f7fafc;
    line-height: 1.65;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.28);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #0f766e;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #ffffff;
    font-weight: 600;
}

.nav-link {
    opacity: 0.92;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--amber);
    opacity: 1;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    background: #0f766e;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 10px 24px 20px;
}

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

.mobile-link {
    color: #ffffff;
    padding: 9px 0;
    font-weight: 600;
}

.mobile-link.is-active,
.mobile-link:hover {
    color: var(--amber);
}

main {
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    min-height: 700px;
    padding: 72px 24px 96px;
    background:
        radial-gradient(circle at 20% 18%, rgba(20, 184, 166, 0.46), transparent 32%),
        radial-gradient(circle at 80% 10%, rgba(6, 182, 212, 0.35), transparent 32%),
        linear-gradient(135deg, #0f172a 0%, #134e4a 47%, #0e7490 100%);
    color: #ffffff;
}

.hero-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.52));
    pointer-events: none;
}

.hero-slide {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    display: none;
    align-items: center;
    gap: 54px;
}

.hero-slide.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    animation: fadeUp 0.55s ease both;
}

.eyebrow,
.page-hero > span,
.section-heading span,
.spotlight-box > span,
.search-band span {
    display: inline-flex;
    width: fit-content;
    color: #ccfbf1;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.hero-copy h1 {
    margin: 20px 0 12px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    color: var(--amber);
    font-size: clamp(26px, 3.2vw, 44px);
    line-height: 1.18;
}

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

.hero-tags,
.tag-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #0f766e;
    background: #ccfbf1;
}

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

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

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

.btn.primary {
    color: #0f766e;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(255, 255, 255, 0.22);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border-radius: 34px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(20, 184, 166, 0.18));
    box-shadow: var(--shadow);
    transform: rotate(1.2deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(15, 23, 42, 0.55));
}

.hero-poster span {
    position: absolute;
    z-index: 2;
    left: 28px;
    bottom: 28px;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #0f766e;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

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

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

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

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

.search-band {
    margin-top: -44px;
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
    align-items: center;
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 28px;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.search-band span,
.section-heading span,
.spotlight-box > span,
.page-hero > span {
    color: #0f766e;
    background: #ccfbf1;
    border-color: transparent;
}

.search-band h2,
.section-heading h2,
.spotlight-box h2 {
    margin: 8px 0 0;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.18;
}

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

.filter-input,
.filter-select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 18px;
    outline: none;
    background: #f8fafc;
    color: #0f172a;
    font: inherit;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-input:focus,
.filter-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.content-section {
    padding-top: 74px;
    padding-bottom: 18px;
}

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

.section-heading p {
    margin: 10px 0 0;
    color: var(--muted);
}

.section-heading a,
.text-link {
    color: #0f766e;
    font-weight: 800;
}

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

.category-tile,
.category-card {
    background: linear-gradient(160deg, #ffffff, #ecfeff);
    border: 1px solid rgba(13, 148, 136, 0.12);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card:hover,
.movie-card:hover,
.rank-card:hover,
.ranking-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-tile span,
.category-card-main span {
    display: block;
    margin-bottom: 8px;
    font-size: 21px;
    font-weight: 900;
    color: #0f766e;
}

.category-tile small,
.category-card p {
    color: var(--muted);
    font-size: 14px;
}

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

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    background: linear-gradient(135deg, #0f766e, #0e7490);
}

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

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

.play-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f766e;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

.movie-info {
    padding: 18px;
}

.movie-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
}

.movie-info h3 {
    margin: 8px 0 8px;
    font-size: 19px;
    line-height: 1.3;
}

.movie-info p {
    display: -webkit-box;
    min-height: 58px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tag-row span {
    color: #0f766e;
    background: #ecfeff;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

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

.rank-card {
    overflow: hidden;
    position: relative;
    min-height: 210px;
    border-radius: 22px;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    opacity: 0.62;
    transition: transform 0.32s ease;
}

.rank-title,
.rank-desc {
    position: absolute;
    left: 18px;
    right: 18px;
}

.rank-title {
    bottom: 56px;
    font-size: 20px;
    font-weight: 900;
}

.rank-desc {
    bottom: 18px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.spotlight-box {
    align-self: start;
    padding: 28px;
    border-radius: var(--radius);
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(253, 230, 138, 0.34), transparent 36%),
        linear-gradient(145deg, #0f766e, #0e7490);
    box-shadow: var(--shadow);
}

.spotlight-box p {
    color: rgba(255, 255, 255, 0.82);
}

.page-hero,
.detail-hero {
    padding-top: 74px;
    padding-bottom: 56px;
}

.compact-hero,
.ranking-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at top left, rgba(45, 212, 191, 0.32), transparent 34%),
        linear-gradient(135deg, #0f172a, #0f766e);
    border-radius: 0 0 34px 34px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.page-hero h1 {
    max-width: 940px;
    margin: 16px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
}

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

.page-filter {
    max-width: 780px;
    margin-top: 28px;
}

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

.category-card ul {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.category-card li + li {
    margin-top: 8px;
}

.category-card li a {
    color: #0f766e;
    font-weight: 700;
}

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

.ranking-item {
    position: relative;
    display: grid;
    grid-template-columns: 120px 64px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    padding: 18px;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-cover {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #0f766e, #0e7490);
}

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

.ranking-number {
    font-size: 38px;
    font-weight: 900;
    color: #0f766e;
}

.ranking-copy span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.ranking-copy h2 {
    margin: 6px 0 8px;
    font-size: 24px;
}

.ranking-copy p {
    margin: 0 0 10px;
    color: var(--muted);
}

.detail-hero {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(135deg, #0f766e, #0e7490);
    box-shadow: var(--shadow);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #0f766e;
    font-weight: 800;
}

.detail-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
}

.detail-copy p {
    max-width: 820px;
    color: var(--muted);
    font-size: 18px;
}

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

.player-section {
    padding-top: 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #0f766e;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.36));
    cursor: pointer;
}

.player-start span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    font-size: 28px;
}

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

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

.detail-content article,
.detail-content aside {
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.detail-content h2 {
    margin: 0 0 14px;
    color: #0f766e;
    font-size: 24px;
}

.detail-content p {
    margin: 0 0 24px;
    color: #334155;
}

dl {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

dt {
    color: var(--muted);
    font-weight: 700;
}

dd {
    margin: 0;
    color: #0f172a;
}

.site-footer {
    margin-top: 72px;
    color: #cbd5e1;
    background: linear-gradient(180deg, #1e293b, #0f172a);
}

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

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

.footer-grid p {
    max-width: 460px;
}

.footer-grid a {
    display: block;
    margin-top: 8px;
    color: #cbd5e1;
}

.footer-grid a:hover {
    color: #5eead4;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 14px;
}

.is-filtered-out {
    display: none !important;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .hero-slide.is-active,
    .search-band,
    .split-layout,
    .detail-hero,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .hero-poster img {
        min-height: 440px;
    }

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

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

@media (max-width: 720px) {
    .site-nav {
        padding: 0 16px;
    }

    .brand {
        font-size: 18px;
    }

    .hero-carousel {
        min-height: auto;
        padding: 48px 16px 84px;
    }

    .hero-slide.is-active {
        gap: 30px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-copy p {
        font-size: 16px;
    }

    .hero-poster,
    .hero-poster img {
        min-height: 360px;
    }

    .search-band,
    .content-section,
    .page-hero,
    .detail-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .search-band {
        margin-top: -36px;
    }

    .filter-bar,
    .page-filter,
    .rank-grid,
    .ranking-item,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .section-heading {
        display: block;
    }

    .section-heading a {
        display: inline-flex;
        margin-top: 12px;
    }

    .ranking-item {
        align-items: start;
    }

    .ranking-cover {
        max-width: 160px;
    }

    .ranking-number {
        font-size: 30px;
    }
}

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

    .movie-info p {
        min-height: auto;
    }

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