:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --primary-soft: #ccfbf1;
    --accent: #84cc16;
    --shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.28);
}

.logo-text {
    font-size: 1.1rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #475569;
    font-weight: 650;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.header-search {
    display: flex;
    align-items: center;
    width: 290px;
    padding: 5px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.header-search input,
.hero-search input,
.search-large input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.header-search input {
    padding: 8px 10px;
}

.header-search button,
.hero-search button,
.search-large button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--primary);
    padding: 8px 16px;
    font-weight: 700;
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: var(--surface-soft);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
}

.mobile-panel {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.mobile-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
}

.mobile-panel a:hover {
    background: var(--surface-soft);
}

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

.hero-carousel {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    min-height: 680px;
    margin: 28px auto 0;
    overflow: hidden;
    border-radius: 34px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

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

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

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

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

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.18));
}

.hero-content {
    position: relative;
    z-index: 1;
    min-height: 680px;
    padding: 70px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 56px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #0f766e;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-text .eyebrow,
.feature-copy .eyebrow {
    color: #99f6e4;
}

.hero-text h1 {
    margin: 0;
    max-width: 820px;
    color: #ffffff;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.hero-summary {
    max-width: 680px;
    margin: 26px 0 0;
    color: #dbeafe;
    font-size: 1.12rem;
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-tags span {
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 13px 24px;
    box-shadow: 0 18px 34px rgba(15, 118, 110, 0.24);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.24);
    padding: 12px 22px;
}

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

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

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

.hero-controls {
    position: absolute;
    left: 70px;
    right: 70px;
    bottom: 44px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.hero-arrow,
.hero-dots button {
    pointer-events: auto;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.8rem;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

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

.hero-search {
    position: absolute;
    left: 70px;
    bottom: 104px;
    z-index: 3;
    width: min(560px, calc(100% - 140px));
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.hero-search input {
    padding: 12px 16px;
}

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

.content-section {
    padding: 64px 0 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    letter-spacing: -0.04em;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.section-heading p,
.page-hero p,
.detail-lead,
.detail-content p,
.footer-inner p {
    color: var(--muted);
}

.section-heading p {
    margin: 4px 0 0;
}

.section-link {
    color: var(--primary-dark);
    background: var(--primary-soft);
    padding: 10px 16px;
}

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

.category-card {
    min-height: 132px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #ecfeff);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: #99f6e4;
    box-shadow: var(--shadow);
}

.category-card span {
    display: block;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 900;
}

.category-card strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.55;
}

.category-card.large {
    min-height: 178px;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
    transition: 0.2s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e2e8f0;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.25s ease;
}

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

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

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.movie-meta-line a {
    color: var(--primary);
}

.movie-card h3,
.ranking-card h2 {
    margin: 0;
    line-height: 1.28;
}

.movie-card h3 {
    font-size: 1.1rem;
}

.movie-card h3 a:hover,
.ranking-card h2 a:hover {
    color: var(--primary-dark);
}

.movie-card p,
.ranking-card p {
    margin: 10px 0 14px;
    color: var(--muted);
    font-size: 0.94rem;
}

.movie-card.compact .poster-link img {
    aspect-ratio: 16 / 9;
}

.feature-band {
    width: min(1240px, calc(100% - 32px));
    margin: 72px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 34px;
    padding: 44px;
    border-radius: 34px;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(132, 204, 22, 0.55), transparent 34%), linear-gradient(135deg, #0f766e, #0f172a);
    box-shadow: var(--shadow);
}

.feature-copy h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.feature-copy p:not(.eyebrow) {
    max-width: 640px;
    color: #dbeafe;
}

.rank-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-list li + li {
    margin-top: 10px;
}

.rank-list a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
}

.rank-no {
    color: #bef264;
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.rank-year {
    color: #cbd5e1;
    text-align: right;
}

.page-shell {
    padding-top: 34px;
}

.page-hero {
    padding: 54px;
    border-radius: 30px;
    background: linear-gradient(135deg, #ffffff, #ecfeff);
    border: 1px solid var(--line);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
}

.page-hero.slim h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.page-hero.slim p:last-child {
    max-width: 740px;
    margin-bottom: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.filter-panel,
.search-page-panel {
    display: flex;
    gap: 14px;
    margin: 24px 0;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    background: var(--surface-soft);
}

.filter-panel select {
    max-width: 210px;
}

.category-list,
.ranking-grid {
    padding-bottom: 42px;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
}

.ranking-poster {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.ranking-poster img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.ranking-poster span {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 900;
}

.detail-hero {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    padding: 34px;
    border-radius: 30px;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(132, 204, 22, 0.46), transparent 32%), linear-gradient(135deg, #0f766e, #0f172a);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

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

.detail-info h1 {
    color: #ffffff;
    font-size: clamp(2.3rem, 5vw, 4.6rem);
    line-height: 1.02;
}

.detail-info .eyebrow,
.detail-lead {
    color: #dbeafe;
}

.detail-lead {
    max-width: 760px;
    font-size: 1.1rem;
}

.tag-row.large span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 0;
}

.meta-grid div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
}

.meta-grid dt {
    color: #bfdbfe;
    font-size: 0.82rem;
}

.meta-grid dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.player-section,
.detail-content {
    margin-top: 30px;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
}

.player-section h2,
.detail-content h2 {
    margin: 0 0 18px;
    font-size: 1.5rem;
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.48));
    cursor: pointer;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: block;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
    position: relative;
}

.play-overlay span::after {
    content: "";
    position: absolute;
    left: 34px;
    top: 26px;
    border-left: 26px solid var(--primary);
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
}

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

.detail-content p {
    font-size: 1.04rem;
}

.related-section {
    padding-bottom: 42px;
}

.search-large {
    display: flex;
    width: 100%;
    gap: 10px;
}

.search-large input {
    min-height: 54px;
    padding: 0 16px;
    border-radius: 18px;
    background: var(--surface-soft);
}

.search-large button {
    padding: 0 24px;
}

.site-footer {
    margin-top: 72px;
    background: #0f172a;
    color: #ffffff;
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    gap: 34px;
}

.footer-logo {
    font-size: 1.2rem;
}

.footer-inner p {
    max-width: 560px;
    color: #cbd5e1;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

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

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

[data-card].hidden {
    display: none;
}

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

    .hero-content,
    .feature-band,
    .detail-hero,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .header-inner {
        height: 64px;
    }

    .hero-carousel,
    .hero-slide {
        min-height: 620px;
        border-radius: 24px;
    }

    .hero-content {
        min-height: 620px;
        padding: 34px 24px 150px;
        gap: 24px;
    }

    .hero-poster {
        display: none;
    }

    .hero-search {
        left: 24px;
        right: 24px;
        bottom: 92px;
        width: auto;
    }

    .hero-controls {
        left: 24px;
        right: 24px;
        bottom: 28px;
    }

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

    .category-grid,
    .movie-grid,
    .meta-grid {
        grid-template-columns: 1fr;
    }

    .feature-band,
    .page-hero,
    .detail-hero,
    .player-section,
    .detail-content {
        padding: 24px;
        border-radius: 24px;
    }

    .ranking-card {
        grid-template-columns: 1fr;
    }

    .filter-panel,
    .search-large {
        flex-direction: column;
    }

    .filter-panel select {
        max-width: none;
    }

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