:root {
    --teal: #14b8a6;
    --cyan: #0891b2;
    --deep: #0f172a;
    --ink: #1f2937;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #f8fafc;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #f8fafc 0%, #ecfeff 42%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 12px 26px rgba(20, 184, 166, 0.32);
}

.brand-text strong {
    display: block;
    font-size: 22px;
    color: #111827;
}

.brand-text small {
    display: block;
    margin-top: -4px;
    font-size: 12px;
    color: var(--muted);
}

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

.nav-link,
.nav-drop button {
    border: 0;
    background: transparent;
    color: #334155;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.nav-link.active,
.nav-link:hover,
.nav-drop:hover button {
    color: var(--teal);
}

.nav-drop {
    position: relative;
    padding: 22px 0;
}

.nav-drop-menu {
    position: absolute;
    top: 64px;
    right: 0;
    width: 220px;
    padding: 12px;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.nav-drop:hover .nav-drop-menu {
    display: grid;
}

.nav-drop-menu a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #475569;
}

.nav-drop-menu a:hover {
    background: #ecfeff;
    color: var(--teal);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 20px;
}

main {
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: 640px;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.48), transparent 34%), linear-gradient(135deg, #0f172a 0%, #155e75 58%, #0f766e 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.36)), var(--hero-image, none);
    background-size: cover;
    background-position: center;
    opacity: 0.68;
}

.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    bottom: -140px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.28);
    filter: blur(20px);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 640px;
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    align-items: center;
    gap: 48px;
    padding: 56px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #cffafe;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 74px);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.hero-lead {
    max-width: 660px;
    margin: 22px 0 28px;
    color: #e0f2fe;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.btn-primary,
.btn-ghost,
.section-more,
.category-card .btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 16px 35px rgba(255, 255, 255, 0.26);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary:hover,
.btn-ghost:hover,
.section-more:hover,
.category-card .btn-light:hover {
    transform: translateY(-2px);
}

.hero-search {
    display: flex;
    align-items: center;
    max-width: 540px;
    min-height: 58px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(18px);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 0;
    outline: 0;
    color: inherit;
    background: transparent;
    font: inherit;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.hero-search button,
.filter-bar button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.hero-search button {
    height: 42px;
    padding: 0 18px;
}

.hero-panel {
    display: grid;
    gap: 18px;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 32px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.42);
    background: rgba(255, 255, 255, 0.16);
}

.hero-poster img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.hero-poster-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0));
}

.hero-poster-info h2 {
    margin: 0 0 6px;
    font-size: 28px;
}

.hero-poster-info p {
    margin: 0;
    color: #cbd5e1;
}

.hero-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.hero-thumb {
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.hero-thumb.active {
    border-color: #67e8f9;
}

.hero-thumb img {
    width: 100%;
    height: 84px;
    object-fit: cover;
}

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

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

.section-head h1,
.section-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.section-head p {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--muted);
}

.section-more {
    color: var(--teal);
    background: #ecfeff;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.category-chip {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.category-chip strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
}

.category-chip span {
    color: var(--muted);
    font-size: 14px;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.04);
}

.play-dot,
.rank-badge {
    position: absolute;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
}

.play-dot {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.92);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.36);
}

.rank-badge {
    left: 14px;
    top: 14px;
    min-width: 40px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.movie-card-body {
    padding: 18px;
}

.movie-title {
    display: block;
    overflow: hidden;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-row span {
    padding: 4px 9px;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 12px;
    font-weight: 700;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 120px;
    gap: 12px;
    margin: 22px 0 30px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #334155;
    background: #f8fafc;
}

.filter-bar button {
    min-height: 44px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    padding: 28px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #0f766e);
    box-shadow: var(--shadow);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #164e63, #14b8a6);
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 30px;
}

.category-card p {
    max-width: 640px;
    margin: 0 0 18px;
    color: #dbeafe;
}

.category-card .count {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #cffafe;
    background: rgba(255, 255, 255, 0.14);
}

.category-card .btn-light {
    color: #0f172a;
    background: #ffffff;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 92px 1fr 130px;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    font-weight: 900;
}

.rank-row img {
    width: 92px;
    height: 122px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-row h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.rank-row p {
    margin: 0;
    color: var(--muted);
}

.rank-weight {
    color: var(--teal);
    font-weight: 900;
    text-align: right;
}

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

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

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

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.48)), var(--detail-bg);
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    transform: scale(1.04);
    opacity: 0.84;
}

.detail-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 42px;
    padding: 64px 0;
}

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

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

.detail-copy h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

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

.detail-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    color: #cffafe;
    background: rgba(255, 255, 255, 0.14);
}

.detail-copy p {
    color: #dbeafe;
    font-size: 18px;
}

.player-card {
    margin-top: -28px;
    padding: 22px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.video-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.72)), var(--poster-bg);
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

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

.play-cover span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.92);
    box-shadow: 0 18px 38px rgba(20, 184, 166, 0.34);
    font-size: 32px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

.copy-card,
.side-card {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.copy-card {
    padding: 30px;
}

.copy-card h2,
.side-card h2 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 26px;
}

.copy-card p {
    margin: 0 0 22px;
    color: #334155;
}

.side-card {
    padding: 22px;
}

.side-link {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.side-link:last-child {
    border-bottom: 0;
}

.side-link img {
    width: 70px;
    height: 92px;
    border-radius: 12px;
    object-fit: cover;
}

.side-link strong {
    display: block;
    color: #0f172a;
}

.side-link span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #111827, #0f172a);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1.2fr 0.8fr;
    gap: 36px;
    padding: 46px 0;
}

.footer-brand,
.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 22px;
}

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

.footer-links a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}

.empty-state {
    display: none;
    padding: 30px;
    border-radius: 22px;
    color: var(--muted);
    background: #ffffff;
    text-align: center;
}

@media (max-width: 980px) {
    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-drop {
        padding: 0;
    }

    .nav-drop-menu {
        position: static;
        width: 100%;
        margin-top: 10px;
        box-shadow: none;
    }

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

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

    .category-grid {
        grid-template-columns: 1fr;
    }

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

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

    .brand-text small {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;
        padding: 40px 0;
    }

    .hero-poster,
    .hero-poster img {
        min-height: 320px;
        height: 320px;
    }

    .hero-thumbs {
        grid-template-columns: repeat(5, 72px);
        overflow-x: auto;
    }

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

    .section-head {
        display: block;
    }

    .section-more {
        margin-top: 14px;
    }

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

    .rank-row img {
        width: 70px;
        height: 94px;
    }

    .rank-weight {
        grid-column: 3;
        text-align: left;
    }

    .detail-inner {
        gap: 24px;
        padding: 38px 0;
    }
}
