:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --ink: #14213d;
    --muted: #5f6f89;
    --line: rgba(20, 33, 61, 0.12);
    --teal: #0fbaa8;
    --blue: #2563eb;
    --deep: #0b1020;
    --gold: #f6ad39;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(120deg, rgba(15, 186, 168, 0.96), rgba(37, 99, 235, 0.96));
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(16px);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--teal);
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

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

.nav-link {
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.top-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.top-search input,
.mobile-search input {
    width: 170px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 8px 10px;
}

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

.top-search button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--blue);
    font-weight: 800;
    background: #ffffff;
    cursor: pointer;
}

.menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    padding: 9px 12px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-links,
.mobile-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.mobile-cat-link {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

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

.hero-track {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

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

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(15, 186, 168, 0.48), transparent 34%),
        linear-gradient(90deg, rgba(6, 12, 28, 0.96), rgba(6, 12, 28, 0.78), rgba(6, 12, 28, 0.2));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 380px;
    align-items: center;
    gap: 56px;
    padding: 86px 0 94px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    margin-bottom: 16px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #d7fff8;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(36px, 7vw, 76px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.05em;
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    color: #064e48;
    font-size: 13px;
    font-weight: 800;
    background: #d9fffa;
}

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

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #06202c;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

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

.hero-poster {
    display: block;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

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

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

.hero-controls button {
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.18);
}

.hero-controls > button {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

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

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

.hero-dot.is-active {
    width: 28px;
    opacity: 1;
    background: #ffffff;
}

.section-panel,
.feature-strip,
.detail-content {
    margin-top: 36px;
    margin-bottom: 36px;
}

.section-panel {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.18;
    font-weight: 950;
}

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

.section-link {
    color: #ffffff;
    background: linear-gradient(120deg, var(--teal), var(--blue));
    white-space: nowrap;
}

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

.category-card,
.overview-card a {
    display: block;
    overflow: hidden;
    min-height: 120px;
    border-radius: 22px;
    color: #ffffff;
    background:
        radial-gradient(circle at right top, rgba(255, 255, 255, 0.32), transparent 30%),
        linear-gradient(135deg, #0fbaa8, #2563eb 64%, #7c3aed);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card {
    padding: 24px;
}

.category-card:hover,
.overview-card a:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 46px rgba(37, 99, 235, 0.28);
}

.category-card span,
.overview-card strong {
    display: block;
    font-size: 22px;
    font-weight: 950;
}

.category-card small,
.overview-card small {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.82);
}

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

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

.movie-card {
    display: flex;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 30px 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(15, 186, 168, 0.38);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: #d9e4f2;
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.72);
}

.year-badge {
    right: 10px;
    top: 10px;
}

.rank-badge {
    left: 10px;
    top: 10px;
    background: linear-gradient(120deg, var(--gold), #ef4444);
}

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

.type-pill {
    width: max-content;
    max-width: 100%;
    border-radius: 999px;
    padding: 5px 9px;
    color: #04766d;
    font-size: 12px;
    font-weight: 900;
    background: #d9fffa;
}

.movie-card strong {
    display: -webkit-box;
    min-height: 52px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #172033;
    font-size: 18px;
    line-height: 1.45;
}

.movie-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--muted);
    font-size: 14px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b778d;
    font-size: 13px;
}

.movie-meta em {
    font-style: normal;
}

.tag-row span {
    padding: 4px 8px;
    font-size: 12px;
}

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

.movie-card.is-small strong {
    font-size: 16px;
}

.movie-card.is-horizontal {
    min-height: 210px;
    flex-direction: row;
}

.movie-card.is-horizontal .poster-wrap {
    width: 190px;
    flex: 0 0 190px;
}

.movie-card.is-horizontal .poster-wrap img {
    height: 100%;
    aspect-ratio: auto;
}

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

.rank-grid-wide .movie-card.is-horizontal .poster-wrap {
    width: 220px;
    flex-basis: 220px;
}

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

.feature-card {
    padding: 28px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #0b1020, #14213d 62%, #0fbaa8);
    box-shadow: var(--shadow);
}

.feature-card b {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
}

.feature-card span {
    color: rgba(255, 255, 255, 0.78);
}

.page-hero {
    padding: 72px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 30%),
        linear-gradient(120deg, #0fbaa8, #2563eb 70%, #7c3aed);
}

.page-hero h1 {
    max-width: 820px;
    margin: 0 0 12px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

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

.overview-card a {
    min-height: 250px;
    padding: 0;
}

.overview-posters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    height: 150px;
    overflow: hidden;
}

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

.overview-body {
    display: block;
    padding: 20px;
}

.filter-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding: 14px;
    border-radius: 20px;
    background: #f2f7fb;
}

.filter-box.is-large {
    align-items: stretch;
    flex-direction: column;
}

.filter-box input {
    flex: 1;
    min-width: 260px;
    border: 1px solid rgba(20, 33, 61, 0.12);
    outline: 0;
    border-radius: 999px;
    padding: 13px 16px;
    background: #ffffff;
}

.filter-box input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(15, 186, 168, 0.12);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-buttons button {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    color: #18505b;
    font-weight: 800;
    background: #d9fffa;
    cursor: pointer;
}

.filter-buttons button.is-active {
    color: #ffffff;
    background: linear-gradient(120deg, var(--teal), var(--blue));
}

.movie-item.is-hidden {
    display: none;
}

.detail-hero {
    padding: 58px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 15%, rgba(15, 186, 168, 0.38), transparent 32%),
        linear-gradient(120deg, #0b1020, #14213d 58%, #0d9488);
}

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

.detail-poster {
    display: block;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

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

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 780px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

.player-section {
    scroll-margin-top: 96px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #060b16;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: rgba(4, 8, 18, 0.38);
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.42) blur(2px);
    transform: scale(1.02);
}

.player-cover strong,
.play-circle {
    position: relative;
    z-index: 1;
}

.play-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    padding-left: 5px;
    color: #0f766e;
    font-size: 34px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.player-cover strong {
    font-size: 22px;
}

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

.detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.article-panel {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.article-panel h2 {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.2;
}

.article-panel p {
    margin: 0;
    color: #334155;
    font-size: 17px;
}

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

.meta-panel div {
    padding: 16px;
    border-radius: 16px;
    background: #f5f7fb;
}

.meta-panel dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.meta-panel dd {
    margin: 4px 0 0;
    font-weight: 900;
}

.site-footer {
    margin-top: 52px;
    padding: 48px 0 24px;
    color: #ffffff;
    background: linear-gradient(120deg, #080d19, #111827 58%, #102a43);
}

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

.site-footer h2 {
    margin: 0 0 14px;
    color: #7dd3fc;
    font-size: 20px;
}

.site-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.footer-links,
.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.footer-links a,
.footer-tags span {
    border-radius: 999px;
    padding: 7px 11px;
    color: rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(15, 186, 168, 0.5);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
}

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

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

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

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

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

    .hero-content {
        grid-template-columns: 1fr;
        min-height: 680px;
        gap: 28px;
        padding-top: 56px;
    }

    .hero-poster {
        max-width: 260px;
        transform: none;
    }

    .movie-grid,
    .search-grid,
    .category-grid,
    .overview-grid,
    .rank-grid,
    .feature-strip,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .filter-box {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-box input {
        min-width: 0;
    }
}

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

    .site-logo {
        font-size: 20px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

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

    .hero-content {
        min-height: 720px;
        padding-bottom: 96px;
    }

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

    .section-panel,
    .article-panel {
        padding: 20px;
    }

    .movie-grid,
    .search-grid,
    .category-grid,
    .overview-grid,
    .rank-grid,
    .feature-strip,
    .footer-grid,
    .meta-panel dl {
        grid-template-columns: 1fr;
    }

    .movie-card.is-horizontal {
        min-height: auto;
        flex-direction: column;
    }

    .movie-card.is-horizontal .poster-wrap {
        width: auto;
        flex-basis: auto;
    }

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