
:root {
    --brand-red: #ef4444;
    --brand-orange: #f97316;
    --brand-pink: #ec4899;
    --brand-rose: #fff1f2;
    --text-main: #1f2937;
    --text-soft: #6b7280;
    --line: #f1f5f9;
    --page: #fff7ed;
    --card: #ffffff;
    --shadow: 0 24px 60px rgba(248, 113, 113, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 22%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange), var(--brand-pink));
    box-shadow: 0 14px 28px rgba(239, 68, 68, 0.28);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
}

.nav-link,
.mobile-nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
    box-shadow: 0 12px 28px rgba(248, 113, 113, 0.28);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    padding: 8px 14px;
    color: #9ca3af;
    background: #fff;
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.08);
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text-main);
    background: transparent;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #fff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

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

.hero-bg,
.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.48), transparent 36%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0.58) 46%, rgba(17, 24, 39, 0.16) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
    padding: 90px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 16px;
    color: #b91c1c;
    font-weight: 900;
    letter-spacing: 0.08em;
    border-radius: 999px;
    background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.hero-content .eyebrow,
.detail-info-card .eyebrow,
.page-hero .eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-content h1 {
    max-width: 780px;
    margin: 24px 0 16px;
    font-size: clamp(44px, 7vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-line {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(18px, 2vw, 26px);
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.detail-tags span,
.tag-row span {
    color: #7c2d12;
    background: linear-gradient(135deg, #ffedd5, #fce7f3);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange), var(--brand-pink));
    box-shadow: 0 16px 34px rgba(239, 68, 68, 0.28);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px) scale(1.01);
}

.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

.primary-button.wide {
    width: 100%;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-dot.is-active {
    width: 42px;
    background: #ffffff;
}

.content-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 80px 0;
}

.soft-bg {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100vw - 1180px) / 2));
    padding-right: max(16px, calc((100vw - 1180px) / 2));
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.6), rgba(252, 231, 243, 0.55));
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-heading span {
    display: inline-flex;
    padding: 8px 18px;
    color: #b91c1c;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.section-heading h2 {
    margin: 18px 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    color: var(--text-soft);
    font-size: 17px;
}

.movie-grid,
.category-grid,
.spotlight-grid {
    display: grid;
    gap: 24px;
}

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

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

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

.movie-card,
.category-card,
.copy-card,
.detail-info-card,
.player-card,
.spotlight-card {
    background: var(--card);
    border: 1px solid rgba(249, 115, 22, 0.12);
    box-shadow: var(--shadow);
}

.movie-card,
.category-card,
.spotlight-card {
    overflow: hidden;
    border-radius: 28px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover,
.category-card:hover,
.spotlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(248, 113, 113, 0.24);
}

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

.movie-poster img,
.category-thumbs img,
.spotlight-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.54));
}

.year-badge,
.rank-badge,
.play-float {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    border-radius: 999px;
}

.year-badge {
    top: 14px;
    right: 14px;
    min-width: 58px;
    padding: 6px 10px;
    color: #fff;
    background: rgba(239, 68, 68, 0.9);
}

.rank-badge {
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
}

.play-float {
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: all 0.22s ease;
}

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

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 900;
}

.movie-card h3,
.category-card h3 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.28;
}

.movie-card p,
.category-card p {
    display: -webkit-box;
    min-height: 50px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--text-soft);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card.is-compact h3 {
    font-size: 17px;
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 230px;
    overflow: hidden;
    background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.category-card-body span {
    color: #ef4444;
    font-weight: 900;
}

.center-actions {
    justify-content: center;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #111827, #7f1d1d 48%, #fb923c);
}

.page-hero {
    min-height: 340px;
    display: grid;
    place-items: center;
    padding: 88px 16px;
    text-align: center;
}

.compact-hero {
    min-height: 320px;
}

.page-hero > div {
    max-width: 820px;
}

.page-hero h1 {
    margin: 24px 0 12px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

.ranking-hero {
    background:
        radial-gradient(circle at 15% 20%, rgba(236, 72, 153, 0.55), transparent 28%),
        linear-gradient(135deg, #111827, #991b1b 54%, #fb923c);
}

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

.spotlight-card {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    color: #fff;
}

.spotlight-card img {
    position: absolute;
    inset: 0;
}

.spotlight-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.92));
}

.spotlight-card div {
    position: relative;
    z-index: 2;
    padding: 26px;
}

.spotlight-card span {
    display: inline-flex;
    padding: 6px 12px;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
}

.spotlight-card h2 {
    margin: 14px 0 10px;
    font-size: 28px;
}

.spotlight-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.detail-hero {
    min-height: 760px;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.32;
    filter: blur(4px) saturate(1.1);
}

.detail-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.76), rgba(17, 24, 39, 0.94));
}

.detail-shell {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 80px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #fff;
}

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

.player-card,
.detail-info-card,
.copy-card {
    border-radius: 30px;
}

.player-card {
    overflow: hidden;
    background: #050505;
}

.player-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050505;
}

.player-video {
    width: 100%;
    height: 100%;
    background: #050505;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #fff;
    border: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.3), rgba(17, 24, 39, 0.82));
    cursor: pointer;
    transition: opacity 0.25s ease;
}

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

.big-play {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    padding-left: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange), var(--brand-pink));
    box-shadow: 0 18px 50px rgba(239, 68, 68, 0.45);
    font-size: 34px;
}

.player-overlay strong {
    max-width: 80%;
    text-align: center;
    font-size: 22px;
}

.detail-info-card {
    padding: 30px;
    color: var(--text-main);
}

.detail-info-card h1 {
    margin: 18px 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-one-line {
    margin: 0 0 20px;
    color: var(--text-soft);
    font-size: 18px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.detail-meta-grid span,
.detail-genre {
    display: grid;
    gap: 4px;
    padding: 14px;
    color: #374151;
    border-radius: 18px;
    background: #fff7ed;
}

.detail-meta-grid b,
.detail-genre b {
    color: #9a3412;
    font-size: 12px;
}

.detail-tags {
    margin: 20px 0;
}

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

.copy-card {
    padding: 30px;
}

.copy-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.copy-card p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
}

.site-footer {
    color: #fff;
    background: #111827;
}

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

.footer-logo {
    color: #fff;
    font-size: 22px;
}

.footer-inner p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.72);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.footer-links a {
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.searchable-item.is-hidden {
    display: none;
}

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

    .detail-layout,
    .copy-grid,
    .footer-inner,
    .spotlight-grid {
        grid-template-columns: 1fr;
    }
}

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

    .header-search {
        min-width: 0;
        width: min(52vw, 280px);
    }

    .menu-button {
        display: inline-block;
    }

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

    .hero-slider {
        min-height: 620px;
    }

    .hero-content {
        padding-top: 110px;
        justify-content: flex-end;
    }

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

    .content-section {
        padding: 54px 0;
    }

    .soft-bg {
        padding-top: 54px;
        padding-bottom: 54px;
    }

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

@media (max-width: 560px) {
    .header-inner {
        width: min(100% - 24px, 1180px);
        gap: 10px;
    }

    .logo-text {
        font-size: 17px;
    }

    .header-search span {
        display: none;
    }

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

    .hero-content h1 {
        font-size: 44px;
    }

    .category-thumbs {
        height: 190px;
    }

    .detail-shell {
        width: min(100% - 24px, 1180px);
    }

    .detail-info-card,
    .copy-card {
        padding: 22px;
    }

    .big-play {
        width: 78px;
        height: 78px;
    }
}
