* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #0c0a09;
    color: #f5f5f4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    background: rgba(28, 25, 23, 0.95);
    border-bottom: 1px solid #292524;
    backdrop-filter: blur(10px);
}

.header-inner {
    max-width: 80rem;
    height: 4rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #f59e0b;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1c1917;
    box-shadow: 0 0 32px rgba(245, 158, 11, 0.35);
}

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

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

.nav-link {
    color: #d6d3d1;
    font-size: 0.95rem;
    font-weight: 650;
    transition: color 0.2s ease;
}

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

.mobile-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.45rem;
    border: 0;
    color: #fafaf9;
    background: transparent;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 0.36rem 0;
    border-radius: 999px;
    background: currentColor;
}

.mobile-nav {
    display: none;
    border-top: 1px solid #292524;
    padding: 0.75rem 1rem 1rem;
    background: #1c1917;
}

.mobile-nav a {
    display: block;
    padding: 0.65rem 0;
    color: #d6d3d1;
    font-weight: 650;
}

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

main {
    min-height: 72vh;
}

.hero-slider {
    position: relative;
    min-height: 760px;
    height: 88vh;
    overflow: hidden;
    background: #1c1917;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 20%, rgba(245, 158, 11, 0.2), transparent 28rem),
        linear-gradient(90deg, rgba(12, 10, 9, 0.96), rgba(12, 10, 9, 0.58) 52%, rgba(12, 10, 9, 0.28)),
        linear-gradient(0deg, #0c0a09 0%, rgba(12, 10, 9, 0) 38%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 6.5rem;
    width: min(80rem, calc(100% - 2rem));
    transform: translateX(-50%);
    z-index: 2;
    max-width: 80rem;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0.85rem 0 1rem;
    max-width: 50rem;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1.02;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.05em;
}

.hero-content p,
.page-hero p,
.detail-copy p {
    max-width: 48rem;
    margin: 0 0 1.5rem;
    color: #d6d3d1;
    font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.hero-pill,
.eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: #f59e0b;
    color: #1c1917;
    font-size: 0.8rem;
    font-weight: 850;
}

.hero-meta,
.mini-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1.1rem;
    color: #a8a29e;
}

.hero-meta span:first-child {
    color: #fbbf24;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border-radius: 0.85rem;
    padding: 0 1.5rem;
    font-weight: 850;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
    background: #f59e0b;
    color: #1c1917;
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.25);
}

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

.primary-btn:hover {
    background: #d97706;
}

.ghost-btn {
    border: 1px solid rgba(245, 245, 244, 0.2);
    background: rgba(0, 0, 0, 0.35);
    color: #fafaf9;
}

.ghost-btn:hover {
    border-color: #f59e0b;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 3rem;
    height: 3rem;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.75);
}

.hero-prev {
    left: 1rem;
}

.hero-next {
    right: 1rem;
}

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

.hero-dot {
    width: 0.6rem;
    height: 0.6rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-thumbs {
    position: absolute;
    right: max(1rem, calc((100% - 80rem) / 2));
    bottom: 6.5rem;
    z-index: 4;
    width: 18rem;
    display: grid;
    gap: 0.75rem;
}

.hero-thumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem;
    border: 1px solid rgba(245, 245, 244, 0.1);
    border-radius: 0.9rem;
    background: rgba(28, 25, 23, 0.76);
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-thumb:hover {
    transform: translateX(-4px);
    border-color: rgba(245, 158, 11, 0.65);
}

.hero-thumb img {
    width: 3.4rem;
    height: 4.5rem;
    object-fit: cover;
    border-radius: 0.65rem;
    background: #292524;
}

.hero-thumb span {
    color: #f5f5f4;
    font-weight: 750;
}

.page-main {
    padding-top: 5rem;
}

.page-hero {
    max-width: 80rem;
    margin: 0 auto;
    padding: 5rem 1rem 2rem;
}

.compact-hero > div {
    position: relative;
    overflow: hidden;
    border: 1px solid #292524;
    border-radius: 1.5rem;
    padding: clamp(2rem, 5vw, 4rem);
    background:
        radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.22), transparent 24rem),
        linear-gradient(135deg, #1c1917, #292524 58%, #0c0a09);
}

.content-section {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2.5rem 1rem;
}

.panel-section,
.gradient-panel,
.ranking-panel,
.filter-panel {
    border-radius: 1.5rem;
}

.panel-section {
    padding: 2rem;
    background: #1c1917;
}

.gradient-panel,
.ranking-panel,
.filter-panel {
    background: linear-gradient(135deg, #1c1917, #292524);
}

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

.section-head h2,
.player-section h2,
.detail-article h2,
.detail-sidebar h2 {
    margin: 0.55rem 0 0;
    color: #ffffff;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.2;
}

.grid {
    display: grid;
    gap: 1rem;
}

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(245, 245, 244, 0.04);
    border-radius: 0.9rem;
    background: #292524;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.48);
    background: #302b27;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #292524, #1c1917);
}

.poster-wrap img,
.horizontal-poster img,
.detail-poster img,
.category-cover-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-wrap img,
.movie-card:hover .horizontal-poster img {
    transform: scale(1.06);
}

.score-badge,
.type-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 850;
}

.score-badge {
    top: 0.55rem;
    right: 0.55rem;
    background: rgba(0, 0, 0, 0.72);
    color: #fbbf24;
}

.type-badge {
    left: 0.55rem;
    bottom: 0.55rem;
    background: rgba(245, 158, 11, 0.94);
    color: #1c1917;
}

.card-info {
    padding: 0.9rem;
}

.card-info h3,
.horizontal-info h3 {
    margin: 0 0 0.45rem;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card:hover h3 {
    color: #fbbf24;
}

.card-info p,
.horizontal-info p {
    margin: 0 0 0.8rem;
    color: #a8a29e;
    font-size: 0.92rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    justify-content: space-between;
    gap: 0.4rem;
    color: #a8a29e;
    font-size: 0.82rem;
}

.movie-card-large .card-info h3 {
    font-size: 1.35rem;
}

.movie-card-large .poster-wrap::after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(0deg, rgba(12, 10, 9, 0.82), transparent);
}

.movie-card-horizontal {
    display: flex;
    min-height: 12rem;
}

.horizontal-poster {
    width: 9rem;
    flex: 0 0 9rem;
    overflow: hidden;
    background: #1c1917;
}

.horizontal-info {
    padding: 1rem;
}

.mini-meta {
    margin-bottom: 0.6rem;
    font-size: 0.78rem;
}

.mini-meta span:first-child {
    color: #fbbf24;
}

.category-grid,
.category-overview-grid {
    display: grid;
    gap: 1rem;
}

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

.category-tile,
.category-overview-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(245, 245, 244, 0.08);
    border-radius: 1rem;
    background: rgba(41, 37, 36, 0.82);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile {
    padding: 1.1rem;
}

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

.category-tile span,
.category-overview-info .eyebrow {
    color: #fbbf24;
    background: transparent;
    padding: 0;
}

.category-tile strong,
.category-overview-info h2 {
    display: block;
    margin: 0.35rem 0;
    color: #ffffff;
    font-size: 1.08rem;
}

.category-tile p,
.category-overview-info p,
.site-footer p {
    margin: 0;
    color: #a8a29e;
    font-size: 0.9rem;
}

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

.category-cover-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 12rem;
    background: #1c1917;
}

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

.filter-bar {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
}

.filter-bar label {
    display: grid;
    gap: 0.35rem;
    color: #d6d3d1;
    font-weight: 700;
}

.filter-bar input,
.filter-bar select {
    min-height: 3rem;
    width: 100%;
    border: 1px solid #44403c;
    border-radius: 0.85rem;
    padding: 0 0.9rem;
    background: #0c0a09;
    color: #f5f5f4;
    outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.filter-state {
    margin: 1rem 0 0;
    color: #a8a29e;
}

.is-hidden-by-filter {
    display: none !important;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 3.2rem 3.2rem minmax(0, 1fr) auto 4rem;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem;
    border: 1px solid rgba(245, 245, 244, 0.06);
    border-radius: 0.85rem;
    background: rgba(12, 10, 9, 0.38);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    transform: translateX(5px);
    border-color: rgba(245, 158, 11, 0.52);
}

.rank-num {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border-radius: 999px;
    background: #f59e0b;
    color: #1c1917;
    font-weight: 900;
}

.rank-row img {
    width: 3.2rem;
    height: 4.2rem;
    object-fit: cover;
    border-radius: 0.5rem;
    background: #292524;
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    color: #ffffff;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    color: #a8a29e;
    font-size: 0.9rem;
}

.rank-row strong {
    color: #fbbf24;
    text-align: right;
}

.breadcrumb {
    max-width: 80rem;
    margin: 0 auto 1rem;
    padding: 1.25rem 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: #a8a29e;
    font-size: 0.92rem;
}

.breadcrumb a {
    color: #fbbf24;
}

.detail-hero {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem;
    display: grid;
    grid-template-columns: 18rem minmax(0, 1fr);
    gap: 2rem;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: 1.2rem;
    aspect-ratio: 3 / 4;
    background: #292524;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.detail-copy {
    padding: 2rem;
    border: 1px solid #292524;
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.16), transparent 24rem),
        linear-gradient(135deg, #1c1917, #292524);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag-list span {
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    background: rgba(245, 158, 11, 0.08);
    color: #fbbf24;
    font-size: 0.82rem;
}

.player-section {
    padding-top: 1rem;
}

.player-frame {
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    border: 1px solid rgba(245, 245, 244, 0.08);
    border-radius: 1.2rem;
    background: #000000;
    aspect-ratio: 16 / 9;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.player-frame video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.75rem;
    border: 0;
    background-position: center;
    background-size: cover;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
}

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

.play-symbol {
    display: grid;
    width: 4.4rem;
    height: 4.4rem;
    place-items: center;
    border-radius: 999px;
    background: #f59e0b;
    color: #1c1917;
    font-size: 1.8rem;
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.4);
}

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

.detail-article,
.detail-sidebar {
    border: 1px solid rgba(245, 245, 244, 0.06);
    border-radius: 1.2rem;
    background: #1c1917;
    padding: 1.5rem;
}

.detail-article p {
    margin: 0.85rem 0 1.5rem;
    color: #d6d3d1;
}

.detail-list {
    margin: 1rem 0 0;
}

.detail-list div {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #292524;
}

.detail-list dt {
    color: #a8a29e;
}

.detail-list dd {
    margin: 0;
    color: #f5f5f4;
}

.detail-list a {
    color: #fbbf24;
}

.site-footer {
    margin-top: 4rem;
    border-top: 1px solid #292524;
    background: #1c1917;
}

.footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2.8rem 1rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

.site-footer h2 {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: 1rem;
}

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

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

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

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

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

    .hero-thumbs {
        display: none;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .hero-slider {
        min-height: 640px;
        height: 82vh;
    }

    .hero-content {
        bottom: 5rem;
    }

    .hero-control {
        display: none;
    }

    .grid-2,
    .grid-3,
    .grid-6,
    .category-grid,
    .category-overview-grid,
    .filter-bar,
    .detail-grid,
    .footer-inner,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .panel-section,
    .gradient-panel,
    .ranking-panel,
    .filter-panel {
        border-radius: 0;
    }

    .detail-hero {
        gap: 1rem;
    }

    .detail-poster {
        width: min(18rem, 100%);
    }

    .detail-copy {
        padding: 1.25rem;
    }

    .rank-row {
        grid-template-columns: 2.7rem 3rem minmax(0, 1fr) 3.5rem;
    }

    .rank-meta {
        display: none;
    }
}

@media (max-width: 560px) {
    .header-inner {
        padding: 0 0.85rem;
    }

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

    .hero-content,
    .page-hero,
    .content-section,
    .breadcrumb,
    .detail-hero {
        width: 100%;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

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

    .movie-card-horizontal {
        min-height: 9.5rem;
    }

    .horizontal-poster {
        width: 7rem;
        flex-basis: 7rem;
    }

    .category-cover-row {
        height: 9rem;
    }

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

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