html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #111827 100%);
    color: #e5e7eb;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.5rem;
    gap: 1.5rem;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #fbbf24;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.site-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
    color: #0f172a;
    box-shadow: 0 18px 35px rgba(245, 158, 11, 0.22);
}

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

.nav-link,
.mobile-nav-link {
    color: #d1d5db;
    font-size: 0.95rem;
    transition: color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover {
    color: #fbbf24;
}

.nav-link:hover {
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    width: 1.45rem;
    background: #e5e7eb;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 0 1rem;
    border-top: 1px solid rgba(245, 158, 11, 0.14);
}

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

.hero-carousel {
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 650ms ease, transform 950ms ease;
}

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.25)),
        linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.1) 42%, rgba(15, 23, 42, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 600px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    align-items: center;
    gap: 3rem;
}

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

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    max-width: 58rem;
    color: #ffffff;
    font-size: clamp(2.4rem, 7vw, 5.6rem);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.hero-line,
.page-hero p,
.detail-one-line {
    margin-top: 1.25rem;
    max-width: 44rem;
    color: #d1d5db;
    font-size: 1.15rem;
    line-height: 1.8;
}

.hero-tags,
.detail-tags,
.movie-card-tags,
.filter-chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.hero-tags {
    margin-top: 1.5rem;
}

.hero-tags span,
.detail-tags span,
.movie-card-tags span {
    display: inline-flex;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    background: rgba(15, 23, 42, 0.72);
    color: #fde68a;
    font-size: 0.78rem;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    border-radius: 999px;
    padding: 0 1.3rem;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
    color: #0f172a;
    box-shadow: 0 18px 35px rgba(245, 158, 11, 0.25);
}

.ghost-button {
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: rgba(15, 23, 42, 0.64);
    color: #fbbf24;
}

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

.hero-card {
    display: grid;
    gap: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 1.5rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.66);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.hero-card img {
    width: 100%;
    height: 24rem;
    border-radius: 1.1rem;
    object-fit: cover;
}

.hero-card span {
    display: block;
    color: #94a3b8;
    font-size: 0.88rem;
}

.hero-card strong {
    display: block;
    margin-top: 0.25rem;
    color: #ffffff;
    font-size: 1.05rem;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transform: translateX(-50%);
}

.hero-dots {
    display: flex;
    gap: 0.5rem;
}

.hero-dot,
.hero-arrow {
    border: 1px solid rgba(245, 158, 11, 0.32);
    background: rgba(15, 23, 42, 0.72);
    color: #fbbf24;
    transition: background 180ms ease, transform 180ms ease;
}

.hero-dot {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
}

.hero-dot.is-active,
.hero-arrow:hover {
    background: #f59e0b;
    color: #0f172a;
}

.hero-arrow {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    font-size: 1.6rem;
}

.stats-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: -2rem;
    position: relative;
    z-index: 8;
}

.stats-band div,
.search-panel,
.content-card,
.player-panel,
.category-overview-card,
.category-tile {
    border: 1px solid rgba(245, 158, 11, 0.16);
    background: rgba(30, 41, 59, 0.74);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(10px);
}

.stats-band div {
    border-radius: 1.25rem;
    padding: 1.25rem;
    text-align: center;
}

.stats-band strong {
    display: block;
    color: #fbbf24;
    font-size: 2rem;
    line-height: 1;
}

.stats-band span {
    display: block;
    margin-top: 0.45rem;
    color: #cbd5e1;
}

.search-panel {
    width: min(1180px, calc(100% - 2rem));
    margin: 4rem auto 0;
    border-radius: 1.5rem;
    padding: 1rem;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    min-height: 3.25rem;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.82);
    color: #e5e7eb;
    padding: 0 1rem 0 3rem;
    outline: none;
}

.search-box input:focus {
    border-color: rgba(245, 158, 11, 0.72);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    color: #fbbf24;
    transform: translateY(-50%);
}

.filter-chip-row {
    margin-top: 1rem;
}

.filter-chip {
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    color: #d1d5db;
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    background: #f59e0b;
    color: #0f172a;
    transform: translateY(-1px);
}

.section-block {
    padding-top: 4rem;
    padding-bottom: 1rem;
}

.section-heading {
    margin-bottom: 1.65rem;
}

.section-heading h2 {
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.section-subtitle {
    max-width: 48rem;
    margin-top: 0.75rem;
    color: #9ca3af;
    line-height: 1.75;
}

.movie-grid,
.category-grid,
.category-overview-grid,
.ranking-strip {
    display: grid;
    gap: 1.35rem;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.14);
    border-radius: 1.15rem;
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 24px 55px rgba(245, 158, 11, 0.14);
    transform: translateY(-6px);
}

.movie-poster-wrap {
    position: relative;
    height: 16rem;
    overflow: hidden;
    background: #020617;
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease, opacity 300ms ease;
}

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

.movie-year,
.movie-type,
.movie-rank {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.movie-year {
    left: 0.7rem;
    top: 0.7rem;
    background: rgba(2, 6, 23, 0.72);
    color: #fde68a;
    padding: 0.22rem 0.55rem;
}

.movie-type {
    right: 0.7rem;
    top: 0.7rem;
    background: rgba(245, 158, 11, 0.95);
    color: #0f172a;
    padding: 0.22rem 0.55rem;
}

.movie-rank {
    left: 0.7rem;
    bottom: 0.7rem;
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
    color: #0f172a;
}

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

.movie-card-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-meta,
.movie-card-desc {
    color: #9ca3af;
    font-size: 0.88rem;
    line-height: 1.55;
}

.movie-card-desc {
    min-height: 2.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-tags {
    gap: 0.35rem;
}

.movie-card-tags span {
    padding: 0.18rem 0.5rem;
    font-size: 0.72rem;
}

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

.category-tile {
    position: relative;
    min-height: 14rem;
    overflow: hidden;
    border-radius: 1.35rem;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    transition: transform 300ms ease, opacity 300ms ease;
}

.category-tile:hover img {
    opacity: 0.62;
    transform: scale(1.07);
}

.category-tile div {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 14rem;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.1));
}

.category-tile span,
.category-overview-body span {
    color: #fbbf24;
    font-weight: 800;
}

.category-tile h3,
.category-overview-body h2 {
    margin-top: 0.25rem;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
}

.category-tile p,
.category-overview-body p {
    margin-top: 0.45rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.24), transparent 36rem), #020617;
}

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

.compact-page-hero,
.category-hero,
.ranking-hero {
    border-bottom: 1px solid rgba(245, 158, 11, 0.16);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

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

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

.category-overview-card {
    overflow: hidden;
    border-radius: 1.35rem;
    transition: transform 220ms ease, border-color 220ms ease;
}

.category-overview-card:hover {
    border-color: rgba(245, 158, 11, 0.45);
    transform: translateY(-5px);
}

.category-overview-images {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.2rem;
    height: 9.5rem;
    overflow: hidden;
}

.category-overview-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overview-body {
    padding: 1.25rem;
}

.detail-hero {
    min-height: 42rem;
}

.detail-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.48)),
        linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.15) 62%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 5rem;
    padding-bottom: 4rem;
}

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

.detail-poster-card {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 1.35rem;
    background: rgba(15, 23, 42, 0.78);
    padding: 0.7rem;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.detail-poster-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 1rem;
    object-fit: cover;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.detail-meta-grid span {
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.7);
    color: #e5e7eb;
    padding: 0.9rem;
}

.detail-meta-grid strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #fbbf24;
    font-size: 0.78rem;
}

.detail-tags {
    margin-top: 1rem;
}

.player-panel {
    border-radius: 1.35rem;
    padding: 0.75rem;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: #000000;
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background:
        radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent 18rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.8));
    color: #ffffff;
    text-align: center;
}

.play-overlay.is-hidden {
    display: none;
}

.play-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
    color: #0f172a;
    font-size: 2.2rem;
    box-shadow: 0 22px 50px rgba(245, 158, 11, 0.28);
}

.play-overlay strong {
    max-width: 80%;
    font-size: 1.25rem;
}

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

.content-card {
    border-radius: 1.35rem;
    padding: 1.5rem;
}

.content-card h2 {
    color: #fbbf24;
    font-size: 1.35rem;
    font-weight: 900;
}

.content-card p {
    margin-top: 0.8rem;
    color: #d1d5db;
    line-height: 1.9;
}

.site-footer {
    margin-top: 5rem;
    border-top: 1px solid rgba(245, 158, 11, 0.16);
    background: rgba(2, 6, 23, 0.7);
    padding: 3rem 0;
}

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

.footer-logo {
    margin-bottom: 1rem;
}

.footer-text,
.footer-links a {
    color: #9ca3af;
    line-height: 1.75;
}

.footer-title {
    margin-bottom: 1rem;
    color: #fbbf24;
    font-weight: 900;
}

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

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

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

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

[hidden] {
    display: none !important;
}

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

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

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

    .mobile-menu-button {
        display: flex;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 5rem;
        padding-bottom: 7rem;
    }

    .hero-card {
        display: none;
    }

    .stats-band,
    .detail-meta-grid,
    .category-overview-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-layout {
        grid-template-columns: 14rem minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-carousel,
    .hero-content {
        min-height: 640px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: clamp(2.15rem, 12vw, 3.5rem);
    }

    .stats-band,
    .movie-grid,
    .compact-grid,
    .category-grid,
    .ranking-strip,
    .category-overview-grid,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-poster-card {
        max-width: 17rem;
    }

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

    .search-panel {
        margin-top: 2rem;
    }
}

@media (max-width: 520px) {
    .site-logo {
        font-size: 1rem;
    }

    .hero-actions {
        display: grid;
    }

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

    .category-overview-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: 14rem;
    }
}
