.container {
    margin-top: 40px;
}

@keyframes flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

@keyframes pulse {

    0%,
    100% {
        text-shadow: 0 0 10px var(--text-color);
    }

    50% {
        text-shadow: 0 0 20px var(--text-color), 0 0 30px var(--border-color);
    }
}

@keyframes scan-line {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Media Panels */
.media-section {
    background: var(--section-bg-color);
    border: 2px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0, 255, 13, 0.3), inset 0 0 15px rgba(0, 255, 13, 0.1);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.media-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 255, 13, 0.5), inset 0 0 20px rgba(0, 255, 13, 0.15);
}

.media-section h3 {
    color: var(--text-color);
    font-size: 18px;
    margin: 0 0 15px 0;
    animation: pulse 2s ease-in-out infinite;
}

.media-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 15px;
    opacity: 0.8;
    flex-wrap: wrap;
    gap: 10px;
}

video,
audio {
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: #000000;
    box-shadow: 0 0 15px rgba(0, 255, 13, 0.2);
    transition: box-shadow 0.3s ease;
}

video:hover,
audio:hover {
    box-shadow: 0 0 25px rgba(0, 255, 13, 0.4);
}

/* Audio Console */
.audio-wrapper {
    width: 100%;
    background: #111;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0, 255, 13, 0.4);
    padding: 10px;
}

.styled-audio {
    width: 100%;
    background-color: #777777;
    border-radius: 6px;
}

audio::-webkit-media-controls-panel {
    background-color: #777777 !important;
    color: #000 !important;
    font-family: monospace;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-pause-button {
    background-color: #929292 !important;
    border-radius: 50%;
    filter: brightness(1.2);
}

audio::-webkit-media-controls-timeline,
audio::-webkit-media-controls-volume-slider {
    background-color: #adadad !important;
    margin-left: 10px;
    border-radius: 10px;
}

audio:hover::-webkit-media-controls-panel {
    box-shadow: 0 0 8px rgba(0, 255, 13, 0.35) inset;
}

/* Terminal Output */
.terminal-output {
    background: #000a00;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
    font-size: 11px;
    max-height: 120px;
    overflow-y: auto;
    box-shadow: inset 0 0 10px rgba(0, 255, 13, 0.1);
}

.terminal-output::-webkit-scrollbar {
    width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
    background: #000a02;
}

.terminal-output::-webkit-scrollbar-thumb {
    background: #086600;
    border-radius: 4px;
}

.log-line {
    color: var(--text-color);
    margin: 5px 0;
    animation: flicker 0.15s infinite alternate;
}

.log-line.info {
    color: #66ff00;
}

.log-line.success {
    color: #00ff00;
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.media-card {
    background: #000a00;
    border: 2px solid var(--border-color);
    padding: 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 13, 0.2), inset 0 0 8px rgba(0, 255, 13, 0.1);
}

.media-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 13, 0.4);
    border-color: var(--text-color);
}

.media-card h4 {
    margin: 0 0 12px 0;
    color: var(--text-color);
    font-size: 14px;
    text-shadow: 0 0 8px var(--text-color);
}

.media-card p {
    font-size: 11px;
    opacity: 0.8;
    margin: 5px 0;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    margin-top: 10px;
}

.status-badge.live {
    background: #330000;
    color: #ff0000;
    border: 1px solid #ff0000;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.status-badge.archived {
    background: #1a1a00;
    color: #ffff00;
    border: 1px solid #ffff00;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #001a00;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: var(--text-color);
    box-shadow: 0 0 10px var(--text-color);
    animation: loading 20s linear infinite;
}

@keyframes loading {
    0% {
        width: 0%;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 0%;
    }
}