* {
    box-sizing: border-box;
}

:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --orange: #f97316;
    --pink: #ec4899;
    --cyan: #06b6d4;
    --text: #0f172a;
    --muted: #64748b;
    --card: #ffffff;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #fff7ed 0%, #f8fafc 42%, #eef2ff 100%);
    min-height: 100vh;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
}

.nav-wrap {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.brand span:last-child,
.footer-brand {
    background: linear-gradient(90deg, #fb923c, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.36);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 15px;
    flex: 1;
}

.desktop-nav a,
.mobile-panel a {
    color: rgba(255, 255, 255, 0.86);
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: #fb923c;
    transform: translateY(-1px);
}

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

.nav-search input,
.mobile-search input,
.search-box input {
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.96);
    color: #fff;
    padding: 12px 18px;
    min-width: 220px;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.nav-search input::placeholder,
.mobile-search input::placeholder,
.search-box input::placeholder {
    color: rgba(226, 232, 240, 0.68);
}

.nav-search button,
.mobile-search button,
.search-box button,
.primary-button,
.secondary-button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.search-box button:hover,
.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 36px rgba(236, 72, 153, 0.32);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: rgba(51, 65, 85, 0.9);
    font-size: 22px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    padding: 16px 24px 22px;
    background: #111827;
}

.mobile-panel.open {
    display: grid;
    gap: 14px;
}

.mobile-search {
    display: flex;
    gap: 8px;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
}

.hero {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    color: #fff;
    background: #020617;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    transform: scale(1.02);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.78) 46%, rgba(2, 6, 23, 0.18) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 46%);
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

.hero-inner {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

.hero-copy {
    width: min(720px, 100%);
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(249, 115, 22, 0.28);
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 26px;
    color: rgba(226, 232, 240, 0.9);
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.65;
}

.hero-meta,
.detail-meta,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.tag,
.hero-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

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

.secondary-button {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

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

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

.hero-dot.active {
    width: 62px;
    background: #f97316;
}

.section {
    padding: 70px 0;
}

.section.dark {
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.section.warm {
    background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.section.cool {
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
}

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

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.dark .section-desc {
    color: rgba(226, 232, 240, 0.72);
}

.more-link {
    color: #f97316;
    font-weight: 900;
    white-space: nowrap;
}

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.11);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: radial-gradient(circle at 25% 20%, rgba(249, 115, 22, 0.34), transparent 30%), linear-gradient(135deg, #0f172a, #334155);
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.5), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-frame::after {
    opacity: 1;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--orange), var(--pink));
}

.play-mark {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(249, 115, 22, 0.94);
    transform: translate(-50%, -50%) scale(0.75);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.movie-card:hover .play-mark {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: var(--orange);
}

.card-body p {
    margin: 0 0 16px;
    min-height: 48px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #64748b;
    font-size: 13px;
}

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

.category-card {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ec4899);
    box-shadow: 0 20px 42px rgba(236, 72, 153, 0.22);
    overflow: hidden;
    position: relative;
}

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

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -50px;
    bottom: -60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.category-card h2,
.category-card h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.65;
}

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

.rank-item {
    display: grid;
    grid-template-columns: auto 150px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    color: inherit;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.14);
}

.rank-item img {
    width: 150px;
    height: 84px;
    border-radius: 14px;
    object-fit: cover;
    background: #1e293b;
}

.rank-no {
    width: 54px;
    text-align: center;
    font-size: 38px;
    font-weight: 1000;
    color: #fb923c;
}

.rank-item h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-item p {
    margin: 0 0 8px;
    color: rgba(226, 232, 240, 0.78);
    line-height: 1.55;
}

.rank-item span:last-child {
    color: rgba(226, 232, 240, 0.65);
    font-size: 13px;
}

.page-hero {
    padding: 64px 0;
    color: #fff;
    background: radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.38), transparent 28%), linear-gradient(135deg, #0f172a, #1e293b 60%, #111827);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 6vw, 64px);
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(226, 232, 240, 0.82);
    font-size: 18px;
    line-height: 1.75;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.breadcrumb a {
    color: #fdba74;
}

.list-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.list-pager a,
.list-pager span {
    display: inline-flex;
    min-width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 800;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.list-pager span {
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--pink));
}

.detail-hero {
    padding: 42px 0 72px;
    color: #fff;
    background: radial-gradient(circle at 85% 15%, rgba(236, 72, 153, 0.35), transparent 32%), linear-gradient(135deg, #020617, #111827 54%, #1e293b);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 32px;
    align-items: start;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
    cursor: pointer;
}

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

.player-cover button {
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    font-size: 32px;
    box-shadow: 0 18px 48px rgba(236, 72, 153, 0.34);
}

.detail-side {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
}

.detail-side h1 {
    margin: 0 0 18px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-side p {
    margin: 0 0 22px;
    color: rgba(226, 232, 240, 0.82);
    line-height: 1.75;
}

.content-card {
    padding: 30px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.content-card p {
    margin: 0 0 18px;
    color: #475569;
    line-height: 1.9;
    font-size: 16px;
}

.search-panel {
    margin-top: -34px;
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
}

.search-box {
    display: flex;
    gap: 12px;
}

.search-box input {
    flex: 1;
    color: #0f172a;
    background: #f1f5f9;
}

.empty-state {
    padding: 50px;
    text-align: center;
    color: #64748b;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.footer-grid {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 52px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
}

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

.site-footer p {
    color: #94a3b8;
    line-height: 1.75;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 10px 0;
    color: #cbd5e1;
}

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

.copyright {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 22px 0 32px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: #64748b;
    font-size: 14px;
}

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

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

    .nav-wrap {
        gap: 14px;
    }

    .nav-search {
        margin-left: auto;
    }

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

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

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

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

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

    .nav-wrap,
    .container,
    .hero-inner,
    .footer-grid,
    .copyright {
        width: min(100% - 28px, 1280px);
        padding-left: 0;
        padding-right: 0;
    }

    .hero {
        min-height: 640px;
    }

    .hero-actions,
    .search-box,
    .mobile-search {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button,
    .search-box button,
    .mobile-search button {
        width: 100%;
        text-align: center;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

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

    .rank-item {
        grid-template-columns: auto 96px 1fr;
        gap: 12px;
    }

    .rank-item img {
        width: 96px;
        height: 64px;
    }

    .rank-no {
        width: 34px;
        font-size: 26px;
    }

    .detail-side,
    .content-card,
    .search-panel {
        padding: 22px;
        border-radius: 22px;
    }
}
