/* ============================================================
   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;
}

/* 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.25;
    font-size: 14px;
    animation: floatSparkle 8s infinite ease-in-out;
}

@keyframes floatSparkle {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(0.8); opacity: 0.15; }
    50% { transform: translateY(-30px) rotate(45deg) scale(1.2); opacity: 0.4; }
}

/* 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-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-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;
}

