:root {
    color-scheme: light;
    --bg: #f8fafc;
    --text: #111827;
    --muted: #64748b;
    --line: #e2e8f0;
    --card: #ffffff;
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --blue: #2563eb;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(13, 148, 136, 0.12), transparent 32rem), var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(13, 148, 136, 0.16);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-weight: 800;
    font-size: clamp(20px, 2vw, 28px);
    letter-spacing: -0.04em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    box-shadow: 0 12px 28px rgba(13, 148, 136, 0.26);
}

.brand-text {
    background: linear-gradient(135deg, var(--teal), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-links a {
    color: #334155;
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--teal);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 250px;
}

.search-form input,
.filter-controls input,
.filter-controls select {
    width: 100%;
    border: 1px solid var(--line);
    outline: 0;
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    padding: 10px 15px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
    border-color: rgba(13, 148, 136, 0.7);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.icon-button,
.search-button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    box-shadow: 0 10px 24px rgba(13, 148, 136, 0.22);
}

.search-button {
    padding: 10px 17px;
    font-weight: 700;
}

.icon-button {
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    padding: 14px 0 18px;
}

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

.mobile-menu a {
    display: block;
    padding: 10px 4px;
    color: #334155;
    font-weight: 650;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #ffffff;
    background: #020617;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 18%, rgba(20, 184, 166, 0.24), transparent 26rem),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.68) 44%, rgba(15, 23, 42, 0.24));
}

.hero-content {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    padding: 100px 0 74px;
}

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

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #5eead4;
    font-weight: 800;
}

.kicker-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2dd4bf;
    box-shadow: 0 0 0 8px rgba(45, 212, 191, 0.15);
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero p {
    margin: 0 0 30px;
    max-width: 650px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

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

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
    padding: 7px 12px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.27);
}

.secondary-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

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

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

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

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

.section {
    padding: 56px 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 760px;
}

.text-link {
    color: var(--teal-dark);
    font-weight: 800;
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(226, 232, 240, 0.82);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0f766e, #1d4ed8);
}

.poster.tall {
    aspect-ratio: 3 / 4;
}

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

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

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 58%);
    pointer-events: none;
}

.play-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.25);
}

.movie-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    padding: 18px;
}

.movie-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.movie-title a:hover {
    color: var(--teal-dark);
}

.movie-desc {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    color: #475569;
    font-size: 13px;
}

.meta-chip,
.card-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #ecfeff;
    color: #0f766e;
    padding: 5px 10px;
    font-weight: 700;
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: 28px;
    background: #0f172a;
    color: #ffffff;
    box-shadow: var(--soft-shadow);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    transition: transform 0.4s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.86), rgba(13, 148, 136, 0.42));
}

.category-card-content {
    position: relative;
    z-index: 2;
    padding: 28px;
}

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

.category-card p {
    margin: 0 0 20px;
    color: #dbeafe;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 110px 1fr auto;
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: #ffffff;
    padding: 12px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    font-weight: 900;
}

.rank-cover {
    width: 110px;
    height: 72px;
    overflow: hidden;
    border-radius: 16px;
    background: #0f766e;
}

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

.rank-item h2,
.rank-item h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.page-hero {
    padding: 64px 0 36px;
    background:
        radial-gradient(circle at 18% 16%, rgba(45, 212, 191, 0.22), transparent 30rem),
        linear-gradient(135deg, #f8fafc, #ecfeff 52%, #eff6ff);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.page-hero p {
    margin: 0;
    max-width: 820px;
    color: var(--muted);
    font-size: 18px;
}

.filter-panel {
    margin: 0 0 26px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 26px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--soft-shadow);
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(140px, 1fr));
    gap: 12px;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #020617;
}

.detail-bg {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 14%, rgba(20, 184, 166, 0.26), transparent 32rem),
        linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.78) 52%, rgba(15, 23, 42, 0.44));
}

.detail-content {
    position: relative;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 64px 0;
}

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

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: #bfdbfe;
    font-size: 14px;
}

.detail-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.detail-copy .lead {
    margin: 0 0 22px;
    color: #dbeafe;
    font-size: 19px;
}

.player-card {
    padding: 54px 0 22px;
}

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

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

.play-layer {
    position: absolute;
    inset: 0;
    border: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.2), rgba(2, 6, 23, 0.62));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    box-shadow: 0 18px 42px rgba(13, 148, 136, 0.35);
    font-size: 30px;
    padding-left: 5px;
}

.article-card {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 28px;
    background: #ffffff;
    padding: 28px;
    box-shadow: var(--soft-shadow);
}

.article-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.article-card p {
    margin: 0 0 16px;
    color: #334155;
}

.article-card p:last-child {
    margin-bottom: 0;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 22px;
    align-items: start;
}

.info-list {
    display: grid;
    gap: 12px;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

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

.info-list dd {
    margin: 0;
    text-align: right;
    color: #0f172a;
    font-weight: 750;
}

.site-footer {
    margin-top: 42px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #164e63 58%, #0f766e);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 28px;
    padding: 44px 0;
}

.site-footer h2,
.site-footer h3 {
    color: #ffffff;
    margin: 0 0 12px;
}

.site-footer p,
.site-footer ul {
    margin: 0;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 8px;
}

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

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0;
    text-align: center;
    color: #94a3b8;
}

@media (max-width: 1000px) {
    .nav-links,
    .site-header .search-form {
        display: none;
    }

    .icon-button {
        display: inline-flex;
        margin-left: auto;
    }

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

    .category-grid,
    .two-column,
    .detail-content,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .header-inner {
        min-height: 66px;
    }

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

    .hero,
    .hero-content {
        min-height: 560px;
    }

    .section {
        padding: 38px 0;
    }

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

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

    .movie-body {
        padding: 14px;
    }

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

    .rank-item {
        grid-template-columns: 44px 86px 1fr;
    }

    .rank-item .primary-button {
        grid-column: 2 / -1;
        min-height: 42px;
    }

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

    .article-card {
        padding: 20px;
    }
}

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

    .hero h1,
    .detail-copy h1,
    .page-hero h1 {
        letter-spacing: -0.04em;
    }
}
