/* ============================================================
   VRC GayVidost - Cute Femboy Pastel Purple Theme 🌸✨
   ============================================================ */

:root {
    --bg-dark: #120b1f;
    --bg-gradient: radial-gradient(circle at 20% 20%, #2a1645 0%, #150d24 50%, #0d0716 100%);
    --panel-bg: rgba(36, 21, 56, 0.75);
    --panel-bg-sub: rgba(48, 28, 77, 0.65);
    --panel-border: rgba(199, 125, 255, 0.22);
    --panel-border-hover: rgba(224, 170, 255, 0.45);
    
    --primary-purple: #9d4edd;
    --pastel-lavender: #c77dff;
    --soft-lilac: #e0aaff;
    --bright-violet: #7b2cbf;
    --femboy-pink: #ff70a6;
    --femboy-pink-light: #ffb3c6;
    --cute-cyan: #70d6ff;
    
    --text-primary: #f8f5fc;
    --text-secondary: #c9b8db;
    --text-muted: #8c78a5;
    
    --fbi-red: #ff3366;
    --fbi-red-glow: rgba(255, 51, 102, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-soft: 0 8px 32px 0 rgba(19, 7, 33, 0.45);
    --shadow-glow: 0 0 20px rgba(199, 125, 255, 0.25);
    --shadow-pink: 0 0 20px rgba(255, 112, 166, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.femboy-theme {
    font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-dark);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Ambient background aurora glows */
.bg-aurora-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(85px);
    opacity: 0.6;
    pointer-events: none;
}

.aurora-1 {
    width: 550px;
    height: 550px;
    top: -120px;
    left: -100px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.35) 0%, rgba(123, 44, 191, 0.15) 50%, transparent 70%);
    animation: auroraFloat1 18s infinite ease-in-out alternate;
}

.aurora-2 {
    width: 500px;
    height: 500px;
    top: 15%;
    right: -100px;
    background: radial-gradient(circle, rgba(255, 112, 166, 0.28) 0%, rgba(199, 125, 255, 0.15) 50%, transparent 70%);
    animation: auroraFloat2 22s infinite ease-in-out alternate;
}

.aurora-3 {
    width: 600px;
    height: 600px;
    bottom: -150px;
    left: 20%;
    background: radial-gradient(circle, rgba(112, 214, 255, 0.2) 0%, rgba(157, 78, 221, 0.15) 50%, transparent 70%);
    animation: auroraFloat3 26s infinite ease-in-out alternate;
}

.aurora-4 {
    width: 450px;
    height: 450px;
    top: 50%;
    left: 60%;
    background: radial-gradient(circle, rgba(224, 170, 255, 0.22) 0%, rgba(255, 179, 198, 0.1) 50%, transparent 70%);
    animation: auroraFloat4 20s infinite ease-in-out alternate;
}

@keyframes auroraFloat1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(70px, 60px) scale(1.15); }
}

@keyframes auroraFloat2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, 80px) scale(1.12); }
}

@keyframes auroraFloat3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -70px) scale(1.18); }
}

@keyframes auroraFloat4 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-80px, -50px) scale(1.08); }
}

/* Background floating sparkles */
.sparkles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-sparkle {
    position: absolute;
    color: var(--soft-lilac);
    opacity: 0.3;
    font-size: 15px;
    user-select: none;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(199, 125, 255, 0.7), 0 0 20px rgba(255, 112, 166, 0.4);
    will-change: transform, opacity;
}

@keyframes floatSparkle {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(0.85); opacity: 0.2; }
    50% { transform: translateY(-38px) rotate(35deg) scale(1.25); opacity: 0.55; }
}

@keyframes floatDrift {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(0.9); opacity: 0.22; }
    33% { transform: translate(25px, -30px) rotate(-20deg) scale(1.15); opacity: 0.6; }
    66% { transform: translate(-20px, -50px) rotate(25deg) scale(1.05); opacity: 0.4; }
}

@keyframes floatUpward {
    0% { transform: translateY(0) scale(0.8) rotate(0deg); opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.5; }
    100% { transform: translateY(-120px) scale(1.2) rotate(45deg); opacity: 0; }
}

/* Interactive Click Sparkle Burst */
.click-sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    user-select: none;
    font-size: 18px;
    animation: clickBurst 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    text-shadow: 0 0 12px rgba(255, 112, 166, 0.8), 0 0 24px rgba(199, 125, 255, 0.6);
}

@keyframes clickBurst {
    0% {
        transform: translate(0, 0) scale(0.4) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(1.3) rotate(var(--tr));
        opacity: 0;
    }
}

/* Glassmorphism panels */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 1;
}

.glass-panel-sub {
    background: var(--panel-bg-sub);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
}

.glass-panel-sub:hover {
    border-color: var(--panel-border-hover);
    box-shadow: var(--shadow-glow);
}

/* ============================================================
   Buttons & Cute Elements
   ============================================================ */

.cute-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    color: #fff;
    user-select: none;
}

.cute-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.cute-btn:active {
    transform: translateY(1px) scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #9d4edd 0%, #c77dff 50%, #ff70a6 100%);
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 22px rgba(255, 112, 166, 0.5);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--panel-border);
    color: var(--text-secondary);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--text-primary);
    border-color: var(--soft-lilac);
}

.btn-accent {
    background: rgba(199, 125, 255, 0.2);
    border: 1px solid var(--pastel-lavender);
    color: var(--soft-lilac);
}

.btn-accent:hover {
    background: var(--pastel-lavender);
    color: #24113b;
}

.btn-secondary {
    background: rgba(157, 78, 221, 0.35);
    border: 1.5px solid rgba(199, 125, 255, 0.5);
    color: #ffffff;
}

.btn-secondary:hover {
    background: rgba(157, 78, 221, 0.6);
    border-color: #ffffff;
    color: #ffffff;
}

.btn-play {
    background: linear-gradient(135deg, #70d6ff 0%, #9d4edd 100%);
    color: #fff;
}

.btn-edit {
    background: rgba(224, 170, 255, 0.15);
    border: 1px solid rgba(224, 170, 255, 0.35);
    color: var(--soft-lilac);
}

.btn-delete {
    background: rgba(255, 75, 110, 0.15);
    border: 1px solid rgba(255, 75, 110, 0.35);
    color: #ff758f;
}

.btn-delete:hover {
    background: #ff4b6e;
    color: #fff;
}

.btn-svg {
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    stroke: currentColor;
    flex-shrink: 0;
}

.cute-btn:hover .btn-svg {
    transform: scale(1.18) rotate(-6deg);
}

.btn-delete:hover .btn-svg {
    transform: scale(1.22) rotate(8deg);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 13px 26px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* RED FBI EMERGENCY BUTTON */
.fbi-emergency-btn {
    background: linear-gradient(135deg, #d90429 0%, #ef233c 50%, #ff4d6d 100%);
    color: #fff;
    border: 2px solid #ff758f;
    border-radius: var(--radius-full);
    padding: 8px 18px;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 16px var(--fbi-red-glow);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fbi-emergency-btn:hover {
    transform: scale(1.08) rotate(-1deg);
    box-shadow: 0 0 25px rgba(255, 51, 102, 0.7);
}

@keyframes pulseRed {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 51, 102, 0.4); }
    50% { box-shadow: 0 0 24px rgba(255, 51, 102, 0.85); }
}

.animate-pulse-red {
    animation: pulseRed 2s infinite ease-in-out;
}

/* ============================================================
   Inputs & Form Elements
   ============================================================ */

.cute-input, .cute-select {
    width: 100%;
    padding: 11px 16px;
    background: rgba(22, 12, 36, 0.65);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.cute-input:focus, .cute-select:focus {
    border-color: var(--pastel-lavender);
    box-shadow: 0 0 14px rgba(199, 125, 255, 0.3);
    background: rgba(27, 15, 45, 0.85);
}

.cute-url-input {
    background: rgba(14, 7, 23, 0.8);
    border: 1px dashed var(--panel-border);
    color: var(--soft-lilac);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    width: 100%;
    outline: none;
}

.cute-url-input:focus {
    border-color: var(--pastel-lavender);
    background: rgba(20, 10, 32, 0.95);
}

.cute-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--pastel-lavender);
    cursor: pointer;
}

.cute-check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    user-select: none;
}

.cute-check-label:hover {
    color: var(--text-primary);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-nsfw {
    background: linear-gradient(135deg, #ff0055, #ff5400);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
}

/* ============================================================
   Login Page Styling
   ============================================================ */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    z-index: 2;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 36px 32px;
    text-align: center;
}

.mascot-avatar-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 16px auto;
}

.mascot-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--pastel-lavender);
    box-shadow: var(--shadow-glow);
}

.mascot-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: var(--femboy-pink);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-pink);
}

.login-title {
    font-family: 'Comfortaa', cursive, sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--soft-lilac);
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.login-form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-decor {
    position: absolute;
    right: 14px;
    pointer-events: none;
    opacity: 0.45;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 24px 0 16px 0;
    gap: 12px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: rgba(199, 125, 255, 0.2);
}

.divider-text {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ============================================================
   GOSUSLUGI BUTTON & COMIC EXPLOSION STYLING
   ============================================================ */

.gosuslugi-container {
    position: relative;
    width: 100%;
    min-height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gosuslugi-btn {
    width: 100%;
    background: #0066b3;
    background: linear-gradient(180deg, #0d4cd3 0%, #003fa8 100%);
    border: 1px solid #1a5be0;
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    color: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 12px rgba(13, 76, 211, 0.35);
    user-select: none;
}

.gosuslugi-btn:hover {
    background: linear-gradient(180deg, #1857e2 0%, #0848b8 100%);
    box-shadow: 0 6px 18px rgba(13, 76, 211, 0.55);
}

.gosuslugi-logo-wrap {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.gosuslugi-svg {
    width: 100%;
    height: 100%;
}

.gosuslugi-text-block {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.gosuslugi-main-text {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.gosuslugi-sub-text {
    font-size: 11px;
    color: #bed7ff;
    line-height: 1.2;
}

/* Explosion state styles applied by JS */
.button-exploding {
    animation: violentVibrate 0.4s infinite linear !important;
}

@keyframes violentVibrate {
    0% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(-4px, 4px) rotate(-3deg); }
    40% { transform: translate(4px, -3px) rotate(3deg); }
    60% { transform: translate(-3px, -4px) rotate(-2deg); }
    80% { transform: translate(3px, 3px) rotate(2deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.gosuslugi-scorched-crater {
    background: rgba(30, 10, 10, 0.85);
    border: 1px dashed #ff4b4b;
    border-radius: var(--radius-md);
    padding: 12px;
    color: #ff8585;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    width: 100%;
    animation: popIn 0.3s ease forwards;
}

.login-footer {
    margin-top: 24px;
}

.hint-text {
    font-size: 12px;
    color: var(--text-muted);
}

.error-banner {
    background: rgba(255, 75, 110, 0.15);
    border: 1px solid rgba(255, 75, 110, 0.4);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 18px;
    color: #ff9ebb;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   Main Dashboard Layout
   ============================================================ */

.app-layout {
    max-width: 1540px;
    margin: 0 auto;
    padding: 20px 24px 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* Header */
.app-header {
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-logo-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-mascot {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--pastel-lavender);
    box-shadow: var(--shadow-glow);
}

.header-title {
    font-family: 'Comfortaa', cursive, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--soft-lilac);
}

.header-tagline {
    font-size: 13px;
    color: var(--text-muted);
}

.header-center {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-pill {
    background: rgba(22, 12, 36, 0.7);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    color: var(--text-muted);
}

.stat-val {
    color: var(--soft-lilac);
}

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

/* Dashboard Two Columns */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
    align-items: start;
}

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

.dashboard-col {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.col-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 16px;
}

.col-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.col-title {
    font-family: 'Comfortaa', cursive, sans-serif;
    font-size: 20px;
    color: var(--soft-lilac);
}

.cute-subtext {
    font-size: 13px;
    color: var(--text-muted);
}

.library-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-form {
    display: flex;
    gap: 12px;
    width: 100%;
}

.cute-select {
    max-width: 200px;
}

.search-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
}

.search-reset {
    position: absolute;
    right: 32px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

/* ============================================================
   Video Card List (Left Column)
   ============================================================ */

.video-list-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    padding-right: 6px;
}

/* Custom scrollbar */
.video-list-container::-webkit-scrollbar {
    width: 6px;
}

.video-list-container::-webkit-scrollbar-thumb {
    background: var(--panel-border);
    border-radius: var(--radius-full);
}

.video-list-container::-webkit-scrollbar-thumb:hover {
    background: var(--pastel-lavender);
}

.video-card {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-card-body-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

@media (max-width: 640px) {
    .video-card-body-row {
        flex-direction: column;
    }
}

.video-thumb-wrap {
    position: relative;
    width: 150px;
    min-width: 150px;
    height: 96px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: rgba(14, 7, 23, 0.7);
    border: 1px solid var(--panel-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-thumb-wrap:hover {
    border-color: var(--pastel-lavender);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px) scale(1.02);
}

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

.video-thumb-wrap:hover .video-thumb-img {
    transform: scale(1.08);
}

.thumb-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 9, 30, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: all 0.2s ease;
}

.video-thumb-wrap:hover .thumb-play-overlay {
    background: rgba(18, 9, 30, 0.15);
    opacity: 1;
}

.play-circle-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9d4edd 0%, #ff70a6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    padding-left: 2px;
    box-shadow: 0 0 16px rgba(255, 112, 166, 0.7);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-thumb-wrap:hover .play-circle-icon {
    transform: scale(1.15);
    box-shadow: 0 0 24px rgba(255, 112, 166, 0.9);
}

.badge-thumb-pos {
    position: absolute;
    bottom: 6px;
    right: 6px;
    z-index: 2;
    font-size: 10px;
    padding: 2px 6px;
}

.blur-nsfw {
    filter: blur(5px);
}

.video-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.video-info-primary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.video-mime-badge {
    background: rgba(199, 125, 255, 0.15);
    border: 1px solid var(--panel-border);
    color: var(--soft-lilac);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
}

.video-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-word;
}

.video-size {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.video-path-row {
    font-size: 12px;
}

.video-rel-path {
    color: var(--pastel-lavender);
    background: rgba(18, 9, 30, 0.6);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
}

.url-copy-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.video-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(199, 125, 255, 0.1);
    padding-top: 12px;
    flex-wrap: wrap;
}

.toggle-public-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.toggle-label {
    font-size: 13px;
    font-weight: 700;
}

.text-public {
    color: #48cae4;
}

.text-private {
    color: #f77f00;
}

.action-buttons-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

/* ============================================================
   Upload Form (Right Column)
   ============================================================ */

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.drop-zone {
    border: 2px dashed rgba(199, 125, 255, 0.4);
    border-radius: var(--radius-lg);
    background: rgba(22, 12, 36, 0.45);
    padding: 36px 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--pastel-lavender);
    background: rgba(35, 18, 58, 0.65);
    box-shadow: var(--shadow-glow);
    transform: scale(1.01);
}

.drop-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drop-icon-bounce {
    font-size: 42px;
    margin-bottom: 8px;
    animation: gentleBounce 2.5s infinite ease-in-out;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

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

.drop-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.drop-link {
    color: var(--soft-lilac);
    text-decoration: underline;
}

.drop-formats {
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(199, 125, 255, 0.1);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.file-chosen-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(48, 28, 77, 0.9);
    border: 1px solid var(--pastel-lavender);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    text-align: left;
}

.file-chosen-icon {
    font-size: 24px;
}

.file-chosen-details {
    flex: 1;
    overflow: hidden;
}

.file-chosen-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--soft-lilac);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-chosen-size {
    font-size: 12px;
    color: var(--text-muted);
}

.file-remove-btn {
    background: rgba(255, 75, 110, 0.2);
    border: none;
    color: #ff758f;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-remove-btn:hover {
    background: #ff4b6e;
    color: #fff;
}

.upload-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.field-hint code {
    color: var(--pastel-lavender);
}

.checkbox-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 6px 0;
}

/* Upload Progress Bar */
.upload-progress-container {
    background: rgba(18, 9, 30, 0.7);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 14px;
}

.progress-bar-wrap {
    height: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #9d4edd, #ff70a6, #c77dff);
    background-size: 200% 100%;
    animation: candyStripes 1.5s linear infinite;
    border-radius: var(--radius-full);
    transition: width 0.2s ease;
}

@keyframes candyStripes {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.progress-status-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

.upload-actions {
    display: flex;
    gap: 12px;
}

/* ============================================================
   Modals
   ============================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 4, 18, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background: #231538;
    border: 1px solid var(--pastel-lavender);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7), var(--shadow-glow);
    width: 100%;
    max-width: 580px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-video {
    max-width: 860px;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title {
    font-size: 18px;
    color: var(--soft-lilac);
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.modal-close-btn:hover {
    background: rgba(255, 75, 110, 0.3);
    color: #ff758f;
}

.modal-body-video {
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 520px;
}

.responsive-video {
    width: 100%;
    max-height: 520px;
    outline: none;
}

.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--panel-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.player-link-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.player-link-label {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* FBI Emergency Modal */
.modal-emergency-overlay {
    background: rgba(30, 2, 8, 0.92);
}

.modal-emergency {
    border: 2px solid var(--fbi-red);
    box-shadow: 0 0 40px rgba(255, 51, 102, 0.6);
    text-align: center;
    max-width: 520px;
}

.fbi-header {
    background: linear-gradient(180deg, #3d0511 0%, #24020a 100%);
    padding: 24px 20px 16px 20px;
    border-bottom: 2px solid var(--fbi-red);
}

.fbi-flashing-siren {
    font-size: 36px;
    margin-bottom: 8px;
    animation: gentleBounce 0.8s infinite;
}

.fbi-title {
    font-family: 'Comfortaa', cursive, sans-serif;
    color: #ff3366;
    font-size: 22px;
    letter-spacing: 1.5px;
    font-weight: 900;
}

.fbi-subtitle {
    font-size: 12px;
    color: #ff9ebb;
    letter-spacing: 2px;
    margin-top: 4px;
}

.fbi-body {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fbi-warning-text {
    font-size: 18px;
    color: #fff;
}

.fbi-details-box {
    background: rgba(10, 0, 0, 0.6);
    border: 1px dashed rgba(255, 51, 102, 0.4);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: left;
    font-size: 13px;
    color: #ffb3c6;
}

.fbi-details-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fbi-cat-plea {
    font-size: 14px;
    color: #ffccd5;
    font-style: italic;
}

.fbi-footer {
    padding: 16px 20px;
    display: flex;
    justify-content: center;
    gap: 16px;
    border-top: 1px solid rgba(255, 51, 102, 0.3);
}

.btn-danger-fbi {
    background: linear-gradient(135deg, #ff0055 0%, #ff5400 100%);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.6);
    border: none;
}

.btn-danger-fbi:hover {
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.9);
    transform: scale(1.05);
}

/* ============================================================
   Toast notifications
   ============================================================ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(36, 21, 56, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--pastel-lavender);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 420px;
    color: #fff;
    font-size: 14px;
}

.toast-success {
    border-color: #52b788;
}

.toast-error {
    border-color: #ff4b6e;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    margin-left: auto;
}

/* ============================================================
   Animations
   ============================================================ */

@keyframes popIn {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.animate-pop {
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-scale-up {
    animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.animate-shake {
    animation: shake 0.4s ease;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 12px rgba(199, 125, 255, 0.3); }
    50% { box-shadow: 0 0 24px rgba(255, 112, 166, 0.6); }
}

.pulse-glow {
    animation: pulseGlow 3s infinite ease-in-out;
}

/* ============================================================
   Delete Confirm Modal
   ============================================================ */

.modal-delete-confirm {
    max-width: 480px;
    border-color: rgba(255, 75, 110, 0.5);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 75, 110, 0.3);
}

.delete-confirm-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.delete-video-preview-box {
    background: rgba(14, 7, 23, 0.7);
    border: 1px dashed rgba(255, 75, 110, 0.35);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: #ff9ebb;
    font-size: 15px;
    word-break: break-all;
}

.delete-confirm-sub {
    font-size: 13px;
    color: var(--text-muted);
}

.btn-delete-confirm {
    background: linear-gradient(135deg, #ff4b6e 0%, #d90429 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 75, 110, 0.4);
}

.btn-delete-confirm:hover {
    background: linear-gradient(135deg, #ff2a54 0%, #ef233c 100%);
    box-shadow: 0 6px 22px rgba(255, 75, 110, 0.7);
}

/* ============================================================
   Dual Upload Methods (Drag&Drop vs YouTube)
   ============================================================ */

.upload-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}

@media (max-width: 680px) {
    .upload-methods-grid {
        grid-template-columns: 1fr;
    }
}

.drop-zone {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.youtube-zone {
    border: 2px dashed rgba(255, 75, 110, 0.45);
    border-radius: var(--radius-lg);
    background: rgba(28, 12, 36, 0.45);
    padding: 24px 16px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.youtube-zone:hover {
    border-color: #ff4b6e;
    background: rgba(48, 16, 52, 0.7);
    box-shadow: 0 0 22px rgba(255, 75, 110, 0.4);
    transform: translateY(-2px);
}

.youtube-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.yt-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 0, 50, 0.12);
    border: 1px solid rgba(255, 75, 110, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.youtube-zone:hover .yt-icon-wrapper {
    transform: scale(1.12) rotate(-3deg);
    background: rgba(255, 0, 50, 0.22);
    box-shadow: 0 0 18px rgba(255, 75, 110, 0.6);
}

.yt-icon-img {
    width: 32px;
    height: 32px;
    display: block;
}

.yt-zone-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.yt-zone-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.yt-zone-badge {
    font-size: 11px;
    font-weight: 700;
    color: #ff758f;
    background: rgba(255, 75, 110, 0.12);
    border: 1px solid rgba(255, 75, 110, 0.25);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    margin-top: 4px;
}

/* ============================================================
   YouTube Import Modal
   ============================================================ */

.modal-youtube {
    max-width: 620px;
    width: 95%;
    border-color: rgba(255, 75, 110, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(255, 75, 110, 0.25);
}

.modal-yt-icon {
    width: 26px;
    height: 26px;
    vertical-align: middle;
}

.modal-body-scrollable {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 6px;
}

.modal-body-scrollable::-webkit-scrollbar {
    width: 6px;
}
.modal-body-scrollable::-webkit-scrollbar-track {
    background: rgba(18, 9, 30, 0.4);
    border-radius: 10px;
}
.modal-body-scrollable::-webkit-scrollbar-thumb {
    background: var(--pastel-lavender);
    border-radius: 10px;
}

.yt-preview-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
    margin-bottom: 16px;
    border: 1px solid rgba(199, 125, 255, 0.3);
}

.yt-iframe-player {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.yt-loading-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    margin-top: 14px;
    background: rgba(36, 18, 58, 0.75);
    border: 1px dashed var(--pastel-lavender);
    border-radius: var(--radius-md);
    color: var(--soft-lilac);
    font-size: 14px;
    font-weight: 600;
}

.loader-spinner {
    font-size: 20px;
    animation: gentleSpin 1.8s infinite linear;
}

@keyframes gentleSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cute-select {
    width: 100%;
    background: rgba(22, 12, 36, 0.85);
    border: 1.5px solid rgba(199, 125, 255, 0.35);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cute-select:focus {
    border-color: var(--pastel-lavender);
    box-shadow: 0 0 12px rgba(199, 125, 255, 0.4);
}

.cute-select option {
    background: #1c0e2c;
    color: #fff;
    padding: 8px;
}

/* ============================================================
   Multi-Platform Media Generic Preview 🌐🎬
   ============================================================ */
.media-generic-preview {
    width: 100%;
    height: 100%;
    position: relative;
    background: #0d0615;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(14, 6, 24, 0.95) 0%, rgba(14, 6, 24, 0.6) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.platform-badge {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--pastel-lavender), var(--soft-pink));
    color: #1a0b2e;
    box-shadow: 0 2px 8px rgba(199, 125, 255, 0.4);
    letter-spacing: 0.3px;
}

.media-preview-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.media-preview-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.media-duration-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 0, 0.7);
    color: #e0aaff;
    border: 1px solid rgba(199, 125, 255, 0.35);
}

.media-preview-note {
    font-size: 11.5px;
    color: #ffb3c6;
    background: rgba(45, 15, 35, 0.88);
    border: 1px solid rgba(255, 112, 166, 0.4);
    padding: 6px 10px;
    border-radius: 8px;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.media-preview-actions {
    display: flex;
    margin-top: 2px;
}

.cute-link-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(224, 170, 255, 0.45);
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cute-link-btn-pill:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(199, 125, 255, 0.4);
}

/* ============================================================
   VRChat Playlist Modal & Controls 📋✨
   ============================================================ */
.btn-playlist {
    background: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 50%, #c77dff 100%) !important;
    border: 1.5px solid rgba(224, 170, 255, 0.7) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(123, 44, 191, 0.5), 0 0 12px rgba(199, 125, 255, 0.35) !important;
    white-space: nowrap;
    font-size: 13px;
    padding: 8px 16px;
    gap: 8px;
    border-radius: var(--radius-full);
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-playlist:hover {
    background: linear-gradient(135deg, #9d4edd 0%, #c77dff 50%, #ff70a6 100%) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 6px 24px rgba(255, 112, 166, 0.6), 0 0 18px rgba(199, 125, 255, 0.6) !important;
    transform: translateY(-2px) scale(1.04);
}

.modal-playlist {
    max-width: 620px;
}

.playlist-folder-indicator {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.playlist-pill {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(30, 15, 48, 0.75);
    border: 1px solid rgba(199, 125, 255, 0.3);
    color: var(--text-secondary);
    backdrop-filter: blur(8px);
}

.playlist-pill strong {
    color: var(--pastel-lavender);
}

.playlist-box {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(24, 12, 38, 0.85);
    border: 1px solid rgba(199, 125, 255, 0.25);
}

.playlist-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.playlist-box-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--soft-lilac);
}

.playlist-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: rgba(199, 125, 255, 0.2);
    color: var(--pastel-lavender);
    border: 1px solid rgba(199, 125, 255, 0.35);
}

.input-copy-group {
    display: flex;
    gap: 8px;
}

.input-copy-group .cute-input {
    flex: 1;
    font-family: monospace;
    font-size: 12px;
    cursor: text;
    background: rgba(15, 7, 26, 0.9);
}

.playlist-box-actions {
    display: flex;
    justify-content: flex-end;
}

.cute-link-btn {
    font-size: 12px;
    color: var(--pastel-lavender);
    text-decoration: underline;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.cute-link-btn:hover {
    opacity: 0.8;
}

.playlist-preview-section {
    margin-top: 14px;
}

.playlist-preview-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.playlist-items-list {
    max-height: 160px;
    overflow-y: auto;
    border-radius: var(--radius-sm);
    background: rgba(12, 6, 20, 0.65);
    padding: 8px 10px;
    border: 1px solid rgba(199, 125, 255, 0.18);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.playlist-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    padding: 5px 8px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.playlist-item-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.playlist-item-thumb {
    width: 36px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: #000;
}

.playlist-item-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.playlist-item-meta {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ============================================================
   Video Resolution Badges 720p / 1080p / 4K ✨
   ============================================================ */
.video-res-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    line-height: 1.2;
}

/* 4K / 2160p */
.video-res-badge.res-4k,
.video-res-badge.res-2160p {
    background: linear-gradient(135deg, #ffd166 0%, #ff70a6 100%);
    color: #1a0826;
    border: 1px solid rgba(255, 209, 102, 0.8);
    box-shadow: 0 0 10px rgba(255, 209, 102, 0.45);
}

/* 1440p / 2K */
.video-res-badge.res-1440p,
.video-res-badge.res-2k {
    background: linear-gradient(135deg, #e0aaff 0%, #c77dff 50%, #ff70a6 100%);
    color: #180528;
    border: 1px solid rgba(224, 170, 255, 0.8);
    box-shadow: 0 0 10px rgba(199, 125, 255, 0.4);
}

/* 1080p Full HD - Mascot standard! */
.video-res-badge.res-1080p {
    background: linear-gradient(135deg, #9d4edd 0%, #c77dff 50%, #ff758f 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 8px rgba(199, 125, 255, 0.5);
}

/* 720p HD */
.video-res-badge.res-720p {
    background: linear-gradient(135deg, #48cae4 0%, #0096c7 100%);
    color: #ffffff;
    border: 1px solid rgba(72, 202, 228, 0.6);
    box-shadow: 0 0 6px rgba(72, 202, 228, 0.35);
}

/* 480p / 360p */
.video-res-badge.res-480p,
.video-res-badge.res-360p {
    background: rgba(255, 255, 255, 0.12);
    color: var(--soft-lilac);
    border: 1px solid rgba(199, 125, 255, 0.35);
}

/* Audio only */
.video-res-badge.res-audio {
    background: linear-gradient(135deg, #ff758f 0%, #ff4b6e 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

/* ============================================================
   Kawaii Custom Video Player 🌸🎬
   ============================================================ */
.modal-body-video {
    background: #000;
    position: relative;
    padding: 0;
    overflow: hidden;
    width: 100%;
    border-radius: var(--radius-md);
}

.kawaii-player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #05020a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
}

.kawaii-video-el {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

/* Big center play/pause ripple bubble */
.player-center-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    background: transparent;
}

.player-center-bubble {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(35, 18, 56, 0.85);
    border: 2px solid var(--pastel-lavender);
    box-shadow: 0 0 25px rgba(199, 125, 255, 0.6), inset 0 0 15px rgba(255, 112, 166, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #ffffff;
    opacity: 0.92;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kawaii-player-container.is-playing .player-center-bubble {
    opacity: 0;
    transform: scale(0.7);
    pointer-events: none;
}

.kawaii-player-container:not(.is-playing) .player-center-bubble {
    opacity: 0.95;
    transform: scale(1);
    animation: gentlePulse 2.5s infinite ease-in-out;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(199, 125, 255, 0.5); }
    50% { transform: scale(1.08); box-shadow: 0 0 35px rgba(255, 112, 166, 0.8); }
}

.player-center-bubble.action-pop {
    animation: bubblePop 0.4s ease forwards !important;
}

@keyframes bubblePop {
    0% { transform: scale(0.8); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.9; }
    100% { transform: scale(1); opacity: 0; }
}

/* Buffering spinner */
.player-spinner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    pointer-events: none;
}

.player-spinner-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3.5px solid rgba(199, 125, 255, 0.25);
    border-top-color: var(--soft-pink);
    border-right-color: var(--pastel-lavender);
    animation: gentleSpin 0.9s linear infinite;
}

.player-spinner-paw {
    position: absolute;
    font-size: 20px;
    animation: pulseGlow 1.2s infinite ease-in-out;
}

/* Hover time tooltip */
.player-scrub-tooltip {
    position: absolute;
    bottom: 58px;
    transform: translateX(-50%);
    background: rgba(25, 12, 40, 0.95);
    border: 1px solid var(--pastel-lavender);
    color: #ffffff;
    font-size: 11.5px;
    font-family: monospace;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 12;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Controls Bar */
.kawaii-controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 14px 10px;
    background: linear-gradient(to top, rgba(12, 5, 20, 0.95) 0%, rgba(12, 5, 20, 0.75) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.kawaii-player-container.is-playing:not(.show-controls) .kawaii-controls-bar {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

.kawaii-player-container:hover .kawaii-controls-bar,
.kawaii-player-container.show-controls .kawaii-controls-bar {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Progress track */
.player-progress-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 4px;
    cursor: pointer;
    transition: height 0.15s ease;
}

.player-progress-track:hover {
    height: 9px;
}

.player-buffer-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    width: 0%;
    pointer-events: none;
    transition: width 0.15s ease;
}

.player-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #9d4edd, #ff70a6);
    border-radius: 4px;
    width: 0%;
    pointer-events: none;
}

.player-scrubber-handle {
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 112, 166, 0.9), 0 0 18px rgba(199, 125, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.player-progress-track:hover .player-scrubber-handle {
    transform: translateY(-50%) scale(1.15);
}

/* Controls bottom row */
.player-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.player-ctrls-left,
.player-ctrls-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-action-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 15px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1;
}

.player-action-btn:hover {
    color: var(--pastel-lavender);
    transform: scale(1.18);
    text-shadow: 0 0 10px rgba(199, 125, 255, 0.8);
}

.player-vol-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-vol-slider {
    width: 65px;
    height: 4px;
    accent-color: var(--soft-pink);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    outline: none;
    transition: width 0.2s ease;
}

.player-time-tag {
    font-size: 12px;
    font-family: monospace;
    color: var(--soft-lilac);
    font-weight: 700;
    margin-left: 4px;
    user-select: none;
    white-space: nowrap;
}

/* Speed Dropdown Menu */
.player-speed-picker {
    position: relative;
}

.speed-toggle-btn {
    font-size: 12px !important;
    font-weight: 700;
    padding: 4px 10px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(199, 125, 255, 0.35) !important;
    border-radius: var(--radius-pill) !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.speed-toggle-btn:hover {
    background: rgba(199, 125, 255, 0.3) !important;
    border-color: var(--pastel-lavender) !important;
    transform: scale(1.05);
}

.player-svg-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
}

.player-action-btn:hover .player-svg-icon {
    transform: scale(1.14);
    filter: drop-shadow(0 0 6px rgba(199, 125, 255, 0.8));
}

.player-action-btn:active .player-svg-icon {
    transform: scale(0.92);
}

.center-play-svg {
    display: inline-block;
    vertical-align: middle;
    margin-left: 3px;
}

/* ============================================================
   Redesigned Kawaii Speed Card ⚡🌸
   ============================================================ */
.player-speed-card,
.player-speed-dropdown {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: linear-gradient(165deg, rgba(32, 14, 52, 0.96) 0%, rgba(18, 8, 30, 0.98) 100%);
    border: 1.5px solid rgba(199, 125, 255, 0.45);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 24px rgba(157, 78, 221, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 50;
    animation: popIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    box-sizing: border-box;
}

.speed-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(199, 125, 255, 0.2);
}

.speed-card-icon {
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(199, 125, 255, 0.15);
    border: 1px solid rgba(199, 125, 255, 0.3);
    flex-shrink: 0;
}

.speed-card-title-box {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.speed-card-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.4px;
    line-height: 1.2;
}

.speed-card-hint {
    font-size: 10.5px;
    color: var(--soft-lilac);
    line-height: 1.2;
}

/* Speed Pills Grid (4 columns x 2 rows) */
.speed-pills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.speed-pill-btn,
.speed-opt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 3px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(199, 125, 255, 0.18);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
}

.speed-pill-btn:hover,
.speed-opt-btn:hover {
    background: rgba(199, 125, 255, 0.22);
    border-color: var(--pastel-lavender);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(199, 125, 255, 0.3);
}

.speed-pill-btn.active,
.speed-opt-btn.active {
    background: linear-gradient(135deg, #c77dff 0%, #ff70a6 100%);
    border-color: #ff99c8;
    color: #160424;
    font-weight: 800;
    box-shadow: 0 0 14px rgba(255, 112, 166, 0.6);
    transform: scale(1.04);
}

/* Fullscreen mode */
.kawaii-player-container.is-fullscreen {
    aspect-ratio: auto;
    width: 100vw;
    height: 100vh;
}

/* ============================================================
   Mobile Navigation Tabs (<= 860px) 📱✨
   ============================================================ */
.mobile-nav-tabs-wrapper {
    display: none;
    width: 100%;
    margin-bottom: 6px;
    box-sizing: border-box;
}

.mobile-nav-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 6px;
    background: rgba(22, 11, 36, 0.92);
    border: 1px solid var(--panel-border);
    padding: 5px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), var(--shadow-glow);
    box-sizing: border-box;
}

.mobile-tab-btn {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    box-sizing: border-box;
}

.mobile-tab-btn .tab-icon {
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}

.mobile-tab-btn .tab-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.mobile-tab-btn:hover {
    color: #ffffff;
}

.mobile-tab-btn.active {
    background: linear-gradient(135deg, #9d4edd 0%, #c77dff 50%, #ff70a6 100%);
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(157, 78, 221, 0.5);
    transform: scale(1.02);
}

.tab-count-badge {
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    margin-left: 2px;
    flex-shrink: 0;
    line-height: 1.2;
}

/* ============================================================
   Responsive Media Queries 📱💻
   ============================================================ */

/* Tablet & Smaller Laptops (<= 1080px) */
@media (max-width: 1080px) {
    .app-layout {
        padding: 16px 18px 30px 18px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* Mobile Devices (<= 860px) */
@media (max-width: 860px) {
    .mobile-nav-tabs-wrapper {
        display: block;
    }

    .app-layout {
        padding: 10px 12px 30px 12px;
        gap: 12px;
    }

    /* Header */
    .app-header {
        padding: 12px 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .header-logo-group {
        justify-content: flex-start;
        gap: 12px;
    }

    .header-mascot {
        width: 44px;
        height: 44px;
    }

    .header-title {
        font-size: 18px;
    }

    .header-tagline {
        font-size: 11.5px;
        line-height: 1.3;
    }

    .header-center {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
        gap: 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .header-center::-webkit-scrollbar {
        display: none;
    }

    .stat-pill {
        flex-shrink: 0;
        padding: 5px 12px;
        font-size: 11.5px;
    }

    .header-right {
        justify-content: space-between;
        gap: 8px;
    }

    .fbi-emergency-btn {
        flex: 1;
        padding: 8px 12px;
        font-size: 12.5px;
    }

    .fbi-text {
        font-size: 12px;
    }

    /* Dashboard columns */
    .dashboard-col {
        padding: 14px 12px;
        border-radius: var(--radius-md);
    }

    /* Library controls */
    .filter-form {
        flex-direction: column;
        gap: 8px;
    }

    .cute-select {
        max-width: 100%;
        width: 100%;
    }

    .btn-playlist {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }

    /* Video cards mobile view (16:9 feed style) */
    .video-card {
        padding: 12px;
    }

    .video-card-body-row {
        flex-direction: column;
        gap: 10px;
    }

    .video-thumb-wrap {
        width: 100%;
        min-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 10px;
    }

    .video-thumb-img {
        width: 100%;
        height: 100%;
    }

    .video-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .video-size {
        font-size: 11.5px;
    }

    .url-copy-row {
        flex-direction: column;
        gap: 8px;
    }

    .copy-url-btn {
        width: 100%;
        justify-content: center;
        padding: 8px;
    }

    .video-card-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .action-buttons-group {
        display: flex;
        width: 100%;
        gap: 8px;
    }

    .action-buttons-group .btn-edit {
        flex: 1;
        justify-content: center;
    }

    /* Upload zone on mobile */
    .upload-methods-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .drop-zone {
        padding: 24px 16px;
    }

    .youtube-zone {
        padding: 20px 16px;
    }

    /* Modals on mobile */
    .modal-overlay {
        padding: 8px;
    }

    .modal-card {
        max-height: 94vh;
        border-radius: var(--radius-md);
    }

    .modal-header {
        padding: 12px 14px;
    }

    .modal-body {
        padding: 14px;
        gap: 12px;
    }

    .modal-footer {
        padding: 12px 14px;
        flex-direction: column;
        gap: 8px;
    }

    .modal-footer .cute-btn {
        width: 100%;
        justify-content: center;
    }

    .player-link-box {
        flex-direction: column;
        width: 100%;
        gap: 6px;
    }

    .player-link-box .cute-btn {
        width: 100%;
    }

    /* Custom video player on mobile */
    .kawaii-controls-bar {
        padding: 6px 10px 8px;
        gap: 6px;
    }

    .player-vol-container {
        display: none; /* Hide volume slider on mobile, use phone buttons */
    }

    .player-time-tag {
        font-size: 10.5px;
    }

    .player-action-btn {
        padding: 4px 6px;
        font-size: 13.5px;
    }
}

/* Very Small Mobile Screens (<= 480px) */
@media (max-width: 480px) {
    .header-tagline {
        display: none;
    }

    .login-card {
        padding: 24px 16px;
    }

    .mobile-nav-tabs {
        gap: 4px;
        padding: 4px;
    }

    .mobile-tab-btn {
        padding: 7px 4px;
        font-size: 11px;
        gap: 3px;
    }

    .mobile-tab-btn .tab-icon {
        font-size: 12px;
    }

    .tab-count-badge {
        font-size: 10px;
        padding: 0 5px;
    }

    .player-speed-card,
    .player-speed-dropdown {
        width: 210px;
        padding: 10px 10px;
    }

    .speed-pills-grid {
        gap: 4px;
    }

    .speed-pill-btn,
    .speed-opt-btn {
        font-size: 10px;
        padding: 6px 2px;
    }
}

