:root {
    --page-bg: #fff8f2;
    --surface: #ffffff;
    --surface-soft: #fff1e8;
    --surface-strong: #ffedd5;
    --text: #1f2937;
    --muted: #6b7280;
    --light: #fff7ed;
    --brand-a: #fb923c;
    --brand-b: #ec4899;
    --brand-c: #f97316;
    --ring: rgba(251, 146, 60, 0.22);
    --shadow: 0 24px 80px rgba(194, 65, 12, 0.15);
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(251, 146, 60, 0.20), transparent 34rem),
        radial-gradient(circle at 80% 8%, rgba(236, 72, 153, 0.18), transparent 30rem),
        var(--page-bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(251, 146, 60, 0.16);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.08);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text);
    white-space: nowrap;
}

.logo-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
    box-shadow: 0 14px 32px rgba(236, 72, 153, 0.25);
}

.logo-text {
    background: linear-gradient(135deg, var(--brand-c), var(--brand-b));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 750;
    color: #4b5563;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #ea580c;
    background: #fff1e8;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff1e8;
    color: #ea580c;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
}

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

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 750;
    color: #4b5563;
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: #ea580c;
    background: #fff1e8;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    position: relative;
    margin: 34px auto 0;
    min-height: 620px;
    overflow: hidden;
    border-radius: 36px;
    background: linear-gradient(135deg, #fff7ed, #fff1f2 52%, #ffe4e6);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
    gap: 42px;
    align-items: center;
    padding: 76px;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.55s ease, visibility 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #ea580c;
    font-size: 13px;
    font-weight: 850;
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.16);
}

.hero h1,
.hero h2 {
    margin: 0;
    max-width: 800px;
    color: #111827;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero-lead {
    max-width: 680px;
    margin: 22px 0 0;
    color: #4b5563;
    font-size: 19px;
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.16);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
    box-shadow: 0 16px 36px rgba(236, 72, 153, 0.22);
}

.btn-secondary {
    color: #ea580c;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.20);
}

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

.hero-art {
    position: relative;
    z-index: 1;
    min-height: 420px;
}

.hero-poster {
    position: absolute;
    right: 0;
    top: 0;
    width: min(390px, 100%);
    aspect-ratio: 3 / 4.15;
    overflow: hidden;
    border: 12px solid rgba(255, 255, 255, 0.72);
    border-radius: 34px;
    background: #fed7aa;
    box-shadow: 0 36px 90px rgba(127, 29, 29, 0.20);
    transform: rotate(3deg);
}

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

.hero-float-card {
    position: absolute;
    left: 0;
    bottom: 18px;
    max-width: 285px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
}

.hero-float-card strong {
    display: block;
    font-size: 18px;
    color: #111827;
}

.hero-float-card span {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
}

.hero-controls {
    position: absolute;
    left: 76px;
    bottom: 36px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.28);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 32px;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
}

.search-panel {
    margin: -36px auto 60px;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 16px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(251, 146, 60, 0.16);
    backdrop-filter: blur(18px);
}

.search-input {
    width: 100%;
    min-height: 54px;
    border: 0;
    outline: 0;
    border-radius: 18px;
    padding: 0 18px;
    color: #111827;
    background: #fff7ed;
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.14);
}

.search-input:focus {
    box-shadow: 0 0 0 5px var(--ring), inset 0 0 0 1px var(--brand-a);
}

.section {
    margin: 74px auto;
}

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

.section-title {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 650px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.link-more {
    flex: 0 0 auto;
    color: #ea580c;
    font-weight: 850;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.15);
}

.movie-cover {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.movie-cover.tall {
    aspect-ratio: 3 / 4;
}

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

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

.cover-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ea580c;
    background: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.movie-body {
    padding: 18px;
}

.movie-title {
    display: -webkit-box;
    min-height: 54px;
    margin: 0 0 8px;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    line-height: 1.48;
    font-weight: 900;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card:hover .movie-title {
    color: #ea580c;
}

.movie-line {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.meta-chip {
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 26px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 241, 232, 0.95));
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(251, 146, 60, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -54px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.34), rgba(236, 72, 153, 0.22));
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 70px rgba(249, 115, 22, 0.15);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #111827;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 14px 0 0;
    color: #6b7280;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 150px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(251, 146, 60, 0.12);
}

.rank-number {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
    font-size: 22px;
    font-weight: 950;
}

.rank-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 18px;
    background: #fed7aa;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-copy h2,
.rank-copy h3 {
    margin: 0;
    color: #111827;
    font-size: 20px;
}

.rank-copy p {
    display: -webkit-box;
    margin: 6px 0 0;
    overflow: hidden;
    color: #6b7280;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.simple-hero {
    margin: 34px auto 48px;
    padding: 56px;
    border-radius: 34px;
    background: linear-gradient(135deg, #fff7ed, #ffe4e6);
    box-shadow: var(--shadow);
}

.simple-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #111827;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.simple-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #4b5563;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0 0;
    color: #9a3412;
    font-size: 14px;
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 32px;
    align-items: start;
    margin: 38px auto 0;
}

.detail-poster {
    position: sticky;
    top: 104px;
    overflow: hidden;
    border-radius: 34px;
    background: #fed7aa;
    box-shadow: var(--shadow);
}

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

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

.detail-title {
    margin: 0;
    color: #111827;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.detail-intro {
    margin: 18px 0 0;
    color: #4b5563;
    font-size: 19px;
    line-height: 1.85;
}

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

.content-card {
    margin-top: 28px;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(251, 146, 60, 0.14);
    box-shadow: var(--shadow-card);
}

.content-card h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.content-card p {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.9;
}

.player-card {
    margin-top: 32px;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: var(--shadow);
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    cursor: pointer;
    background: #111827;
    transition: opacity 0.25s ease, visibility 0.25s 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.58;
    filter: saturate(1.08);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.70), rgba(236, 72, 153, 0.18));
}

.play-button {
    position: relative;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
    box-shadow: 0 20px 50px rgba(236, 72, 153, 0.38);
    cursor: pointer;
}

.play-button span {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 28px solid currentColor;
}

.player-title {
    padding: 20px 24px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.18), rgba(236, 72, 153, 0.18));
}

.player-title strong {
    display: block;
    font-size: 18px;
}

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

.site-footer {
    margin-top: 96px;
    padding: 42px 0;
    color: #9a3412;
    background: rgba(255, 241, 232, 0.72);
    border-top: 1px solid rgba(251, 146, 60, 0.16);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    color: #6b7280;
    box-shadow: var(--shadow-card);
}

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

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

    .hero-slide {
        padding: 54px;
        grid-template-columns: 1fr;
    }

    .hero-art {
        min-height: 360px;
    }

    .hero-poster {
        left: 0;
        right: auto;
    }
}

@media (max-width: 860px) {
    .header-inner {
        height: 68px;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero {
        min-height: 760px;
        border-radius: 28px;
    }

    .hero-slide {
        padding: 34px;
    }

    .hero h1,
    .hero h2 {
        font-size: clamp(38px, 12vw, 62px);
    }

    .hero-controls {
        left: 34px;
        bottom: 24px;
    }

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

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

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

    .detail-poster {
        position: relative;
        top: auto;
        max-width: 420px;
    }

    .rank-item {
        grid-template-columns: 58px 110px 1fr;
    }

    .rank-item .btn {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .page-shell {
        width: min(100% - 22px, 1180px);
    }

    .logo {
        font-size: 20px;
    }

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

    .hero {
        margin-top: 18px;
        min-height: 720px;
    }

    .hero-slide,
    .simple-hero {
        padding: 26px;
    }

    .hero-lead,
    .simple-hero p,
    .detail-intro {
        font-size: 16px;
    }

    .hero-art {
        min-height: 310px;
    }

    .hero-poster {
        width: 78%;
        border-width: 8px;
        border-radius: 26px;
    }

    .hero-float-card {
        max-width: 230px;
    }

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

    .section-heading,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .rank-thumb {
        display: none;
    }

    .rank-item .btn {
        grid-column: 2;
    }
}
