/* ============================================================
   ViaGym Media Hub v2 — Premium Frontend
   All selectors use #vmh-app for max specificity vs Elementor
   ============================================================ */

/* ---- Variables ---- */
#vmh-app.vmh-app {
    --vmh-blue: #2563EB;
    --vmh-blue-dark: #1a3f7a;
    --vmh-blue-deeper: #0f2548;
    --vmh-blue-light: #3B82F6;
    --vmh-blue-glow: #60A5FA;
    --vmh-bg: #f0f4f8;
    --vmh-card: #ffffff;
    --vmh-card-hover: #f8fafc;
    --vmh-border: #e2e8f0;
    --vmh-text: #1e293b;
    --vmh-text2: #475569;
    --vmh-text3: #94a3b8;
    --vmh-radius: 16px;
    --vmh-radius-sm: 10px;
    --vmh-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --vmh-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Hard Reset inside our scope ---- */
#vmh-app.vmh-app,
#vmh-app.vmh-app *,
#vmh-app.vmh-app *::before,
#vmh-app.vmh-app *::after {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    line-height: 1.5;
    text-decoration: none;
}

#vmh-app.vmh-app {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif !important;
    font-size: 15px !important;
    color: var(--vmh-text) !important;
    background: var(--vmh-bg) !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    -webkit-font-smoothing: antialiased !important;
}

#vmh-app.vmh-app button {
    cursor: pointer;
    font-family: inherit !important;
    background: none;
}

/* ============ ENTRANCE ANIMATION ============ */
#vmh-app .vmh-entrance {
    position: absolute;
    inset: 0;
    z-index: 100;
    background: linear-gradient(135deg, var(--vmh-blue-deeper) 0%, var(--vmh-blue-dark) 40%, var(--vmh-blue) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    animation: vmhEntranceFade 0.6s ease 2s forwards;
}

@keyframes vmhEntranceFade {
    to { opacity: 0; pointer-events: none; visibility: hidden; }
}

#vmh-app .vmh-entrance-logo {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#vmh-app .vmh-entrance-ring {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vmhSpin 1s linear infinite;
}

#vmh-app .vmh-entrance-ring--2 {
    inset: 8px;
    border-width: 2px;
    border-top-color: var(--vmh-blue-glow);
    animation-direction: reverse;
    animation-duration: 1.5s;
}

@keyframes vmhSpin {
    to { transform: rotate(360deg); }
}

#vmh-app .vmh-entrance-icon {
    font-size: 24px;
    color: #fff;
    z-index: 2;
    animation: vmhPulse 1s ease-in-out infinite alternate;
}

@keyframes vmhPulse {
    from { opacity: 0.5; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.1); }
}

#vmh-app .vmh-entrance-text {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #fff !important;
    letter-spacing: -0.5px;
    animation: vmhSlideUp 0.5s ease 0.3s both;
}

#vmh-app .vmh-entrance-sub {
    font-size: 14px !important;
    color: rgba(255,255,255,0.5) !important;
    animation: vmhSlideUp 0.5s ease 0.5s both;
}

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

/* ============ HERO ============ */
#vmh-app .vmh-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--vmh-blue-deeper) 0%, var(--vmh-blue-dark) 50%, var(--vmh-blue) 100%);
    padding: 48px 40px 36px !important;
}

#vmh-app .vmh-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

#vmh-app .vmh-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

#vmh-app .vmh-hero-orb--1 {
    width: 300px; height: 300px;
    background: var(--vmh-blue-glow);
    top: -80px; right: -60px;
    animation: vmhFloat 8s ease-in-out infinite alternate;
}

#vmh-app .vmh-hero-orb--2 {
    width: 200px; height: 200px;
    background: #818cf8;
    bottom: -60px; left: 10%;
    animation: vmhFloat 10s ease-in-out infinite alternate-reverse;
}

#vmh-app .vmh-hero-orb--3 {
    width: 150px; height: 150px;
    background: #38bdf8;
    top: 20%; left: 50%;
    animation: vmhFloat 12s ease-in-out infinite alternate;
}

@keyframes vmhFloat {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(30px, -20px) scale(1.1); }
}

#vmh-app .vmh-hero-content {
    position: relative;
    z-index: 2;
}

#vmh-app .vmh-hero-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: -0.5px !important;
    margin: 0 0 8px !important;
    line-height: 1.2 !important;
}

#vmh-app .vmh-hero-title-via { color: #fff !important; }
#vmh-app .vmh-hero-title-gym { color: var(--vmh-blue-glow) !important; }
#vmh-app .vmh-hero-title-sep { color: rgba(255,255,255,0.3) !important; margin: 0 8px !important; font-weight: 300 !important; }
#vmh-app .vmh-hero-title-media { color: rgba(255,255,255,0.85) !important; font-weight: 400 !important; }

#vmh-app .vmh-hero-subtitle {
    font-size: 15px !important;
    color: rgba(255,255,255,0.55) !important;
    margin: 0 0 28px !important;
    font-weight: 400 !important;
}

/* ---- Search Box ---- */
#vmh-app .vmh-search-box {
    max-width: 640px;
    margin: 0 0 24px !important;
}

#vmh-app .vmh-search-inner {
    position: relative;
    display: flex;
    align-items: center;
}

#vmh-app .vmh-search-icon {
    position: absolute;
    left: 18px;
    color: rgba(255,255,255,0.4);
    pointer-events: none;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

#vmh-app .vmh-search-input {
    width: 100% !important;
    padding: 14px 100px 14px 52px !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
    font-size: 15px !important;
    outline: none !important;
    transition: all 0.25s var(--vmh-ease) !important;
    backdrop-filter: blur(12px);
    font-family: inherit !important;
}

#vmh-app .vmh-search-input::placeholder {
    color: rgba(255,255,255,0.35) !important;
}

#vmh-app .vmh-search-input:focus {
    background: rgba(255,255,255,0.14) !important;
    border-color: rgba(255,255,255,0.3) !important;
    box-shadow: 0 0 0 4px rgba(96,165,250,0.15) !important;
}

#vmh-app .vmh-search-badge {
    position: absolute;
    right: 50px;
    font-size: 12px !important;
    color: rgba(255,255,255,0.5) !important;
    background: rgba(255,255,255,0.1);
    padding: 3px 10px !important;
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s !important;
}

#vmh-app .vmh-search-badge.vmh-visible {
    opacity: 1;
}

#vmh-app .vmh-search-clear {
    position: absolute;
    right: 14px;
    color: rgba(255,255,255,0.4) !important;
    font-size: 16px !important;
    padding: 6px !important;
    border-radius: 50%;
    transition: all 0.2s !important;
}

#vmh-app .vmh-search-clear:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.15) !important;
}

/* ---- Stats Row ---- */
#vmh-app .vmh-stats-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#vmh-app .vmh-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px !important;
    border-radius: 50px;
    font-size: 13px !important;
    font-weight: 500 !important;
    backdrop-filter: blur(8px);
    animation: vmhSlideUp 0.4s ease both;
}

#vmh-app .vmh-stat-pill:nth-child(1) { animation-delay: 0.6s; }
#vmh-app .vmh-stat-pill:nth-child(2) { animation-delay: 0.7s; }
#vmh-app .vmh-stat-pill:nth-child(3) { animation-delay: 0.8s; }

#vmh-app .vmh-stat-pill--video { background: rgba(59,130,246,0.2); color: #93c5fd !important; }
#vmh-app .vmh-stat-pill--audio { background: rgba(16,185,129,0.2); color: #6ee7b7 !important; }
#vmh-app .vmh-stat-pill--pdf   { background: rgba(239,68,68,0.2); color: #fca5a5 !important; }

#vmh-app .vmh-stat-pill-num {
    font-weight: 700 !important;
    font-size: 15px !important;
}

/* ============ TAB NAVIGATION ============ */
#vmh-app .vmh-nav {
    background: var(--vmh-card);
    border-bottom: 1px solid var(--vmh-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

#vmh-app .vmh-nav-inner {
    display: flex;
    position: relative;
    max-width: 100%;
    padding: 0 24px !important;
}

#vmh-app .vmh-nav-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--vmh-text3) !important;
    transition: color 0.25s var(--vmh-ease) !important;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

#vmh-app .vmh-nav-tab svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

#vmh-app .vmh-nav-tab:hover {
    color: var(--vmh-text2) !important;
}

#vmh-app .vmh-nav-tab--active {
    color: var(--vmh-blue) !important;
}

#vmh-app .vmh-nav-tab--active svg {
    stroke: var(--vmh-blue);
}

#vmh-app .vmh-nav-slider {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: var(--vmh-blue);
    border-radius: 3px 3px 0 0;
    transition: all 0.3s var(--vmh-bounce) !important;
}

/* ============ FILTERS ============ */
#vmh-app .vmh-filters-wrap {
    background: var(--vmh-card);
    border-bottom: 1px solid var(--vmh-border);
}

#vmh-app .vmh-filters-scroll {
    overflow: visible;
}

#vmh-app .vmh-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px !important;
    min-height: 52px;
    flex-wrap: wrap;
}

#vmh-app .vmh-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

#vmh-app .vmh-filter-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--vmh-text3) !important;
    margin-right: 4px;
    white-space: nowrap;
}

#vmh-app .vmh-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px !important;
    border-radius: 50px !important;
    border: 1.5px solid var(--vmh-border) !important;
    background: var(--vmh-card) !important;
    color: var(--vmh-text2) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap;
    transition: all 0.2s var(--vmh-ease) !important;
    user-select: none;
}

#vmh-app .vmh-chip:hover {
    border-color: var(--vmh-blue) !important;
    color: var(--vmh-blue) !important;
    background: rgba(37, 99, 235, 0.04) !important;
}

#vmh-app .vmh-chip--on {
    border-color: var(--vmh-blue) !important;
    background: var(--vmh-blue) !important;
    color: #fff !important;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.35) !important;
    transform: scale(1.02);
}

#vmh-app .vmh-chip-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(0,0,0,0.08);
}

#vmh-app .vmh-chip--on .vmh-chip-dot {
    border-color: rgba(255,255,255,0.4);
}

/* ---- Active Filters Bar ---- */
#vmh-app .vmh-active-bar {
    background: rgba(37,99,235,0.04);
    border-bottom: 1px solid var(--vmh-border);
    animation: vmhSlideDown 0.25s ease;
}

@keyframes vmhSlideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 60px; }
}

#vmh-app .vmh-active-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px !important;
    flex-wrap: wrap;
}

#vmh-app .vmh-active-label {
    font-size: 12px !important;
    color: var(--vmh-text3) !important;
    font-weight: 600 !important;
    flex-shrink: 0;
}

#vmh-app .vmh-active-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

#vmh-app .vmh-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px !important;
    background: var(--vmh-blue);
    color: #fff !important;
    border-radius: 50px;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all 0.2s !important;
    animation: vmhPopIn 0.25s var(--vmh-bounce);
}

@keyframes vmhPopIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

#vmh-app .vmh-active-tag:hover {
    background: var(--vmh-blue-dark);
}

#vmh-app .vmh-active-tag-x {
    opacity: 0.6;
    font-size: 14px !important;
    line-height: 1;
}

#vmh-app .vmh-active-clear {
    font-size: 12px !important;
    color: var(--vmh-text3) !important;
    text-decoration: underline !important;
    margin-left: auto;
    padding: 4px !important;
}

#vmh-app .vmh-active-clear:hover {
    color: var(--vmh-blue) !important;
}

/* ============ CONTENT STAGE ============ */
#vmh-app .vmh-stage {
    padding: 24px !important;
    min-height: 300px;
}

/* ---- Empty ---- */
#vmh-app .vmh-empty {
    text-align: center;
    padding: 80px 20px !important;
}

#vmh-app .vmh-empty-icon {
    margin: 0 auto 16px !important;
    color: var(--vmh-text3);
}

#vmh-app .vmh-empty-icon svg {
    width: 64px !important;
    height: 64px !important;
}

#vmh-app .vmh-empty-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--vmh-text) !important;
    margin: 0 0 6px !important;
}

#vmh-app .vmh-empty-text {
    font-size: 14px !important;
    color: var(--vmh-text3) !important;
    margin: 0 0 20px !important;
}

#vmh-app .vmh-btn-outline {
    padding: 8px 24px !important;
    border: 1.5px solid var(--vmh-border) !important;
    border-radius: 50px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--vmh-text2) !important;
    transition: all 0.2s !important;
}

#vmh-app .vmh-btn-outline:hover {
    border-color: var(--vmh-blue) !important;
    color: var(--vmh-blue) !important;
}

/* ============ VIDEO CARDS ============ */
#vmh-app .vmh-grid--video {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 18px !important;
}

#vmh-app .vmh-vcard {
    background: var(--vmh-card) !important;
    border-radius: var(--vmh-radius) !important;
    overflow: hidden !important;
    cursor: pointer;
    transition: all 0.3s var(--vmh-ease) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    border: 1px solid var(--vmh-border) !important;
    opacity: 0;
    animation: vmhCardIn 0.5s var(--vmh-ease) forwards;
}

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

#vmh-app .vmh-vcard:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 40px rgba(37,99,235,0.12) !important;
    border-color: rgba(37,99,235,0.2) !important;
}

#vmh-app .vmh-vcard-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#vmh-app .vmh-vcard-thumb-bg {
    position: absolute;
    inset: 0;
    opacity: 0.9;
}

#vmh-app .vmh-vcard-play {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(12px);
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    z-index: 2;
    transition: all 0.3s var(--vmh-bounce) !important;
}

#vmh-app .vmh-vcard-play svg {
    width: 22px !important;
    height: 22px !important;
    margin-left: 2px;
}

#vmh-app .vmh-vcard:hover .vmh-vcard-play {
    transform: scale(1.15);
    background: rgba(255,255,255,0.35) !important;
}

#vmh-app .vmh-vcard-color-dot {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    z-index: 3;
}

#vmh-app .vmh-vcard-dur {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.65);
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 2px 8px !important;
    border-radius: 6px;
    z-index: 3;
    backdrop-filter: blur(4px);
}

#vmh-app .vmh-vcard-body {
    padding: 14px 16px 16px !important;
}

#vmh-app .vmh-vcard-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--vmh-text) !important;
    margin: 0 0 8px !important;
    line-height: 1.3 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#vmh-app .vmh-vcard-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

#vmh-app .vmh-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 10px !important;
    border-radius: 50px;
}

#vmh-app .vmh-tag--color {
    color: #fff !important;
}

#vmh-app .vmh-tag--neutral {
    background: #f1f5f9;
    color: var(--vmh-text2) !important;
}

#vmh-app .vmh-tag--scint {
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    color: #fff !important;
}

/* ============ AUDIO LIST ============ */
#vmh-app .vmh-grid--audio {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#vmh-app .vmh-agroup {
    margin: 0 0 16px !important;
}

#vmh-app .vmh-agroup-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--vmh-text3) !important;
    padding: 10px 16px 8px !important;
    margin: 0 !important;
}

#vmh-app .vmh-arow {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px !important;
    border-radius: var(--vmh-radius-sm) !important;
    cursor: pointer;
    transition: all 0.2s var(--vmh-ease) !important;
    border: 1px solid transparent !important;
    opacity: 0;
    animation: vmhCardIn 0.4s var(--vmh-ease) forwards;
}

#vmh-app .vmh-arow:hover {
    background: var(--vmh-card-hover) !important;
    border-color: var(--vmh-border) !important;
}

#vmh-app .vmh-arow--playing {
    background: rgba(37, 99, 235, 0.05) !important;
    border-color: var(--vmh-blue) !important;
}

#vmh-app .vmh-arow-btn {
    width: 42px;
    height: 42px;
    background: var(--vmh-blue) !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    flex-shrink: 0;
    transition: transform 0.3s var(--vmh-bounce) !important;
}

#vmh-app .vmh-arow-btn svg {
    width: 16px !important;
    height: 16px !important;
    margin-left: 1px;
}

#vmh-app .vmh-arow:hover .vmh-arow-btn {
    transform: scale(1.08);
}

#vmh-app .vmh-arow-info {
    flex: 1;
    min-width: 0;
}

#vmh-app .vmh-arow-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--vmh-text) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#vmh-app .vmh-arow-detail {
    font-size: 12px !important;
    color: var(--vmh-text3) !important;
    margin-top: 1px !important;
}

#vmh-app .vmh-arow-dur {
    font-size: 13px !important;
    color: var(--vmh-text3) !important;
    font-weight: 500 !important;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* ============ PDF CARDS ============ */
#vmh-app .vmh-grid--pdf {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 14px !important;
}

#vmh-app .vmh-pcard {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 20px !important;
    background: var(--vmh-card) !important;
    border-radius: var(--vmh-radius) !important;
    border: 1px solid var(--vmh-border) !important;
    transition: all 0.3s var(--vmh-ease) !important;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit !important;
    opacity: 0;
    animation: vmhCardIn 0.5s var(--vmh-ease) forwards;
}

#vmh-app .vmh-pcard:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08) !important;
    border-color: transparent !important;
}

#vmh-app .vmh-pcard-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    border-radius: var(--vmh-radius-sm) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

#vmh-app .vmh-pcard-info {
    flex: 1;
    min-width: 0;
}

#vmh-app .vmh-pcard-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--vmh-text) !important;
    margin: 0 0 6px !important;
    line-height: 1.3 !important;
}

#vmh-app .vmh-pcard-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

#vmh-app .vmh-pcard-badge {
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 10px !important;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

#vmh-app .vmh-pcard-badge--session      { background: #dbeafe; color: #1e40af !important; }
#vmh-app .vmh-pcard-badge--camp-de-jour { background: #d1fae5; color: #065f46 !important; }
#vmh-app .vmh-pcard-badge--programme    { background: #fef3c7; color: #92400e !important; }
#vmh-app .vmh-pcard-badge--admin        { background: #f3e8ff; color: #6b21a8 !important; }
#vmh-app .vmh-pcard-badge--spectacle    { background: #fce7f3; color: #9d174d !important; }
#vmh-app .vmh-pcard-badge--autre        { background: #f1f5f9; color: #475569 !important; }

#vmh-app .vmh-pcard-size {
    font-size: 12px !important;
    color: var(--vmh-text3) !important;
}

/* ============ VIDEO OVERLAY / MODAL ============ */
#vmh-app .vmh-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: vmhFadeIn 0.2s ease;
}

@keyframes vmhFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#vmh-app .vmh-overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
}

#vmh-app .vmh-player-card {
    position: relative;
    background: #111 !important;
    border-radius: var(--vmh-radius) !important;
    overflow: hidden;
    max-width: 960px;
    width: 100%;
    z-index: 2;
    animation: vmhScaleIn 0.3s var(--vmh-bounce);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5) !important;
}

@keyframes vmhScaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

#vmh-app .vmh-player-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1) !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    z-index: 10;
    backdrop-filter: blur(10px);
    transition: all 0.2s !important;
}

#vmh-app .vmh-player-close svg {
    width: 20px !important;
    height: 20px !important;
}

#vmh-app .vmh-player-close:hover {
    background: rgba(255,255,255,0.25) !important;
}

#vmh-app .vmh-player-video video {
    width: 100% !important;
    display: block;
    max-height: 75vh;
    background: #000;
}

#vmh-app .vmh-player-info {
    padding: 16px 20px !important;
    color: #fff !important;
}

#vmh-app .vmh-player-info h3 {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 0 8px !important;
    color: #fff !important;
}

/* ============ STICKY AUDIO PLAYER ============ */
#vmh-app .vmh-audioplayer {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--vmh-blue-deeper) !important;
    color: #fff !important;
    border-radius: 16px !important;
    padding: 10px 16px !important;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 440px;
    max-width: 620px;
    z-index: 999998;
    box-shadow: 0 16px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.08) !important;
    animation: vmhPlayerIn 0.4s var(--vmh-bounce);
    backdrop-filter: blur(24px);
}

@keyframes vmhPlayerIn {
    from { opacity: 0; transform: translateX(-50%) translateY(24px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

#vmh-app .vmh-ap-viz {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 22px;
    flex-shrink: 0;
}

#vmh-app .vmh-ap-viz span {
    display: block;
    width: 3px;
    background: var(--vmh-blue-glow);
    border-radius: 2px;
    animation: vmhEq 0.5s ease-in-out infinite alternate;
}

#vmh-app .vmh-ap-viz span:nth-child(1) { height: 6px; animation-delay: 0s; }
#vmh-app .vmh-ap-viz span:nth-child(2) { height: 14px; animation-delay: 0.08s; }
#vmh-app .vmh-ap-viz span:nth-child(3) { height: 10px; animation-delay: 0.16s; }
#vmh-app .vmh-ap-viz span:nth-child(4) { height: 18px; animation-delay: 0.24s; }
#vmh-app .vmh-ap-viz span:nth-child(5) { height: 8px; animation-delay: 0.12s; }

#vmh-app .vmh-ap-viz.vmh-paused span {
    animation-play-state: paused;
}

@keyframes vmhEq {
    0% { height: 3px; }
    100% { height: 20px; }
}

#vmh-app .vmh-ap-info {
    flex-shrink: 0;
    min-width: 0;
    max-width: 160px;
}

#vmh-app .vmh-ap-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff !important;
}

#vmh-app .vmh-ap-sub {
    font-size: 11px !important;
    color: rgba(255,255,255,0.45) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#vmh-app .vmh-ap-btn {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.12) !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    flex-shrink: 0;
    transition: background 0.2s !important;
}

#vmh-app .vmh-ap-btn svg {
    width: 20px !important;
    height: 20px !important;
}

#vmh-app .vmh-ap-btn:hover {
    background: rgba(255,255,255,0.22) !important;
}

#vmh-app .vmh-ap-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#vmh-app .vmh-ap-track-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: var(--vmh-blue-glow);
    border-radius: 3px;
    width: 0%;
    transition: width 0.15s linear;
}

#vmh-app .vmh-ap-track-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 6px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.2s;
    left: 0%;
}

#vmh-app .vmh-ap-track:hover .vmh-ap-track-thumb {
    opacity: 1;
}

#vmh-app .vmh-ap-time {
    font-size: 12px !important;
    color: rgba(255,255,255,0.5) !important;
    font-variant-numeric: tabular-nums;
    min-width: 40px;
    text-align: right;
    flex-shrink: 0;
}

#vmh-app .vmh-ap-close {
    color: rgba(255,255,255,0.35) !important;
    font-size: 18px !important;
    padding: 4px 6px !important;
    flex-shrink: 0;
    transition: color 0.2s !important;
}

#vmh-app .vmh-ap-close:hover {
    color: #fff !important;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    #vmh-app .vmh-hero {
        padding: 32px 20px 28px !important;
    }
    #vmh-app .vmh-hero-title {
        font-size: 24px !important;
    }
    #vmh-app .vmh-hero-title-sep,
    #vmh-app .vmh-hero-title-media {
        display: none !important;
    }
    #vmh-app .vmh-search-input {
        font-size: 14px !important;
    }
    #vmh-app .vmh-nav-inner {
        padding: 0 12px !important;
    }
    #vmh-app .vmh-nav-tab {
        padding: 14px 16px !important;
        font-size: 13px !important;
    }
    #vmh-app .vmh-stage {
        padding: 16px !important;
    }
    #vmh-app .vmh-grid--video {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 12px !important;
    }
    #vmh-app .vmh-grid--pdf {
        grid-template-columns: 1fr !important;
    }
    #vmh-app .vmh-audioplayer {
        min-width: calc(100% - 32px) !important;
        bottom: 12px;
    }
    #vmh-app .vmh-ap-info {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    #vmh-app .vmh-grid--video {
        grid-template-columns: 1fr 1fr !important;
    }
    #vmh-app .vmh-nav-tab span {
        display: none;
    }
}

/* ============ TAG PILLS on cards ============ */
#vmh-app .vmh-tag--pill {
    background: rgba(37, 99, 235, 0.1) !important;
    color: var(--vmh-blue) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 2px 10px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
}

#vmh-app .vmh-arow-tag {
    display: inline-block;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 1px 8px !important;
    border-radius: 50px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--vmh-blue) !important;
    margin-left: 4px;
}

#vmh-app .vmh-pcard-badge--tag {
    background: rgba(37, 99, 235, 0.1) !important;
    color: var(--vmh-blue) !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
}

/* ============ FILTER DIVIDER responsive ============ */
#vmh-app .vmh-filter-divider {
    width: 1px;
    height: 28px;
    background: var(--vmh-border);
    margin: 0 6px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    #vmh-app .vmh-filter-divider {
        width: 100%;
        height: 1px;
        margin: 4px 0;
    }
    #vmh-app .vmh-filters {
        padding: 12px 16px !important;
    }
    #vmh-app .vmh-hero {
        padding: 32px 20px 28px !important;
    }
    #vmh-app .vmh-stage {
        padding: 16px !important;
    }
}
