/*
 * OllyEmbed - Premium Cyberpunk Fullscreen Design System
 * Author: Antigravity AI
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Cyberpunk Colors */
    --bg-main: #06020e;
    --bg-card: rgba(13, 8, 28, 0.7);
    --bg-glass: rgba(10, 6, 22, 0.65);
    --border-glass: rgba(168, 85, 247, 0.15);
    --border-glass-hover: rgba(6, 182, 212, 0.6);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.5);
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.5);
    --accent-red: #f43f5e;
    
    --shadow-neon-purple: 0 0 15px rgba(139, 92, 246, 0.3);
    --shadow-neon-cyan: 0 0 15px rgba(6, 182, 212, 0.4);
    
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-lg: 18px;
    --border-radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* Base styles */
body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 10% 10%, rgba(139, 92, 246, 0.15) 0px, transparent 40%),
        radial-gradient(at 90% 90%, rgba(6, 182, 212, 0.12) 0px, transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

body.player-active {
    overflow: hidden !important;
}

/* Hide header and footer when player is running */
body.player-active header,
body.player-active footer {
    display: none !important;
}

h1, h2, h3, h4, .font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #1e113a;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
    box-shadow: var(--shadow-neon-cyan);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Header styling */
header {
    border-bottom: 1px solid var(--border-glass);
    background: rgba(6, 2, 14, 0.85);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 26px;
    font-weight: 900;
    color: var(--text-primary);
}

.logo span, .overlay-brand span {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    font-size: 30px;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 10px var(--accent-cyan-glow));
}

.nav-links {
    display: flex;
    gap: 16px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--border-radius-md);
    border: 1px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: var(--shadow-neon-purple);
}

.nav-link.active {
    border-color: var(--accent-purple);
}

/* Home search */
.search-hero {
    text-align: center;
    padding: 70px 20px 50px;
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 18px;
    background: linear-gradient(to right, #ffffff, #c084fc, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 650px;
    margin: 0 auto 35px;
    line-height: 1.7;
}

.search-box-container {
    max-width: 620px;
    margin: 0 auto;
    position: relative;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    padding: 8px 12px 8px 24px;
    transition: var(--transition-smooth);
}

.search-input-wrapper:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-neon-cyan);
}

.search-icon {
    font-size: 22px;
    color: var(--accent-purple);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 16px;
    padding-left: 12px;
    width: 100%;
}

.search-clear-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Dropdown list */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0d091a;
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    margin-top: 14px;
    max-height: 420px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    display: none;
    backdrop-filter: blur(16px);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 22px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(139, 92, 246, 0.05);
}

.search-result-item:hover {
    background: rgba(139, 92, 246, 0.06);
    border-left: 3px solid var(--accent-cyan);
}

.result-poster {
    width: 48px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    background: #140e28;
    border: 1px solid var(--border-glass);
}

.result-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.result-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-type {
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
}

.result-type.movie {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.result-type.tv {
    background: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
}

/* Media Cards */
.section-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title ion-icon {
    color: var(--accent-cyan);
}

.grid-layout {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 24px;
    margin-bottom: 50px;
    padding-top: 10px;
    padding-bottom: 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.grid-layout::-webkit-scrollbar {
    height: 6px;
}

.grid-layout::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.grid-layout::-webkit-scrollbar-thumb {
    background: #1e113a;
    border-radius: 10px;
}

.grid-layout::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
    box-shadow: var(--shadow-neon-cyan);
}

.media-card {
    flex: 0 0 180px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.media-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-neon-cyan);
}

.card-poster-wrapper {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.card-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.media-card:hover .card-poster {
    transform: scale(1.06);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(6, 2, 14, 0.95) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 14px;
}

.card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
    transition: var(--transition-smooth);
}

.media-card:hover .card-play-btn {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(6, 2, 14, 0.85);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(6px);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}

.card-badge.rating {
    color: #f59e0b;
}

.card-info {
    padding: 14px;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-bottom: 6px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========================================================
   FULLSCREEN PLAYER VIEW & FLOATING DECK (VIDZEE-STYLE)
   ======================================================== */
#viewPlayer {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #000;
    z-index: 9999;
}

.player-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.player-wrapper:hover .player-server-overlay {
    opacity: 1;
    transform: translateY(0);
}

.player-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

/* Floating Deck Controls Overlay */
.player-server-overlay {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: calc(100% - 40px);
    max-width: 1200px;
    background: rgba(10, 6, 22, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 8;
    opacity: 0;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.player-wrapper:hover .player-server-overlay {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 800px) {
    .player-server-overlay {
        opacity: 1;
        top: 15px;
        width: calc(100% - 30px);
        transform: translateX(-50%) translateY(0);
        padding: 8px 14px;
    }
}

.overlay-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.overlay-home-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.overlay-home-btn:hover {
    background: var(--accent-purple);
    border-color: transparent;
    box-shadow: var(--shadow-neon-purple);
}

.overlay-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 18px;
    color: var(--text-primary);
}

.overlay-media-title {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 45%;
    text-align: center;
}

@media (max-width: 700px) {
    .overlay-media-title {
        display: none;
    }
}

.numeric-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
}

.numeric-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.numeric-btn:nth-child(n) {
    padding: 0 10px;
    width: auto;
}

.numeric-btn:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.4);
    color: var(--text-primary);
}

.numeric-btn.active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-neon-cyan);
}

.overlay-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.overlay-episodes-btn {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: #22d3ee;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.overlay-episodes-btn:hover {
    background: var(--accent-cyan);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-neon-cyan);
}

.hud-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 11px;
}

.hud-pulse {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: hudBlink 1.5s infinite;
}

@keyframes hudBlink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.hud-label {
    letter-spacing: 0.5px;
    font-weight: 600;
    color: #06b6d4;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .hud-stats {
        display: none;
    }
}

/* Floating Slide-out TV Drawer */
.episode-drawer-sidebar {
    position: absolute;
    right: -350px;
    top: 0;
    bottom: 0;
    width: 340px;
    background: rgba(10, 6, 22, 0.96);
    backdrop-filter: blur(20px);
    border-left: 1.5px solid var(--border-glass);
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 24px;
    transition: var(--transition-smooth);
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.9);
}

.episode-drawer-sidebar.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.drawer-header h3 {
    font-size: 18px;
    font-weight: 800;
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-primary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.drawer-close-btn:hover {
    background: var(--accent-red);
}

.season-select-wrapper {
    position: relative;
    width: 100%;
}

.season-select {
    width: 100%;
    background: #0c0819;
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    padding: 11px 14px;
    font-size: 13.5px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    appearance: none;
}

.season-select-wrapper::after {
    content: '\f107';
    font-family: "Ionicons";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-cyan);
    pointer-events: none;
}

.episode-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex: 1;
    margin: 16px 0;
    padding-right: 4px;
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
}

.episode-item:hover {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.25);
}

.episode-item.active {
    background: rgba(6, 182, 212, 0.08);
    border-color: var(--accent-cyan);
}

.episode-thumb {
    width: 75px;
    height: 42px;
    object-fit: cover;
    border-radius: 4px;
    background: #140e28;
}

.episode-info {
    flex: 1;
    min-width: 0;
}

.episode-title {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-bottom: 2px;
}

.episode-meta {
    font-size: 10px;
    color: var(--text-secondary);
}

.episode-item.active .episode-title {
    color: var(--accent-cyan);
}

/* Drawer Downloads Dock */
.drawer-downloads {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
    margin-top: auto;
}

.drawer-downloads h4 {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.drawer-dl-buttons {
    display: flex;
    gap: 10px;
}

.drawer-dl-buttons .dl-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 12px;
    font-weight: 800;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.drawer-dl-buttons .dl-button.vidvault {
    background: linear-gradient(135deg, var(--accent-purple), #6366f1);
    color: white;
}

.drawer-dl-buttons .dl-button.o2movie {
    background: linear-gradient(135deg, #f97316, #e11d48);
    color: white;
}

.drawer-dl-buttons .dl-button:hover {
    transform: translateY(-2px);
}

/* Spinner Overlay inside player */
.player-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #06020e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loader-glow-ring {
    width: 65px;
    height: 65px;
    border: 3px solid rgba(139, 92, 246, 0.08);
    border-top: 3px solid var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loader-glow-ring::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 3px solid rgba(6, 182, 212, 0.08);
    border-top: 3px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spinReverse 1.4s linear infinite;
}

.loader-text {
    margin-top: 24px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Play interceptor overlay */
.player-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9;
}

.player-play-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 2, 14, 0.88);
    backdrop-filter: blur(10px);
}

.play-overlay-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.big-play-btn {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: white;
    margin: 0 auto 22px;
    box-shadow: var(--shadow-neon-cyan);
    transition: var(--transition-smooth);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.big-play-btn ion-icon {
    transform: translateX(3px);
}

.player-play-overlay:hover .big-play-btn {
    transform: scale(1.08);
    box-shadow: var(--shadow-neon-cyan), var(--shadow-neon-purple);
}

.play-overlay-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.play-overlay-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

/* Ad Shield Alert Banner */
.ad-warning-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 80px;
    background: rgba(10, 6, 22, 0.85);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 12px 18px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 7;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ad-warning-content {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ad-warning-content strong {
    color: var(--accent-cyan);
}

.ad-warning-icon {
    font-size: 26px;
    color: var(--accent-cyan);
}

.ad-warning-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-warning-close:hover {
    background: var(--accent-red);
}

/* ========================================================
   HOME & API DOCS LAYOUTS (Standard Cyberpunk styling)
   ======================================================== */
.playground-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    margin-top: 50px;
}

.playground-row {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

@media (max-width: 650px) {
    .playground-row {
        flex-direction: column;
    }
}

.playground-select, .playground-input {
    background: #0c0819;
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    padding: 14px;
    outline: none;
    font-size: 14px;
    font-weight: 600;
}

.playground-input {
    flex: 1;
}

.playground-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-neon-cyan);
}

.playground-btn {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    color: white;
    font-weight: 800;
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.playground-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon-cyan), var(--shadow-neon-purple);
}

/* Code block generator widget */
.code-block-container {
    background: #0a0614;
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.code-tabs {
    display: flex;
    background: #05020a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.code-tab-btn.active {
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.05);
    border-bottom: 2px solid var(--accent-cyan);
}

.code-content-wrapper {
    position: relative;
    padding: 18px;
}

.code-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12.5px;
    color: #e2e8f0;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 250px;
    line-height: 1.5;
}

.copy-code-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.copy-code-btn:hover {
    color: white;
    background: var(--accent-cyan);
    border-color: transparent;
}

/* API Docs Page layout */
.doc-section {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 35px;
}

.doc-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 35px;
    margin-top: 30px;
}

@media (max-width: 850px) {
    .doc-grid {
        grid-template-columns: 1fr;
    }
}

.doc-info-block {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.doc-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--accent-cyan);
}

.doc-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.api-endpoint {
    background: #0c0819;
    border: 1px solid var(--border-glass);
    padding: 14px 18px;
    border-radius: var(--border-radius-md);
    font-family: monospace;
    font-size: 13.5px;
    color: #22d3ee;
    word-break: break-all;
}

.api-endpoint span {
    color: var(--accent-purple);
    font-weight: 700;
}

/* Footer & Extras */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 40px 20px;
    text-align: center;
    margin-top: 80px;
    color: var(--text-muted);
    font-size: 13.5px;
}

footer a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition-smooth);
}

footer a:hover {
    color: var(--accent-purple);
}

/* Keyframes animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Corner cyber brackets styling */
.cyber-bracket {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent-cyan);
    z-index: 6;
    pointer-events: none;
    filter: drop-shadow(0 0 5px var(--accent-cyan-glow));
    animation: pulseBracket 2.5s infinite ease-in-out;
}

.cyber-bracket.top-left {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.cyber-bracket.top-right {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.cyber-bracket.bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.cyber-bracket.bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

@keyframes pulseBracket {
    0%, 100% { opacity: 0.3; filter: drop-shadow(0 0 2px var(--accent-cyan-glow)); }
    50% { opacity: 1; filter: drop-shadow(0 0 10px var(--accent-cyan)); }
}

/* Floating Settings Cog Button */
.player-settings-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 8;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 6, 22, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.9);
}

.player-wrapper:hover .player-settings-btn {
    opacity: 1;
    transform: scale(1);
}

.player-settings-btn:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-neon-cyan);
    transform: scale(1.08) rotate(45deg);
    color: var(--accent-cyan);
}

/* Settings Popover Panel */
.player-settings-panel {
    position: absolute;
    bottom: 75px;
    right: 20px;
    width: 320px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    background: rgba(10, 6, 22, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 18px;
    z-index: 120;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    gap: 16px;
    animation: slideUpShort 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.settings-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.settings-panel-header h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-panel-header h4 ion-icon {
    color: var(--accent-cyan);
}

.settings-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.settings-close-btn:hover {
    color: var(--accent-red);
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-section-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.settings-server-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.settings-server-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
}

.settings-server-item:hover {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.2);
}

.settings-server-item.active {
    background: rgba(6, 182, 212, 0.08);
    border-color: var(--accent-cyan);
}

.server-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.server-item-left ion-icon {
    font-size: 16px;
    color: var(--accent-purple);
}

.settings-server-item.active .server-item-left {
    color: var(--text-primary);
}

.settings-server-item.active .server-item-left ion-icon {
    color: var(--accent-cyan);
}

.server-item-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.settings-server-item.active .server-item-badge {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
}

.settings-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stats-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stats-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stats-value {
    font-family: monospace;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.stats-value.live-status {
    color: #22c55e;
}

/* API Docs Table & Cards styling */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 25px;
    font-size: 13.5px;
    text-align: left;
}

.doc-table th, .doc-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.doc-table th {
    font-weight: 800;
    color: var(--accent-cyan);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.doc-table td {
    color: var(--text-secondary);
}

.doc-table td code {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.doc-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.docs-servers-ul {
    list-style: none;
    padding: 0;
}

/* Embedded Iframe Mode Styling Overrides */
body.is-embedded #playerServerOverlay,
body.is-embedded .cyber-bracket,
body.is-embedded #playerSettingsBtn,
body.is-embedded #playerSettingsPanel,
body.is-embedded #episodePanel,
body.is-embedded #toggleEpisodesBtn,
body.is-embedded #adWarning {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Mobile bottom-sheet layout for settings panel */
@media (max-width: 600px) {
    .player-settings-panel {
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        border-top: 1px solid var(--border-glass) !important;
        max-height: 60% !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8) !important;
        animation: slideUpBottom 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
}

@keyframes slideUpBottom {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Split Layout for Demo Player Playground */
.playground-split-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    background: rgba(13, 8, 28, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-top: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 950px) {
    .playground-split-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.pg-controls-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pg-input-row {
    display: flex;
    gap: 10px;
}

.pg-server-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pg-server-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.pg-server-pill:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.4);
    color: var(--text-primary);
}

.pg-server-pill.active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-neon-cyan);
}

/* Inline Live Player Preview Panel */
.pg-player-preview-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--border-radius-md);
    border: 1.5px solid var(--border-glass);
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.pg-player-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: var(--transition-smooth);
}

.pg-placeholder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 2, 14, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    z-index: 2;
}

.pg-big-play-btn {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 14px;
    box-shadow: var(--shadow-neon-cyan);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
}

.pg-big-play-btn ion-icon {
    transform: translateX(2px);
}

.pg-player-placeholder:hover .pg-big-play-btn {
    transform: scale(1.08);
    box-shadow: var(--shadow-neon-cyan), var(--shadow-neon-purple);
}

.pg-player-placeholder h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.pg-player-placeholder p {
    font-size: 12px;
    color: var(--text-secondary);
}

.pg-player-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

/* Category & Genre Navigation Tabs */
.category-tabs-container {
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.category-tabs {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}

.category-tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.25);
}

.category-tab-btn.active {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-neon-purple);
}

/* Playground Custom Buttons */
.playground-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    flex: 1;
}

.playground-btn:hover {
    background: rgba(6, 182, 212, 0.08);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-neon-cyan);
    color: var(--text-primary);
}

.playground-btn.play-demo-btn {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
    border-color: rgba(6, 182, 212, 0.4);
    color: var(--accent-cyan);
}

.playground-btn.play-demo-btn:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
    border-color: var(--accent-cyan);
    color: var(--text-primary);
}

/* Tables inside API Docs */
.doc-table {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* ========================================================
   RESPONSIVE DESIGN OVERRIDES (MOBILE & TABLET STYLING)
   ======================================================== */
@media (max-width: 600px) {
    /* Base Container spacing */
    .container {
        padding: 16px 12px;
    }

    /* Header Nav stack styling */
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
    }
    
    .logo {
        font-size: 18px;
        gap: 6px;
    }
    
    .logo-icon {
        font-size: 20px;
    }
    
    .nav-links {
        width: auto;
        gap: 8px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 6px 12px;
        gap: 4px;
        justify-content: center;
    }

    /* Search Hero typography scaling */
    .search-hero {
        padding: 40px 10px 24px;
    }
    
    .hero-title {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .search-input-wrapper {
        padding: 6px 10px 6px 16px;
    }
    
    .search-input {
        font-size: 14px;
    }

    /* Playground Widget spacing & structure */
    .playground-widget {
        padding: 16px;
        margin-top: 24px;
    }

    .playground-split-layout {
        padding: 14px;
        gap: 16px;
    }

    .pg-input-row {
        flex-direction: column;
        gap: 8px;
    }

    .playground-select {
        min-width: 100% !important;
    }

    /* Server pills alignment grid */
    .pg-server-pills {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
    }

    .pg-server-pill {
        width: 100%;
        text-align: center;
        padding: 10px 8px;
        font-size: 11px;
    }

    /* Actions buttons layout stacking */
    .pg-actions-row {
        flex-direction: column;
        gap: 10px;
    }

    .playground-btn {
        width: 100%;
        padding: 12px;
    }

    /* Inline Player adjustments */
    .pg-player-placeholder h4 {
        font-size: 14px;
        padding: 0 10px;
    }
    
    .pg-player-placeholder p {
        font-size: 10px;
    }
    
    .pg-big-play-btn {
        width: 48px;
        height: 48px;
        font-size: 22px;
        margin-bottom: 8px;
    }

    /* Category pills horizontal navigation scroll */
    .category-tabs-container {
        padding-bottom: 8px;
        scrollbar-width: none;
    }
    
    .category-tabs-container::-webkit-scrollbar {
        display: none;
    }
    
    .category-tab-btn {
        font-size: 12px;
        padding: 8px 14px;
    }

    /* Browse grid slider mobile layout */
    .grid-layout {
        gap: 12px;
        padding-bottom: 10px;
    }

    .media-card {
        flex: 0 0 140px;
    }

    .card-info {
        padding: 10px;
    }

    .card-title {
        font-size: 13px;
    }

    .card-meta {
        font-size: 11px;
    }

    /* API Documentation styles */
    .doc-section {
        padding: 16px;
    }
    
    .doc-table th, .doc-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .api-endpoint {
        font-size: 11px;
        padding: 10px;
    }
}


