body {
    min-height: 100vh;
    background: #020617;
    color: #e5e7eb;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -3;
    content: "";
    background:
        radial-gradient(circle at 10% 10%, rgba(59, 130, 246, 0.28), transparent 28rem),
        radial-gradient(circle at 90% 0%, rgba(244, 63, 94, 0.25), transparent 30rem),
        linear-gradient(135deg, #020617 0%, #0f172a 52%, #111827 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(20px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.logo-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #f43f5e, #f59e0b);
    box-shadow: 0 14px 40px rgba(244, 63, 94, 0.32);
}

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

.nav-link,
.mobile-nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 15px;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #ffffff;
    background: rgba(148, 163, 184, 0.16);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(148, 163, 184, 0.12);
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

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

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

.hero-section {
    position: relative;
    min-height: 640px;
    margin: 28px 0 36px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 34px;
    background: #020617;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

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

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

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

.hero-backdrop img {
    filter: saturate(1.1) brightness(0.55);
    transform: scale(1.04);
}

.hero-backdrop span,
.page-hero-shade,
.category-card-shade,
.overview-cover span {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.68) 45%, rgba(2, 6, 23, 0.18)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 42px;
    align-items: center;
    min-height: 640px;
    padding: 60px;
}

.hero-copy {
    max-width: 680px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-intro h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(40px, 7vw, 76px);
    font-weight: 950;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-intro p {
    max-width: 650px;
    margin-top: 22px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

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

.primary-button,
.secondary-button,
.ghost-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #f43f5e, #f59e0b);
    box-shadow: 0 18px 42px rgba(244, 63, 94, 0.28);
}

.secondary-button,
.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.64);
}

.text-button {
    min-height: auto;
    padding: 0;
    color: #fbbf24;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.text-button:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.hero-dots {
    position: absolute;
    right: 34px;
    bottom: 28px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 34px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    transition: 0.2s ease;
}

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

.home-search-card,
.filter-panel,
.search-panel {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.home-search-card h2,
.section-heading h2,
.story-card h2,
.rank-info h2,
.overview-content h2 {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.home-search-form,
.global-search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

input,
select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: 0 16px;
    color: #ffffff;
    outline: none;
    background: rgba(2, 6, 23, 0.72);
}

select option {
    background: #020617;
}

.home-search-form button,
.global-search-form button {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.section-block {
    margin: 36px 0;
}

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

.section-heading > a {
    color: #fbbf24;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 26px;
    background: #0f172a;
}

.category-card img {
    transition: transform 0.35s ease;
}

.category-card:hover img,
.movie-card:hover img,
.overview-cover:hover img,
.rank-thumb:hover img {
    transform: scale(1.06);
}

.category-card strong,
.category-card em {
    position: absolute;
    left: 20px;
    z-index: 2;
    right: 20px;
}

.category-card strong {
    bottom: 58px;
    color: #ffffff;
    font-size: 24px;
    font-style: normal;
    font-weight: 900;
}

.category-card em {
    bottom: 22px;
    color: #cbd5e1;
    font-style: normal;
    line-height: 1.5;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.38);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

.poster-link img {
    transition: transform 0.35s ease;
}

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    background: rgba(244, 63, 94, 0.9);
}

.rank-badge {
    left: 12px;
    top: 12px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
}

.movie-card-body {
    padding: 14px;
}

.movie-meta-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #94a3b8;
    font-size: 12px;
}

.movie-meta-row span,
.detail-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
}

.movie-card h3 {
    margin: 10px 0 8px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

.movie-card p,
.story-card p,
.overview-content p,
.rank-info p {
    color: #cbd5e1;
    line-height: 1.75;
}

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-list span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #fde68a;
    font-size: 12px;
    background: rgba(251, 191, 36, 0.12);
}

.split-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: start;
}

.compact-section,
.ranking-section {
    margin-top: 0;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 52px 86px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.76);
}

.full-rank-list .rank-row {
    grid-template-columns: 58px 110px 1fr;
}

.rank-index {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 950;
    background: rgba(148, 163, 184, 0.16);
}

.rank-thumb {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: #111827;
}

.rank-thumb img {
    transition: transform 0.35s ease;
}

.rank-info h2 {
    margin-bottom: 6px;
    font-size: 18px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    margin: 28px 0;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.72);
}

.page-hero {
    min-height: 360px;
    display: grid;
    align-items: center;
    padding: 46px;
}

.page-hero > img {
    position: absolute;
    inset: 0;
    opacity: 0.55;
}

.page-hero > div {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.compact-hero {
    min-height: 270px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.78);
}

.overview-cover {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: 22px;
}

.overview-cover span {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent);
}

.overview-content {
    padding: 8px 8px 8px 0;
}

.overview-samples {
    color: #f8fafc;
    font-size: 14px;
}

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

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-actions select {
    width: 150px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 12px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a {
    color: #fbbf24;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 34px;
    padding: 24px;
}

.detail-cover {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 26px;
    background: #111827;
}

.detail-intro {
    align-self: center;
}

.detail-meta {
    margin-top: 20px;
}

.detail-tags {
    margin-bottom: 20px;
}

.player-section {
    margin: 36px 0;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.3), rgba(2, 6, 23, 0.78));
}

.play-overlay.hidden {
    display: none;
}

.play-icon {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f43f5e, #f59e0b);
    box-shadow: 0 18px 50px rgba(244, 63, 94, 0.36);
}

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

.story-card {
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.78);
}

.story-card h2 {
    margin-bottom: 12px;
}

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

.search-results:empty::before {
    content: "没有找到匹配影片";
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.78);
}

.site-footer {
    margin-top: 56px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.8);
}

.footer-inner {
    display: grid;
    gap: 14px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    color: #94a3b8;
}

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

.footer-links a {
    color: #cbd5e1;
}

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

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

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

    .split-section,
    .detail-content {
        grid-template-columns: 1fr;
    }
}

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

    .menu-toggle {
        display: flex;
    }

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

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

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

    .home-search-card,
    .filter-panel,
    .detail-hero,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

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

    .detail-cover {
        max-width: 320px;
    }
}

@media (max-width: 560px) {
    main,
    .header-inner,
    .mobile-nav,
    .footer-inner {
        width: min(100% - 20px, 1180px);
    }

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

    .hero-content {
        min-height: 700px;
        padding: 24px;
    }

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

    .page-hero {
        padding: 28px;
        border-radius: 24px;
    }

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

    .rank-row,
    .full-rank-list .rank-row {
        grid-template-columns: 44px 72px 1fr;
        gap: 10px;
    }

    .rank-info p {
        display: none;
    }

    .home-search-form,
    .global-search-form {
        grid-template-columns: 1fr;
    }
}
