:root {
    --page-bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #fff7ed;
    --text: #111827;
    --muted: #667085;
    --border: #e5e7eb;
    --orange: #f97316;
    --red: #dc2626;
    --pink: #db2777;
    --purple: #7c3aed;
    --blue: #2563eb;
    --shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 35px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

img {
    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.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    max-width: 1280px;
    min-height: 76px;
    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: 22px;
    font-weight: 800;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--orange), var(--red));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.32);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    overflow: hidden;
}

.desktop-nav a {
    position: relative;
    color: #374151;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), var(--red));
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

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

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    transform: scaleX(1);
}

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

.top-search input,
.mobile-search input {
    width: 230px;
    border: 0;
    outline: none;
    padding: 11px 14px;
    background: transparent;
}

.top-search button,
.mobile-search button {
    border: 0;
    cursor: pointer;
    padding: 11px 16px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    font-weight: 700;
}

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

.mobile-panel {
    display: none;
    padding: 0 24px 20px;
    border-top: 1px solid var(--border);
    background: #ffffff;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.mobile-panel nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f9fafb;
    color: #374151;
    font-weight: 700;
}

.hero-carousel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: linear-gradient(135deg, #f97316, #dc2626 52%, #db2777);
}

.hero-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.22), transparent 28%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.14), transparent 24%), linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: auto, auto, 60px 60px, 60px 60px;
    opacity: 0.9;
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide > img {
    position: absolute;
    right: 6%;
    bottom: 0;
    width: min(38vw, 480px);
    height: min(74vh, 560px);
    object-fit: cover;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 28px 90px rgba(17, 24, 39, 0.4);
    transform: rotate(2deg);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.32) 48%, rgba(17, 24, 39, 0.76));
}

.hero-content {
    position: relative;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding-right: 40%;
    color: #ffffff;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content .eyebrow {
    color: #fed7aa;
    margin-bottom: 18px;
}

.hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(44px, 7vw, 86px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 760px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 2.2vw, 26px);
}

.hero-tags,
.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
}

.tag-row span,
.detail-tags a {
    background: #fff7ed;
    color: #c2410c;
}

.hero-actions,
.entry-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.entry-links a,
.more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn,
.entry-links a {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.more-link {
    min-height: 40px;
    color: var(--orange);
    background: #fff7ed;
}

.primary-btn:hover,
.ghost-btn:hover,
.entry-links a:hover,
.more-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

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

.hero-dots button {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

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

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

.section-block {
    padding: 70px 0;
}

.soft-block {
    width: 100%;
    max-width: none;
    padding-left: max(24px, calc((100% - 1280px) / 2));
    padding-right: max(24px, calc((100% - 1280px) / 2));
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

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

.section-head h2,
.page-hero h1,
.detail-panel h1,
.detail-panel h2 {
    margin: 0;
    color: #111827;
    line-height: 1.18;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
}

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

.quick-entry {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 24px;
    align-items: stretch;
}

.entry-panel,
.category-strip a,
.movie-card,
.rank-item,
.category-card,
.detail-panel,
.side-card {
    background: var(--surface);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.entry-panel {
    padding: 34px;
    background: linear-gradient(135deg, #111827, #7c2d12);
    color: #ffffff;
}

.entry-panel h2 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.15;
}

.entry-panel p {
    color: rgba(255, 255, 255, 0.78);
}

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

.category-strip a {
    padding: 22px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-strip a:hover {
    transform: translateY(-3px);
    border-color: #fdba74;
}

.category-strip strong {
    display: block;
    color: #111827;
    font-size: 18px;
    margin-bottom: 6px;
}

.category-strip span {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

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

.movie-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

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

.poster-link img,
.rank-thumb img,
.category-covers img,
.poster-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 45%);
}

.poster-badge,
.play-mark {
    position: absolute;
    z-index: 2;
}

.poster-badge {
    top: 14px;
    left: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    font-size: 13px;
    font-weight: 900;
}

.play-mark {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

.movie-meta-line,
.card-stats,
.rank-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.movie-meta-line a,
.detail-meta a {
    color: var(--orange);
    font-weight: 800;
}

.movie-card h3 {
    margin: 10px 0 8px;
    min-height: 3.1em;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-item h3 a:hover,
.side-link:hover span {
    color: var(--orange);
}

.movie-card p {
    min-height: 4.9em;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.card-stats {
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.rank-block {
    width: 100%;
    max-width: none;
    padding-left: max(24px, calc((100% - 1280px) / 2));
    padding-right: max(24px, calc((100% - 1280px) / 2));
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 92px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
}

.rank-index {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

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

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

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

.page-main {
    padding-top: 42px;
    padding-bottom: 80px;
}

.page-hero {
    min-height: 280px;
    margin-bottom: 34px;
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 32px;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #9a3412 55%, #dc2626);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.page-hero h1 {
    margin: 10px 0 12px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

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

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.filter-row input,
.filter-row select {
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0 18px;
    outline: none;
    color: #111827;
    background: rgba(255, 255, 255, 0.94);
}

.filter-row input {
    min-width: min(420px, 100%);
}

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

.category-card {
    overflow: hidden;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: #111827;
}

.category-covers a {
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.category-card-body {
    padding: 24px;
}

.category-card h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.category-card p {
    color: var(--muted);
}

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

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

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

.detail-primary {
    display: grid;
    gap: 22px;
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #020617;
}

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

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.56;
}

.player-cover span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 34px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 20px 45px rgba(220, 38, 38, 0.38);
    transform: translate(-50%, -50%);
}

.detail-panel {
    padding: 28px;
}

.detail-panel h1 {
    font-size: clamp(30px, 5vw, 48px);
    margin-bottom: 16px;
}

.detail-panel h2 {
    font-size: 26px;
    margin-bottom: 14px;
}

.detail-panel p {
    color: #374151;
    font-size: 17px;
}

.lead-text {
    font-size: 19px;
    color: #111827;
}

.detail-tags {
    margin-top: 18px;
}

.detail-side {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 20px;
}

.side-card {
    padding: 22px;
}

.poster-side img {
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.poster-side h2 {
    margin: 18px 0 6px;
    font-size: 23px;
}

.poster-side p {
    color: var(--muted);
}

.side-link {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.side-link span {
    font-weight: 800;
}

.side-link em {
    color: var(--muted);
    font-style: normal;
}

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

.footer-grid {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1fr 1fr;
    gap: 36px;
}

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

.footer-grid a {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
}

.footer-grid a:hover {
    color: #fdba74;
}

.footer-brand {
    margin-bottom: 14px;
}

.footer-links {
    columns: 2;
}

.copyright {
    width: min(1280px, 100%);
    margin: 34px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
    text-align: center;
    font-size: 14px;
}

.movie-card.is-hidden,
.rank-item.is-hidden {
    display: none;
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-slide > img {
        right: -5%;
        width: 46vw;
    }

    .hero-content {
        padding-right: 34%;
    }

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

    .quick-entry,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }
}

@media (max-width: 820px) {
    .nav-wrap {
        min-height: 66px;
        padding: 0 18px;
    }

    .brand {
        font-size: 19px;
    }

    .hero-carousel {
        min-height: 720px;
    }

    .hero-slide > img {
        right: 24px;
        bottom: 42px;
        width: 180px;
        height: 260px;
        border-radius: 22px;
    }

    .hero-content {
        align-self: start;
        padding: 88px 0 320px;
    }

    .section-block,
    .page-main {
        width: min(100% - 28px, 1280px);
    }

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

    .movie-grid,
    .rank-grid,
    .ranking-list,
    .category-list-grid,
    .category-strip {
        grid-template-columns: 1fr;
    }

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

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

    .filter-row input,
    .filter-row select {
        width: 100%;
        min-width: 0;
    }

    .footer-links {
        columns: 1;
    }
}

@media (max-width: 520px) {
    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .movie-card h3 {
        font-size: 16px;
    }

    .movie-card p,
    .tag-row,
    .card-stats {
        display: none;
    }

    .rank-item {
        grid-template-columns: 38px 64px 1fr;
    }

    .rank-item p {
        display: none;
    }
}
