:root {
    --site-primary: #14b8a6;
    --site-primary-dark: #0f766e;
    --site-secondary: #f97316;
    --site-accent: #06b6d4;
    --site-dark: #111827;
    --site-muted: #6b7280;
    --site-soft: #f9fafb;
}

body {
    min-height: 100vh;
    background: #f9fafb;
    color: #111827;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.88);
}

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

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

.logo-mark {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-secondary));
    box-shadow: 0 12px 30px rgba(20, 184, 166, 0.28);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #4b5563;
    font-weight: 600;
}

.site-nav a,
.mobile-menu a {
    transition: color 0.2s ease;
}

.site-nav a:hover,
.mobile-menu a:hover {
    color: var(--site-primary-dark);
}

.mobile-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #111827;
    font-size: 1.35rem;
}

.mobile-menu {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem 1rem;
    display: none;
}

.mobile-menu.is-open {
    display: grid;
    gap: 0.75rem;
}

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

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

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

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

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.14));
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem 5rem;
    color: #fff;
}

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

.hero-tags,
.meta-line,
.card-meta,
.tag-list,
.breadcrumb,
.player-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}

.pill-primary {
    background: var(--site-primary);
    color: #fff;
}

.pill-secondary {
    background: var(--site-secondary);
    color: #fff;
}

.pill-soft {
    background: #ecfeff;
    color: #0e7490;
}

.hero-title {
    margin-top: 1rem;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-desc {
    max-width: 42rem;
    margin-top: 1.25rem;
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: #e5e7eb;
    line-height: 1.85;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
    box-shadow: 0 18px 40px rgba(6, 182, 212, 0.28);
}

.btn-secondary {
    color: #fff;
    background: linear-gradient(135deg, var(--site-secondary), #fb923c);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.24);
}

.btn-light {
    color: #111827;
    background: rgba(255, 255, 255, 0.88);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.46);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 1rem;
}

.hero-next {
    right: 1rem;
}

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

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

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

.section {
    padding: 4rem 0;
}

.section-white {
    background: #fff;
}

.section-gradient {
    background: linear-gradient(135deg, #f0fdfa, #fff7ed);
}

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.section-kicker {
    color: var(--site-primary-dark);
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -0.035em;
    color: #111827;
}

.section-desc {
    margin-top: 0.6rem;
    color: #6b7280;
    line-height: 1.8;
    max-width: 48rem;
}

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.13);
}

.card-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

.card-cover.wide {
    aspect-ratio: 16 / 10;
}

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

.movie-card:hover .card-cover img {
    transform: scale(1.055);
}

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

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

.card-play span {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    font-size: 1.4rem;
}

.card-body {
    padding: 1rem;
}

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

.card-summary {
    margin-top: 0.5rem;
    min-height: 2.75rem;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin-top: 0.75rem;
    color: #6b7280;
    font-size: 0.78rem;
}

.feature-card {
    min-height: 24rem;
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

.feature-card img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover img {
    transform: scale(1.055);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.35), transparent);
}

.feature-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.5rem;
}

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

.category-card {
    display: block;
    border-radius: 1.1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 115, 22, 0.5);
}

.category-card h3 {
    font-size: 1.15rem;
    font-weight: 900;
    color: #111827;
}

.category-card p {
    margin-top: 0.6rem;
    color: #6b7280;
    line-height: 1.65;
    font-size: 0.92rem;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 4rem 5.5rem 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateX(3px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.rank-num {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, var(--site-secondary), var(--site-primary));
}

.rank-thumb {
    width: 5.5rem;
    aspect-ratio: 16 / 10;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #111827;
}

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

.page-hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #111827, #134e4a 52%, #7c2d12);
    color: #fff;
}

.page-hero h1 {
    font-size: clamp(2.25rem, 4vw, 4rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.page-hero p {
    margin-top: 1rem;
    max-width: 50rem;
    color: #e5e7eb;
    line-height: 1.85;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 12rem 12rem 10rem;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 2.75rem;
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    background: #fff;
    padding: 0 0.85rem;
    color: #111827;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--site-primary);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.16);
}

.no-results {
    display: none;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    color: #6b7280;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.breadcrumb {
    margin-bottom: 1.5rem;
    color: #d1d5db;
    font-size: 0.92rem;
}

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

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

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #000;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.player-wrap video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-secondary));
    font-size: 2rem;
    box-shadow: 0 20px 50px rgba(20, 184, 166, 0.35);
}

.detail-card {
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.detail-card h2 {
    font-size: 1.35rem;
    line-height: 1.35;
    font-weight: 900;
    margin-bottom: 0.85rem;
}

.prose-block {
    color: #374151;
    line-height: 1.9;
}

.prose-block p + p {
    margin-top: 1rem;
}

.side-poster {
    overflow: hidden;
    border-radius: 1.1rem;
    background: #111827;
}

.side-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.tag-list {
    margin-top: 1rem;
}

.search-hero-form {
    display: flex;
    max-width: 38rem;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.search-hero-form input {
    flex: 1;
    height: 3.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0 1.1rem;
    outline: none;
    color: #111827;
    background: rgba(255, 255, 255, 0.92);
}

.search-hero-form button {
    height: 3.2rem;
    border-radius: 999px;
    padding: 0 1.25rem;
    color: #fff;
    background: var(--site-secondary);
    font-weight: 800;
}

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

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

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

    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .mobile-toggle {
        display: inline-flex;
    }

    .hero-section {
        min-height: 560px;
    }

    .hero-content {
        padding-bottom: 4.5rem;
    }

    .hero-arrow {
        display: none;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .rank-item {
        grid-template-columns: 3rem 4.5rem 1fr;
    }

    .rank-action {
        display: none;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }
}

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

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

    .logo-mark {
        width: 2rem;
        height: 2rem;
    }

    .search-hero-form {
        flex-direction: column;
    }
}
