:root {
    --page-bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #ecfeff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --teal: #14b8a6;
    --teal-dark: #0f766e;
    --cyan: #0891b2;
    --blue: #2563eb;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--page-bg);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

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.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 14px 34px rgba(20, 184, 166, 0.3);
}

.brand-copy {
    display: grid;
    line-height: 1.15;
}

.brand-copy span {
    font-size: 22px;
}

.brand-copy em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a,
.mobile-links a {
    padding: 10px 16px;
    color: #334155;
    border-radius: 999px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-links a:hover,
.mobile-links a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #ecfeff;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--teal-dark);
}

.mobile-links {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 88px 0;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 45%, #eff6ff 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(54px);
    opacity: 0.34;
}

.hero-glow-one {
    top: 70px;
    left: 7%;
    width: 290px;
    height: 290px;
    background: var(--teal);
}

.hero-glow-two {
    right: 5%;
    bottom: 54px;
    width: 360px;
    height: 360px;
    background: var(--cyan);
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
    gap: 58px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal-dark);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 16px 0 20px;
    color: #0f172a;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy h1 span {
    display: block;
    margin-top: 12px;
    color: var(--teal-dark);
    font-size: clamp(26px, 3.4vw, 40px);
}

.hero-copy p,
.page-hero p,
.section-head p,
.detail-copy .lead {
    margin: 0;
    color: #475569;
    font-size: 18px;
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin: 30px 0 18px;
    padding: 8px;
    border: 1px solid rgba(20, 184, 166, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 18px;
    color: var(--text);
    background: #fff;
    outline: none;
}

.hero-search input {
    border-color: transparent;
    background: transparent;
}

.hero-search button,
.primary-btn {
    border: 0;
    padding: 0 24px;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    cursor: pointer;
    box-shadow: 0 16px 38px rgba(8, 145, 178, 0.25);
}

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

.hero-actions a,
.ghost-btn,
.text-link,
.side-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    color: var(--teal-dark);
    background: #fff;
    border: 1px solid rgba(20, 184, 166, 0.26);
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-actions a:hover,
.ghost-btn:hover,
.text-link:hover,
.side-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(20, 184, 166, 0.16);
}

.hero-slider {
    position: relative;
}

.hero-track {
    position: relative;
    height: 520px;
    border-radius: 28px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.12) 58%, rgba(2, 6, 23, 0.28));
}

.hero-poster-copy {
    position: absolute;
    z-index: 2;
    left: 28px;
    right: 28px;
    bottom: 28px;
    color: #fff;
}

.hero-poster-copy span {
    color: #a7f3d0;
    font-size: 14px;
    font-weight: 800;
}

.hero-poster-copy strong {
    display: block;
    margin: 8px 0;
    font-size: 30px;
    line-height: 1.2;
}

.hero-poster-copy p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.86);
}

.hero-poster-copy a {
    display: inline-flex;
    padding: 10px 20px;
    border-radius: 999px;
    color: #fff;
    background: var(--teal);
    font-weight: 800;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    right: 24px;
    top: 24px;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 30px;
    background: #fff;
}

.feature-strip,
.section-block {
    padding: 72px 0;
    background: #fff;
}

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

.feature-card,
.category-card,
.movie-card,
.article-grid article,
.article-grid aside {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
}

.feature-card {
    padding: 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.category-card:hover,
.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.13);
}

.feature-card span {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    color: var(--teal-dark);
    border-radius: 16px;
    background: #ccfbf1;
    font-weight: 900;
}

.feature-card strong,
.category-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
}

.feature-card p,
.category-card p {
    margin: 0;
    color: var(--muted);
}

.alt-bg {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

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

.section-head.centered {
    justify-content: center;
    text-align: center;
}

.section-head h2,
.article-grid h2 {
    margin: 8px 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

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

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

.year-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.rank-badge {
    left: 12px;
    right: auto;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #fff;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.86);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-info {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.movie-meta {
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 800;
}

.movie-info strong {
    font-size: 18px;
    line-height: 1.3;
}

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

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

.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: #334155;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
}

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

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

.stacked-sections {
    padding: 24px 0;
}

.compact-section {
    padding: 54px 0;
}

.page-hero,
.detail-top {
    padding: 72px 0;
    background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

.page-hero h1 {
    max-width: 850px;
}

.page-hero p {
    max-width: 800px;
}

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

.category-card {
    padding: 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.category-card div span {
    padding: 6px 10px;
    color: var(--teal-dark);
    border-radius: 999px;
    background: #ecfeff;
    font-size: 13px;
    font-weight: 700;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.multi-filter {
    grid-template-columns: 1fr 180px 180px;
}

.empty-state {
    padding: 28px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 20px;
    background: #fff;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.crumbs a {
    color: var(--teal-dark);
    font-weight: 700;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

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

.detail-copy h1 {
    margin-top: 12px;
}

.detail-actions {
    margin-top: 28px;
}

.primary-btn,
.ghost-btn {
    min-height: 48px;
    padding: 0 24px;
}

.watch-section {
    padding: 54px 0;
    background: #0f172a;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.4);
    cursor: pointer;
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(20, 184, 166, 0.24), rgba(2, 6, 23, 0.52));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 20px 44px rgba(20, 184, 166, 0.35);
    font-size: 30px;
}

.player-shell.is-playing .play-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.article-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    align-items: start;
}

.article-grid article,
.article-grid aside {
    padding: 30px;
}

.article-grid article p {
    color: #334155;
    font-size: 17px;
}

.article-grid dl {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px 16px;
    margin: 0 0 24px;
}

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

.article-grid dd {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
}

.article-grid dd a {
    color: var(--teal-dark);
}

.side-link {
    width: 100%;
    min-height: 48px;
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding: 56px 0;
}

.footer-brand {
    color: #fff;
    font-size: 24px;
}

.site-footer p {
    max-width: 460px;
    color: #94a3b8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
}

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

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

.footer-bottom {
    padding: 18px;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

@media (max-width: 1024px) {
    .hero-layout,
    .detail-layout,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        max-width: 620px;
    }

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

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

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

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .mobile-links.is-open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .hero-section,
    .page-hero,
    .detail-top {
        padding: 54px 0;
    }

    .hero-layout {
        gap: 34px;
    }

    .hero-track {
        height: 430px;
    }

    .hero-search,
    .filter-bar,
    .multi-filter {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

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

    .feature-grid,
    .category-grid,
    .movie-grid,
    .small-grid,
    .ranking-list,
    .ranking-list.wide,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .article-grid dl {
        grid-template-columns: 1fr;
    }
}
