:root {
    --brand: #0f766e;
    --brand-dark: #134e4a;
    --brand-soft: #ccfbf1;
    --accent: #f59e0b;
    --ink: #10201f;
    --muted: #64748b;
    --line: #dbe7e5;
    --paper: #ffffff;
    --bg: #f3faf8;
    --shadow: 0 18px 45px rgba(15, 118, 110, 0.16);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: radial-gradient(circle at top left, #e0f7f3 0, transparent 32rem), var(--bg);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(120deg, var(--brand), var(--brand-dark));
    box-shadow: 0 10px 30px rgba(19, 78, 74, 0.25);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.brand-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: var(--brand-dark);
    background: linear-gradient(135deg, #ffffff, #99f6e4);
    box-shadow: inset 0 -4px 8px rgba(15, 118, 110, 0.18);
}

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

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

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

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: #ffffff;
}

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

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

.mobile-link,
.mobile-category-title {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 700;
}

.mobile-category-title {
    grid-column: 1 / -1;
    color: #99f6e4;
    background: transparent;
    padding-bottom: 0;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.65s ease, transform 1.2s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade,
.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 26, 24, 0.92), rgba(4, 26, 24, 0.65) 45%, rgba(4, 26, 24, 0.2)),
        linear-gradient(0deg, rgba(4, 26, 24, 0.86), rgba(4, 26, 24, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1180px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-content .eyebrow {
    color: #ecfeff;
    background: rgba(20, 184, 166, 0.28);
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 8vw, 88px);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero-content p {
    max-width: 680px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(17px, 2vw, 22px);
}

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

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: #e6fffa;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags .tag {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    box-shadow: 0 16px 30px rgba(20, 184, 166, 0.35);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

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

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

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

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

.search-panel,
.inline-panel {
    margin-top: 34px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 22px;
    align-items: center;
    padding: 24px;
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.search-panel h2,
.inline-panel h2,
.section-heading h2,
.page-hero h1,
.story-card h2,
.player-head h2,
.ranking-copy h2 {
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.search-panel p,
.inline-panel p,
.page-hero p,
.ranking-copy p,
.story-card p,
.player-note,
.card-desc,
.card-meta,
.ranking-info p,
.category-card p,
.site-footer p {
    color: var(--muted);
}

.search-box {
    display: grid;
    gap: 8px;
    font-weight: 900;
}

.search-box input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--ink);
    background: #ffffff;
    outline: none;
}

.search-box input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

.category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.category-chip {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: #ffffff;
    border: 1px solid rgba(15, 118, 110, 0.16);
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.08);
}

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

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

.section-heading h2 {
    font-size: clamp(26px, 4vw, 40px);
}

.section-heading a {
    color: var(--brand);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 16px 36px rgba(15, 118, 110, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #0f766e, #134e4a);
}

.poster-link img,
.category-card img,
.ranking-thumb img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-badge,
.poster-year,
.source-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 118, 110, 0.86);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.poster-year {
    left: auto;
    right: 12px;
    background: rgba(2, 6, 23, 0.62);
}

.card-body {
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 52px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 800;
}

.card-desc {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    margin: 8px 0 14px;
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.compact-card .card-title {
    min-height: auto;
    font-size: 16px;
}

.compact-card .card-desc {
    display: none;
}

.ranking-band {
    margin-top: 64px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    padding: 34px;
    border-radius: 30px;
    color: #ffffff;
    background:
        radial-gradient(circle at 15% 10%, rgba(45, 212, 191, 0.34), transparent 34%),
        linear-gradient(135deg, #042f2e, #0f766e);
    box-shadow: var(--shadow);
}

.ranking-copy p {
    color: rgba(255, 255, 255, 0.76);
}

.ranking-copy .section-kicker {
    color: #ccfbf1;
    background: rgba(255, 255, 255, 0.16);
}

.ranking-list {
    display: grid;
    gap: 10px;
}

.rank-row {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
}

.rank-num {
    font-size: 20px;
    font-weight: 950;
    color: #99f6e4;
}

.rank-title {
    font-weight: 900;
}

.rank-meta {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.page-main {
    padding: 34px 0 70px;
}

.page-hero {
    padding: 38px;
    border-radius: 30px;
    background: linear-gradient(135deg, #ffffff, #ecfdf5);
    box-shadow: var(--shadow);
}

.compact-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
}

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

.category-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 118, 110, 0.12);
}

.category-card a {
    display: grid;
    grid-template-rows: 210px 1fr;
}

.category-card div {
    padding: 18px;
}

.category-card span {
    color: var(--brand);
    font-weight: 900;
}

.category-card h2 {
    margin: 6px 0 8px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 800;
}

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

.light-breadcrumb {
    color: rgba(255, 255, 255, 0.76);
}

.light-breadcrumb a {
    color: #99f6e4;
}

.ranking-page-list {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.08);
}

.ranking-thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: #0f766e;
}

.ranking-thumb span {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.7);
    font-weight: 900;
}

.ranking-info a {
    font-size: 20px;
    font-weight: 950;
}

.detail-main {
    background: var(--bg);
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: #041a18;
}

.detail-wrap {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 34px;
    align-items: center;
    min-height: 470px;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    background: #0f766e;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
}

.detail-info h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -0.06em;
}

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

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 900;
}

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

.detail-tags .tag {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.detail-content {
    padding: 44px 0 80px;
}

.player-card,
.story-card {
    margin-bottom: 28px;
    padding: 26px;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.player-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.source-badge {
    position: static;
    color: #ffffff;
}

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

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    color: #ffffff;
    border: 0;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.16), rgba(2, 6, 23, 0.64));
    cursor: pointer;
}

.play-cover span {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
    font-size: 30px;
}

.play-cover.is-hidden {
    display: none;
}

.story-card h2 {
    font-size: 30px;
}

.story-card p {
    margin-bottom: 0;
    font-size: 17px;
}

.site-footer {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.82);
    background: #042f2e;
}

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

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    font-weight: 800;
}

.is-filtered-out {
    display: none !important;
}

@media (max-width: 1024px) {
    .movie-grid,
    .small-grid,
    .category-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ranking-band,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

    .menu-button {
        display: block;
    }

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

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

    .search-panel,
    .inline-panel,
    .ranking-band,
    .detail-layout,
    .player-head {
        grid-template-columns: 1fr;
    }

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

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

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

    .rank-meta {
        grid-column: 2;
    }

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

    .detail-layout {
        gap: 24px;
    }

    .detail-poster {
        width: 220px;
    }
}

@media (max-width: 520px) {
    .container-wide,
    .nav-shell,
    .mobile-nav,
    .content-section,
    .detail-wrap,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

    .brand {
        font-size: 18px;
    }

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

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

    .search-panel,
    .inline-panel,
    .page-hero,
    .player-card,
    .story-card {
        padding: 18px;
        border-radius: 20px;
    }

    .category-card a {
        grid-template-rows: 180px 1fr;
    }
}
