.site-brand {
    gap: 0.5rem;
}

.brand-mark {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    font-size: 0.75rem;
    font-weight: 700;
}

.mobile-menu a {
    display: block;
}

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

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

.hero-control {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgb(30 41 59 / 0.8);
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: #334155;
    transform: translateY(-1px);
}

.hero-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #475569;
    transition: width 0.2s ease, background-color 0.2s ease;
}

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

.home-search {
    display: flex;
    gap: 0.75rem;
}

.home-search input,
.filter-field input,
.filter-field select {
    width: 100%;
    border: 1px solid #334155;
    background: rgb(15 23 42 / 0.9);
    color: #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.home-search input:focus,
.filter-field input:focus,
.filter-field select:focus {
    border-color: #94a3b8;
    background: #0f172a;
}

.home-search button {
    white-space: nowrap;
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: #0f172a;
    background: #e2e8f0;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

.home-search button:hover {
    background: #ffffff;
}

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

.category-samples {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.category-sample {
    color: #cbd5e1;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.category-sample:hover {
    color: #ffffff;
}

.play-orb {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgb(15 23 42 / 0.8);
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    padding-left: 0.15rem;
}

.card-thumb-horizontal {
    width: 12rem;
    min-height: 8rem;
}

.rank-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    min-width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    background: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 800;
    padding: 0 0.5rem;
}

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

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.filter-count {
    margin-top: 1rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

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

.movie-meta span {
    color: #cbd5e1;
    background: rgb(30 41 59 / 0.7);
    border: 1px solid #334155;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}

.breadcrumb a,
.breadcrumb span {
    display: inline-block;
}

.player-root video {
    background: #020617;
    cursor: pointer;
}

.player-start {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    background: rgb(15 23 42 / 0.85);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding-left: 0.2rem;
    z-index: 3;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.player-start:hover {
    transform: scale(1.05);
    background: rgb(30 41 59 / 0.95);
}

.player-root.is-playing .player-start {
    display: none;
}

.player-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(to top, rgb(0 0 0 / 0.8), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 4;
}

.player-root:hover .player-panel,
.player-root:focus-within .player-panel {
    opacity: 1;
}

.player-panel button {
    min-width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.18);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.85rem;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.player-panel button:hover {
    background: rgb(255 255 255 / 0.3);
}

.player-message {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #fecaca;
    background: rgb(15 23 42 / 0.9);
    z-index: 5;
}

.player-message.is-visible {
    display: flex;
}

@media (min-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .filter-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

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

@media (max-width: 767px) {
    .hero-actions {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        justify-content: space-between;
    }

    .hero-meta {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .home-search {
        flex-direction: column;
    }

    .section-heading {
        align-items: flex-start;
        gap: 1rem;
        flex-direction: column;
    }

    .card-thumb-horizontal {
        width: 9rem;
    }

    .player-start {
        width: 4rem;
        height: 4rem;
    }
}
