:root {
    --color-slate-950: #020617;
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-700: #334155;
    --color-slate-600: #475569;
    --color-slate-500: #64748b;
    --color-slate-200: #e2e8f0;
    --color-slate-100: #f1f5f9;
    --color-orange: #f97316;
    --color-pink: #ec4899;
    --color-rose: #f43f5e;
    --shadow-card: 0 24px 60px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.10);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--color-slate-900);
    background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 38%, #fff1f2 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-orange), var(--color-pink), var(--color-rose));
    box-shadow: 0 18px 45px rgba(244, 63, 94, 0.28);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 12px 30px rgba(15, 23, 42, 0.16);
}

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

.nav-link {
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--color-orange);
    background: #ffffff;
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 16px;
}

.mobile-menu.is-open {
    display: grid;
    gap: 8px;
}

.mobile-menu .nav-link {
    display: block;
}

.main-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 20px 64px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    background: var(--color-slate-950);
}

.hero-slide {
    display: none;
    min-height: 620px;
    position: relative;
}

.hero-slide.is-active {
    display: block;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    filter: saturate(1.08) contrast(1.08);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 24%, rgba(249, 115, 22, 0.38), transparent 28%),
        radial-gradient(circle at 78% 18%, rgba(236, 72, 153, 0.32), transparent 28%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.74) 45%, rgba(15, 23, 42, 0.32) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    gap: 44px;
    align-items: center;
    max-width: 1180px;
    min-height: 620px;
    margin: 0 auto;
    padding: 80px 20px 72px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 800;
}

.hero-title {
    max-width: 760px;
    margin: 22px 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-desc {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.83);
    font-size: 18px;
    line-height: 1.85;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-orange), var(--color-pink));
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.28);
}

.button-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.button-light {
    color: var(--color-slate-900);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.button:hover {
    transform: translateY(-2px);
}

.hero-poster-card {
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.hero-poster-info {
    padding: 18px;
}

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

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

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

.section {
    margin-top: 46px;
}

.section-card {
    padding: 32px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

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

.section-heading h1,
.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 950;
    color: var(--color-slate-900);
}

.section-heading p,
.page-lead {
    margin: 10px 0 0;
    color: var(--color-slate-600);
    line-height: 1.75;
}

.gradient-title {
    background: linear-gradient(90deg, var(--color-orange), var(--color-pink), var(--color-rose));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-cover {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

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

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

.cover-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.70);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 850;
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    color: var(--color-slate-900);
}

.movie-meta,
.movie-tags,
.breadcrumbs,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.movie-meta {
    color: var(--color-slate-500);
    font-size: 13px;
}

.movie-card p {
    flex: 1;
    margin: 10px 0 16px;
    color: var(--color-slate-600);
    line-height: 1.65;
    font-size: 14px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #9f1239;
    background: #ffe4e6;
    font-size: 12px;
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 156px;
    padding: 20px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink), var(--color-rose));
    box-shadow: 0 18px 36px rgba(236, 72, 153, 0.22);
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -38px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.category-tile strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 950;
}

.category-tile span {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.7;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin: 22px 0 28px;
}

.search-input {
    min-height: 52px;
    width: 100%;
    padding: 0 18px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 16px;
    outline: none;
    color: var(--color-slate-900);
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.search-input:focus {
    border-color: rgba(236, 72, 153, 0.8);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.13);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 96px;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
    font-size: 20px;
    font-weight: 950;
}

.rank-title {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 17px;
    font-weight: 900;
}

.rank-subtitle {
    margin-top: 4px;
    color: var(--color-slate-500);
    font-size: 13px;
}

.rank-thumb {
    width: 96px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 16px;
}

.page-hero {
    overflow: hidden;
    padding: 46px 34px;
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.26), transparent 22%),
        linear-gradient(135deg, var(--color-slate-950), var(--color-slate-800) 48%, var(--color-rose));
    box-shadow: var(--shadow-card);
}

.page-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 820px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.85;
}

.breadcrumbs {
    margin: 0 0 18px;
    color: var(--color-slate-500);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--color-pink);
    font-weight: 800;
}

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

.player-card,
.detail-card,
.side-card {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

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

.player-box video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(2, 6, 23, 0.38);
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.play-button {
    position: relative;
    z-index: 2;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
    cursor: pointer;
    font-size: 36px;
    box-shadow: 0 24px 46px rgba(236, 72, 153, 0.38);
}

.detail-card {
    padding: 28px;
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-meta {
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--color-slate-700);
    background: var(--color-slate-100);
    font-size: 13px;
    font-weight: 800;
}

.detail-section {
    margin-top: 24px;
}

.detail-section h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 950;
}

.detail-section p {
    margin: 0;
    color: var(--color-slate-700);
    line-height: 1.9;
}

.side-card {
    padding: 20px;
}

.side-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 950;
}

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

.side-link {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.side-link:hover {
    transform: translateY(-2px);
    background: #fff7ed;
}

.side-link img {
    width: 74px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
}

.side-link strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 15px;
    font-weight: 900;
}

.side-link span {
    display: block;
    margin-top: 5px;
    color: var(--color-slate-500);
    font-size: 12px;
}

.footer {
    margin-top: 48px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-slate-950), var(--color-slate-800));
}

.footer-shell {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 20px;
}

.footer h2,
.footer h3 {
    margin: 0 0 12px;
    font-weight: 950;
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

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

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px 28px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
}

.hidden-by-filter {
    display: none !important;
}

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

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

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

    .hero-poster-card {
        max-width: 420px;
    }

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

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

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

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

@media (max-width: 640px) {
    .logo {
        font-size: 20px;
    }

    .main-shell {
        padding: 26px 14px 48px;
    }

    .hero,
    .hero-slide,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding: 60px 16px 76px;
    }

    .hero-title {
        font-size: 40px;
    }

    .section-card,
    .detail-card,
    .page-hero {
        padding: 22px;
        border-radius: 24px;
    }

    .section-heading {
        display: block;
    }

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

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

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

    .rank-thumb {
        display: none;
    }

    .play-button {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }
}
