* {
    box-sizing: border-box;
}

:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --pink: #ec4899;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --yellow: #facc15;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --soft: #fff7ed;
    --surface: #ffffff;
    --shadow: 0 18px 42px rgba(31, 41, 55, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 32rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #f8fafc 100%);
}

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

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

main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 247, 237, 0.94), rgba(253, 242, 248, 0.94), rgba(239, 246, 255, 0.94));
    border-bottom: 1px solid rgba(253, 186, 116, 0.55);
    box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(14px);
}

.top-nav {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.logo-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #ec4899);
    box-shadow: 0 12px 26px rgba(236, 72, 153, 0.28);
}

.logo-text {
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    background: linear-gradient(90deg, var(--orange), var(--pink), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 1;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-weight: 700;
    color: #4b5563;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--orange);
    transform: translateY(-1px);
}

.header-search,
.large-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.large-search input,
.filter-bar input,
.filter-bar select {
    border: 1px solid #fed7aa;
    background: #ffffff;
    border-radius: 999px;
    padding: 11px 16px;
    outline: none;
    color: var(--text);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.header-search input:focus,
.large-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #fdba74;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.2);
}

.header-search button,
.large-search button,
.primary-btn,
.ghost-btn,
.ghost-dark-btn {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 11px 20px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search button,
.large-search button,
.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
}

.header-search button:hover,
.large-search button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.ghost-dark-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 34px rgba(236, 72, 153, 0.24);
}

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

.ghost-dark-btn {
    color: var(--orange-dark);
    background: #ffedd5;
}

.wide {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #ffedd5;
    padding: 10px;
}

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

.hero-shell {
    padding: 42px 0 26px;
}

.hero-frame {
    position: relative;
    min-height: 500px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.08));
}

.hero-content {
    width: min(820px, 100%);
    padding: clamp(28px, 6vw, 58px);
    color: #ffffff;
}

.hero-label,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--yellow);
    font-weight: 900;
    letter-spacing: 0.04em;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 4.7rem);
    line-height: 1.05;
    margin: 16px 0;
}

.hero-content p {
    max-width: 760px;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.8;
    color: #e5e7eb;
}

.hero-tags,
.tag-row,
.tag-cloud,
.footer-tags,
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags span,
.tag-row span,
.tag-cloud a,
.footer-tags a,
.quick-links a {
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.86rem;
    font-weight: 800;
}

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

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.34);
    font-size: 2rem;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
    background: rgba(249, 115, 22, 0.84);
    transform: translateY(-50%) scale(1.08);
}

.hero-arrow.prev {
    left: 18px;
}

.hero-arrow.next {
    right: 18px;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-search-card,
.page-hero,
.content-section,
.detail-card,
.text-panel,
.sticky-panel,
.side-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(253, 186, 116, 0.45);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero-search-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
    align-items: center;
    gap: 22px;
    margin-top: 20px;
    padding: clamp(20px, 4vw, 32px);
}

.hero-search-card h2,
.page-hero h1,
.section-kicker,
.detail-info h1,
.text-panel h2,
.sticky-panel h2,
.side-panel h2 {
    margin: 0;
    color: var(--text);
}

.hero-search-card p,
.page-hero p,
.section-head p,
.side-panel p {
    color: var(--muted);
    line-height: 1.8;
}

.quick-links a,
.footer-tags a {
    color: var(--orange-dark);
    background: #ffedd5;
}

.content-section {
    margin: 34px 0;
    padding: clamp(20px, 4vw, 34px);
}

.gradient-panel {
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.94), rgba(255, 237, 213, 0.94), rgba(252, 231, 243, 0.94));
}

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

.section-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 900;
}

.section-kicker span,
.category-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #ec4899);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.25);
}

.section-link,
.text-link {
    color: var(--orange-dark);
    font-weight: 900;
}

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

.movie-card,
.category-card,
.category-overview-card,
.rank-item,
.compact-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(31, 41, 55, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover,
.category-card:hover,
.category-overview-card:hover,
.rank-item:hover,
.compact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 146, 60, 0.75);
    box-shadow: 0 20px 36px rgba(249, 115, 22, 0.16);
}

.poster-wrap,
.compact-image,
.rank-thumb,
.overview-images {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster-wrap {
    aspect-ratio: 16 / 10;
}

.poster-wrap img,
.compact-image img,
.rank-thumb img,
.category-card img,
.overview-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-wrap img,
.compact-card:hover .compact-image img,
.rank-item:hover .rank-thumb img,
.category-card:hover img,
.category-overview-card:hover .overview-images img {
    transform: scale(1.08);
}

.play-indicator {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 3.2rem;
    opacity: 0;
    background: rgba(0, 0, 0, 0.36);
    transition: opacity 0.25s ease;
}

.movie-card:hover .play-indicator {
    opacity: 1;
}

.duration-badge,
.category-badge,
.compact-image span {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
}

.duration-badge,
.compact-image span {
    right: 12px;
    top: 12px;
    background: rgba(0, 0, 0, 0.66);
}

.category-badge {
    left: 12px;
    top: 12px;
    background: linear-gradient(90deg, var(--orange), var(--pink));
}

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

.movie-card h3,
.compact-card h3,
.rank-item h3 {
    margin: 0 0 9px;
    font-size: 1.04rem;
    line-height: 1.4;
}

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

.movie-card p,
.compact-card p,
.rank-item p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.tag-row span {
    color: var(--orange-dark);
    background: #ffedd5;
}

.movie-meta,
.compact-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #6b7280;
    font-size: 0.84rem;
    margin-top: 14px;
}

.category-grid,
.category-overview-grid {
    display: grid;
    gap: 20px;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    isolation: isolate;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.08));
}

.category-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.category-card strong {
    margin: 14px 0 6px;
    font-size: 1.24rem;
}

.category-card em {
    font-style: normal;
    color: #e5e7eb;
    line-height: 1.55;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.split-main,
.side-panel {
    background: #ffffff;
    border: 1px solid rgba(253, 186, 116, 0.45);
    border-radius: var(--radius-xl);
    padding: clamp(20px, 4vw, 32px);
    box-shadow: var(--shadow);
}

.side-panel {
    background: linear-gradient(155deg, #fff7ed, #fdf2f8 60%, #eff6ff);
    align-self: start;
    position: sticky;
    top: 96px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 46px 112px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 12px;
}

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

.rank-thumb {
    height: 72px;
    border-radius: 12px;
}

.rank-item span {
    color: #6b7280;
    font-size: 0.84rem;
}

.page-hero {
    margin: 34px 0;
    padding: clamp(26px, 5vw, 46px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.page-hero h1 {
    margin-top: 10px;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.soft-hero {
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.94), rgba(252, 231, 243, 0.94), rgba(219, 234, 254, 0.94));
}

.category-hero {
    background: linear-gradient(135deg, #fff7ed, #ffffff, #eff6ff);
}

.rank-hero {
    background: linear-gradient(135deg, #111827, #7c2d12 48%, #be185d);
    color: #ffffff;
}

.rank-hero h1,
.rank-hero p {
    color: #ffffff;
}

.search-hero {
    background: linear-gradient(135deg, #fdf2f8, #eff6ff, #fff7ed);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 190px));
    gap: 14px;
    margin-bottom: 22px;
}

.filter-bar label {
    display: grid;
    gap: 8px;
    color: #4b5563;
    font-size: 0.88rem;
    font-weight: 800;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
}

.overview-images {
    height: 154px;
    border-radius: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    background: #111827;
}

.category-overview-card h2 {
    margin: 12px 0 8px;
}

.category-overview-card p {
    color: var(--muted);
    line-height: 1.7;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    margin: 34px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 16px;
    color: #6b7280;
    font-weight: 700;
}

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

.detail-card {
    overflow: hidden;
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: #020617;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
}

.play-button {
    position: relative;
    z-index: 2;
    width: 90px;
    height: 90px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.34);
    cursor: pointer;
    font-size: 2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.play-button:hover {
    transform: scale(1.08);
    box-shadow: 0 24px 48px rgba(236, 72, 153, 0.36);
}

.detail-info {
    padding: clamp(20px, 4vw, 32px);
}

.detail-info h1 {
    margin: 10px 0 14px;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.lead {
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.detail-meta span {
    border-radius: 999px;
    padding: 8px 13px;
    color: #4b5563;
    background: #f3f4f6;
    font-weight: 800;
}

.tag-cloud a {
    color: var(--orange-dark);
    background: #ffedd5;
}

.text-panel {
    margin-top: 20px;
    padding: clamp(20px, 4vw, 30px);
}

.text-panel p {
    color: #374151;
    line-height: 2;
    font-size: 1.02rem;
}

.highlight-panel {
    background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.detail-side {
    min-width: 0;
}

.sticky-panel {
    position: sticky;
    top: 96px;
    padding: 20px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
}

.compact-image {
    height: 92px;
    border-radius: 14px;
}

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

[data-card].is-hidden {
    display: none;
}

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

    .detail-layout,
    .split-section,
    .hero-search-card {
        grid-template-columns: 1fr;
    }

    .detail-side,
    .side-panel,
    .sticky-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    main,
    .top-nav {
        width: min(100% - 22px, 1240px);
    }

    .menu-toggle {
        display: block;
    }

    .top-nav {
        min-height: 66px;
    }

    .nav-panel {
        position: absolute;
        left: 11px;
        right: 11px;
        top: 74px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid #fed7aa;
        border-radius: 20px;
        padding: 18px;
        box-shadow: var(--shadow);
    }

    .nav-panel.is-open {
        display: flex;
    }

    .nav-links,
    .header-search {
        flex-direction: column;
        align-items: stretch;
    }

    .header-search input,
    .header-search button,
    .large-search input,
    .large-search button {
        width: 100%;
    }

    .hero-frame {
        min-height: 460px;
    }

    .hero-arrow {
        display: none;
    }

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

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

    .category-overview-card,
    .rank-item {
        grid-template-columns: 1fr;
    }

    .rank-number {
        position: absolute;
        margin: 12px;
    }

    .rank-item {
        position: relative;
    }

    .rank-thumb {
        height: 170px;
    }

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

@media (max-width: 560px) {
    main,
    .top-nav {
        width: min(100% - 16px, 1240px);
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }

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

    .content-section,
    .page-hero,
    .detail-info,
    .text-panel {
        border-radius: 20px;
    }

    .hero-frame {
        min-height: 420px;
        border-radius: 22px;
    }

    .hero-content {
        padding: 24px;
    }

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

    .primary-btn,
    .ghost-btn,
    .ghost-dark-btn {
        text-align: center;
    }

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

.site-footer {
    margin-top: 56px;
    background: linear-gradient(90deg, #ffedd5, #fce7f3, #dbeafe);
    border-top: 1px solid rgba(253, 186, 116, 0.5);
}

.footer-grid {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
}

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

.site-footer h2 {
    font-size: 1.05rem;
    margin: 0 0 14px;
}

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

.site-footer a:hover {
    color: var(--orange-dark);
}

.footer-logo {
    margin-bottom: 12px;
    font-size: 1.16rem;
}
