:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --pink: #ec4899;
    --rose: #f43f5e;
    --slate: #0f172a;
    --slate-soft: #1e293b;
    --text: #1f2937;
    --muted: #667085;
    --line: #eceff3;
    --card: #ffffff;
    --paper: #fff7ed;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

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

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(249, 115, 22, 0.12);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.22);
}

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

.brand-text strong {
    font-size: 23px;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    margin-top: 4px;
    color: #8a94a6;
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.main-nav a,
.mobile-panel a {
    color: #475467;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

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

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    border: 1px solid rgba(249, 115, 22, 0.22);
    border-radius: 999px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.08);
}

.header-search input,
.mobile-search input {
    width: 190px;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    background: transparent;
}

.header-search button,
.mobile-search button,
.btn,
.play-button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    color: #ffffff;
    font-weight: 800;
    padding: 10px 18px;
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.btn:hover,
.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(236, 72, 153, 0.25);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--orange-dark);
}

.mobile-panel {
    display: none;
    padding: 0 24px 18px;
    border-top: 1px solid rgba(249, 115, 22, 0.12);
}

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

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

.mobile-panel a {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff7ed;
}

.page-shell,
.hero-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero {
    min-height: 620px;
    position: relative;
    overflow: hidden;
    background: var(--slate);
    color: #ffffff;
    border-radius: 0 0 38px 38px;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.12) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.05) 56%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 42px;
    align-items: center;
    padding: 80px 0;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fed7aa;
    font-weight: 800;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    margin: 0 0 18px;
    letter-spacing: -0.04em;
}

.hero p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.9;
    margin: 0;
}

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

.btn.ghost {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

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

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

.hero-tags span,
.tag-row span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
}

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

.hero-panel {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    padding: 20px;
    backdrop-filter: blur(14px);
}

.hero-panel h2 {
    margin: 0 0 14px;
    font-size: 20px;
}

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

.hero-mini-list a {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-mini-list a:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(4px);
}

.hero-mini-list img {
    width: 58px;
    height: 74px;
    border-radius: 12px;
    object-fit: cover;
}

.hero-mini-list strong,
.hero-mini-list small {
    display: block;
}

.hero-mini-list strong {
    color: #ffffff;
    margin-bottom: 5px;
}

.hero-mini-list small {
    color: rgba(255, 255, 255, 0.68);
}

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

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

.hero-dots button.is-active {
    width: 34px;
    background: linear-gradient(90deg, var(--orange), var(--pink));
}

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

.section-title,
.page-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.page-title {
    align-items: center;
    padding-top: 42px;
}

.section-title h2,
.page-title h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.03em;
}

.section-title p,
.page-title p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.more-link {
    color: var(--orange-dark);
    font-weight: 800;
    white-space: nowrap;
}

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

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

.movie-card {
    background: var(--card);
    border: 1px solid rgba(249, 115, 22, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5, #fce7f3);
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.62));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster::after {
    opacity: 1;
}

.year-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 900;
    padding: 6px 10px;
}

.rank-badge {
    left: auto;
    right: 12px;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    color: #ffffff;
}

.play-dot {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.78);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--orange-dark);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-dot {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-content {
    padding: 16px;
}

.card-content h3,
.card-content h4 {
    margin: 6px 0 9px;
    font-size: 18px;
    line-height: 1.35;
}

.card-content h3 a:hover,
.card-content h4 a:hover {
    color: var(--orange-dark);
}

.card-content p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.72;
}

.card-meta {
    color: #fb923c !important;
    font-size: 12px !important;
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 176px;
    padding: 22px;
    border-radius: var(--radius-lg);
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: var(--soft-shadow);
}

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

.category-tile::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -34px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.category-tile strong {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
}

.category-tile p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.68;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 74px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(249, 115, 22, 0.1);
    box-shadow: var(--soft-shadow);
}

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

.rank-row img {
    width: 74px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
}

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

.rank-row p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.filter-bar input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 12px 16px;
    outline: 0;
}

.filter-status {
    min-height: 22px;
    color: var(--muted);
    margin-bottom: 18px;
}

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

.breadcrumb a {
    color: var(--orange-dark);
    font-weight: 800;
}

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

.player-card,
.detail-card,
.side-card {
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.player-wrap {
    position: relative;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    z-index: 3;
}

.play-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.22));
}

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

.play-button {
    position: relative;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    padding: 14px 24px;
}

.detail-card {
    padding: 28px;
    margin-top: 22px;
}

.detail-card h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.18;
}

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

.detail-card p {
    color: #475467;
    line-height: 1.9;
    margin: 0 0 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.side-card {
    padding: 20px;
}

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

.side-list a {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #fff7ed;
    transition: transform 0.2s ease, background 0.2s ease;
}

.side-list a:hover {
    transform: translateX(4px);
    background: #ffedd5;
}

.side-list img {
    width: 64px;
    height: 84px;
    border-radius: 12px;
    object-fit: cover;
}

.side-list strong {
    display: block;
    margin-bottom: 4px;
}

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

.site-footer {
    margin-top: 72px;
    background: linear-gradient(90deg, #1e293b, #0f172a, #1e293b);
    color: #ffffff;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 28px;
}

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

.site-footer p,
.site-footer a {
    color: #cbd5e1;
    line-height: 1.8;
}

.site-footer ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

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

.empty-message {
    display: none;
    padding: 30px;
    border-radius: 20px;
    background: #ffffff;
    color: var(--muted);
    box-shadow: var(--soft-shadow);
}

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

@media (max-width: 1180px) {
    .cards-grid.wide,
    .cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 920px) {
    .main-nav,
    .header-search {
        display: none;
    }

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

    .hero-content,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 70px 0 96px;
    }

    .hero-panel {
        max-width: 520px;
    }

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

@media (max-width: 680px) {
    .header-inner,
    .page-shell,
    .hero-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-text small {
        display: none;
    }

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

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

    .section-title,
    .page-title,
    .filter-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-bar,
    .filter-bar input {
        width: 100%;
    }

    .rank-row {
        grid-template-columns: 44px 62px 1fr;
        gap: 12px;
    }

    .rank-num {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .rank-row img {
        width: 62px;
        height: 82px;
    }

    .card-content {
        padding: 13px;
    }

    .card-content h3,
    .card-content h4 {
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .cards-grid.wide,
    .cards-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }
}
