:root {
    --teal-900: #134e4a;
    --teal-800: #115e59;
    --teal-700: #0f766e;
    --teal-600: #0d9488;
    --cyan-600: #0891b2;
    --cyan-500: #06b6d4;
    --amber-400: #fbbf24;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--slate-900);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #ecfeff 100%);
    line-height: 1.6;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(8, 145, 178, 0.96));
    box-shadow: 0 14px 34px rgba(15, 118, 110, 0.22);
    backdrop-filter: blur(14px);
}

.nav-shell {
    max-width: var(--container);
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: var(--teal-800);
    background: var(--white);
    box-shadow: inset 0 -4px 10px rgba(15, 118, 110, 0.18);
}

.brand-text {
    font-size: 20px;
}

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

.desktop-nav a,
.mobile-links a {
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    transition: background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-links a:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

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

.nav-search input,
.mobile-nav input,
.big-search input,
.inline-filter input {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.20);
    color: var(--white);
    padding: 11px 16px;
}

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

.nav-search button,
.mobile-nav button,
.big-search button,
.inline-filter button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    color: var(--teal-800);
    background: var(--white);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 9px 12px;
}

.mobile-nav {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px 18px;
}

.mobile-nav form {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

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

.hero-carousel {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: var(--slate-950);
}

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

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

.hero-slide img {
    position: absolute;
    inset: 0;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 20%, rgba(20, 184, 166, 0.42), transparent 32%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.72) 44%, rgba(2, 6, 23, 0.22) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.82) 0%, transparent 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100% - 40px));
    max-width: var(--container);
    margin: 0 auto;
    padding: 96px 0 120px;
    color: var(--white);
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal-700);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-kicker {
    color: #99f6e4;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.46);
    backdrop-filter: blur(12px);
}

.hero-content h1 {
    margin: 18px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

.hero-tags,
.detail-meta,
.card-meta,
.ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

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

.hero-tags span,
.detail-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
}

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

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

.primary-button {
    padding: 14px 24px;
    color: var(--teal-950);
    background: linear-gradient(135deg, #ffffff, #ccfbf1);
    box-shadow: 0 16px 32px rgba(20, 184, 166, 0.28);
}

.primary-button:hover,
.watch-link:hover,
.text-link:hover,
.small-watch:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(15, 118, 110, 0.18);
}

.ghost-button {
    padding: 13px 22px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: var(--white);
}

.section-shell {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
    padding: 52px 0;
}

.page-main .section-shell:first-of-type {
    padding-top: 34px;
}

.intro-strip {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
}

.intro-strip h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-content h2 {
    margin: 8px 0 0;
    color: var(--slate-900);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.intro-strip h2,
.page-hero h1,
.detail-info h1 {
    font-size: clamp(34px, 5vw, 56px);
}

.intro-strip p,
.page-hero p,
.detail-one-line,
.detail-content p {
    color: var(--slate-600);
    font-size: 17px;
}

.big-search,
.inline-filter {
    display: flex;
    gap: 12px;
    border-radius: 999px;
    padding: 8px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.big-search input,
.inline-filter input {
    color: var(--slate-900);
    background: var(--slate-100);
}

.big-search input::placeholder,
.inline-filter input::placeholder {
    color: var(--slate-500);
}

.big-search button,
.inline-filter button {
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-700), var(--cyan-600));
}

.section-heading,
.category-overview-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.section-heading h2,
.category-overview-head h2,
.detail-content h2 {
    font-size: clamp(26px, 4vw, 38px);
}

.section-heading a,
.category-overview-head a,
.text-link {
    color: var(--teal-700);
    font-weight: 900;
}

.compact-heading {
    margin-bottom: 18px;
}

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

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

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

.six-cols {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.movie-card,
.wide-card,
.category-tile,
.ranking-panel,
.ranking-item,
.detail-hero,
.watch-section,
.page-hero,
.category-overview-block {
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-200), #cffafe);
}

.is-compact .poster-link {
    aspect-ratio: 2 / 3;
}

.poster-gradient {
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.74), transparent);
}

.score-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 30px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.score-badge {
    right: 12px;
    color: var(--slate-950);
    background: var(--amber-400);
}

.rank-badge {
    left: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-700), var(--cyan-600));
}

.card-body {
    padding: 18px;
}

.card-meta {
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 800;
}

.card-meta span:not(:last-child)::after,
.ranking-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: var(--slate-400);
}

.movie-card h3,
.wide-card h3,
.ranking-item h3 {
    margin: 8px 0 8px;
    font-size: 19px;
    line-height: 1.25;
}

.movie-card h3 a:hover,
.wide-card h3 a:hover,
.ranking-item h3 a:hover {
    color: var(--teal-700);
}

.movie-card p,
.wide-card p,
.ranking-item p {
    margin: 0;
    color: var(--slate-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span {
    color: var(--teal-800);
    background: #ccfbf1;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.watch-link,
.small-watch {
    padding: 9px 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-700), var(--cyan-600));
}

.category-link {
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 900;
}

.wide-card {
    display: grid;
    grid-template-columns: 42% 1fr;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.wide-cover {
    min-height: 250px;
}

.wide-content {
    padding: 24px;
}

.eyebrow {
    margin-bottom: 4px;
}

.soft-panel {
    width: min(calc(var(--container) + 48px), calc(100% - 24px));
    padding: 42px 24px;
    border-radius: 34px;
    background: linear-gradient(135deg, #f0fdfa, #ecfeff);
}

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

.category-tile {
    display: flex;
    min-height: 188px;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.category-tile strong {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.category-tile span {
    color: var(--slate-600);
}

.category-tile small {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 18px;
    color: var(--teal-700);
    font-weight: 800;
}

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

.ranking-panel {
    position: sticky;
    top: 94px;
    border-radius: var(--radius-xl);
    padding: 22px;
}

.ranking-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 74px 44px 1fr auto;
    gap: 14px;
    align-items: center;
    border-radius: var(--radius-md);
    padding: 12px;
}

.slim .ranking-item {
    grid-template-columns: 54px 34px 1fr;
}

.slim .ranking-cover {
    width: 54px;
    height: 72px;
}

.slim .small-watch,
.slim .ranking-meta,
.slim .ranking-item p {
    display: none;
}

.ranking-cover {
    width: 74px;
    height: 98px;
    overflow: hidden;
    border-radius: 14px;
}

.ranking-number {
    color: var(--teal-700);
    font-size: 22px;
    font-weight: 950;
}

.ranking-meta {
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 800;
}

.page-main {
    padding-bottom: 28px;
}

.page-hero {
    width: min(var(--container), calc(100% - 40px));
    margin: 34px auto 0;
    padding: clamp(36px, 7vw, 70px);
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 20%, rgba(20, 184, 166, 0.25), transparent 32%),
        linear-gradient(135deg, #ffffff, #f0fdfa);
}

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

.category-hero,
.ranking-hero,
.search-hero {
    background:
        radial-gradient(circle at 80% 15%, rgba(6, 182, 212, 0.24), transparent 30%),
        linear-gradient(135deg, #ffffff, #ecfeff);
}

.inline-filter {
    width: min(760px, 100%);
    margin-top: 26px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.filter-chips button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--teal-800);
    background: #ccfbf1;
    cursor: pointer;
    font-weight: 900;
}

.filter-chips button.is-active {
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-700), var(--cyan-600));
}

.category-overview {
    display: grid;
    gap: 28px;
}

.category-overview-block {
    border-radius: var(--radius-xl);
    padding: 26px;
}

.detail-main {
    padding: 28px 0 38px;
}

.breadcrumb {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--slate-500);
    font-weight: 800;
}

.breadcrumb a {
    color: var(--teal-700);
}

.detail-hero {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 34px;
    align-items: center;
    border-radius: 34px;
    padding: 30px;
    background:
        radial-gradient(circle at 92% 10%, rgba(20, 184, 166, 0.24), transparent 36%),
        linear-gradient(135deg, #ffffff, #f8fafc);
}

.detail-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.detail-info h1 {
    margin-bottom: 16px;
}

.detail-one-line {
    max-width: 760px;
}

.detail-meta {
    margin: 22px 0 6px;
}

.detail-meta span {
    color: var(--slate-700);
    background: var(--slate-100);
}

.large-tags span {
    padding: 9px 14px;
}

.watch-section {
    width: min(var(--container), calc(100% - 40px));
    margin: 34px auto 0;
    border-radius: 34px;
    padding: 18px;
    background: var(--slate-950);
}

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

.player-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    align-content: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(20, 184, 166, 0.22), rgba(2, 6, 23, 0.70));
    cursor: pointer;
    transition: opacity 0.22s ease;
}

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

.player-icon {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--teal-900);
    background: var(--white);
    font-size: 32px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.player-action {
    font-size: 18px;
    font-weight: 950;
}

.narrow-shell {
    max-width: 920px;
}

.detail-content h2 {
    margin-top: 28px;
    margin-bottom: 12px;
}

.detail-content p {
    margin: 0;
}

.site-footer {
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(135deg, var(--slate-950), var(--teal-900));
}

.footer-inner {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    gap: 14px;
}

.footer-logo {
    color: var(--white);
    font-size: 24px;
    font-weight: 950;
}

.footer-inner p {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    color: rgba(255, 255, 255, 0.58);
}

.is-hidden-card {
    display: none !important;
}

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

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

    .nav-search {
        margin-left: auto;
    }

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

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

    .split-layout {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }
}

@media (max-width: 860px) {
    .nav-shell {
        min-height: 66px;
    }

    .nav-search {
        display: none;
    }

    .hero-carousel {
        min-height: 610px;
    }

    .hero-content {
        padding-top: 84px;
    }

    .intro-strip,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .featured-grid,
    .four-cols,
    .six-cols,
    .two-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .wide-cover {
        min-height: 210px;
    }

    .ranking-item,
    .slim .ranking-item {
        grid-template-columns: 64px 38px 1fr;
    }

    .ranking-item .small-watch {
        display: none;
    }

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

@media (max-width: 560px) {
    .brand-text {
        font-size: 18px;
    }

    .section-shell,
    .page-hero,
    .detail-hero,
    .watch-section,
    .breadcrumb {
        width: min(100% - 24px, var(--container));
    }

    .hero-content {
        width: calc(100% - 28px);
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-actions,
    .big-search,
    .inline-filter {
        flex-direction: column;
        border-radius: 24px;
    }

    .category-grid,
    .featured-grid,
    .four-cols,
    .six-cols,
    .two-cols {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .detail-hero,
    .category-overview-block {
        padding: 26px;
        border-radius: 26px;
    }

    .watch-section {
        padding: 10px;
        border-radius: 24px;
    }

    .watch-player {
        border-radius: 18px;
    }

    .player-icon {
        width: 68px;
        height: 68px;
    }
}
