:root {
    --orange: #f97316;
    --orange-deep: #ea580c;
    --rose: #f43f5e;
    --amber: #f59e0b;
    --dark: #111827;
    --muted: #6b7280;
    --line: #fed7aa;
    --soft: #fff7ed;
    --paper: #ffffff;
    --shadow: 0 20px 45px rgba(249, 115, 22, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--dark);
    background:
        radial-gradient(circle at 12% 8%, rgba(249, 115, 22, 0.16), transparent 34%),
        radial-gradient(circle at 84% 2%, rgba(244, 63, 94, 0.14), transparent 30%),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #fffaf3 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(254, 215, 170, 0.9);
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.08);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), var(--rose), var(--amber));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

.brand-name,
.footer-brand {
    font-size: 22px;
    background: linear-gradient(90deg, var(--orange), var(--rose), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav,
.mobile-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
    color: #374151;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 8px 12px;
    color: #374151;
    background: #ffedd5;
    font-size: 22px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 247, 237, 0.96);
}

.hero-carousel {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 660px;
    isolation: isolate;
}

.hero-slide.active {
    display: block;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(16px) saturate(1.24);
    transform: scale(1.08);
    opacity: 0.54;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.66) 48%, rgba(17, 24, 39, 0.24) 100%),
        radial-gradient(circle at 24% 30%, rgba(249, 115, 22, 0.34), transparent 30%),
        radial-gradient(circle at 74% 18%, rgba(244, 63, 94, 0.32), transparent 32%);
}

.hero-content {
    width: min(1240px, calc(100% - 32px));
    min-height: 660px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.62fr);
    align-items: center;
    gap: 56px;
    padding: 72px 0 96px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border: 1px solid rgba(253, 186, 116, 0.52);
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.16);
    font-weight: 800;
    font-size: 14px;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 20px 0 18px;
    font-size: clamp(36px, 6vw, 76px);
    line-height: 1.03;
    color: #fff;
    letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.9;
}

.hero-tags,
.tag-row,
.footer-tags,
.filter-pills,
.hero-category-links,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.footer-tags span {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    color: #7c2d12;
    background: #ffedd5;
    font-weight: 700;
    font-size: 13px;
}

.hero-tags span {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-tag-row {
    margin-top: 14px;
}

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

.primary-button,
.ghost-button,
.category-block-head a,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--rose));
    box-shadow: 0 16px 32px rgba(244, 63, 94, 0.28);
}

.ghost-button {
    color: #fff7ed;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
}

.ghost-button.light {
    color: #fff;
}

.primary-button:hover,
.ghost-button:hover,
.category-block-head a:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: inherit;
    pointer-events: none;
}

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

.hero-control-panel {
    position: absolute;
    left: 50%;
    bottom: 26px;
    width: min(1240px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    background: rgba(17, 24, 39, 0.52);
    backdrop-filter: blur(18px);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

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

.hero-dot.active {
    width: 46px;
    background: linear-gradient(90deg, var(--orange), var(--rose));
}

.hero-category-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 800;
}

.search-panel,
.content-section,
.library-group,
.category-block,
.detail-content,
.related-section {
    width: min(1240px, calc(100% - 32px));
    margin: 38px auto 0;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 18px;
    align-items: end;
    padding: 22px;
    border: 1px solid #fed7aa;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.search-box label {
    display: block;
    margin-bottom: 10px;
    color: #9a3412;
    font-weight: 900;
}

.search-box input {
    width: 100%;
    height: 52px;
    border: 1px solid #fdba74;
    border-radius: 16px;
    padding: 0 16px;
    outline: 0;
    color: var(--dark);
    background: #fff7ed;
    font-size: 16px;
}

.search-box input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13);
}

.filter-pill {
    height: 40px;
    padding: 0 15px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #7c2d12;
    background: #fff7ed;
    font-weight: 800;
    cursor: pointer;
}

.filter-pill.active,
.filter-pill:hover {
    color: white;
    border-color: transparent;
    background: linear-gradient(90deg, var(--orange), var(--rose));
}

.section-heading,
.category-block-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
}

.section-heading h2,
.category-block-head h2,
.library-group h2,
.detail-content h2,
.site-footer h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -0.03em;
}

.section-heading p,
.category-block-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-more,
.category-block-head a {
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--rose));
    white-space: nowrap;
}

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

.category-tile {
    min-height: 150px;
    padding: 22px;
    border: 1px solid #fed7aa;
    border-radius: 24px;
    background:
        radial-gradient(circle at right top, rgba(244, 63, 94, 0.16), transparent 36%),
        linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.wide-rank-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(249, 115, 22, 0.18);
}

.category-tile span {
    display: block;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 900;
    color: #9a3412;
}

.category-tile p {
    margin: 0;
    color: #6b7280;
    line-height: 1.7;
    font-size: 14px;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid #fed7aa;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #ffedd5;
}

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

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

.score-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, var(--amber), var(--rose));
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #ea580c;
    font-size: 12px;
    font-weight: 800;
}

.movie-card h2,
.wide-rank-body h2 {
    margin: 10px 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card p,
.wide-rank-body p {
    margin: 0 0 12px;
    color: #4b5563;
    line-height: 1.7;
    font-size: 14px;
}

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

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

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

.rank-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #fed7aa;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.08);
}

.rank-index {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 900;
}

.rank-score {
    color: var(--rose);
    font-weight: 900;
    text-align: right;
}

.page-main,
.detail-main {
    padding-bottom: 64px;
}

.page-hero {
    width: min(1240px, calc(100% - 32px));
    margin: 36px auto 0;
    padding: 56px;
    border-radius: 34px;
    background:
        linear-gradient(115deg, rgba(17, 24, 39, 0.92), rgba(124, 45, 18, 0.84)),
        radial-gradient(circle at right top, rgba(244, 63, 94, 0.38), transparent 34%);
    box-shadow: 0 26px 60px rgba(17, 24, 39, 0.2);
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 62px);
}

.page-search {
    margin-top: 26px;
}

.category-block {
    padding: 26px;
    border: 1px solid #fed7aa;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.library-group {
    padding: 24px;
    border: 1px solid #fed7aa;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
}

.library-group h2 {
    margin-bottom: 18px;
    font-size: 24px;
}

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

.wide-rank-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border: 1px solid #fed7aa;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wide-rank-poster {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.wide-rank-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.wide-rank-poster span {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    font-weight: 900;
}

.wide-rank-body {
    align-self: center;
}

.rank-card-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.rank-card-bottom strong {
    color: var(--rose);
    font-size: 22px;
}

.rank-card-bottom span {
    color: #9a3412;
    font-weight: 800;
}

.breadcrumb {
    width: min(1240px, calc(100% - 32px));
    margin: 28px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9a3412;
    font-weight: 800;
}

.detail-hero {
    width: min(1240px, calc(100% - 32px));
    margin: 22px auto 0;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    padding: 34px;
    border-radius: 34px;
    background:
        linear-gradient(115deg, rgba(17, 24, 39, 0.95), rgba(124, 45, 18, 0.86)),
        radial-gradient(circle at right top, rgba(244, 63, 94, 0.34), transparent 32%);
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.22);
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
}

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

.detail-poster span {
    position: absolute;
    right: 14px;
    top: 14px;
    padding: 8px 13px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(90deg, var(--amber), var(--rose));
    font-weight: 900;
}

.detail-info h1 {
    font-size: clamp(34px, 5vw, 64px);
}

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

.player-section {
    width: min(1100px, calc(100% - 32px));
    margin: 36px auto 0;
}

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

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.55));
    cursor: pointer;
}

.player-start span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    font-size: 34px;
    box-shadow: 0 20px 44px rgba(244, 63, 94, 0.36);
}

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

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.detail-content article {
    padding: 26px;
    border: 1px solid #fed7aa;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.detail-content p {
    margin: 0;
    color: #374151;
    line-height: 2;
}

.site-footer {
    margin-top: 72px;
    color: #e5e7eb;
    background:
        radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.28), transparent 26%),
        linear-gradient(135deg, #111827, #1f2937 56%, #7c2d12);
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
    padding: 48px 0 34px;
}

.site-footer p {
    max-width: 480px;
    color: #d1d5db;
    line-height: 1.8;
}

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

.footer-links a {
    color: #fed7aa;
    font-weight: 800;
}

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
    font-size: 14px;
}

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

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

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

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

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

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

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

    .menu-toggle {
        display: inline-flex;
    }

    .mobile-nav.open {
        display: grid;
        gap: 12px;
    }

    .brand-name {
        font-size: 18px;
    }

    .hero-carousel,
    .hero-slide,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding: 52px 0 120px;
    }

    .hero-control-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 36px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .rank-list {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

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

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

    .movie-card p {
        font-size: 13px;
    }

    .section-heading,
    .category-block-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-hero,
    .detail-hero {
        padding: 28px;
        border-radius: 26px;
    }

    .detail-hero,
    .detail-content,
    .footer-inner,
    .wide-rank-card {
        grid-template-columns: 1fr;
    }

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

    .wide-rank-poster {
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .compact-grid,
    .category-grid,
    .rank-list {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }
}
