:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --rose-700: #be123c;
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --yellow-500: #eab308;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --black: #000000;
    --shadow-sm: 0 4px 14px rgba(17, 24, 39, 0.08);
    --shadow-md: 0 10px 28px rgba(17, 24, 39, 0.12);
    --shadow-lg: 0 25px 55px rgba(17, 24, 39, 0.18);
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-2xl: 34px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, var(--orange-50) 0%, var(--white) 38%, var(--gray-50) 100%);
    color: var(--gray-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(229, 231, 235, 0.86);
    backdrop-filter: blur(20px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: var(--white);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rose-600), var(--orange-600));
    box-shadow: 0 14px 30px rgba(225, 29, 72, 0.28);
}

.brand-name {
    font-size: 1.25rem;
}

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

.desktop-nav a,
.mobile-nav a {
    color: var(--gray-700);
    font-weight: 700;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a {
    padding: 10px 16px;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--rose-600);
    background: var(--rose-50);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: var(--gray-100);
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    border-radius: 999px;
    background: var(--gray-800);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-sm);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
}

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

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

.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-700), var(--orange-600));
}

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

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 72% 34%, rgba(255, 255, 255, 0.2), transparent 30%),
        linear-gradient(90deg, rgba(225, 29, 72, 0.95), rgba(234, 88, 12, 0.84) 48%, rgba(17, 24, 39, 0.32));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(660px, 100%);
}

.hero-kicker,
.section-kicker,
.eyebrow {
    color: var(--rose-600);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rose-100);
    margin-bottom: 18px;
}

.hero-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(2.7rem, 7vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-copy h1 span {
    color: var(--rose-200);
}

.hero-copy p {
    max-width: 640px;
    margin: 0 0 30px;
    color: var(--rose-50);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn-primary,
.btn-secondary,
.btn-light,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-600), var(--orange-600));
    box-shadow: 0 16px 32px rgba(225, 29, 72, 0.24);
}

.btn-light {
    color: var(--rose-600);
    background: var(--white);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

.btn-secondary,
.btn-ghost {
    color: var(--rose-700);
    background: var(--rose-50);
}

.btn-ghost {
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover,
.btn-ghost:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
}

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

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

.hero-dot.is-active {
    background: var(--white);
}

.hero-bottom-fade {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    height: 110px;
    background: linear-gradient(0deg, var(--orange-50), transparent);
}

.section {
    padding: 70px 0;
}

.section.soft {
    background: linear-gradient(90deg, var(--orange-100), var(--rose-100));
}

.section.dark-cta {
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-600), var(--orange-600));
}

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

.section-head.center {
    display: block;
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-head h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-head p,
.page-hero p {
    margin: 10px 0 0;
    color: var(--gray-600);
    font-size: 1.05rem;
}

.dark-cta .section-head h2,
.dark-cta .section-head p {
    color: var(--white);
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rose-600), var(--orange-600));
}

.movie-grid.compact .poster-frame {
    aspect-ratio: 3 / 4;
}

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

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

.corner-badge,
.score-badge,
.type-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--white);
    font-size: 0.76rem;
    font-weight: 800;
}

.corner-badge {
    top: 12px;
    left: 12px;
    background: var(--rose-600);
}

.score-badge {
    top: 12px;
    right: 12px;
    background: var(--yellow-500);
}

.type-badge {
    left: 12px;
    bottom: 12px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(12px);
}

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

.movie-card-body h3 {
    min-height: 3.05em;
    margin: 6px 0 8px;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 1.04rem;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.movie-card-link:hover h3 {
    color: var(--rose-600);
}

.card-desc {
    min-height: 3.1em;
    margin: 0;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--rose-600);
    background: var(--rose-50);
    font-size: 0.74rem;
    font-weight: 800;
}

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

.category-card {
    display: block;
    min-height: 210px;
    padding: 26px;
    border-radius: var(--radius-2xl);
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.2), transparent 34%),
        var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card span {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 16px;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose-600), var(--orange-600));
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    color: var(--gray-900);
    font-size: 1.35rem;
}

.category-card p {
    margin: 0;
    color: var(--gray-600);
}

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

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

.rank-item a {
    display: grid;
    grid-template-columns: 52px 74px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.rank-number {
    color: var(--rose-600);
    font-size: 1.5rem;
    font-weight: 950;
}

.rank-item img {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    object-fit: cover;
}

.rank-info {
    min-width: 0;
}

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info strong {
    overflow: hidden;
    color: var(--gray-900);
    font-size: 1rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-info em {
    color: var(--gray-500);
    font-size: 0.86rem;
    font-style: normal;
}

.rank-score {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--white);
    background: var(--yellow-500);
    font-weight: 900;
}

.page-hero {
    padding: 70px 0 46px;
    background:
        radial-gradient(circle at 18% 20%, rgba(225, 29, 72, 0.18), transparent 28%),
        radial-gradient(circle at 88% 0%, rgba(249, 115, 22, 0.22), transparent 30%),
        linear-gradient(180deg, var(--orange-50), var(--white));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--gray-600);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--rose-600);
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr));
    gap: 14px;
    align-items: end;
    margin: 0 0 30px;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.filter-field {
    display: grid;
    gap: 7px;
    color: var(--gray-600);
    font-size: 0.88rem;
    font-weight: 800;
}

.filter-field input,
.filter-field select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    color: var(--gray-900);
    border: 1px solid var(--gray-200);
    border-radius: 15px;
    outline: 0;
    background: var(--gray-50);
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: var(--rose-500);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(290px, 0.86fr);
    gap: 30px;
    align-items: start;
    padding: 38px 0 72px;
}

.detail-main,
.detail-side,
.detail-block {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.detail-main {
    overflow: hidden;
}

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--gray-900);
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--gray-900);
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background:
        radial-gradient(circle at center, rgba(225, 29, 72, 0.42), transparent 32%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.72));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-bubble {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 26px;
    border-radius: 999px;
    color: var(--rose-600);
    background: var(--white);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    font-size: 1.08rem;
    font-weight: 950;
}

.play-icon {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-600), var(--orange-600));
}

.detail-content {
    padding: 28px;
}

.detail-title {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.detail-title p {
    margin: 12px 0 0;
    color: var(--gray-600);
    font-size: 1.08rem;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.meta-row span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-weight: 800;
}

.text-block {
    margin-top: 24px;
}

.text-block h2 {
    margin: 0 0 12px;
    color: var(--gray-900);
    font-size: 1.35rem;
}

.text-block p {
    margin: 0;
    color: var(--gray-700);
}

.detail-side {
    padding: 20px;
}

.side-poster {
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--rose-600), var(--orange-600));
}

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

.side-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
}

.side-list strong {
    color: var(--gray-900);
}

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

.related-card {
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.related-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.related-card strong {
    display: block;
    min-height: 3em;
    padding: 12px;
    color: var(--gray-900);
    font-size: 0.92rem;
    line-height: 1.5;
}

.site-footer {
    color: var(--gray-600);
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

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

.footer-brand {
    margin-bottom: 10px;
    color: var(--gray-900);
    font-size: 1.2rem;
}

.footer-shell p {
    max-width: 620px;
    margin: 8px 0 0;
}

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

.footer-links a {
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--rose-600);
    background: var(--rose-50);
    font-weight: 800;
}

.footer-bottom {
    padding: 18px;
    color: var(--gray-500);
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

.empty-state {
    display: none;
    padding: 36px;
    border-radius: var(--radius-xl);
    color: var(--gray-600);
    text-align: center;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

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

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

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

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

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

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

    .nav-toggle {
        display: block;
    }

    .hero-slider {
        height: 560px;
    }

    .section {
        padding: 52px 0;
    }

    .section-head {
        display: block;
    }

    .section-head .btn-secondary {
        margin-top: 16px;
    }

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

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

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

    .detail-layout {
        grid-template-columns: 1fr;
        padding-top: 24px;
    }

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

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

    .footer-links {
        justify-content: flex-start;
    }
}

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

    .hero-slider {
        height: 620px;
    }

    .hero-copy h1 {
        font-size: 2.58rem;
    }

    .hero-actions,
    .cta-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-light,
    .btn-ghost {
        width: 100%;
    }

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

    .rank-item a {
        grid-template-columns: 38px 62px 1fr;
    }

    .rank-score {
        display: none;
    }

    .detail-content,
    .detail-side {
        padding: 18px;
    }

    .play-bubble {
        padding: 14px 18px;
        font-size: 1rem;
    }

    .play-icon {
        width: 38px;
        height: 38px;
    }
}
