
:root {
    --brand-orange: #ea580c;
    --brand-red: #dc2626;
    --brand-soft: #fff7ed;
    --ink: #1f2937;
    --muted: #6b7280;
    --panel: #ffffff;
    --radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #fff7ed 100%);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.site-header {
    backdrop-filter: blur(18px);
}

.header-row {
    height: 4.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.96rem;
}

.nav-link,
.mobile-link {
    opacity: 0.92;
    transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #fed7aa;
    opacity: 1;
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(127, 29, 29, 0.18);
}

.header-search input,
.mobile-search input {
    width: 14rem;
    padding: 0.7rem 0.95rem;
    color: #111827;
    outline: none;
    background: transparent;
}

.header-search button,
.mobile-search button {
    padding: 0.7rem 1rem;
    background: #111827;
    color: #ffffff;
    font-weight: 700;
}

.menu-button {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1.25rem;
}

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

.mobile-menu.is-open {
    display: block;
}

.mobile-nav {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.mobile-link {
    padding: 0.65rem 0.75rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.13);
}

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

.hero-slide {
    display: none;
    min-height: 650px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-slide.is-active {
    display: block;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.62), rgba(234, 88, 12, 0.28));
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 30%;
    background: linear-gradient(0deg, #fff7ed, transparent);
}

.hero-inner {
    position: relative;
    z-index: 1;
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: center;
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.2);
    color: #fed7aa;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.hero-title {
    max-width: 720px;
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    line-height: 0.98;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.07em;
    margin-bottom: 1.25rem;
}

.hero-desc {
    max-width: 680px;
    color: #e5e7eb;
    font-size: 1.12rem;
    line-height: 1.85;
    margin-bottom: 1.6rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.btn-primary,
.btn-secondary,
.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.8rem 1.3rem;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 16px 36px rgba(239, 68, 68, 0.34);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.btn-dark {
    color: #ffffff;
    background: #111827;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-dark:hover {
    transform: translateY(-2px);
}

.hero-poster {
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    aspect-ratio: 3 / 4;
    background: rgba(255, 255, 255, 0.1);
}

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

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

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

.hero-dot.is-active {
    width: 2rem;
    background: #f97316;
}

.section-wrap {
    padding: 4rem 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.section-eyebrow {
    color: var(--brand-orange);
    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #111827;
}

.section-desc {
    margin-top: 0.5rem;
    color: var(--muted);
    max-width: 720px;
    line-height: 1.8;
}

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

.category-tile {
    min-height: 10rem;
    padding: 1.25rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.18);
}

.category-tile strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.category-tile span {
    color: var(--muted);
    line-height: 1.7;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    min-width: 0;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 46px rgba(234, 88, 12, 0.2);
}

.card-media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.38);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card:hover .card-overlay {
    opacity: 1;
}

.play-mark {
    width: 3.3rem;
    height: 3.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #ea580c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.2rem;
    font-weight: 900;
}

.year-mark,
.rank-badge {
    position: absolute;
    top: 0.75rem;
    padding: 0.28rem 0.55rem;
    border-radius: 0.6rem;
    font-weight: 800;
    font-size: 0.76rem;
}

.year-mark {
    right: 0.75rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
}

.rank-badge {
    left: 0.75rem;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.card-body {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.48rem;
    flex: 1;
}

.card-title {
    color: #111827;
    font-size: 1rem;
    line-height: 1.35;
    min-height: 2.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    color: #6b7280;
    font-size: 0.86rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta,
.card-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.38rem;
    font-size: 0.74rem;
    color: #6b7280;
}

.card-meta span,
.tag-pill {
    border-radius: 999px;
    padding: 0.22rem 0.5rem;
    background: #fff7ed;
    color: #ea580c;
}

.tag-pill {
    background: #f3f4f6;
    color: #4b5563;
}

.rank-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
    gap: 1.5rem;
}

.rank-list {
    display: grid;
    gap: 0.7rem;
}

.rank-row {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

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

.rank-title {
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-type {
    color: var(--muted);
    font-size: 0.85rem;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 1.8rem;
    align-items: center;
}

.live-search {
    min-width: min(100%, 22rem);
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #fed7aa;
    outline: none;
}

.filter-button {
    padding: 0.72rem 1rem;
    border-radius: 999px;
    background: #ffffff;
    color: #ea580c;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.filter-button.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.empty-state {
    display: none;
    padding: 2rem;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    border-radius: var(--radius);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 1.2rem;
}

.breadcrumb a {
    color: var(--brand-orange);
    font-weight: 700;
}

.detail-hero {
    padding: 3rem 0 2rem;
}

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

.detail-cover {
    border-radius: 1.5rem;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #f3f4f6;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

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

.detail-title {
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.06em;
    color: #111827;
    margin-bottom: 1rem;
}

.detail-line {
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.detail-meta span {
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    color: #ea580c;
    background: #ffedd5;
    font-weight: 800;
}

.player-section {
    padding: 2.5rem 0;
    background: radial-gradient(circle at 30% 0%, rgba(249, 115, 22, 0.34), transparent 30%), #111827;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #000000;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    cursor: pointer;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    cursor: pointer;
    z-index: 3;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
}

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

.player-button {
    position: relative;
    z-index: 2;
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.28rem;
    font-size: 2rem;
    box-shadow: 0 20px 50px rgba(234, 88, 12, 0.42);
}

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

.article-panel,
.side-panel {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.article-panel h2,
.side-panel h2 {
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.article-panel p {
    color: #374151;
    line-height: 2;
    margin-bottom: 1.2rem;
}

.side-links {
    display: grid;
    gap: 0.7rem;
}

.side-link {
    padding: 0.8rem;
    border-radius: 0.9rem;
    background: #fff7ed;
    color: #7c2d12;
    font-weight: 800;
}

.pagination-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.site-footer {
    margin-top: 4rem;
    padding-top: 3rem;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 2rem;
}

.footer-logo {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
}

.site-footer p {
    line-height: 1.8;
}

.site-footer h2 {
    color: #ffffff;
    font-weight: 900;
    margin-bottom: 0.8rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}

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

.footer-bottom {
    margin-top: 2.5rem;
    padding: 1.4rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
}

[data-movie-card].is-hidden-by-filter {
    display: none;
}

@media (max-width: 1024px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

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

    .hero-inner,
    .rank-panel,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        max-width: 360px;
    }

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

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

@media (max-width: 720px) {
    .hero-carousel,
    .hero-slide,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        display: block;
        padding-top: 3rem;
        padding-bottom: 5.5rem;
    }

    .hero-poster {
        margin-top: 2rem;
        max-width: 260px;
    }

    .section-wrap {
        padding: 2.5rem 0;
    }

    .section-head {
        display: block;
    }

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

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

    .detail-cover {
        max-width: 250px;
    }

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

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

    .site-logo {
        font-size: 1.24rem;
    }

    .hero-title {
        font-size: 2.35rem;
    }
}
