/* =============================================================
   Synapse Video Presenter – Frontend Player CSS
   All selectors are scoped under .svp-wrapper to avoid
   conflicts with the active WordPress theme.
   ============================================================= */

/* ---------------------------------------------------------------
   CSS Custom Properties (overridden per-instance via inline CSS)
   --------------------------------------------------------------- */
.svp-wrapper {
    --synapse-pink: #BA2D74;
    --synapse-dark: #333333;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.80);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

    --btn-gradient: linear-gradient(135deg, #be3c80 0%, #9f5ff0 50%, #489fdf 100%);
    --service-gradient: linear-gradient(135deg, #489fdf 0%, #20d4a6 100%);
    --service-shadow: 0 4px 14px rgba(32, 212, 166, 0.35);
    --service-shadow-hover: 0 8px 20px rgba(32, 212, 166, 0.5);
    --service-drop-shadow: drop-shadow(0 4px 12px rgba(32, 212, 166, 0.25));

    --t-fast: 0.2s ease;
    --t-normal: 0.3s ease;
    --t-slow: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    --t-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    --z-base: 1;
    --z-slides: 2;
    --z-ui: 160;
    --z-curtain: 100;
    --z-preload: 200;
    --z-intro: 150;
    --z-warning: 300;

    /* Full-screen container */
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 400px;
    overflow: hidden;
    background: #000;
    font-family: 'Outfit', sans-serif;
    color: var(--synapse-dark);
    box-sizing: border-box;
}

.svp-wrapper *,
.svp-wrapper *::before,
.svp-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---------------------------------------------------------------
   Preloader
   --------------------------------------------------------------- */
.svp-preloader {
    position: absolute;
    inset: 0;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-preload);
    transition: opacity 0.8s ease, visibility 0.8s;
}

.svp-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.svp-preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.svp-preloader-logo {
    width: 180px;
    height: auto;
    animation: svpLogoPulse 2s infinite ease-in-out;
}

@keyframes svpLogoPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.svp-preloader-spinner {
    width: 50px;
    height: 2px;
    background: rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.svp-preloader-spinner::after {
    content: '';
    position: absolute;
    inset-block: 0;
    left: -100%;
    width: 100%;
    background: var(--synapse-pink);
    animation: svpLoadBar 1.8s infinite ease-in-out;
}

@keyframes svpLoadBar {
    0% {
        left: -100%;
    }

    50% {
        left: 0;
    }

    100% {
        left: 100%;
    }
}

/* ---------------------------------------------------------------
   Transition Curtain
   --------------------------------------------------------------- */
.svp-curtain {
    position: absolute;
    inset: 0;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-curtain);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-slow), visibility var(--t-slow);
    pointer-events: none;
}

.svp-curtain.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.svp-transition-logo {
    width: 220px;
    height: auto;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}

.svp-curtain.active .svp-transition-logo {
    transform: scale(1);
    opacity: 1;
}

/* ---------------------------------------------------------------
   Intro / Cover Screen
   --------------------------------------------------------------- */
.svp-intro {
    position: absolute;
    inset: 0;
    z-index: var(--z-intro);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s;
    background: #fff;
}

.svp-intro.show {
    opacity: 1;
    visibility: visible;
}

.svp-intro-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(1.1) contrast(1.05);
}

.svp-intro-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.svp-intro-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(var(--synapse-pink-r, 186), var(--synapse-pink-g, 45), var(--synapse-pink-b, 116), 0.08);
    mix-blend-mode: multiply;
}

.svp-intro-content {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    padding-left: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svp-intro-play-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.svp-intro-texts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.svp-cta-phrase {
    font-size: 38px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--synapse-pink) 0%, #4A90E2 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    letter-spacing: -1.2px;
    opacity: 0;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.svp-cta-subtitle {
    color: #666;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.svp-intro.show .svp-cta-phrase {
    animation: svpPremiumEntrance 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards 0.3s;
}

.svp-intro.show .svp-cta-subtitle {
    animation: svpPremiumEntrance 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards 0.5s;
}

@keyframes svpPremiumEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Play pulse button */
.svp-play-pulse-btn {
    width: 75px;
    height: 75px;
    background: var(--btn-gradient);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 0 0 rgba(159, 95, 240, 0.6);
    animation: svpIntroPlayPulse 2s infinite;
    transition: all var(--t-normal);
    position: relative;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));
}

.svp-play-pulse-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(159, 95, 240, 0.5);
    filter: brightness(1.1) drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));
}

.svp-main-play-icon {
    width: 30px;
    height: 30px;
    fill: #fff;
    margin-left: 3px;
}

.svp-audio-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--synapse-pink);
}

.svp-audio-badge svg {
    width: 18px;
    height: 18px;
    fill: var(--synapse-pink);
}

@keyframes svpIntroPlayPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(159, 95, 240, 0.7);
    }

    70% {
        box-shadow: 0 0 0 30px rgba(159, 95, 240, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(159, 95, 240, 0);
    }
}

/* ---------------------------------------------------------------
   Video Slider
   --------------------------------------------------------------- */
.svp-slider {
    position: absolute;
    inset: 0;
    z-index: var(--z-base);
}

.svp-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: #000;
    overflow: hidden;
    transition: opacity 1s ease-in-out, transform 1.2s ease-out;
    transform: scale(1.03);
    pointer-events: none;
    will-change: opacity, transform;
}

.svp-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: var(--z-slides);
}

.svp-slide .svp-ambient-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(100px) brightness(2);
    opacity: 0.8;
    z-index: var(--z-base);
    pointer-events: none;
}

.svp-slide video.svp-video-main {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: var(--z-slides);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* Over-video service link */
.svp-slide-link {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: var(--z-ui);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--service-gradient);
    color: #fff;
    border-radius: 40px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: all var(--t-normal);
    box-shadow: var(--service-shadow);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.svp-slide.active .svp-slide-link {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.8s;
}

.svp-slide-link svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    transition: transform var(--t-normal);
}

.svp-slide-link:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: var(--service-shadow-hover);
    color: #fff;
    filter: brightness(1.1);
}

.svp-slide-link:hover svg {
    transform: translateX(4px);
}

/* ---------------------------------------------------------------
   Glass Overlay / Sidebar
   --------------------------------------------------------------- */
.svp-glass-overlay {
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: -200px;
    z-index: var(--z-ui);
    display: flex;
    flex-direction: column;
    width: 620px;
    transition: opacity var(--t-slow), transform var(--t-spring);
    will-change: transform, opacity;
}

.svp-glass-overlay.playing {
    opacity: 0.65;
    transform: translateX(-380px);
}

@media (hover: hover) {
    .svp-glass-overlay.playing:hover {
        opacity: 1;
        transform: translateX(0);
    }
}

.svp-glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-left: none;
    border-radius: 0 20px 20px 0;
    box-shadow: var(--glass-shadow);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px 30px 30px 230px;
}

/* Brand / Logo */
.svp-brand {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.svp-player-logo {
    width: 180px;
    height: auto;
    opacity: 0.9;
}

/* Page description */
.svp-page-desc {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 4px;
}

/* Index badge */
.svp-index-badge {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
    margin-top: 6px;
    color: var(--synapse-pink);
}

.svp-total-badge {
    color: #666;
    font-weight: 500;
}

/* Video title */
.svp-video-title {
    font-size: 26px;
    font-weight: 700;
    background: var(--btn-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: var(--service-drop-shadow);
    line-height: 1.2;
    margin-bottom: 6px;
    transition: opacity var(--t-normal);
}

/* Video short description */
.svp-video-desc {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.4;
    margin-bottom: 8px;
    min-height: 1em;
}

/* Service link CTA */
.svp-service-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    margin-top: 12px;
    padding: 8px 18px;
    background: var(--service-gradient);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--t-normal);
    box-shadow: var(--service-shadow);
    align-self: flex-start;
}

.svp-service-link svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.svp-service-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: var(--service-shadow-hover);
    color: #fff;
}

/* ---------------------------------------------------------------
   Player Controls
   --------------------------------------------------------------- */
.svp-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.svp-icon-btn {
    background: var(--btn-gradient);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(159, 95, 240, 0.25);
    transition: all var(--t-fast);
    color: #fff;
    flex-shrink: 0;
}

.svp-icon-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.12);
    box-shadow: 0 6px 16px rgba(159, 95, 240, 0.45);
}

.svp-icon-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Contact button */
.svp-contact-btn {
    background: var(--btn-gradient) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(159, 95, 240, 0.35) !important;
}

.svp-contact-btn:hover {
    transform: scale(1.18) rotate(5deg) !important;
    filter: brightness(1.12) !important;
    box-shadow: 0 8px 20px rgba(159, 95, 240, 0.5) !important;
}

/* ---------------------------------------------------------------
   Progress Bar
   --------------------------------------------------------------- */
.svp-progress-wrap {
    width: 100%;
    height: 10px;
    margin-top: 18px;
    margin-bottom: 18px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
    transition: height 0.2s ease;
}

.svp-progress-wrap:hover {
    height: 18px;
}

.svp-progress-fill {
    height: 100%;
    background: var(--btn-gradient);
    width: 0%;
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* ---------------------------------------------------------------
   Playlist
   --------------------------------------------------------------- */
.svp-playlist {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    margin-top: 15px;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.svp-playlist-item {
    display: flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-weight: 600;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.8);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid transparent;
}

.svp-playlist-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    color: var(--synapse-pink);
    border-color: rgba(186, 45, 116, 0.2);
}

.svp-playlist-item.active {
    background: var(--btn-gradient);
    color: #fff;
    box-shadow: 0 8px 20px rgba(159, 95, 240, 0.4);
    transform: scale(1.02);
}

.svp-playlist-num {
    opacity: 0.6;
    margin-right: 12px;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
}

.svp-playlist-item.active .svp-playlist-num {
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Custom scrollbar */
.svp-playlist::-webkit-scrollbar {
    width: 6px;
}

.svp-playlist::-webkit-scrollbar-track {
    background: transparent;
}

.svp-playlist::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.svp-playlist::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* ---------------------------------------------------------------
   Sidebar Footer & Toggle Handle
   --------------------------------------------------------------- */
.svp-sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 2px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: flex-end;
}

.svp-sidebar-handle {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 30px;
    height: 80px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    z-index: 10;
}

.svp-handle-arrow {
    width: 44px;
    height: 44px;
    fill: var(--synapse-pink);
    opacity: 0.6;
    transition: all var(--t-spring);
    filter: drop-shadow(0 0 8px rgba(var(--synapse-pink-r, 186), var(--synapse-pink-g, 45), var(--synapse-pink-b, 116), 0.3));
}

.svp-sidebar-handle:hover .svp-handle-arrow {
    opacity: 1;
    transform: scale(1.2);
}

.svp-glass-overlay.playing .svp-handle-arrow {
    transform: rotate(180deg);
    opacity: 0.8;
    animation: svpBounceArrow 2s infinite ease-in-out;
}

.svp-glass-overlay.playing:hover .svp-handle-arrow {
    transform: rotate(0deg) scale(1.1);
    animation: none;
    opacity: 1;
}

@keyframes svpBounceArrow {

    0%,
    100% {
        transform: rotate(180deg) translateX(0);
    }

    50% {
        transform: rotate(180deg) translateX(-5px);
    }
}

/* ---------------------------------------------------------------
   Contact Modal
   --------------------------------------------------------------- */
.svp-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--z-warning);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.svp-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.svp-modal-card {
    background: #fff;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.svp-modal-overlay.active .svp-modal-card {
    transform: translateY(0);
}

.svp-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color var(--t-fast);
}

.svp-modal-close:hover {
    color: var(--synapse-pink);
}

.svp-modal-header h2 {
    font-size: 26px;
    color: var(--synapse-pink);
    margin-bottom: 4px;
    font-family: 'Outfit', sans-serif;
}

.svp-modal-header p {
    font-size: 14px;
    color: #666;
}

.svp-modal-body {
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.svp-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--synapse-dark);
    font-size: 14px;
}

.svp-contact-item svg {
    width: 20px;
    height: 20px;
    fill: var(--synapse-pink);
    flex-shrink: 0;
}

.svp-contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast);
}

.svp-contact-item a:hover {
    color: var(--synapse-pink);
}

.svp-modal-cta {
    display: block;
    width: 100%;
    background: var(--btn-gradient);
    color: #fff;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    transition: all var(--t-normal);
    box-shadow: 0 5px 15px rgba(159, 95, 240, 0.3);
}

.svp-modal-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    color: #fff;
    box-shadow: 0 8px 20px rgba(159, 95, 240, 0.5);
}

/* ---------------------------------------------------------------
   Orientation Warning
   --------------------------------------------------------------- */
.svp-orientation-warning {
    position: absolute;
    inset: 0;
    z-index: var(--z-warning);
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 40px;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--t-slow);
    pointer-events: none;
}

.svp-warning-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
}

.svp-phone-icon {
    width: 60px;
    height: 60px;
    fill: var(--synapse-pink);
    animation: svpRotatePhone 2.5s infinite ease-in-out;
}

.svp-orientation-warning p {
    font-size: 18px;
    font-weight: 500;
    color: var(--synapse-dark);
    max-width: 280px;
    line-height: 1.5;
}

@keyframes svpRotatePhone {
    0% {
        transform: rotate(0deg);
    }

    35% {
        transform: rotate(-90deg);
    }

    65% {
        transform: rotate(-90deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* ---------------------------------------------------------------
   Responsive – Landscape Tablet
   --------------------------------------------------------------- */
@media (max-width: 1024px) and (orientation: landscape) {
    .svp-glass-overlay {
        top: 20px;
        bottom: 20px;
        left: -200px;
        width: calc(65vw + 200px);
    }

    .svp-glass-overlay.playing {
        transform: translateX(calc(-65vw + 40px));
    }

    .svp-glass-card {
        padding: 15px 25px 15px 225px;
        display: grid;
        grid-template-columns: 2fr 3fr;
        grid-template-rows: auto auto auto auto 1fr auto;
        column-gap: 10px;
        align-items: start;
    }

    .svp-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .svp-page-desc {
        grid-column: 1;
        grid-row: 2;
        font-size: 12px;
        margin-bottom: 6px;
    }

    .svp-index-badge {
        grid-column: 1;
        grid-row: 3;
        margin-top: 0;
    }

    .svp-video-title {
        grid-column: 1;
        grid-row: 4;
        font-size: 20px;
    }

    .svp-video-desc {
        display: none;
    }

    .svp-service-link {
        grid-column: 1;
        grid-row: 5;
        align-self: start;
        font-size: 12px;
        padding: 6px 12px;
    }

    .svp-controls {
        grid-column: 1;
        grid-row: 6;
        margin-top: auto;
        padding-top: 8px;
        justify-content: flex-start;
    }

    .svp-progress-wrap {
        grid-column: 1;
        grid-row: 7;
        margin-top: 6px;
        margin-bottom: 0;
    }

    .svp-playlist {
        grid-column: 2;
        grid-row: 1 / span 6;
        margin-top: 0;
        padding-left: 16px;
    }

    .svp-sidebar-footer {
        grid-column: 2;
        grid-row: 7;
        padding-left: 16px;
        padding-top: 8px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        justify-content: flex-end;
    }

    .svp-icon-btn {
        width: 38px;
        height: 38px;
    }

    .svp-icon-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ---------------------------------------------------------------
   Responsive – Small Landscape (iPhone SE etc.)
   --------------------------------------------------------------- */
@media (max-height: 500px) and (orientation: landscape) {
    .svp-glass-card {
        padding: 10px 20px 10px 215px;
        row-gap: 4px;
    }

    .svp-player-logo {
        width: 120px;
    }

    .svp-video-title {
        font-size: 18px;
    }

    .svp-index-badge {
        font-size: 14px;
    }

    .svp-playlist-item {
        padding: 5px 10px;
        font-size: 13px;
    }

    .svp-sidebar-footer {
        padding-top: 4px;
    }

    .svp-contact-btn {
        width: 36px;
        height: 36px;
    }
}

/* ---------------------------------------------------------------
   Responsive – Portrait Mobile
   --------------------------------------------------------------- */
@media (max-width: 900px) and (orientation: portrait) {
    .svp-glass-overlay {
        top: auto;
        bottom: 30px;
        left: 20px;
        right: 20px;
        width: auto;
        height: auto;
        transform: none;
        transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity var(--t-slow);
    }

    .svp-glass-overlay.playing {
        transform: translateY(calc(100% - 60px));
        opacity: 0.85;
    }

    @media (hover: hover) {
        .svp-glass-overlay.playing:hover {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .svp-glass-card {
        height: auto;
        padding: 22px;
        border-radius: 20px;
        border-left: 1px solid var(--glass-border);
    }

    .svp-playlist {
        max-height: 160px;
    }

    .svp-sidebar-handle {
        display: none;
    }

    .svp-intro-content {
        padding-left: 0;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 20px;
    }

    .svp-cta-phrase {
        font-size: 26px;
    }

    /* Portrait mobile: orientation warning is active */
    .svp-orientation-warning {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
}

/* ---------------------------------------------------------------
   Responsive – Small phones
   --------------------------------------------------------------- */
@media (max-width: 600px) {
    .svp-page-desc {
        font-size: 13px;
    }
}

/* ---------------------------------------------------------------
   Buffering / Status Indicators
   --------------------------------------------------------------- */
.svp-buffering-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    z-index: var(--z-ui);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.svp-buffering-indicator.active {
    opacity: 1;
    visibility: visible;
}

.svp-buffering-spinner {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--synapse-pink);
    border-radius: 50%;
    animation: svpBufferSpin 1s linear infinite;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

@keyframes svpBufferSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.svp-status-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-ui);
    pointer-events: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.svp-status-flash.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.svp-status-flash svg {
    width: 32px;
    height: 32px;
    fill: #fff;
    margin-left: 2px;
    /* Center optical alignment for play icon */
}

/* ---------------------------------------------------------------
   Fullpage mode (body.svp-fullpage)
   Strip every spacing constraint between the theme's header/footer
   and the player. JS sets the exact height directly on the wrapper.
   --------------------------------------------------------------- */

/* Hide the page title rendered outside the_content by FSE */
body.svp-fullpage .wp-block-post-title {
    display: none !important;
}

/* Strip the top margin WordPress adds to <main> on single pages */
body.svp-fullpage main.wp-block-group {
    margin: 0 !important;
    padding: 0 !important;
}

/* Strip padding from the intermediate group block wrapping title + content */
body.svp-fullpage main>.wp-block-group {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* Remove max-width (645 px) and padding from the post-content block */
body.svp-fullpage .wp-block-post-content,
body.svp-fullpage .entry-content {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* Player wrapper: break out of the 645 px is-layout-constrained child rule */
body.svp-fullpage .svp-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    /* height is set in px directly by JS; fallback keeps it usable */
    height: var(--svp-available-height, 100dvh);
}

/* Footer is reachable by scrolling down */
body.svp-fullpage {
    overflow-y: auto;
}

/* ---------------------------------------------------------------
   Responsive Adjustments for Over-video Link
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
    .svp-slide-link {
        top: 25px;
        right: 25px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .svp-slide-link {
        top: 15px;
        right: 15px;
        padding: 8px 16px;
    }
}