:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --ink: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --teal-soft: #ccfbf1;
    --dark: #0f172a;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

img {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-weight: 800;
    font-size: 22px;
    white-space: nowrap;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0d9488, #2563eb);
    box-shadow: 0 10px 24px rgba(13, 148, 136, 0.28);
}

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

.nav-links a {
    padding: 10px 13px;
    border-radius: 12px;
    color: #334155;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--teal);
    background: #f0fdfa;
}

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

.nav-search input,
.search-box input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 11px 14px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.search-box input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

.nav-search button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    padding: 11px 17px;
    color: #ffffff;
    background: var(--teal);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(13, 148, 136, 0.22);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.btn:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(13, 148, 136, 0.28);
}

.btn.secondary {
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    padding: 10px 12px;
    color: #0f172a;
    font-weight: 900;
}

.page-main {
    min-height: 60vh;
}

.container {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    background: var(--dark);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.hero-slide.is-active .hero-bg {
    animation: heroZoom 8s ease forwards;
}

@keyframes heroZoom {
    from {
        transform: scale(1.08);
    }
    to {
        transform: scale(1.02);
    }
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.74) 42%, rgba(15, 23, 42, 0.22) 100%), linear-gradient(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 34px;
    padding: 84px 0 58px;
}

.hero-copy {
    max-width: 720px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #99f6e4;
    background: rgba(20, 184, 166, 0.18);
    border: 1px solid rgba(153, 246, 228, 0.24);
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-copy h1 {
    margin: 20px 0 16px;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 680px;
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 28px 0;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta a,
.hero-meta span,
.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 11px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 13px;
    font-weight: 700;
}

.hero-card {
    align-self: end;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 28px;
    padding: 14px;
    backdrop-filter: blur(20px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    display: block;
}

.hero-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: #ffffff;
    font-weight: 800;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: #2dd4bf;
}

.section {
    padding: 54px 0;
}

.section.alt {
    background: #ffffff;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-desc {
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
}

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

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

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

.movie-card,
.category-card,
.rank-card,
.detail-panel {
    background: var(--panel);
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 24px;
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.07);
}

.movie-card {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

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

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

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

.type-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--teal);
}

.movie-meta {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.movie-line {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
    color: #475569;
    line-height: 1.65;
    margin: 0 0 12px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.category-card {
    padding: 22px;
    display: flex;
    min-height: 190px;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.75;
}

.category-link {
    margin-top: 18px;
    color: var(--teal);
    font-weight: 900;
}

.page-hero {
    background: radial-gradient(circle at 10% 20%, rgba(45, 212, 191, 0.25), transparent 28%), linear-gradient(135deg, #0f172a, #134e4a 52%, #0f172a);
    color: #ffffff;
    padding: 70px 0 54px;
}

.page-hero h1 {
    max-width: 980px;
    margin: 14px 0 16px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: #dbeafe;
    line-height: 1.85;
    font-size: 17px;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin: 24px 0 30px;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 70px 110px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #0d9488, #2563eb);
    font-weight: 900;
    font-size: 20px;
}

.rank-card img {
    width: 110px;
    height: 146px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
}

.rank-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #99f6e4;
}

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

.detail-cover {
    position: sticky;
    top: 96px;
}

.detail-cover img {
    width: 100%;
    border-radius: 26px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.detail-panel {
    padding: 28px;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.info-item {
    padding: 13px 14px;
    border-radius: 16px;
    background: #f8fafc;
    color: #475569;
    line-height: 1.5;
}

.info-item strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
}

.player-wrap video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.1));
    z-index: 3;
}

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

.play-button {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(20, 184, 166, 0.96);
    font-size: 34px;
    cursor: pointer;
    box-shadow: 0 24px 55px rgba(20, 184, 166, 0.34);
}

.content-block {
    color: #334155;
    line-height: 1.92;
    font-size: 17px;
}

.content-block h2 {
    margin: 28px 0 10px;
    color: #0f172a;
    font-size: 26px;
    font-weight: 900;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 44px 0;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-weight: 900;
}

.footer-grid p,
.footer-grid a {
    color: #94a3b8;
    line-height: 1.8;
}

.footer-grid a:hover {
    color: #2dd4bf;
}

.footer-links {
    display: grid;
    gap: 8px;
}

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

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

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

    .hero-content {
        grid-template-columns: 1fr 300px;
    }
}

@media (max-width: 920px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav-links,
    .nav-search {
        display: none;
    }

    .site-header.is-open .nav-links,
    .site-header.is-open .nav-search {
        display: flex;
        width: 100%;
    }

    .site-header.is-open .nav-wrap {
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .site-header.is-open .nav-links {
        order: 3;
        flex-wrap: wrap;
    }

    .site-header.is-open .nav-search {
        order: 4;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-card {
        display: none;
    }

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

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

    .detail-cover {
        position: static;
        max-width: 420px;
    }

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

@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, 1280px);
    }

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

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

    .section-head,
    .search-box {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .rank-card {
        grid-template-columns: 48px 86px minmax(0, 1fr);
    }

    .rank-card .btn {
        grid-column: 2 / 4;
    }

    .rank-card img {
        width: 86px;
        height: 116px;
    }

    .info-list {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 430px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }
}
