:root {
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --cyan: #0891b2;
    --slate: #0f172a;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: #e2e8f0;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #0f172a;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 45%, #ecfeff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 12px 22px rgba(13, 148, 136, 0.28);
}

.brand-text {
    display: grid;
}

.brand-text strong,
.footer-brand {
    font-size: 20px;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
}

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

.nav-link,
.drawer-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.drawer-link:hover,
.drawer-link.active {
    color: var(--teal-dark);
    background: #ccfbf1;
}

.header-search,
.drawer-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.drawer-search input,
.filter-search input {
    width: 220px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
    transition: 0.2s ease;
}

.header-search input:focus,
.drawer-search input:focus,
.filter-search input:focus,
.filter-select:focus {
    border-color: rgba(13, 148, 136, 0.65);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.header-search button,
.drawer-search button {
    height: 42px;
    border: 0;
    border-radius: 14px;
    padding: 0 16px;
    color: #ffffff;
    background: var(--teal);
    font-weight: 800;
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #0f172a;
    border-radius: 999px;
}

.mobile-drawer {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 16px;
}

.hero {
    max-width: 1280px;
    margin: 28px auto 0;
    padding: 0 24px;
}

.hero-stage {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--shadow);
    background: var(--slate);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 420px;
    gap: 36px;
    align-items: center;
    padding: 64px;
    color: #ffffff;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-backdrop,
.detail-backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: saturate(1.05);
}

.hero-backdrop::after,
.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.28), transparent 34%), linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.62));
}

.hero-content,
.hero-poster,
.detail-inner {
    position: relative;
    z-index: 2;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: #14b8a6;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-summary,
.page-hero p,
.detail-one-line {
    max-width: 760px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 2vw, 21px);
}

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

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

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #ccfbf1;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 900;
    transition: 0.22s ease;
}

.primary-button {
    color: var(--teal-dark);
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.22);
}

.hero-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4.2;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.hero-poster img,
.movie-cover img,
.detail-poster img,
.category-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.38);
    font-size: 32px;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.hero-dots {
    position: absolute;
    left: 64px;
    bottom: 34px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: 0.2s ease;
}

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

.hero-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
}

.hero-strip span {
    color: #0f172a;
    font-weight: 900;
}

.hero-strip a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--teal-dark);
    background: #ccfbf1;
    font-size: 13px;
    font-weight: 800;
}

.content-section,
.page-hero,
.detail-inner {
    max-width: 1280px;
    margin: 34px auto 0;
    padding: 0 24px;
}

.content-section {
    margin-top: 54px;
}

.intro-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.intro-panel .primary-button,
.page-hero .primary-button,
.detail-copy .primary-button {
    color: #ffffff;
    background: var(--teal);
}

.intro-panel h2,
.section-head h2,
.detail-article h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.intro-panel p {
    max-width: 760px;
    margin: 12px 0 0;
    color: #475569;
}

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

.section-more {
    min-height: 40px;
    color: var(--teal-dark);
    background: #ccfbf1;
}

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

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

.movie-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    transition: 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.14);
}

.movie-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #e2e8f0, #ccfbf1);
}

.movie-cover img {
    transition: transform 0.45s ease;
}

.movie-card:hover .movie-cover img {
    transform: scale(1.08);
}

.movie-type,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.movie-type {
    left: 12px;
    padding: 5px 10px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
}

.rank-badge {
    right: 12px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #0f172a;
    background: #fbbf24;
    box-shadow: 0 10px 18px rgba(251, 191, 36, 0.32);
}

.movie-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.movie-title {
    display: -webkit-box;
    min-height: 46px;
    overflow: hidden;
    color: #0f172a;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: var(--teal-dark);
}

.movie-desc {
    display: -webkit-box;
    min-height: 44px;
    margin: 10px 0 0;
    overflow: hidden;
    color: #64748b;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.movie-meta span {
    display: inline-flex;
    align-items: center;
}

.movie-meta span + span::before {
    content: "•";
    margin-right: 8px;
    color: #94a3b8;
}

.tag-list {
    margin-top: 12px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    padding: 58px;
    color: #ffffff;
    border-radius: 32px;
    background: linear-gradient(135deg, #0f766e 0%, #0891b2 100%);
    box-shadow: var(--shadow);
}

.slim-hero {
    min-height: 260px;
}

.rank-hero {
    background: linear-gradient(135deg, #0f172a 0%, #0f766e 100%);
}

.search-hero {
    background: linear-gradient(135deg, #164e63 0%, #0d9488 100%);
}

.color-rose {
    background: linear-gradient(135deg, #be123c, #fb7185);
}

.color-slate {
    background: linear-gradient(135deg, #0f172a, #475569);
}

.color-amber {
    background: linear-gradient(135deg, #b45309, #f59e0b);
}

.color-orange {
    background: linear-gradient(135deg, #c2410c, #fb923c);
}

.color-indigo {
    background: linear-gradient(135deg, #4338ca, #818cf8);
}

.color-emerald {
    background: linear-gradient(135deg, #047857, #34d399);
}

.color-violet {
    background: linear-gradient(135deg, #6d28d9, #a78bfa);
}

.color-blue {
    background: linear-gradient(135deg, #1d4ed8, #38bdf8);
}

.color-cyan {
    background: linear-gradient(135deg, #0891b2, #22d3ee);
}

.color-teal {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 22px;
    padding: 24px;
    color: #ffffff;
    border-radius: 30px;
    box-shadow: var(--shadow);
    transition: 0.22s ease;
}

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

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    transform: rotate(-3deg);
}

.category-thumbs img {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.26);
}

.category-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-copy h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.category-copy p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.86);
}

.category-copy span {
    width: max-content;
    margin-top: 20px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 900;
}

.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.filter-search {
    flex: 1;
}

.filter-search input {
    width: 100%;
}

.filter-selects {
    display: flex;
    gap: 12px;
}

.filter-select {
    height: 42px;
    min-width: 140px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 12px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
}

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

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

.detail-inner {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding-top: 42px;
    padding-bottom: 58px;
}

.back-link,
.breadcrumb a {
    color: #ccfbf1;
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

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

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4.2;
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.46);
}

.detail-copy h1 {
    max-width: 900px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(13, 148, 136, 0.26), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    color: var(--teal-dark);
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
    font-size: 32px;
}

.play-overlay strong {
    font-size: 20px;
    letter-spacing: 0.08em;
}

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

.detail-text {
    margin-top: 36px;
}

.detail-article {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-article h2 + p {
    margin-top: 12px;
}

.detail-article p {
    color: #334155;
    font-size: 17px;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0 0;
}

.info-list div {
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
}

.info-list dt {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.info-list dd {
    margin: 6px 0 0;
    color: #0f172a;
    font-weight: 900;
}

.site-footer {
    margin-top: 72px;
    padding: 48px 24px 28px;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 36px;
}

.site-footer p {
    max-width: 520px;
    color: #94a3b8;
}

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

.site-footer a:not(.footer-brand) {
    display: block;
    margin-top: 8px;
    color: #94a3b8;
}

.site-footer a:hover {
    color: #ffffff;
}

.copyright {
    max-width: 1280px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    text-align: center;
}

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

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

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

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

    .mobile-drawer.open {
        display: grid;
        gap: 10px;
    }

    .drawer-search input {
        flex: 1;
        width: auto;
    }

    .hero-stage {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 42px 34px 92px;
    }

    .hero-poster {
        max-width: 270px;
        margin: 0 auto;
    }

    .hero-dots {
        left: 34px;
    }

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

    .category-grid,
    .category-card,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 680px) {
    .header-inner,
    .hero,
    .content-section,
    .page-hero,
    .detail-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-text em {
        display: none;
    }

    .hero-stage {
        min-height: 700px;
        border-radius: 24px;
    }

    .hero-slide {
        padding: 34px 22px 86px;
    }

    .hero h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 38px;
    }

    .hero-control {
        display: none;
    }

    .hero-strip,
    .intro-panel,
    .section-head,
    .filter-panel,
    .filter-selects {
        align-items: stretch;
        flex-direction: column;
    }

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

    .movie-info {
        padding: 12px;
    }

    .movie-title {
        font-size: 15px;
    }

    .movie-desc {
        font-size: 13px;
    }

    .page-hero {
        padding-top: 42px;
        padding-bottom: 42px;
        border-radius: 24px;
    }

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

    .detail-grid {
        gap: 28px;
        margin-top: 34px;
    }

    .video-shell {
        border-radius: 20px;
    }

    .detail-article {
        padding: 22px;
    }

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

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

    .hero-poster {
        display: none;
    }

    .hero-stage {
        min-height: 560px;
    }
}
