/* Persistent Full-Viewport 3D Grid with Blue Gradient Audio Equalizer & Modal Fixes */
.gyt-fullscreen-wrapper {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background-color: #0d0f12;
    overflow: hidden;
    perspective: 1600px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
}

.gyt-fullscreen-wrapper *, .gyt-fullscreen-wrapper *::before, .gyt-fullscreen-wrapper *::after {
    box-sizing: border-box;
}

#gytFluidCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.gyt-dark-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 20%, rgba(13, 15, 18, 0.85) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Bubble Category Filter Menu */
.gyt-bubble-menu {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    gap: 12px;
    background: rgba(22, 26, 33, 0.85);
    backdrop-filter: blur(16px);
    padding: 10px 18px;
    border-radius: 40px;
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(0, 210, 255, 0.2);
}

.gyt-bubble-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gyt-bubble-btn.active, .gyt-bubble-btn:hover {
    background: #00d2ff;
    color: #0d0f12;
    border-color: #00d2ff;
    box-shadow: 0 0 18px #00d2ff;
    transform: scale(1.05);
}

/* Grey Navigation Arrows */
.gyt-nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 300;
    background: #2d3748;
    border: 2px solid #00d2ff;
    color: #00d2ff;
    font-size: 1.6rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 210, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gyt-nav-arrow span {
    display: block;
    line-height: 1;
    text-shadow: 0 0 10px #00d2ff;
    transition: transform 0.2s ease;
}

.gyt-nav-arrow:hover {
    background: #1a202c;
    border-color: #00d2ff;
    color: #00d2ff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 35px #00d2ff;
    transform: translateY(-50%) scale(1.15);
}

.gyt-arrow-left { left: 30px; }
.gyt-arrow-right { right: 30px; }

.gyt-arrow-left:hover span { transform: translateX(-3px); }
.gyt-arrow-right:hover span { transform: translateX(3px); }

/* Right-side Zoom Controls */
.gyt-zoom-controls {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(22, 26, 33, 0.85);
    backdrop-filter: blur(14px);
    padding: 14px 10px;
    border-radius: 30px;
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.gyt-zoom-label {
    color: #00d2ff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
}

.gyt-zoom-btn {
    background: #2d3748;
    border: 2px solid #00d2ff;
    color: #00d2ff;
    font-size: 1.6rem;
    font-weight: bold;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 210, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gyt-zoom-btn:hover {
    background: #00d2ff;
    color: #0d0f12;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 30px #00d2ff;
    transform: scale(1.15);
}

/* Audio Visualizer Equalizer Widget - Pure Dark Blue to Cyan Glow */
.gyt-eq-widget {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    z-index: 9999999 !important;
    background: rgba(10, 16, 26, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 2px solid #00d2ff !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 210, 255, 0.4) !important;
    width: 270px !important;
    overflow: hidden !important;
    transition: box-shadow 0.15s ease, transform 0.15s ease !important;
}

.gyt-eq-widget.audio-active {
    border-color: #00d2ff !important;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.9), 0 0 50px rgba(0, 210, 255, 0.85) !important;
}

.gyt-eq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(14, 25, 45, 0.95);
    border-bottom: 1px solid rgba(0, 210, 255, 0.3);
}

.gyt-eq-title {
    color: #00d2ff;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.8);
}

.gyt-eq-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.gyt-eq-mic-btn, .gyt-eq-min-btn {
    background: #1a2942;
    color: #00d2ff;
    border: 1px solid #00d2ff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gyt-eq-mic-btn:hover, .gyt-eq-min-btn:hover {
    background: #00d2ff;
    color: #0d0f12;
    box-shadow: 0 0 14px #00d2ff;
}

.gyt-eq-body {
    padding: 12px;
    background: #060b14;
}

.gyt-eq-widget.minimized .gyt-eq-body {
    display: none !important;
}

#gytEqCanvas {
    display: block;
    width: 246px;
    height: 65px;
    background: #030710;
    border-radius: 8px;
}

/* 3D Perspective Stage */
.gyt-stage-container {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    padding: 100px 110px 80px 110px;
    perspective: 2500px;
}

.gyt-grid-3d {
    display: grid;
    grid-template-columns: repeat(var(--gyt-cols), 1fr);
    gap: 30px;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.2s ease;
}

@media (min-width: 2500px) {
    .gyt-grid-3d { grid-template-columns: repeat(6, 1fr); gap: 36px; }
}
@media (max-width: 1600px) {
    .gyt-grid-3d { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
@media (max-width: 1100px) {
    .gyt-grid-3d { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 768px) {
    .gyt-grid-3d { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .gyt-bubble-menu { display: none; }
}

.gyt-card-item {
    cursor: pointer;
    transform-style: preserve-3d;
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
    z-index: 12;
}

.gyt-card-item.gyt-hidden {
    display: none !important;
}

.gyt-thumb-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    pointer-events: none;
    transition: all 0.35s ease;
}

.gyt-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gyt-glow-layer {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    border: 2px solid transparent;
    transition: all 0.35s ease;
    pointer-events: none;
}

.gyt-card-item:hover .gyt-thumb-box {
    transform: scale(1.06);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 30px #00d2ff;
}

.gyt-card-item:hover .gyt-glow-layer {
    border-color: #00d2ff;
    box-shadow: inset 0 0 20px #00d2ff;
}

.gyt-card-item:hover img {
    transform: scale(1.08);
}

.gyt-video-title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 12px 0 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    pointer-events: none;
}

/* Video Popup Modal */
.gyt-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.gyt-modal.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.gyt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 16, 0.9);
    backdrop-filter: blur(18px);
}

.gyt-modal-content {
    position: relative;
    z-index: 1000000;
    width: 90%;
    max-width: 1050px;
    background: #1a1d24;
    border: 1px solid rgba(0, 210, 255, 0.5);
    box-shadow: 0 0 60px rgba(0, 210, 255, 0.4);
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.85);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gyt-modal.active .gyt-modal-content {
    transform: scale(1);
}

.gyt-modal-content.gyt-screen-fill {
    width: 98vw !important;
    height: 94vh !important;
    max-width: none !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
}

.gyt-modal-content.gyt-screen-fill .gyt-video-player-wrap {
    flex: 1 1 auto !important;
    aspect-ratio: auto !important;
    height: 100% !important;
}

.gyt-modal-content.gyt-screen-fill .gyt-modal-details {
    padding: 14px 24px !important;
    flex: 0 0 auto !important;
}

.gyt-modal-top-bar {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1000001;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gyt-modal-nav-group {
    display: flex;
    gap: 8px;
}

.gyt-modal-arrow-btn, .gyt-modal-expand-btn {
    background: #2d3748;
    border: 2px solid #00d2ff;
    color: #00d2ff;
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5), 0 0 15px rgba(0, 210, 255, 0.4);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gyt-modal-arrow-btn span, .gyt-modal-expand-btn span {
    display: block;
    line-height: 1;
    text-shadow: 0 0 8px #00d2ff;
}

.gyt-modal-arrow-btn:hover, .gyt-modal-expand-btn:hover {
    background: #00d2ff;
    color: #0d0f12;
    box-shadow: 0 6px 20px rgba(0,0,0,0.7), 0 0 25px #00d2ff;
    transform: scale(1.12);
}

.gyt-modal-expand-btn.active {
    background: #00d2ff;
    color: #0d0f12;
    box-shadow: 0 0 20px #00d2ff;
}

.gyt-modal-x {
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: 1px solid rgba(0, 210, 255, 0.4);
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.gyt-modal-x:hover {
    background: #00d2ff;
    color: #0d0f12;
    box-shadow: 0 0 25px #00d2ff;
}

.gyt-video-player-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gyt-video-player-wrap.switching {
    opacity: 0;
    transform: scale(0.97);
}

.gyt-video-player-wrap iframe {
    width: 100%;
    height: 100%;
}

.gyt-modal-details {
    padding: 24px 30px;
    color: #e2e8f0;
}

.gyt-modal-details h2 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0 0 8px 0;
}

.gyt-modal-meta {
    color: #00d2ff;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.gyt-modal-text {
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.5;
}
