/* inked/assets/css/masters-v2/listing.css */
/**
 * Masters Listing v2 — Page Styles
 * Filter bar, 5-column grid, master card with CSS scroll-snap slider,
 * style tags, pagination, responsive breakpoints.
 */

/* ══════════════════════════════════════════
   FILTER BAR — sticky, glassmorphism
   ══════════════════════════════════════════ */

.masters-filter-sentinel {
    height: 1px;
    margin: 0;
    padding: 0;
}

.masters-filter-bar {
    margin: 24px auto 0;
    padding: 0 var(--gutter, 24px);
    position: sticky;
    top: var(--header-h, 56px);
    z-index: var(--z-sticky, 20);
}

.masters-filter-inner {
    background: var(--masters-filter-glass-dark, rgba(26, 26, 27, 0.92));
    backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid var(--color-border, var(--color-border));
    border-radius: var(--radius-lg, 12px);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    transition: box-shadow var(--transition-fast, 150ms);
}

.masters-filter-bar.is-stuck .masters-filter-inner {
    box-shadow: 0 4px 20px var(--color-overlay-scrim-light);
}

.light-theme .masters-filter-inner {
    background: var(--masters-filter-glass-light, rgba(255, 255, 255, 0.92));
}

.masters-filter-dropdown {
    position: relative;
}

.masters-filter-dropdown select {
    appearance: none;
    background: var(--masters-surface-dark-5, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--color-border, var(--color-border));
    border-radius: var(--radius-md, 8px);
    /* DSv2 §G.2 #12 — 44px touch target minimum */
    min-height: 44px;
    padding: 10px 36px 10px 14px;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    cursor: pointer;
    transition: border-color var(--transition-fast, 150ms);
    font-family: inherit;
}

.light-theme .masters-filter-dropdown select {
    background: var(--masters-surface-light-3, rgba(0, 0, 0, 0.03));
    color: var(--color-text);
}

.masters-filter-dropdown select:hover {
    border-color: var(--masters-surface-dark-12, rgba(255, 255, 255, 0.12));
}

.masters-filter-dropdown select:focus {
    outline: none;
    border-color: var(--color-brand-accent, #E8C547);
}

.masters-filter-dropdown::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--color-text-muted, var(--color-text-muted));
    pointer-events: none;
}

.masters-filter-count {
    margin-left: auto;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    white-space: nowrap;
}

.masters-filter-count strong {
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-mono);
}

/* ══════════════════════════════════════════
   FILTER FIELDS WRAPPER + MOBILE TOGGLE
   ══════════════════════════════════════════ */

/* --- Filter fields wrapper (desktop: inline flex, mobile: collapsible) --- */
.masters-filter-fields {
    display: contents; /* On desktop, children participate in parent flex */
}

/* --- Mobile toggle button (hidden on desktop) --- */
.masters-filter-toggle {
    display: none; /* Hidden on desktop */
    align-items: center;
    gap: 8px;
    /* DSv2 §G.2 #12 — 44px touch target minimum */
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--masters-surface-dark-12, rgba(255, 255, 255, 0.12));
    border-radius: 10px;
    background: var(--masters-surface-dark-6, rgba(255, 255, 255, 0.06));
    color: var(--color-text-primary, var(--color-text));
    font-size: var(--text-base);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 150ms ease;
    width: 100%;
    justify-content: flex-start;
    font-family: inherit;
    line-height: 1;
}

.masters-filter-toggle:hover {
    background: var(--masters-surface-dark-10, rgba(255, 255, 255, 0.1));
}

.masters-filter-toggle:active {
    transform: scale(0.98);
}

.masters-filter-chevron {
    margin-left: auto;
    transition: transform 200ms ease;
    opacity: 0.5;
}

.masters-filter-toggle.is-expanded .masters-filter-chevron {
    transform: rotate(180deg);
}

.masters-filter-badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--color-brand-accent);
    color: var(--color-black);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.masters-filter-badge.has-count {
    display: inline-flex;
}

.light-theme .masters-filter-toggle {
    border-color: var(--masters-surface-light-10, rgba(0, 0, 0, 0.1));
    background: var(--masters-surface-light-4, rgba(0, 0, 0, 0.04));
    color: var(--color-text-primary, var(--color-text));
}

.light-theme .masters-filter-toggle:hover {
    background: var(--masters-surface-light-8, rgba(0, 0, 0, 0.08));
}

/* ══════════════════════════════════════════
   RESET FILTERS BUTTON
   ══════════════════════════════════════════ */

.masters-filter-reset {
    display: none;
    align-items: center;
    gap: 4px;
    /* DSv2 §G.2 #12 — 44px touch target minimum */
    min-height: 44px;
    padding: 5px 12px;
    border: 1px solid var(--masters-accent-tint-30, rgba(245, 197, 24, 0.3));
    border-radius: 20px;
    background: var(--masters-accent-tint-10, rgba(245, 197, 24, 0.1));
    color: var(--color-brand-accent);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
    line-height: 1;
    font-family: inherit;
}

.masters-filter-reset:hover {
    background: var(--masters-accent-tint-20, rgba(245, 197, 24, 0.2));
    border-color: var(--masters-accent-tint-50, rgba(245, 197, 24, 0.5));
}

.masters-filter-reset.is-visible {
    display: inline-flex;
}

.masters-filter-reset svg {
    flex-shrink: 0;
}

.light-theme .masters-filter-reset {
    background: var(--masters-accent-amber-light-10, rgba(200, 150, 0, 0.1));
    border-color: var(--masters-accent-amber-light-30, rgba(200, 150, 0, 0.3));
    color: var(--masters-accent-amber-light-text, #b8860b);
}

.light-theme .masters-filter-reset:hover {
    background: var(--masters-accent-amber-light-20, rgba(200, 150, 0, 0.2));
}

.masters-subtitle {
    color: var(--color-text-secondary);
    font-size: var(--text-base);
}

.masters-subtitle strong {
    color: var(--color-brand-accent, #E8C547);
    font-weight: var(--font-weight-semibold);
}

/* ══════════════════════════════════════════
   GRID — 4 columns, CSS Grid
   ══════════════════════════════════════════ */

.masters-grid {
    margin: 24px auto 0;
    padding: 0 var(--gutter, 24px);
    display: grid;
    grid-template-columns: repeat(var(--masters-grid-columns), minmax(0, 1fr));
    gap: var(--masters-grid-gap, 16px);
}

/* ══════════════════════════════════════════
   MASTER CARD
   ══════════════════════════════════════════ */

.master-card {
    background: var(--color-bg-card);
    border-radius: var(--masters-card-radius, 12px);
    overflow: hidden;
    border: 1px solid var(--color-border, var(--color-border));
    /* DSv2 §F.14 — shadow-only lift on hover, no translateY transform */
    transition: box-shadow var(--transition-normal, 250ms), border-color var(--transition-normal, 250ms);
    cursor: pointer;
    animation: masterFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.master-card:hover {
    border-color: var(--masters-surface-dark-12, rgba(255, 255, 255, 0.12));
    box-shadow: var(--shadow-md);
}

.light-theme .master-card:hover {
    box-shadow: 0 8px 32px var(--masters-surface-light-15, rgba(0, 0, 0, 0.15));
}

/* Staggered animation */
.master-card:nth-child(1)  { animation-delay: 0.05s; }
.master-card:nth-child(2)  { animation-delay: 0.10s; }
.master-card:nth-child(3)  { animation-delay: 0.15s; }
.master-card:nth-child(4)  { animation-delay: 0.20s; }
.master-card:nth-child(5)  { animation-delay: 0.25s; }
.master-card:nth-child(6)  { animation-delay: 0.30s; }
.master-card:nth-child(7)  { animation-delay: 0.35s; }
.master-card:nth-child(8)  { animation-delay: 0.40s; }
.master-card:nth-child(9)  { animation-delay: 0.45s; }
.master-card:nth-child(10) { animation-delay: 0.50s; }
.master-card:nth-child(11) { animation-delay: 0.55s; }
.master-card:nth-child(12) { animation-delay: 0.60s; }
.master-card:nth-child(n+13) { animation-delay: 0.65s; }

@keyframes masterFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   PORTFOLIO SLIDER — CSS scroll-snap
   ══════════════════════════════════════════ */

.master-slider {
    position: relative;
    overflow: hidden;
    aspect-ratio: var(--masters-slider-ratio, 3 / 4);
}

/* Anchor wrapping the slider track must fill the slider box so a click on the
   master photo navigates to the profile. Without display:block;height:100% the
   inline <a> collapses and the image falls outside its clickable area. Arrows,
   dots and the fav button are siblings of this link (not descendants), so they
   keep their own handlers; horizontal swipe still scrolls the track. */
.master-slider-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* Save heart on listing cards (masters + models). Mirrors the photo-overlay
   save button used on tattoo/event cards; filled gold once saved.
   Wired by favorites-v2/listing-save.js. */
.master-card__fav {
    position: absolute;
    top: var(--space-2, 8px);
    right: var(--space-2, 8px);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: var(--radius-full, 999px);
    background: var(--color-overlay-scrim-light, rgba(0, 0, 0, 0.45));
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 3;
    transition: transform var(--transition-fast, 150ms), background var(--transition-fast, 150ms), color var(--transition-fast, 150ms);
}

/* MP25 invisible 44px hit-zone — keeps the 36px visual */
.master-card__fav::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
}

.master-card__fav svg {
    width: 18px;
    height: 18px;
}

.master-card__fav:hover {
    transform: scale(1.06);
    background: var(--color-overlay-scrim, rgba(0, 0, 0, 0.6));
}

.master-card__fav.is-saved {
    color: var(--color-brand-accent, #ff5a36);
}

.master-card__fav.is-saved svg {
    fill: currentColor;
}

.master-slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 100%;
}

.master-slider-track::-webkit-scrollbar {
    display: none;
}

.master-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    width: 100%;
    height: 100%;
}

.master-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter var(--transition-normal, 250ms);
}

.master-card:hover .master-slide img {
    filter: brightness(1.1);
}

/* Placeholder for empty slides */
.master-slide--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface, #262626);
    color: var(--color-text-muted, var(--color-text-muted));
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
}

/* Slider dots */
.master-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.master-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--masters-surface-dark-35, rgba(255, 255, 255, 0.35));
    cursor: pointer;
    transition: all var(--transition-fast, 150ms);
    padding: 0;
    border: none;
}

.master-dot.active {
    background: var(--color-brand-accent, #E8C547);
    width: 16px;
    border-radius: 3px;
}

/* Slider arrows — visible on hover */
.master-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    z-index: 2;
    opacity: 0;
    transition: opacity var(--transition-fast, 150ms);
    border: none;
    cursor: pointer;
}

.master-card:hover .master-arrow {
    opacity: 1;
}

.master-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.master-arrow--prev {
    left: 6px;
}

.master-arrow--next {
    right: 6px;
}

/* ProTeam badge */
.master-badge-proteam {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--color-brand-accent), var(--color-brand-accent-hover));
    color: var(--color-bg);
    box-shadow: 0 2px 8px rgba(232, 197, 71, 0.3);
}

/* ══════════════════════════════════════════
   CARD INFO
   ══════════════════════════════════════════ */

.master-info {
    padding: 14px 14px 16px;
}

.master-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.master-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--color-border, var(--color-border));
}

.master-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Subscriber tier ring (PKG-2 dir 5) — gray / gold / violet by tariff */
.master-avatar--standard { border-color: var(--color-tier-standard); }
.master-avatar--plus     { border-color: var(--color-tier-plus); }
.master-avatar--profi    { border-color: var(--color-tier-profi); }

.master-name-row {
    flex: 1;
    min-width: 0;
}

.master-name {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.master-name a {
    color: inherit;
    text-decoration: none;
}

.master-name a:hover {
    color: var(--color-brand-accent, #E8C547);
}

.master-location {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.master-location svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: var(--color-text-muted, var(--color-text-muted));
}

.master-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.master-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
}

.master-rating-star {
    color: var(--color-brand-accent, #E8C547);
    font-size: var(--text-sm);
}

.master-rating-score {
    font-weight: var(--font-weight-bold);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
}

.master-review-count {
    color: var(--color-text-muted, rgba(255,255,255,.5));
    font-size: var(--text-xs);
    font-weight: var(--font-weight-normal);
}

.master-rating-count {
    color: var(--color-text-muted, var(--color-text-muted));
    font-size: var(--text-xs);
}

.master-works-count {
    font-size: var(--text-xs);
    color: var(--color-text-muted, var(--color-text-muted));
}

/* Style tags */
.master-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.master-style-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.02em;
    border: 1px solid;
    white-space: nowrap;
    transition: filter var(--transition-fast, 150ms);
}

.master-style-tag:hover {
    filter: brightness(1.3);
}

/* Per-style colors */
.master-style-tag[data-style="realism"]        { color: #e06c5a; border-color: rgba(224,108,90,0.3);  background: rgba(224,108,90,0.08); }
.master-style-tag[data-style="blackwork"]      { color: #8b8b8b; border-color: rgba(139,139,139,0.3); background: rgba(139,139,139,0.08); }
.master-style-tag[data-style="japanese"]       { color: #d4783c; border-color: rgba(212,120,60,0.3);  background: rgba(212,120,60,0.08); }
.master-style-tag[data-style="chicano"]        { color: #c9a54e; border-color: rgba(201,165,78,0.3);  background: rgba(201,165,78,0.08); }
.master-style-tag[data-style="portrait"]       { color: #7b8fd4; border-color: rgba(123,143,212,0.3); background: rgba(123,143,212,0.08); }
.master-style-tag[data-style="watercolor"]     { color: #5db8c9; border-color: rgba(93,184,201,0.3);  background: rgba(93,184,201,0.08); }
.master-style-tag[data-style="fineline"]       { color: #a3c97a; border-color: rgba(163,201,122,0.3); background: rgba(163,201,122,0.08); }
.master-style-tag[data-style="dotwork"]        { color: #b07cc9; border-color: rgba(176,124,201,0.3); background: rgba(176,124,201,0.08); }
.master-style-tag[data-style="neotraditional"] { color: #d46b8c; border-color: rgba(212,107,140,0.3); background: rgba(212,107,140,0.08); }
.master-style-tag[data-style="lettering"]      { color: #6cc9a8; border-color: rgba(108,201,168,0.3); background: rgba(108,201,168,0.08); }
.master-style-tag[data-style="anime"]          { color: #e07cb0; border-color: rgba(224,124,176,0.3); background: rgba(224,124,176,0.08); }
.master-style-tag[data-style="geometric"]      { color: #7cc9e0; border-color: rgba(124,201,224,0.3); background: rgba(124,201,224,0.08); }
.master-style-tag[data-style="abstract"]       { color: #c97c6c; border-color: rgba(201,124,108,0.3); background: rgba(201,124,108,0.08); }
.master-style-tag[data-style="horror"]         { color: #944444; border-color: rgba(148,68,68,0.3);   background: rgba(148,68,68,0.08); }
.master-style-tag[data-style="ornamental"]     { color: #b8a060; border-color: rgba(184,160,96,0.3);  background: rgba(184,160,96,0.08); }
.master-style-tag[data-style="graphic"]        { color: #7799bb; border-color: rgba(119,153,187,0.3); background: rgba(119,153,187,0.08); }
.master-style-tag[data-style="minimalism"]     { color: #aaa;    border-color: rgba(170,170,170,0.3); background: rgba(170,170,170,0.08); }
.master-style-tag[data-style="newschool"]      { color: #cc6699; border-color: rgba(204,102,153,0.3); background: rgba(204,102,153,0.08); }
.master-style-tag[data-style="oldschool"]      { color: #cc8844; border-color: rgba(204,136,68,0.3);  background: rgba(204,136,68,0.08); }
.master-style-tag[data-style="trashpolka"]     { color: #cc4444; border-color: rgba(204,68,68,0.3);   background: rgba(204,68,68,0.08); }

/* ══════════════════════════════════════════
   LOAD MORE + PAGINATION
   ══════════════════════════════════════════ */

/* Infinite-scroll sentinel + spinner (replaces the old "Load More" button).
   Sentinel is a zero-height IntersectionObserver target; spinner shows only
   while the next page is fetching. */
.masters-scroll-sentinel {
    width: 100%;
    height: 1px;
}

.masters-scroll-spinner {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px 24px 64px;
}

.masters-scroll-spinner .spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border, rgba(255, 255, 255, 0.1));
    border-top-color: var(--gold, #c8a45e);
    border-radius: 50%;
    animation: masters-spin 0.6s linear infinite;
}

@keyframes masters-spin {
    to { transform: rotate(360deg); }
}

/* SEO text section */
.masters-seo-section {
    /* DSv2 §G.2 #7 — drop 1400px cap, use canonical --container-max (none) */
    max-width: var(--container-max, none);
    margin: 0 auto;
    padding: var(--space-12) var(--gutter, 24px);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: var(--line-height-loose);
    border-top: 1px solid var(--color-border, var(--color-border));
}

.masters-seo-section h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-normal);
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

/* ══════════════════════════════════════════
   NO RESULTS
   ══════════════════════════════════════════ */

.masters-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
    color: var(--color-text-muted, var(--color-text-muted));
    font-size: var(--text-base);
}

/* Collaborate CTA */
.masters-collab-cta {
    /* DSv2 §G.2 #7 — drop 1400px cap */
    max-width: var(--container-max, none);
    margin: var(--space-4) auto 0;
    padding: 0 var(--gutter, 24px);
    font-size: var(--text-sm);
}

.masters-collab-cta a {
    color: var(--color-brand-accent, #E8C547);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: opacity var(--transition-fast, 150ms);
}

.masters-collab-cta a:hover {
    opacity: 0.8;
}

/* CustomSelect styles moved to shared/custom-select.css () */

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 1400px) {
    .masters-grid {
        --masters-grid-columns: 4;
    }
}

@media (max-width: 1100px) {
    .masters-grid {
        --masters-grid-columns: 3;
    }
}

@media (max-width: 768px) {
    .masters-grid {
        --masters-grid-columns: 2;
    }

 /* SPEC #2A
       Compact filter toggle on mobile (max ~60% width). */
    .masters-filter-toggle {
        display: flex;
        flex: 0 0 auto;
        width: auto;
        max-width: 60%;
        /* DSv2 §G.2 #12 — preserve 44px touch target despite compact padding */
        min-height: 44px;
        padding: 8px 14px;
        gap: 8px;
    }

    .masters-filter-fields {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 8px;
        padding-top: 8px;
    }

    .masters-filter-fields.is-expanded {
        display: flex;
    }

    .masters-filter-inner {
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

 /* : hide counter on mobile, lift view-toggle
       into filter row место counter'а */
    .masters-filter-count {
        display: none;
    }

    /* Scope to filter bar so map.css's ≤900px `.masters-view-toggle{margin-left:0}`
       (loaded after listing.css) can't unpin it from the right edge. */
    .masters-filter-inner .masters-view-toggle {
        flex: 0 0 auto;
        margin-left: auto;
        order: 1;
    }

    .masters-filter-fields {
        order: 2;
    }

    .masters-filter-reset {
        order: -1;
    }

 /* SPEC #2B
       Style tags as horizontal carousel (no wrap, snap). */
    .master-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 0 calc(-1 * var(--space-3));
        padding: 0 var(--space-3) 2px;
        scroll-snap-type: x proximity;
    }
    .master-tags::-webkit-scrollbar { display: none; }
    .master-style-tag {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    /* CustomSelect mobile rules now in shared/custom-select.css */
}

@media (max-width: 480px) {
    .masters-grid {
        --masters-grid-columns: 2;
        gap: 14px;
    }

    .masters-filter-dropdown {
        width: 100%;
    }

    /* CustomSelect trigger width now in shared/custom-select.css */

    .masters-filter-dropdown select {
        width: 100%;
    }

    .masters-grid {
        padding: 0 var(--gutter, 16px);
    }

    .masters-filter-bar {
        padding: 0 var(--gutter, 16px);
    }

    .masters-collab-cta {
        padding: 0 var(--gutter, 16px);
    }
}
