:root {
    --bg: #f8fafc;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --cyan: #67e8f9;
    --blue: #2563eb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(45, 212, 191, 0.18), transparent 34rem),
        linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #ecfeff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.nav-wrap {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    box-shadow: 0 12px 24px rgba(13, 148, 136, 0.28);
    font-size: 15px;
    padding-left: 2px;
}

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

.main-nav > a,
.nav-drop > a {
    color: #334155;
    font-weight: 700;
    transition: color 0.2s ease;
}

.main-nav > a:hover,
.nav-drop > a:hover {
    color: var(--teal-dark);
}

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

.drop-menu {
    position: absolute;
    top: 70px;
    left: -18px;
    width: 220px;
    padding: 10px;
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.nav-drop:hover .drop-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.drop-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #475569;
    font-weight: 700;
}

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

.top-search {
    display: flex;
    align-items: center;
    width: 300px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 4px;
}

.top-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 12px;
    color: #0f172a;
}

.top-search button,
.hero-search button,
.primary-btn {
    border: 0;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    padding: 10px 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(13, 148, 136, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.hero-search button:hover,
.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(13, 148, 136, 0.32);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: #f1f5f9;
    color: #0f172a;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-weight: 900;
}

.mobile-panel {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 18px;
    background: white;
    box-shadow: var(--soft-shadow);
}

.mobile-panel.is-open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.mobile-panel a {
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    font-weight: 800;
    color: #334155;
}

main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-section {
    position: relative;
    margin: 28px 0 42px;
    min-height: 620px;
    border-radius: 34px;
    overflow: hidden;
    color: white;
    background: #0f172a;
    box-shadow: 0 34px 70px rgba(15, 23, 42, 0.24);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.42), transparent 28rem),
        radial-gradient(circle at 78% 26%, rgba(59, 130, 246, 0.32), transparent 28rem),
        linear-gradient(135deg, #0f172a 0%, #164e63 56%, #0f766e 100%);
}

.hero-section:after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0.68));
}

.hero-carousel {
    position: relative;
    z-index: 2;
    min-height: 540px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 38px;
    align-items: center;
    padding: 72px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(13, 148, 136, 0.12);
    color: #0f766e;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.detail-info .eyebrow {
    color: #cffafe;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 18px 0 18px;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero-copy p,
.page-hero p {
    max-width: 690px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
    line-height: 1.85;
}

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

.hero-tags span {
    background: rgba(255, 255, 255, 0.14);
    color: white;
    border-color: rgba(255, 255, 255, 0.14);
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    padding: 10px 18px;
    font-weight: 800;
    transition: all 0.2s ease;
}

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

.hero-art {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    min-height: 430px;
    box-shadow: 0 30px 68px rgba(0, 0, 0, 0.35);
    transform: rotate(1deg);
    background: rgba(255, 255, 255, 0.10);
}

.hero-art img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-art:hover img {
    transform: scale(1.05);
}

.hero-art span {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.18));
}

.hero-dots {
    position: absolute;
    z-index: 3;
    left: 72px;
    bottom: 94px;
    display: flex;
    gap: 9px;
}

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

.hero-dot.is-active {
    background: white;
}

.hero-search {
    position: absolute;
    z-index: 4;
    left: 72px;
    right: 72px;
    bottom: 26px;
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
}

.hero-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 14px 16px;
}

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

.content-section {
    margin: 44px 0;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 3.4vw, 42px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

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

.section-link,
.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--teal-dark);
    font-weight: 900;
}

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

.category-card,
.overview-card,
.movie-card,
.rank-item,
.text-panel,
.player-card,
.detail-info {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--soft-shadow);
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.rank-item:hover,
.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.category-card:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.82));
}

.category-card span,
.category-card p {
    position: relative;
    z-index: 2;
}

.category-card span {
    font-size: 22px;
    font-weight: 950;
}

.category-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 34%, rgba(15, 23, 42, 0.78));
}

.card-badge,
.card-year {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 10px;
}

.card-badge {
    left: 12px;
    top: 12px;
    background: rgba(13, 148, 136, 0.90);
}

.card-year {
    right: 12px;
    bottom: 12px;
    background: rgba(15, 23, 42, 0.72);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.32;
    font-weight: 950;
}

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

.card-body p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

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

.tag-row span {
    display: inline-flex;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #f0fdfa;
    color: #0f766e;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 104px 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border-radius: 22px;
    padding: 12px 16px 12px 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-cover {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-number {
    font-size: 30px;
    line-height: 1;
    font-weight: 950;
    color: #0f766e;
}

.rank-copy h3 {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 950;
}

.rank-copy p {
    margin: 0 0 6px;
    color: var(--muted);
}

.meta-line {
    color: #0f766e;
    font-size: 13px;
    font-weight: 800;
}

.page-hero {
    position: relative;
    margin: 28px 0 40px;
    border-radius: 34px;
    padding: 60px;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 16% 20%, rgba(45, 212, 191, 0.36), transparent 28rem),
        linear-gradient(135deg, #0f172a, #164e63 52%, #0f766e);
    box-shadow: 0 34px 70px rgba(15, 23, 42, 0.20);
}

.simple-hero h1,
.category-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 950;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.category-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    align-items: center;
    gap: 30px;
}

.side-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.28);
    background: rgba(255, 255, 255, 0.1);
}

.side-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.overview-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    border-radius: 24px;
    padding: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overview-cover {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #e2e8f0;
}

.overview-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overview-card h2 {
    margin: 2px 0 8px;
    font-size: 24px;
    font-weight: 950;
}

.overview-card p {
    color: var(--muted);
    margin: 0 0 12px;
}

.overview-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.overview-links a {
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px 180px;
    gap: 12px;
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    box-shadow: var(--soft-shadow);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    color: #0f172a;
    padding: 12px 14px;
    outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.search-status {
    margin: 12px 0 18px;
    color: var(--muted);
    font-weight: 800;
}

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

.detail-hero {
    margin: 28px 0 34px;
}

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

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

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 430px;
    gap: 22px;
    align-items: stretch;
}

.player-card,
.detail-info,
.text-panel {
    border-radius: 28px;
    overflow: hidden;
}

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

.watch-video {
    width: 100%;
    height: 100%;
    background: #020617;
}

.watch-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    border: 0;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.78));
}

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

.play-ring {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--teal-dark);
    font-size: 34px;
    padding-left: 5px;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.watch-cover strong {
    font-size: 20px;
}

.detail-info {
    padding: 16px;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
}

.detail-info img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border-radius: 22px;
    object-fit: cover;
    background: #e2e8f0;
}

.detail-info .eyebrow {
    color: var(--teal-dark);
    background: #ecfeff;
    border-color: #ccfbf1;
}

.detail-info h1 {
    color: var(--ink);
    font-size: clamp(30px, 4vw, 48px);
}

.detail-info p {
    color: var(--muted);
    margin: 0 0 16px;
}

.meta-stack {
    display: grid;
    gap: 8px;
    margin: 14px 0;
    color: #334155;
    font-weight: 800;
}

.meta-stack a {
    color: var(--teal-dark);
}

.detail-tags {
    margin-top: 14px;
}

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

.text-panel {
    padding: 26px;
}

.text-panel h2 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 950;
}

.text-panel p {
    margin: 0;
    color: #334155;
    line-height: 1.95;
}

.compact-card .card-body p {
    min-height: 0;
}

.site-footer {
    width: min(1240px, calc(100% - 32px));
    margin: 56px auto 0;
    padding: 34px 0 40px;
    color: #475569;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-grid strong {
    color: #0f172a;
    font-size: 24px;
    font-weight: 950;
}

.footer-grid p {
    max-width: 520px;
    margin: 8px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-weight: 800;
}

.footer-links a:hover {
    color: var(--teal-dark);
}

.copyright {
    margin: 18px 0 0;
    font-size: 13px;
}

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

    .hero-slide {
        grid-template-columns: 1fr 320px;
        padding: 48px;
    }

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

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

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

    .detail-info {
        grid-template-columns: 170px minmax(0, 1fr);
    }
}

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .hero-carousel {
        min-height: 670px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 34px 24px 120px;
    }

    .hero-art {
        min-height: 260px;
        order: -1;
    }

    .hero-art img {
        min-height: 260px;
    }

    .hero-dots {
        left: 24px;
        bottom: 100px;
    }

    .hero-search {
        left: 20px;
        right: 20px;
        bottom: 20px;
        flex-direction: column;
    }

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

    .category-hero {
        grid-template-columns: 1fr;
        padding: 34px;
    }

    .side-poster {
        max-width: 260px;
    }

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

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

    .rank-item .text-link {
        grid-column: 3;
    }
}

@media (max-width: 560px) {
    main,
    .nav-wrap,
    .mobile-panel,
    .site-footer {
        width: min(100% - 22px, 1240px);
    }

    .brand {
        font-size: 19px;
    }

    .hero-section,
    .page-hero {
        border-radius: 24px;
    }

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

    .category-grid,
    .movie-grid,
    .overview-grid,
    .detail-content,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .overview-card,
    .detail-info {
        grid-template-columns: 1fr;
    }

    .detail-info img {
        max-height: 360px;
    }

    .rank-item {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .rank-number {
        position: absolute;
        margin-left: 12px;
        margin-top: -84px;
        color: white;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    }

    .rank-copy,
    .rank-item .text-link {
        grid-column: 2;
    }

    .footer-grid {
        flex-direction: column;
    }
}
