:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --red: #ef4444;
    --pink: #ec4899;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #fff7ed;
    --bg: #f9fafb;
    --card: #ffffff;
    --radius: 22px;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1240px;
    height: 72px;
    margin: 0 auto;
    padding: 0 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 26px;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--orange), var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    font-size: 14px;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 700;
    color: #374151;
}

.desktop-nav a,
.desktop-nav button {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav button:hover,
.desktop-nav .active {
    color: var(--orange);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    display: grid;
    gap: 4px;
    width: 170px;
    margin-top: 12px;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    padding: 8px 12px;
    border-radius: 10px;
    color: #374151;
}

.dropdown-panel a:hover {
    color: var(--orange);
    background: var(--soft);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
}

.header-search input,
.mobile-search input {
    width: 200px;
    border: 0;
    outline: none;
    padding: 10px 14px 10px 18px;
    color: var(--ink);
}

.header-search button,
.mobile-search button {
    border: 0;
    padding: 10px 16px;
    color: #ffffff;
    background: var(--orange);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #374151;
    font-size: 28px;
}

.mobile-menu {
    padding: 0 22px 18px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.mobile-menu nav {
    display: grid;
    gap: 10px;
    padding: 14px 0;
}

.mobile-menu a {
    padding: 10px 0;
    font-weight: 700;
    color: #374151;
}

.page-main {
    min-height: 64vh;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red) 56%, var(--pink));
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.28), transparent 30%),
        radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.18), transparent 28%),
        rgba(0, 0, 0, 0.30);
}

.hero-shell {
    position: relative;
    max-width: 1240px;
    min-height: 620px;
    margin: 0 auto;
    padding: 70px 22px 54px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
    gap: 56px;
    align-items: center;
    min-height: 490px;
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.90);
    background: rgba(255, 255, 255, 0.14);
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 700px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: var(--orange);
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
    background: #fff7ed;
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.13);
}

.hero-poster {
    position: relative;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.35);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-poster-info {
    position: absolute;
    right: 30px;
    bottom: 30px;
    left: 30px;
    padding: 16px;
    border-radius: 20px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.15), rgba(17, 24, 39, 0.85));
}

.hero-poster-info strong {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
}

.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 22px;
    display: flex;
    gap: 10px;
}

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

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

.section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 64px 22px 0;
}

.section:last-child {
    padding-bottom: 72px;
}

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

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

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

.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--orange);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: var(--shadow);
}

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

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

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

.score-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.78);
    font-weight: 900;
    font-size: 13px;
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

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

.movie-card p {
    display: -webkit-box;
    min-height: 46px;
    overflow: hidden;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.tag-row span {
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--orange-dark);
    background: var(--soft);
    font-size: 12px;
    font-weight: 700;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 24px;
    border-radius: 26px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.20);
}

.category-tile:nth-child(2n) {
    background: linear-gradient(135deg, #fb7185, #f97316);
}

.category-tile:nth-child(3n) {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.category-tile p {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    pointer-events: none;
}

.rank-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 30px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 88px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 22px;
    background: #ffffff;
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    font-weight: 900;
}

.rank-item img {
    width: 88px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    background: #fed7aa;
}

.rank-item h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.rank-views {
    color: var(--orange);
    font-weight: 900;
    white-space: nowrap;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 74px 22px 58px;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #ef4444 48%, #f97316);
}

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

.page-hero-inner {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
}

.page-hero h1 {
    max-width: 900px;
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.90);
    font-size: 19px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(120px, 190px));
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    outline: none;
    padding: 12px 14px;
    background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--orange);
}

.detail-hero {
    background: linear-gradient(135deg, #111827, #1f2937 42%, #ef4444);
    color: #ffffff;
}

.detail-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
    gap: 40px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 52px 22px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.35);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #374151;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-lead {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.player-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 54px 22px 0;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.46));
    cursor: pointer;
}

.player-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 18px 45px rgba(249, 115, 22, 0.42);
    font-size: 38px;
    transition: transform 0.2s ease;
}

.player-overlay:hover span {
    transform: scale(1.08);
}

.player-box.is-playing .player-overlay {
    display: none;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.68fr) minmax(290px, 0.32fr);
    gap: 34px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 44px 22px 72px;
}

.article-panel,
.side-panel {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
}

.article-panel {
    padding: 30px;
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.article-panel p {
    margin: 0 0 22px;
    color: #374151;
    font-size: 17px;
}

.side-panel {
    padding: 22px;
}

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

.side-link {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.side-link img {
    width: 72px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: #fed7aa;
}

.side-link strong {
    display: block;
    margin-bottom: 4px;
    line-height: 1.3;
}

.side-link span {
    color: var(--muted);
    font-size: 13px;
}

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

.cta-band {
    display: grid;
    gap: 18px;
    justify-items: center;
    padding: 42px 24px;
    border-radius: 30px;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.cta-band h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
}

.cta-band p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.90);
}

.no-results {
    display: none;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 22px;
    color: var(--muted);
    background: #ffffff;
    text-align: center;
}

.no-results.is-visible {
    display: block;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1.2fr;
    gap: 36px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px 22px 34px;
}

.site-footer p {
    max-width: 520px;
    margin: 14px 0 0;
    color: #9ca3af;
}

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

.site-footer a:not(.footer-brand) {
    display: block;
    margin-bottom: 8px;
    color: #d1d5db;
}

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

.footer-links {
    columns: 2;
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 22px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: #9ca3af;
}

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

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

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

    .rank-panel,
    .content-grid {
        grid-template-columns: 1fr;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .hero-slide,
    .detail-shell {
        grid-template-columns: 1fr;
    }

    .hero-shell {
        padding-top: 46px;
    }

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

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

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

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

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

    .rank-views {
        grid-column: 3;
    }
}

@media (max-width: 540px) {
    .nav-shell {
        height: 64px;
    }

    .brand {
        font-size: 22px;
    }

    .hero {
        min-height: auto;
    }

    .hero-shell {
        min-height: auto;
    }

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

    .section {
        padding-top: 44px;
    }

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

    .article-panel {
        padding: 22px;
    }
}
