:root {
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-soft: #f9fafb;
    --color-line: #e5e7eb;
    --color-orange: #f97316;
    --color-pink: #ec4899;
    --color-purple: #8b5cf6;
    --color-blue: #3b82f6;
    --shadow-card: 0 18px 45px rgba(17, 24, 39, 0.10);
    --shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 28%, #fff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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: 100;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

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

.brand-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--color-orange), var(--color-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-link,
.mobile-link {
    color: #374151;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.2s ease, background 0.2s ease;
}

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

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: #374151;
    background: #f3f4f6;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-nav.open {
    display: grid;
}

.mobile-link {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff7ed;
}

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

.hero {
    position: relative;
    min-height: 620px;
    display: grid;
    align-items: center;
    overflow: hidden;
    margin-top: 24px;
    border-radius: 36px;
    background: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.65), transparent 30%), linear-gradient(135deg, #fb923c 0%, #ec4899 45%, #8b5cf6 100%);
    box-shadow: 0 30px 80px rgba(236, 72, 153, 0.28);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.15) 42%, rgba(255, 255, 255, 0.08));
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    filter: saturate(1.08) contrast(1.03);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100% - 48px));
    padding: 64px 0 64px 58px;
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    font-weight: 800;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.07em;
    font-weight: 950;
    text-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.hero p {
    max-width: 620px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
}

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

.button-primary,
.button-secondary,
.button-light,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 0 20px;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
    box-shadow: 0 18px 34px rgba(236, 72, 153, 0.24);
}

.button-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(10px);
}

.button-light {
    color: var(--color-orange);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.button-primary:hover,
.button-secondary:hover,
.button-light:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.text-link {
    min-height: 38px;
    padding: 0;
    color: var(--color-orange);
    background: transparent;
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 560px;
    margin-top: 28px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 50px rgba(17, 24, 39, 0.16);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #111827;
    background: transparent;
    padding: 0 12px;
}

.hero-controls {
    position: absolute;
    right: 32px;
    bottom: 28px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

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

.hero-dot.active {
    background: #ffffff;
}

.section {
    margin-top: 64px;
}

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

.section-heading h1,
.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--color-muted);
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card,
.category-card,
.ranking-item,
.info-panel,
.filter-panel {
    border: 1px solid rgba(229, 231, 235, 0.88);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

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

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

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

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

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

.score-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 48px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.movie-card h2,
.ranking-copy h2,
.detail-copy h1 {
    margin: 0;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.movie-card h2 {
    min-height: 3.1em;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h2 a:hover,
.ranking-copy h2 a:hover {
    color: var(--color-orange);
}

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

.movie-meta-line,
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--color-muted);
    font-size: 13px;
}

.movie-meta-line span,
.breadcrumb a,
.breadcrumb span {
    display: inline-flex;
    align-items: center;
}

.movie-meta-line span:not(:last-child)::after {
    content: "";
    width: 4px;
    height: 4px;
    margin-left: 8px;
    border-radius: 50%;
    background: #d1d5db;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 28px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: #c2410c;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 22px;
    color: #ffffff;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card::before {
    content: "";
    position: absolute;
    inset: -50% -40% auto auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.category-card h2 {
    position: relative;
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 950;
}

.category-card p {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
}

.category-card .text-link {
    position: relative;
    margin-top: 22px;
    color: #ffffff;
}

.gradient-orange-pink {
    background: linear-gradient(135deg, #fb923c, #ec4899);
}

.gradient-pink-purple {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.gradient-purple-blue {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
}

.gradient-blue-cyan {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.gradient-green-orange {
    background: linear-gradient(135deg, #22c55e, #f97316);
}

.gradient-violet-pink {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.gradient-red-orange {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.gradient-cyan-green {
    background: linear-gradient(135deg, #06b6d4, #10b981);
}

.gradient-indigo-purple {
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

.gradient-amber-rose {
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
}

.banner {
    position: relative;
    overflow: hidden;
    padding: 54px;
    border-radius: 32px;
    color: #ffffff;
    box-shadow: var(--shadow-card);
}

.banner h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.banner p {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.filter-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px;
    margin: 28px 0;
}

.filter-panel input,
.filter-panel select {
    min-height: 44px;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    outline: 0;
    padding: 0 14px;
    color: #111827;
    background: #ffffff;
}

.filter-panel input {
    flex: 1 1 260px;
}

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 64px 122px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.ranking-number {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
    font-size: 24px;
    font-weight: 950;
}

.ranking-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffedd5, #fce7f3);
}

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

.ranking-copy p {
    margin: 6px 0 10px;
    color: var(--color-muted);
}

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

.player-box {
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.28);
}

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

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.30), rgba(236, 72, 153, 0.28));
    cursor: pointer;
}

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

.play-badge {
    width: 94px;
    height: 94px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
    box-shadow: 0 24px 46px rgba(236, 72, 153, 0.4);
    font-size: 34px;
}

.detail-copy,
.detail-side,
.info-panel {
    border-radius: 28px;
}

.detail-copy {
    padding: 28px 0 0;
}

.detail-copy h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
}

.detail-copy p {
    color: var(--color-muted);
    font-size: 17px;
}

.detail-side {
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-side img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #ffedd5, #fce7f3);
}

.detail-side-body {
    padding: 22px;
}

.info-panel {
    padding: 24px;
    margin-top: 24px;
}

.info-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 950;
}

.info-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 10px;
    color: #374151;
}

.info-list dt {
    color: var(--color-muted);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
}

.site-footer {
    margin-top: 56px;
    padding: 48px 0 26px;
    background: linear-gradient(135deg, #fff7ed, #fdf2f8, #f5f3ff);
    border-top: 1px solid rgba(229, 231, 235, 0.88);
}

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

.footer-grid p {
    color: var(--color-muted);
}

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 950;
}

.footer-grid ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(209, 213, 219, 0.76);
    color: var(--color-muted);
    font-size: 14px;
}

.empty-state {
    display: none;
    padding: 36px;
    border-radius: 20px;
    color: var(--color-muted);
    text-align: center;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

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

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

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

    .detail-side {
        max-width: 420px;
    }
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 66px;
    }

    .brand-text {
        font-size: 20px;
    }

    .page-main {
        padding-top: 24px;
    }

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

    .hero-content {
        width: calc(100% - 32px);
        padding: 44px 0 44px 28px;
    }

    .hero-search {
        align-items: stretch;
        flex-direction: column;
        border-radius: 22px;
    }

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

    .hero-controls {
        left: 28px;
        right: auto;
    }

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

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

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

    .ranking-item {
        grid-template-columns: 46px 92px 1fr;
        gap: 12px;
    }

    .ranking-number {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 18px;
    }

    .banner {
        padding: 34px 24px;
        border-radius: 26px;
    }

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

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

    .mobile-nav {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        grid-template-columns: 1fr;
    }

    .ranking-thumb {
        aspect-ratio: 16 / 9;
    }
}
