:root {
    --site-primary: #f17925;
    --site-primary-dark: #e2591b;
    --site-accent: #f04f1f;
    --site-text: #292524;
    --site-muted: #78716c;
    --site-soft: #fff7ed;
}

body {
    min-height: 100vh;
    background: #fafaf9;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(231, 229, 228, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
    box-shadow: 0 12px 24px rgba(240, 79, 31, 0.25);
}

.nav-link,
.mobile-nav-link {
    color: #44403c;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--site-primary-dark);
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 0.75rem;
    color: #44403c;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-toggle:hover {
    background: #f5f5f4;
    color: var(--site-primary-dark);
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.mobile-menu {
    display: none;
    border-top: 1px solid #e7e5e4;
    background: #fff;
}

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

.mobile-nav-link {
    display: block;
}

.site-search-input,
.filter-input,
.filter-select {
    width: 100%;
    border: 1px solid #d6d3d1;
    border-radius: 999px;
    background: #fff;
    color: #292524;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search-input {
    width: 12rem;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
}

@media (min-width: 1024px) {
    .site-search-input {
        width: 16rem;
    }
}

.site-search-input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: var(--site-primary);
    box-shadow: 0 0 0 3px rgba(241, 121, 37, 0.18);
}

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

.hero-section {
    background: #1c1917;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

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

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

.hero-arrow {
    width: 3rem;
    height: 3rem;
    border: 0;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.compact-heading {
    margin-bottom: 1.5rem;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 1rem;
    background: var(--site-soft);
    font-size: 1.35rem;
}

.category-tile {
    display: flex;
    min-height: 10rem;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 1.5rem;
    padding: 1.5rem;
    color: #292524;
    background: linear-gradient(135deg, #fff, #fff7ed);
    box-shadow: 0 10px 25px 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 35px rgba(15, 23, 42, 0.12);
}

.category-tile span {
    font-size: 1.35rem;
    font-weight: 800;
}

.category-tile small {
    color: #78716c;
    line-height: 1.7;
}

.filter-panel {
    margin-bottom: 2rem;
    border-radius: 1.5rem;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

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

@media (min-width: 768px) {
    .filter-grid {
        grid-template-columns: minmax(0, 1fr) 12rem 12rem;
    }
}

.filter-input,
.filter-select {
    padding: 0.75rem 1rem;
}

.hidden-card {
    display: none !important;
}

.empty-state {
    display: none;
    margin-top: 2rem;
    border-radius: 1.5rem;
    padding: 3rem;
    color: #78716c;
    text-align: center;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

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

.movie-card img {
    background: #e7e5e4;
}

.movie-card-horizontal .rank-badge,
.movie-card-large .rank-badge,
.movie-card .rank-badge {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
}

.rank-badge {
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    border-radius: 999px;
    padding: 0 0.5rem;
    color: #fff;
    font-weight: 800;
    background: #fb923c;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.rank-gold {
    background: #facc15;
}

.rank-silver {
    background: #a8a29e;
}

.rank-bronze {
    background: #fb923c;
}

.page-hero {
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: #fff;
    font-weight: 600;
}

.detail-hero {
    padding: 3rem 0;
    color: #fff;
    background: radial-gradient(circle at top left, rgba(241, 121, 37, 0.45), transparent 35%), linear-gradient(135deg, #1c1917, #44403c);
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 900px) {
    .detail-layout {
        grid-template-columns: 18rem minmax(0, 1fr);
    }
}

.detail-cover-wrap {
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.detail-cover {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(4px);
    font-size: 0.85rem;
    font-weight: 600;
}

.detail-tag.muted {
    background: rgba(255, 255, 255, 0.1);
}

.player-card,
.content-panel {
    overflow: hidden;
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

.content-panel {
    padding: 2rem;
}

.player-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #000;
    transition: opacity 0.25s ease;
}

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

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

.play-round {
    position: relative;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.play-round:hover {
    transform: scale(1.08);
}

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

.tag-row {
    flex-wrap: wrap;
    row-gap: 0.5rem;
}

@media (max-width: 640px) {
    .hero-section {
        height: 76vh;
    }

    .hero-arrow {
        display: none;
    }

    .content-panel {
        padding: 1.25rem;
    }

    .play-round {
        width: 4rem;
        height: 4rem;
    }
}
