:root {
    color-scheme: light;
    --site-rose: #e11d48;
    --site-purple: #7c3aed;
    --site-stone: #1c1917;
    --site-muted: #78716c;
    --site-border: #e7e5e4;
    --site-soft: #fafaf9;
}

body {
    min-height: 100vh;
    background: #ffffff;
    color: var(--site-stone);
}

.site-header {
    box-shadow: 0 10px 30px rgba(28, 25, 23, 0.06);
}

.brand-link,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-rose), var(--site-purple));
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 16px 36px rgba(225, 29, 72, 0.28);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #292524;
}

.brand-tagline {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #78716c;
}

.nav-link,
.mobile-link {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #57534e;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-rose), var(--site-purple));
    transform: translateY(-1px);
}

.mobile-toggle {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    border-radius: 0.75rem;
    background: #f5f5f4;
    padding: 0.55rem;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: #292524;
}

.mobile-nav {
    display: none;
    padding: 0.75rem 0 1rem;
}

.mobile-nav.is-open {
    display: grid;
    gap: 0.5rem;
}

.hero-carousel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.18), transparent 24%), linear-gradient(135deg, #e11d48, #7c3aed 54%, #ec4899);
    color: #ffffff;
}

.hero-slides {
    position: relative;
    z-index: 1;
    min-height: 650px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
    align-items: center;
    gap: 3rem;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 7rem 1.5rem 8rem;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.22;
    filter: blur(12px) saturate(1.1);
    transform: scale(1.08);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 12, 22, 0.88), rgba(17, 12, 22, 0.5), rgba(17, 12, 22, 0.72));
}

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

.hero-copy {
    max-width: 46rem;
}

.hero-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    backdrop-filter: blur(10px);
}

.hero-copy h1 {
    margin-top: 1.2rem;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 42rem;
    margin-top: 1.35rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.9);
}

.hero-badges,
.detail-tags,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.35rem;
}

.hero-badges span,
.detail-tags span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.85rem 1.35rem;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--site-rose), var(--site-purple));
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(225, 29, 72, 0.28);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.btn-outline {
    border: 1px solid var(--site-border);
    color: #44403c;
    background: #ffffff;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(28, 25, 23, 0.18);
}

.hero-art {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 2rem;
    box-shadow: 0 34px 80px rgba(15, 10, 20, 0.42);
    aspect-ratio: 4 / 5;
    background: rgba(255, 255, 255, 0.14);
}

.hero-art::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: inherit;
}

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

.hero-art:hover img {
    transform: scale(1.05);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 5.5rem;
    display: flex;
    gap: 0.55rem;
    transform: translateX(-50%);
}

.hero-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 2.2rem;
    background: #ffffff;
}

.quick-search-panel {
    position: relative;
    z-index: 5;
}

.search-card {
    border: 1px solid rgba(231, 229, 228, 0.84);
}

.site-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
}

.site-search input,
.movie-search-input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #e7e5e4;
    background: #fafaf9;
    padding: 0.95rem 1.2rem;
    color: #292524;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.site-search input:focus,
.movie-search-input:focus {
    border-color: var(--site-rose);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.site-search button {
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-rose), var(--site-purple));
    padding: 0.95rem 1.5rem;
    color: #ffffff;
    font-weight: 800;
}

.hero-category-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.home-category-tile {
    display: grid;
    gap: 0.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #fff1f2, #f5f3ff);
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-category-tile strong {
    color: #292524;
    font-size: 0.95rem;
}

.home-category-tile span {
    color: #78716c;
    font-size: 0.78rem;
    line-height: 1.45;
}

.home-category-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(28, 25, 23, 0.1);
}

.section-heading {
    margin-bottom: 2rem;
    text-align: center;
}

.section-heading.align-left {
    text-align: left;
}

.section-heading span {
    display: inline-flex;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe4e6, #ede9fe);
    padding: 0.35rem 0.85rem;
    color: var(--site-rose);
    font-weight: 800;
    font-size: 0.82rem;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: #292524;
}

.section-heading p {
    margin-top: 0.7rem;
    color: #78716c;
    line-height: 1.7;
}

.section-heading.dark h2,
.section-heading.dark p {
    color: #ffffff;
}

.section-heading.dark p {
    color: #d6d3d1;
}

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

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

.horizontal-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(18rem, 20rem);
    gap: 1.5rem;
    overflow-x: auto;
    padding: 0.25rem 0.25rem 1rem;
    scroll-snap-type: x mandatory;
}

.movie-card {
    min-width: 0;
    scroll-snap-align: start;
}

.movie-card.is-hidden {
    display: none;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(120, 113, 108, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bg-stone-900 .movie-card-link {
    background: #292524;
    color: #ffffff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.movie-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(120, 113, 108, 0.24);
}

.movie-poster-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e7e5e4;
}

.movie-card-featured .movie-poster-wrap {
    aspect-ratio: 16 / 11;
}

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

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

.movie-type-label,
.rank-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-rose), var(--site-purple));
    padding: 0.32rem 0.65rem;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
}

.rank-badge {
    right: 0.75rem;
    left: auto;
    background: rgba(28, 25, 23, 0.72);
}

.play-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--site-rose);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-card-body {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.movie-card-body h3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    font-size: 1.05rem;
    font-weight: 800;
    color: #292524;
}

.bg-stone-900 .movie-card-body h3 {
    color: #ffffff;
}

.movie-card-body p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 3em;
    color: #78716c;
    font-size: 0.9rem;
    line-height: 1.55;
}

.bg-stone-900 .movie-card-body p {
    color: #d6d3d1;
}

.movie-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #78716c;
    font-size: 0.78rem;
}

.genre-pill {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #f5f5f4;
    padding: 0.32rem 0.6rem;
    color: #57534e;
    font-weight: 700;
}

.category-pill-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.category-pill-wrap.compact {
    justify-content: flex-start;
}

.category-pill {
    border-radius: 999px;
    background: #f5f5f4;
    padding: 0.75rem 1rem;
    color: #57534e;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.category-pill:hover,
.category-pill.active {
    background: linear-gradient(135deg, var(--site-rose), var(--site-purple));
    color: #ffffff;
    transform: translateY(-2px);
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 2rem;
    align-items: start;
}

.rank-list,
.rank-table {
    display: grid;
    gap: 0.75rem;
}

.rank-row,
.rank-table-row {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    border-radius: 1rem;
    background: #ffffff;
    padding: 0.85rem 1rem;
    box-shadow: 0 8px 24px rgba(120, 113, 108, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover,
.rank-table-row:hover {
    transform: translateX(4px);
    box-shadow: 0 14px 32px rgba(120, 113, 108, 0.18);
}

.rank-num,
.rank-table-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-rose), var(--site-purple));
    color: #ffffff;
    font-weight: 900;
}

.rank-title,
.rank-table-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #292524;
    font-weight: 800;
}

.rank-meta,
.rank-table-row em {
    color: #78716c;
    font-size: 0.85rem;
    font-style: normal;
}

.page-hero,
.detail-hero {
    padding: 5rem 0;
}

.page-hero h1,
.detail-copy h1 {
    margin-top: 1rem;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 48rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
    font-size: 1.1rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
}

.breadcrumb a:hover {
    color: #ffffff;
    text-decoration: underline;
}

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

.category-overview-card {
    display: grid;
    gap: 1.25rem;
    border: 1px solid #e7e5e4;
    border-radius: 1.25rem;
    background: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 12px 32px rgba(120, 113, 108, 0.12);
}

.category-card-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #ffe4e6, #ede9fe);
    color: var(--site-rose);
    font-weight: 900;
}

.category-card-head h2 {
    font-size: 1.25rem;
    font-weight: 900;
    color: #292524;
}

.category-card-head p {
    margin-top: 0.35rem;
    color: #78716c;
    line-height: 1.6;
    font-size: 0.92rem;
}

.category-sample-list {
    display: grid;
    gap: 0.65rem;
}

.compact-card {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    border-radius: 0.85rem;
    background: #fafaf9;
    padding: 0.55rem;
}

.compact-card img {
    width: 4.5rem;
    height: 3rem;
    flex: 0 0 auto;
    border-radius: 0.65rem;
    object-fit: cover;
    background: #e7e5e4;
}

.compact-card span {
    display: grid;
    min-width: 0;
}

.compact-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #292524;
    font-size: 0.92rem;
}

.compact-card em {
    margin-top: 0.15rem;
    color: #78716c;
    font-size: 0.78rem;
    font-style: normal;
}

.filter-panel {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
    border: 1px solid #e7e5e4;
    border-radius: 1.25rem;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 12px 30px rgba(120, 113, 108, 0.1);
}

.filter-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.filter-chip {
    border-radius: 999px;
    background: #f5f5f4;
    padding: 0.5rem 0.8rem;
    color: #57534e;
    font-weight: 800;
    font-size: 0.85rem;
}

.filter-chip.active,
.filter-chip:hover {
    background: linear-gradient(135deg, var(--site-rose), var(--site-purple));
    color: #ffffff;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.detail-poster {
    overflow: hidden;
    border-radius: 1.5rem;
    aspect-ratio: 4 / 5;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
}

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

.detail-one-line {
    max-width: 52rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1.85;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    background: #050505;
    aspect-ratio: 16 / 9;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-mask {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    background: radial-gradient(circle at 50% 40%, rgba(225, 29, 72, 0.26), rgba(0, 0, 0, 0.72));
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 0.04em;
    z-index: 2;
}

.player-mask.is-hidden {
    display: none;
}

.play-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--site-rose);
    font-size: 1.65rem;
    box-shadow: 0 20px 46px rgba(225, 29, 72, 0.32);
}

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

.detail-article,
.detail-side {
    border: 1px solid #e7e5e4;
    border-radius: 1.25rem;
    background: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(120, 113, 108, 0.1);
}

.detail-article h2,
.detail-side h2 {
    font-size: 1.35rem;
    font-weight: 900;
    color: #292524;
}

.detail-article h2 + p {
    margin-top: 0.8rem;
}

.detail-article p + h2 {
    margin-top: 1.5rem;
}

.detail-article p {
    color: #57534e;
    line-height: 1.9;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 0.75rem 1rem;
    margin-top: 1rem;
}

.detail-side dt {
    color: #78716c;
    font-weight: 700;
}

.detail-side dd {
    color: #292524;
    font-weight: 800;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr);
    gap: 2rem;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 900;
}

.footer-title {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 900;
}

.footer-links {
    display: grid;
    gap: 0.55rem;
}

.footer-links a {
    color: #d6d3d1;
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    color: #a8a29e;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .hero-slide,
    .ranking-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-art {
        max-width: 26rem;
        margin: 0 auto;
    }

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

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

@media (max-width: 720px) {
    .brand-tagline {
        display: none;
    }

    .hero-carousel,
    .hero-slides {
        min-height: 760px;
    }

    .hero-slide {
        padding: 5.5rem 1rem 7rem;
        gap: 2rem;
    }

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

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

    .rank-row,
    .rank-table-row {
        grid-template-columns: 2.6rem minmax(0, 1fr);
    }

    .rank-meta,
    .rank-table-row em {
        grid-column: 2;
    }

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

    .detail-poster {
        max-width: 18rem;
    }

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