:root {
    --red: #ef4444;
    --orange: #f97316;
    --pink: #db2777;
    --green: #16a34a;
    --blue: #2563eb;
    --purple: #7c3aed;
    --yellow: #facc15;
    --text: #111827;
    --muted: #6b7280;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --card: #ffffff;
    --dark: #0f172a;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 32%, #f8fafc 100%);
}

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: 50;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 14px 28px rgba(239, 68, 68, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-3deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(90deg, #dc2626, #f97316);
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-text small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

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

.nav-link {
    padding: 10px 12px;
    border-radius: 999px;
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--green);
    background: #ecfdf5;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 5px;
}

.header-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 8px 12px;
    background: transparent;
}

.header-search button,
.primary-btn {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 760;
    box-shadow: 0 14px 30px rgba(239, 68, 68, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(239, 68, 68, 0.32);
}

.mobile-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    color: #374151;
    background: #f3f4f6;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 24px 20px;
    border-top: 1px solid rgba(229, 231, 235, 0.7);
}

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

.mobile-panel a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #374151;
    background: #f9fafb;
}

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

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: linear-gradient(135deg, #ef4444 0%, #f97316 48%, #db2777 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 28%), rgba(0, 0, 0, 0.26);
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(44px);
    opacity: 0.65;
    animation: glowPulse 5s ease-in-out infinite;
}

.orb-one {
    width: 300px;
    height: 300px;
    left: 8%;
    top: 12%;
    background: rgba(250, 204, 21, 0.34);
}

.orb-two {
    width: 380px;
    height: 380px;
    right: 6%;
    bottom: 10%;
    background: rgba(255, 255, 255, 0.22);
    animation-delay: 1s;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    min-height: 620px;
    margin: 0 auto;
    padding: 62px 24px;
}

.hero-slide {
    position: absolute;
    inset: 62px 24px 82px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(290px, 0.72fr);
    gap: 44px;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

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

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

.hero-badge,
.sub-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 16px;
    color: #fff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    font-weight: 700;
    margin-bottom: 22px;
}

.hero h1 {
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(38px, 6vw, 78px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero h1 span {
    display: block;
    margin-top: 12px;
    font-size: clamp(28px, 4vw, 54px);
    background: linear-gradient(90deg, #fef3c7, #fde68a, #fed7aa);
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
    line-height: 1.9;
    max-width: 720px;
    margin: 0 0 24px;
}

.hero-tags,
.card-tags,
.sub-actions,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #b45309;
    background: #fffbeb;
}

.hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.hero-actions {
    margin-top: 30px;
}

.hero-actions a,
.sub-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ghost-btn {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 760;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 28px 76px rgba(0, 0, 0, 0.32);
    transform: rotate(1.5deg);
    background: rgba(255, 255, 255, 0.18);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 4 / 5.4;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    left: 24px;
    bottom: 38px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dot {
    width: 38px;
    height: 38px;
    border: 0;
    color: #fff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.hero-dot.is-active {
    color: var(--red);
    background: #fff;
}

.content-section,
.section-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.band-section {
    margin: 12px 0;
}

.orange-band {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.green-band {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
}

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

.section-more {
    color: var(--red);
    font-weight: 800;
}

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

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

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

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

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

.movie-card {
    overflow: hidden;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.76);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.poster img {
    width: 100%;
    aspect-ratio: 3 / 4.1;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster img,
.category-card:hover img,
.category-large-card:hover img,
.rank-item:hover img {
    transform: scale(1.06);
}

.poster-year {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 16px;
}

.card-body h2,
.rank-content h2 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h2 a:hover,
.rank-content h2 a:hover {
    color: var(--green);
}

.card-body p,
.rank-content p {
    color: var(--muted);
    line-height: 1.75;
    margin: 0 0 14px;
    font-size: 14px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #6b7280;
    font-size: 13px;
}

.card-wide {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
}

.card-wide .poster img {
    height: 100%;
    aspect-ratio: auto;
}

.card-compact .card-body p {
    display: none;
}

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

.category-card,
.category-large-card {
    position: relative;
    overflow: hidden;
    display: block;
    min-height: 210px;
    border-radius: 24px;
    color: #fff;
    background: #111827;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
}

.category-card::after,
.category-large-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.84));
}

.category-card img,
.category-large-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
    transition: transform 0.35s ease;
}

.category-card span,
.category-card p,
.category-large-card div {
    position: absolute;
    z-index: 1;
    left: 18px;
    right: 18px;
}

.category-card span {
    bottom: 72px;
    font-weight: 900;
    font-size: 20px;
}

.category-card p {
    bottom: 18px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.55;
}

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

.category-large-card {
    min-height: 280px;
}

.category-large-card div {
    bottom: 26px;
}

.category-large-card span {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 12px;
    font-weight: 700;
}

.category-large-card h2 {
    margin: 0 0 10px;
    font-size: 30px;
}

.category-large-card p {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.75;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 96px 56px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
}

.rank-poster {
    overflow: hidden;
    border-radius: 16px;
    background: #fee2e2;
}

.rank-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rank-number {
    font-size: 28px;
    font-weight: 900;
    color: var(--red);
}

.full-rank-list {
    max-width: 980px;
    margin: 0 auto;
}

.sub-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 24px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f97316, #db2777);
}

.sub-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 14% 20%, rgba(255, 255, 255, 0.24), transparent 26%), rgba(0, 0, 0, 0.24);
}

.sub-hero > div {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
}

.sub-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.1;
}

.sub-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.8;
}

.sub-actions {
    margin-top: 28px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    padding: 16px;
    margin-bottom: 26px;
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.search-filter {
    grid-template-columns: 1fr 180px 180px 180px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    outline: 0;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.13);
}

.empty-state {
    display: none;
    text-align: center;
    color: var(--muted);
    padding: 40px 0;
}

.empty-state.is-visible {
    display: block;
}

.detail-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--green);
}

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

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.2);
}

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

.video-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgba(239, 68, 68, 0.22), rgba(2, 6, 23, 0.52));
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.play-start {
    pointer-events: auto;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    padding: 14px 28px;
    font-weight: 900;
    box-shadow: 0 20px 48px rgba(239, 68, 68, 0.32);
    cursor: pointer;
}

.video-shell.is-playing .video-mask {
    opacity: 0;
    pointer-events: none;
}

.detail-card,
.aside-card {
    margin-top: 22px;
    padding: 26px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.detail-title-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.detail-title-row h1 {
    margin: 12px 0 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
}

.detail-score {
    flex: 0 0 auto;
    color: #b45309;
    background: #fffbeb;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
}

.lead-text {
    margin: 22px 0;
    font-size: 18px;
    color: #374151;
    line-height: 1.9;
}

.detail-card h2,
.aside-card h2 {
    margin: 24px 0 12px;
    font-size: 24px;
}

.detail-card p {
    color: #374151;
    line-height: 2;
}

.detail-aside {
    position: sticky;
    top: 100px;
}

.detail-cover {
    display: block;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4.15;
    object-fit: cover;
}

.aside-card dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px 14px;
    margin: 0;
}

.aside-card dt {
    color: var(--muted);
}

.aside-card dd {
    margin: 0;
    font-weight: 700;
}

.aside-card a {
    color: var(--green);
}

.page-nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.page-nav-links a {
    display: block;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.88);
    color: #374151;
    font-weight: 760;
}

.page-nav-links a:hover {
    color: var(--green);
}

.related-section {
    padding-top: 10px;
}

.site-footer {
    color: #e5e7eb;
    background: #111827;
    margin-top: 40px;
}

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

.footer-brand p {
    max-width: 520px;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-logo .brand-text strong {
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
}

.footer-logo .brand-text small {
    color: #9ca3af;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 10px;
}

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

.footer-links a {
    color: #9ca3af;
}

.footer-links a:hover {
    color: #34d399;
}

.copyright {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

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

    .mobile-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .header-search {
        display: none;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-poster {
        display: none;
    }

    .featured-grid,
    .compact-grid,
    .archive-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;
    }

    .detail-aside {
        position: static;
    }
}

@media (max-width: 760px) {
    .site-header-inner {
        height: 68px;
        padding: 0 16px;
    }

    .brand-text strong {
        font-size: 16px;
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-text small {
        display: none;
    }

    .hero,
    .hero-inner {
        min-height: 560px;
    }

    .hero-inner {
        padding: 46px 18px;
    }

    .hero-slide {
        inset: 46px 18px 72px;
    }

    .hero p,
    .sub-hero p {
        font-size: 16px;
    }

    .hero-actions,
    .sub-actions {
        gap: 8px;
    }

    .primary-btn,
    .ghost-btn {
        padding: 10px 14px;
        font-size: 14px;
    }

    .content-section,
    .section-wrap {
        padding: 48px 16px;
    }

    .section-head {
        display: block;
    }

    .section-more {
        display: inline-flex;
        margin-top: 12px;
    }

    .featured-grid,
    .compact-grid,
    .archive-grid,
    .wide-grid,
    .category-grid,
    .category-large-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-wide {
        display: block;
    }

    .card-body h2,
    .rank-content h2 {
        font-size: 16px;
    }

    .card-meta {
        display: grid;
    }

    .filter-bar,
    .search-filter {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 72px 42px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-number {
        font-size: 20px;
    }

    .detail-wrap {
        padding: 22px 16px 44px;
    }

    .detail-card,
    .aside-card {
        padding: 18px;
    }

    .detail-title-row {
        display: block;
    }

    .detail-score {
        display: inline-flex;
        margin-top: 14px;
    }

    .page-nav-links {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        padding: 42px 16px;
    }
}

@media (max-width: 460px) {
    .featured-grid,
    .compact-grid,
    .archive-grid,
    .wide-grid,
    .category-grid,
    .category-large-grid {
        grid-template-columns: 1fr;
    }

    .mobile-cats {
        grid-template-columns: 1fr;
    }
}
