/* Grid wheel filtrů — statické parametry (postavy, příběhy) */

.listing-wheel-filters {
    width: 100%;
    max-width: 1420px;
    margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
    padding: 0 clamp(16px, 4vw, 36px);
    box-sizing: border-box;
}

.listing-wheel-filters__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
    gap: clamp(0.85rem, 2.2vw, 1.35rem);
    align-items: stretch;
}

.listing-wheel-filters__cell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    min-width: 0;
}

.listing-wheel-filters__cell-label {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    color: var(--accent-blue-soft, #3a5364);
}

.listing-wheel-filters__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.1rem;
}

.listing-wheel-filters__reset {
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.55rem 1.15rem;
    border: 1px solid var(--border-soft, #45515b);
    border-radius: 2px;
    background: rgba(33, 38, 43, 0.85);
    color: var(--text-muted, #a7b0b8);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.listing-wheel-filters__reset:hover,
.listing-wheel-filters__reset:focus-visible {
    border-color: var(--accent-blue-soft, #3a5364);
    color: var(--accent, #f3f5f7);
    outline: none;
}

/* Jednotlivý wheel picker v buňce gridu */

.listing-wheel {
    --wheel-accent: #9ebace;
    --wheel-width: 100%;
    --wheel-height: clamp(11.5rem, 28vw, 13.75rem);
    --wheel-item-height: 40px;
    --panel-fill: rgba(158, 186, 206, 0.1);
    --panel-stroke: rgba(158, 186, 206, 0.32);
    position: relative;
    width: var(--wheel-width);
    height: var(--wheel-height);
    margin: 0 auto;
    padding: 0;
    border: 0;
    touch-action: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    color: #b8cad8;
    overflow: hidden;
}

.listing-wheel.is-dragging {
    cursor: grabbing;
}

.listing-wheel__panel {
    position: absolute;
    inset: 0;
    z-index: 0;
    box-sizing: border-box;
    overflow: hidden;
    background: var(--panel-fill);
    border: 1.5px solid var(--panel-stroke);
    border-radius: 0.85rem;
}

.listing-wheel__wheel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    perspective: 640px;
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.35) 10%,
        #000 24%,
        #000 76%,
        rgba(0, 0, 0, 0.35) 90%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.35) 10%,
        #000 24%,
        #000 76%,
        rgba(0, 0, 0, 0.35) 90%,
        transparent 100%
    );
}

.listing-wheel__wheel-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    will-change: transform;
}

.listing-wheel__wheel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: var(--wheel-item-height);
    padding: 0 0.65rem;
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: clamp(0.82rem, 1.8vw, 0.94rem);
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(190, 210, 226, 0.88);
    transform-origin: center center;
    backface-visibility: hidden;
    pointer-events: none;
    transition: color 0.16s ease;
}

.listing-wheel__wheel-item.is-active {
    color: #ffffff;
    font-weight: 600;
    font-size: clamp(0.88rem, 1.9vw, 0.98rem);
}

.listing-wheel__status {
    margin: 0;
}

@media (max-width: 720px) {
    .listing-wheel-filters__grid {
        grid-template-columns: 1fr;
        max-width: min(420px, 100%);
        margin-inline: auto;
    }

    .listing-wheel {
        --wheel-height: clamp(10.5rem, 34vw, 12.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .listing-wheel,
    .listing-wheel__panel,
    .listing-wheel__wheel-item {
        transition: none !important;
    }
}
