* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #e5e7eb;
    background: #0f172a;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.18), transparent 28rem),
        radial-gradient(circle at 85% 10%, rgba(59, 130, 246, 0.14), transparent 30rem),
        linear-gradient(180deg, #111827 0%, #0f172a 45%, #020617 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    box-shadow: 0 18px 35px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    min-height: 76px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 800;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #0f172a;
    background: #f59e0b;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.brand-text strong {
    font-size: 22px;
    letter-spacing: 0.02em;
}

.brand-text em {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.nav-link {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.25s ease;
}

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

.header-search,
.mobile-search,
.search-band form {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.82);
    border-radius: 14px;
}

.header-search input,
.mobile-search input,
.search-band input,
.local-filter input {
    width: 100%;
    min-width: 0;
    color: #fff;
    border: 0;
    outline: 0;
    background: transparent;
}

.header-search input,
.mobile-search input,
.search-band input {
    padding: 12px 14px;
}

.header-search button,
.mobile-search button,
.search-band button {
    flex: 0 0 auto;
    padding: 12px 16px;
    color: #0f172a;
    border: 0;
    background: #f59e0b;
    font-weight: 800;
    cursor: pointer;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(30, 41, 59, 0.8);
    border-radius: 12px;
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 20px;
}

.mobile-panel.is-open {
    display: grid;
    gap: 10px;
}

.mobile-panel a {
    padding: 12px 14px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.78);
    border-radius: 12px;
}

main,
.page-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-carousel {
    position: relative;
    max-width: none;
    height: min(74vh, 640px);
    min-height: 480px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.66), rgba(15, 23, 42, 0.12)),
        linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.12) 55%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 72px;
    width: min(1280px, 100%);
    padding: 0 24px;
    transform: translateX(-50%);
}

.hero-content h1,
.hero-content h2 {
    max-width: 780px;
    margin: 14px 0 18px;
    color: #fff;
    font-size: clamp(34px, 5vw, 70px);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.78;
}

.hero-kicker,
.page-hero span {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 7px 12px;
    color: #0f172a;
    background: #f59e0b;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

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

.hero-tags span,
.detail-meta span,
.detail-tags span,
.tag-row span,
.meta-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
}

.hero-actions,
.section-heading,
.local-filter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-actions {
    margin-top: 28px;
}

.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    color: #0f172a;
    background: #f59e0b;
    box-shadow: 0 16px 30px rgba(245, 158, 11, 0.25);
}

.ghost-button,
.section-more {
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(15, 23, 42, 0.58);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #fff;
    border: 0;
    background: rgba(2, 6, 23, 0.62);
    border-radius: 50%;
    font-size: 34px;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #f59e0b;
}

.search-band,
.page-hero,
.detail-hero,
.player-panel,
.detail-content article,
.content-section {
    border: 1px solid rgba(148, 163, 184, 0.13);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.24);
    backdrop-filter: blur(16px);
    border-radius: 26px;
}

.search-band {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 480px);
    gap: 24px;
    align-items: center;
    margin: 32px 0;
    padding: 28px;
}

.search-band h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-content h2 {
    margin: 0;
    color: #fff;
    line-height: 1.1;
}

.search-band h2,
.section-heading h2,
.page-hero h1 {
    font-size: clamp(26px, 3vw, 38px);
}

.search-band p,
.section-heading p,
.page-hero p,
.detail-info p,
.footer-inner p {
    color: #94a3b8;
    line-height: 1.8;
}

.content-section {
    margin: 32px 0;
    padding: 28px;
}

.section-heading {
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-heading p {
    margin: 8px 0 0;
}

.movie-grid,
.category-grid,
.category-card-grid,
.mini-grid,
.rank-grid {
    display: grid;
    gap: 20px;
}

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

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

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

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

.movie-card,
.category-tile,
.category-card,
.mini-card {
    position: relative;
    overflow: hidden;
    color: #e5e7eb;
    background: rgba(30, 41, 59, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover,
.category-tile:hover,
.category-card:hover,
.mini-card:hover {
    border-color: rgba(245, 158, 11, 0.48);
    box-shadow: 0 24px 60px rgba(245, 158, 11, 0.12);
    transform: translateY(-5px);
}

.poster-frame {
    position: relative;
    display: block;
    height: 260px;
    overflow: hidden;
    background: #111827;
}

.poster-frame img,
.category-tile img,
.detail-poster img,
.mini-card img,
.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .poster-frame img,
.category-tile:hover img,
.detail-poster:hover img,
.mini-card:hover img {
    transform: scale(1.08);
}

.year-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 28px;
    color: #fff;
    background: rgba(2, 6, 23, 0.72);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.year-pill {
    right: 12px;
    bottom: 12px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    color: #0f172a;
    background: #f59e0b;
}

.card-content {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.card-content strong {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    color: #fff;
    font-size: 17px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-content em {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    color: #94a3b8;
    font-size: 14px;
    font-style: normal;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card.large .poster-frame {
    height: 430px;
}

.movie-card.rank-list {
    display: grid;
    grid-template-columns: 170px 1fr;
}

.movie-card.rank-list .poster-frame {
    height: 100%;
    min-height: 220px;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 20px;
}

.spotlight-side {
    display: grid;
    gap: 14px;
}

.mini-card {
    display: flex;
    gap: 14px;
    padding: 12px;
}

.mini-card img {
    width: 86px;
    height: 116px;
    flex: 0 0 auto;
    border-radius: 14px;
}

.mini-card span {
    display: grid;
    align-content: center;
    gap: 8px;
}

.mini-card strong {
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
}

.mini-card em {
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
}

.mini-rank {
    width: fit-content;
    padding: 3px 8px;
    color: #0f172a;
    background: #f59e0b;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.scroll-row-wrap {
    position: relative;
}

.scroll-row {
    display: grid;
    grid-auto-columns: 280px;
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
    display: none;
}

.scroll-button {
    position: absolute;
    top: 45%;
    z-index: 3;
    width: 42px;
    height: 42px;
    color: #fff;
    border: 0;
    background: rgba(2, 6, 23, 0.76);
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
}

.scroll-button.left {
    left: -10px;
}

.scroll-button.right {
    right: -10px;
}

.category-tile {
    min-height: 220px;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.12));
}

.category-tile span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: grid;
    gap: 8px;
}

.category-tile strong,
.category-card strong {
    color: #fff;
    font-size: 20px;
}

.category-tile em,
.category-card em {
    color: #cbd5e1;
    font-size: 13px;
    font-style: normal;
    line-height: 1.6;
}

.page-main {
    padding-top: 32px;
}

.page-hero {
    display: grid;
    gap: 14px;
    padding: 34px;
}

.page-hero.compact {
    min-height: 220px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0 0 20px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: #f59e0b;
}

.local-filter {
    max-width: 720px;
    margin-top: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.5);
    border-radius: 16px;
}

.local-filter.wide {
    max-width: none;
    margin-bottom: 22px;
}

.local-filter input {
    padding: 16px 18px;
}

.category-card {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    height: 150px;
    overflow: hidden;
    border-radius: 16px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 32px;
    align-items: center;
    padding: 28px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 26px 80px rgba(2, 6, 23, 0.45);
}

.detail-poster img {
    aspect-ratio: 2 / 3;
}

.detail-info {
    display: grid;
    gap: 18px;
}

.detail-info h1 {
    font-size: clamp(34px, 4vw, 58px);
}

.detail-info p {
    max-width: 820px;
    font-size: 18px;
}

.player-panel {
    margin: 32px 0;
    padding: 18px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 22px;
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 12px;
    color: #fff;
    border: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.18));
    cursor: pointer;
}

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

.player-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto;
    color: #0f172a;
    background: #f59e0b;
    border-radius: 50%;
    font-size: 30px;
    box-shadow: 0 18px 45px rgba(245, 158, 11, 0.26);
}

.player-overlay strong {
    font-size: 18px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-content article {
    padding: 26px;
}

.detail-content h2 {
    margin-bottom: 14px;
    font-size: 24px;
}

.detail-content p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.9;
}

.site-footer {
    margin-top: 48px;
    border-top: 1px solid rgba(148, 163, 184, 0.13);
    background: rgba(2, 6, 23, 0.62);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px;
}

.footer-inner h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 17px;
}

.footer-inner a {
    display: block;
    margin-top: 10px;
    color: #94a3b8;
}

.footer-inner a:hover {
    color: #f59e0b;
}

.footer-bottom {
    padding: 18px 24px 26px;
    color: #64748b;
    text-align: center;
}

[data-hidden="true"] {
    display: none !important;
}

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

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

    .header-search {
        max-width: 340px;
    }

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

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

@media (max-width: 860px) {
    .header-inner {
        min-height: 68px;
        padding: 0 16px;
    }

    .header-search {
        display: none;
    }

    main,
    .page-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-carousel {
        height: 600px;
        min-height: 600px;
    }

    .hero-content {
        bottom: 70px;
        padding: 0 18px;
    }

    .hero-arrow {
        display: none;
    }

    .search-band,
    .spotlight-grid,
    .detail-hero,
    .detail-content,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .movie-card.rank-list {
        grid-template-columns: 120px 1fr;
    }

    .poster-frame {
        height: 220px;
    }
}

@media (max-width: 560px) {
    .brand-text em {
        display: none;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 36px;
    }

    .hero-tags span:nth-child(n + 5) {
        display: none;
    }

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

    .content-section,
    .search-band,
    .page-hero,
    .detail-hero {
        padding: 18px;
        border-radius: 20px;
    }

    .movie-grid,
    .category-grid,
    .category-card-grid,
    .mini-grid,
    .rank-grid {
        grid-template-columns: 1fr;
    }

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

    .movie-card.rank-list .poster-frame {
        height: 260px;
    }

    .detail-content article {
        padding: 18px;
    }
}
