/* Blipverts - Max Headroom / CRT TV aesthetic */

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

.blipverts-header {
    background: linear-gradient(180deg, #001a4d 0%, #000d26 100%);
    border: 4px outset #0066cc;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

/* Scanline overlay on header */
.blipverts-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 204, 255, 0.03) 2px,
        rgba(0, 204, 255, 0.03) 4px
    );
    pointer-events: none;
}

.blipverts-header img {
    height: 75px;
    width: auto;
    position: relative;
    z-index: 1;
}

.blipverts-header-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.blipverts-header h1 {
    color: #00ccff;
    font-family: 'Arial Black', sans-serif;
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.5), 3px 3px 0px #000;
    margin: 0 0 8px 0;
    letter-spacing: 3px;
}

.blipverts-tagline {
    color: #ffcc00;
    font-style: italic;
    margin: 0;
}

.blipverts-upload-title {
    color: #00ccff;
    font-family: 'Arial Black', sans-serif;
    margin-bottom: 20px;
}

/* Upload form */
.upload-form {
    margin-bottom: 30px;
    display: none;
}

.upload-form.active {
    display: block;
}

/* Upload progress bar */
.upload-progress {
    margin: 15px 0;
}

.upload-progress-bar {
    height: 24px;
    background: #0a0a1a;
    border: 2px inset #333;
    position: relative;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #003366, #00ccff);
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
    transition: width 0.3s ease;
}

.upload-progress-text {
    color: #00ccff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
}

/* Video grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.video-card {
    background: linear-gradient(180deg, #0a0a1a 0%, #050510 100%);
    border: 3px outset #1a1a3a;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.video-card-thumb {
    position: relative;
    width: 100%;
    height: 180px;
    background: #000;
    overflow: hidden;
}

.video-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card-thumb .duration-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: #00ccff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 2px 6px;
    border: 1px solid #003366;
}

/* Processing card state */
.video-card-processing {
    position: relative;
    width: 100%;
    height: 180px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-card-processing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 204, 255, 0.05) 2px,
        rgba(0, 204, 255, 0.05) 4px
    );
    animation: scanlines 0.5s linear infinite;
    pointer-events: none;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.video-card-processing .processing-text {
    color: #00ccff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 2px;
    animation: pulse-text 1.5s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.video-card-info {
    padding: 10px;
}

.video-card-title {
    font-family: 'Arial Black', sans-serif;
    color: #ffcc00;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-card-meta {
    color: #888;
    font-size: 12px;
}

.video-grid .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #b7bfd9;
    font-style: italic;
    background: linear-gradient(180deg, #0a0a1a 0%, #050510 100%);
    border: 2px dashed #003366;
}
