:root {
    --brand: #0d9488;
    --brand-dark: #0f766e;
    --brand-light: #14b8a6;
    --cyan: #0891b2;
    --ink: #0f172a;
    --muted: #64748b;
    --soft: #f8fafc;
    --card: #ffffff;
    --line: #e2e8f0;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--ink);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f0fdfa 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
    max-width: 100%;
}

.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.8);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 24px;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--cyan));
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.28);
    font-size: 14px;
}

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

.desktop-nav a,
.mobile-nav a,
.footer-links a,
.text-link {
    color: #334155;
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover,
.text-link:hover {
    color: var(--brand);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.header-search input,
.mobile-nav input {
    width: 180px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 10px;
    color: var(--ink);
}

.header-search button,
.mobile-nav button,
.primary-btn,
.ghost-btn,
.filter-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button {
    padding: 8px 15px;
    color: #ffffff;
    background: var(--brand);
}

.header-search button:hover,
.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(13, 148, 136, 0.25);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
}

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

.mobile-nav {
    display: none;
    padding: 14px 24px 22px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.mobile-nav.open {
    display: grid;
    gap: 12px;
}

.mobile-nav form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 8px;
}

.mobile-nav input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.mobile-nav button {
    padding: 8px 14px;
    color: #ffffff;
    background: var(--brand);
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    background: #04111f;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 28%, rgba(20, 184, 166, 0.45), transparent 30%),
        radial-gradient(circle at 70% 15%, rgba(8, 145, 178, 0.35), transparent 28%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.98), rgba(15, 118, 110, 0.86));
}

.hero-inner {
    position: relative;
    max-width: 1240px;
    min-height: 640px;
    margin: 0 auto;
    padding: 74px 24px 120px;
}

.hero-slide {
    position: absolute;
    inset: 74px 24px 120px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    gap: 54px;
    align-items: center;
    opacity: 0;
    transform: translateX(24px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--brand-light);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.85;
}

.hero-one-line {
    margin-bottom: 8px;
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 800;
}

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

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--cyan));
    box-shadow: 0 15px 35px rgba(13, 148, 136, 0.35);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
}

.ghost-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.2);
}

.hero-poster {
    position: relative;
    min-height: 470px;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.55));
}

.hero-poster img,
.category-bg img,
.category-hero-link img,
.detail-cover img,
.detail-backdrop,
.page-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    left: 24px;
    bottom: 45px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero-prev,
.hero-next {
    width: 46px;
    height: 46px;
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

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

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

.section-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 70px 24px 0;
}

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

.section-head h2,
.section-head h3,
.filter-panel h2,
.content-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-head.compact h2,
.section-head.compact h3,
.content-card h2 {
    font-size: 24px;
}

.section-head a,
.text-link {
    color: var(--brand);
    font-weight: 900;
}

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

.category-tile,
.category-hero-link {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #0f172a;
    box-shadow: var(--shadow);
}

.category-tile {
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.category-bg {
    position: absolute;
    inset: 0;
    opacity: 0.72;
}

.category-bg::after,
.category-hero-link::after,
.page-hero::after,
.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.82));
}

.category-content,
.category-hero-link span {
    position: relative;
    z-index: 1;
    color: #ffffff;
}

.category-content strong,
.category-hero-link span {
    display: block;
    font-size: 23px;
    font-weight: 950;
}

.category-content em {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
}

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

.movie-card {
    min-width: 0;
}

.movie-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-link:hover {
    transform: translateY(-6px);
    border-color: rgba(20, 184, 166, 0.45);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.13);
}

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

.poster-box img,
.compact-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-link:hover .poster-box img {
    transform: scale(1.06);
}

.type-pill,
.rank-badge {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.92);
    backdrop-filter: blur(8px);
}

.type-pill {
    right: 12px;
    bottom: 12px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    background: rgba(2, 6, 23, 0.72);
}

.movie-info {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.movie-info strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 18px;
    font-weight: 950;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.movie-meta,
.movie-desc,
.compact-card em,
.content-card p,
.info-list dd,
.page-hero p {
    color: var(--muted);
    line-height: 1.75;
}

.movie-meta,
.compact-card em {
    overflow: hidden;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.movie-desc {
    display: -webkit-box;
    min-height: 46px;
    overflow: hidden;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-panel,
.content-card,
.filter-panel,
.category-overview-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 24px;
}

.rank-list,
.compact-grid {
    display: grid;
    gap: 12px;
}

.compact-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
    background: #f0fdfa;
    transform: translateX(2px);
}

.compact-cover {
    display: block;
    width: 64px;
    height: 82px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(145deg, #0f172a, #134e4a);
}

.compact-card strong {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.compact-card em {
    display: block;
    font-style: normal;
}

.feature-lists {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding-bottom: 70px;
}

.mini-list {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #042f2e, #0f172a);
}

.page-hero > img,
.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    filter: blur(1px) saturate(1.15);
}

.page-hero > div,
.detail-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: 64px 0;
    color: #ffffff;
}

.small-hero {
    min-height: 300px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.3fr) minmax(0, 1fr);
    gap: 24px;
    align-items: end;
    margin-bottom: 26px;
    padding: 24px;
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 12px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    padding: 0 14px;
    color: var(--ink);
    outline: 0;
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

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

.category-overview-card {
    display: grid;
    gap: 16px;
    padding: 16px;
}

.category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 70px;
}

.category-hero-link {
    min-height: 250px;
    display: flex;
    align-items: flex-end;
    padding: 22px;
}

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

.compact-grid.small .compact-card {
    grid-template-columns: 54px minmax(0, 1fr);
}

.compact-grid.small .compact-cover {
    width: 54px;
    height: 70px;
}

.detail-hero {
    min-height: 620px;
}

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

.detail-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45);
}

.detail-copy h1 {
    color: #ffffff;
}

.lead-text {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 22px;
    line-height: 1.7;
    font-weight: 750;
}

.detail-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detail-meta span,
.tag-row span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 13px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(10px);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

.detail-main,
.detail-side {
    display: grid;
    gap: 22px;
    align-content: start;
}

.player-card {
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background:
        radial-gradient(circle at center, rgba(20, 184, 166, 0.18), transparent 34%),
        rgba(2, 6, 23, 0.28);
    cursor: pointer;
    transition: opacity 0.25s ease;
}

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

.play-icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    color: #ffffff;
    font-size: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--cyan));
    box-shadow: 0 22px 48px rgba(13, 148, 136, 0.38);
}

.content-card {
    padding: 26px;
}

.content-card p {
    margin-top: 12px;
    font-size: 16px;
}

.info-list {
    display: grid;
    gap: 14px;
    margin: 14px 0 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.info-list dt {
    color: #334155;
    font-weight: 900;
}

.info-list dd {
    margin: 0;
}

.site-footer {
    margin-top: 80px;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1fr);
    gap: 40px;
    padding: 48px 24px;
}

.footer-brand {
    color: #ffffff;
}

.footer-inner p {
    max-width: 420px;
    margin-top: 14px;
    color: #94a3b8;
    line-height: 1.8;
}

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

.footer-links a {
    color: #cbd5e1;
}

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

@media (max-width: 1120px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-slide,
    .two-column,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

    .rank-panel {
        position: static;
    }

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

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

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

@media (max-width: 760px) {
    .header-inner {
        min-height: 66px;
        padding: 0 16px;
    }

    .brand {
        font-size: 19px;
    }

    .hero-carousel,
    .hero-inner {
        min-height: 620px;
    }

    .hero-inner {
        padding: 58px 18px 110px;
    }

    .hero-slide {
        inset: 58px 18px 110px;
        display: flex;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-controls {
        left: 18px;
        bottom: 34px;
    }

    .section-wrap {
        padding: 48px 16px 0;
    }

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

    .category-grid,
    .category-overview-grid,
    .movie-grid,
    .feature-lists,
    .filter-panel,
    .filter-controls,
    .footer-inner,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .category-tile {
        min-height: 170px;
    }

    .detail-hero {
        min-height: auto;
    }

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

    .lead-text {
        font-size: 18px;
    }

    .compact-grid.small {
        grid-template-columns: 1fr;
    }

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