/* CYBERSTREAM - 赛博朋克视频流媒体平台 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 赛博朋克调色板 */
    --primary-cyan: #00ffff;
    --primary-magenta: #ff00ff;
    --primary-yellow: #ffff00;
    --neon-blue: #0080ff;
    --neon-green: #00ff00;
    --neon-pink: #ff0080;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --terminal-green: #00ff41;
    --warning-orange: #ff6b00;
    --error-red: #ff0040;

    /* 渐变 */
    --neon-gradient: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
    --matrix-gradient: linear-gradient(180deg, rgba(0,255,0,0.1), rgba(0,255,0,0));

    /* 字体 */
    --primary-font: 'Orbitron', monospace;
    --mono-font: 'Share Tech Mono', monospace;

    /* 效果 */
    --glow-intensity: 0 0 20px;
    --text-shadow-cyan: 0 0 10px var(--primary-cyan);
    --text-shadow-magenta: 0 0 10px var(--primary-magenta);
}

body {
    font-family: var(--primary-font);
    background: var(--darker-bg);
    color: var(--primary-cyan);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Matrix Rain Background */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.1;
}

/* Cyber Grid Background */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: grid-move 10s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Header Styles */
.cyber-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--primary-cyan);
    z-index: 1000;
    padding: 15px 0;
}

.header-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--neon-gradient);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-cyan);
    text-shadow: var(--text-shadow-cyan);
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 14px;
    color: var(--primary-magenta);
    text-shadow: var(--text-shadow-magenta);
    letter-spacing: 4px;
    transform: translateY(-2px);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid var(--primary-cyan);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-cyan);
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 255, 0.8);
        transform: scale(1.05);
    }
}

/* Navigation */
.cyber-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--primary-cyan);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
    padding: 8px 16px;
    border: 1px solid transparent;
    transition: all 0.3s;
    text-transform: uppercase;
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--primary-magenta);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transition: clip-path 0.3s;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}

.nav-link:hover::before,
.nav-link.active::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.nav-link:hover,
.nav-link.active {
    border-color: var(--primary-cyan);
    box-shadow: var(--glow-intensity) rgba(0, 255, 255, 0.5);
}

/* Search Bar */
.cyber-search {
    display: flex;
    align-items: center;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
}

.cyber-search:hover {
    border-color: var(--primary-cyan);
    box-shadow: var(--glow-intensity) rgba(0, 255, 255, 0.3);
}

.search-input {
    background: transparent;
    border: none;
    color: var(--primary-cyan);
    padding: 12px 16px;
    font-family: var(--mono-font);
    font-size: 14px;
    width: 200px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(0, 255, 255, 0.5);
}

.search-btn {
    background: rgba(0, 255, 255, 0.1);
    border: none;
    border-left: 1px solid rgba(0, 255, 255, 0.3);
    color: var(--primary-cyan);
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    color: var(--primary-magenta);
}

/* User Panel */
.user-panel {
    display: flex;
    align-items: center;
}

.admin-btn {
    background: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 10px 20px;
    border-radius: 4px;
    font-family: var(--primary-font);
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 12px;
}

.admin-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: var(--glow-intensity) rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

/* Hero Section */
.cyber-main {
    margin-top: 90px;
}

.cyber-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

/* Terminal Window */
.hero-terminal {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--terminal-green);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    overflow: hidden;
    z-index: 2;
    animation: terminal-float 6s ease-in-out infinite;
}

@keyframes terminal-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.terminal-header {
    background: var(--terminal-green);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-btn.red { background: #ff5f56; }
.terminal-btn.yellow { background: #ffbd2e; }
.terminal-btn.green { background: #27c93f; }

.terminal-title {
    font-family: var(--mono-font);
    font-size: 12px;
    color: var(--dark-bg);
    font-weight: 700;
}

.terminal-content {
    padding: 16px;
    font-family: var(--mono-font);
    font-size: 12px;
    color: var(--terminal-green);
}

.terminal-line {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    min-height: 18px;
}

.prompt {
    color: var(--primary-cyan);
    margin-right: 8px;
}

.command.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3s steps(30, end);
}

@keyframes typing {
    0% { width: 0; }
    100% { width: 100%; }
}

.output.success {
    color: var(--neon-green);
}

/* Hero Content */
.hero-content {
    flex: 1;
    max-width: 700px;
    z-index: 2;
    position: relative;
}

.cyber-title {
    margin-bottom: 40px;
}

.main-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title-line {
    display: block;
    margin-bottom: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.glitch-text {
    position: relative;
    color: var(--primary-cyan);
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 100% {
        text-shadow: var(--text-shadow-cyan);
        transform: translate(0);
    }
    25% {
        text-shadow: -2px 0 var(--primary-magenta), 2px 0 var(--neon-blue);
        transform: translate(2px, -2px);
    }
    50% {
        text-shadow: 2px 0 var(--primary-magenta), -2px 0 var(--neon-blue);
        transform: translate(-2px, 2px);
    }
    75% {
        text-shadow: var(--text-shadow-cyan);
        transform: translate(0);
    }
}

.subtitle {
    font-size: 24px;
    color: var(--primary-magenta);
    text-shadow: var(--text-shadow-magenta);
    opacity: 0.9;
}

.cursor-pulse {
    display: inline-block;
    color: var(--primary-cyan);
    animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
    font-family: var(--mono-font);
}

.stat-label {
    font-size: 10px;
    color: var(--primary-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
}

.stat-divider {
    color: var(--primary-cyan);
    font-size: 20px;
    opacity: 0.5;
}

/* Cyber Description */
.cyber-description {
    font-family: var(--mono-font);
    font-size: 16px;
    line-height: 1.6;
    color: rgba(0, 255, 255, 0.8);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 20px;
}

.cyber-btn {
    position: relative;
    background: transparent;
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 16px 32px;
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    min-width: 180px;
}

.cyber-btn:hover {
    color: var(--dark-bg);
    box-shadow: var(--glow-intensity) var(--primary-cyan);
}

.cyber-btn.primary:hover {
    background: var(--primary-cyan);
}

.cyber-btn.secondary {
    border-color: var(--primary-magenta);
    color: var(--primary-magenta);
}

.cyber-btn.secondary:hover {
    background: var(--primary-magenta);
    box-shadow: var(--glow-intensity) var(--primary-magenta);
    color: var(--dark-bg);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glitch {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-cyan);
    transition: left 0.5s;
}

.cyber-btn.primary:hover .btn-glitch {
    left: 0;
}

.btn-scanner {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--primary-magenta);
    transition: left 0.5s;
}

.cyber-btn.secondary:hover .btn-scanner {
    left: 100%;
}

/* Hero Visual */
.cyber-visual {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hologram Container */
.hologram-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.hologram-frame {
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: holo-rotate 10s linear infinite;
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.5),
        inset 0 0 30px rgba(0, 255, 255, 0.2);
}

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

.holo-content {
    position: relative;
    width: 80%;
    height: 80%;
}

.holo-circle {
    position: absolute;
    border: 1px solid var(--primary-cyan);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.holo-circle.outer {
    width: 100%;
    height: 100%;
    animation: holo-pulse 2s ease-in-out infinite;
}

.holo-circle.middle {
    width: 70%;
    height: 70%;
    animation: holo-pulse 2s ease-in-out infinite 0.5s;
}

.holo-circle.inner {
    width: 40%;
    height: 40%;
    animation: holo-pulse 2s ease-in-out infinite 1s;
}

@keyframes holo-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.holo-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-cyan);
    font-size: 24px;
    text-shadow: var(--text-shadow-cyan);
    animation: center-pulse 2s ease-in-out infinite;
}

@keyframes center-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* Floating Hexagons */
.floating-hex {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid var(--primary-cyan);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hex-float 8s ease-in-out infinite;
    box-shadow: var(--glow-intensity) rgba(0, 255, 255, 0.3);
}

.floating-hex:nth-child(1) {
    top: 100px;
    right: 50px;
    animation-delay: 0s;
}

.floating-hex:nth-child(2) {
    bottom: 100px;
    right: 150px;
    animation-delay: 2s;
}

.floating-hex.delayed {
    animation-delay: 3s;
}

.hex-content {
    color: var(--primary-cyan);
    font-size: 20px;
}

@keyframes hex-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Streams Section */
.cyber-streams {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--darker-bg), rgba(0, 255, 255, 0.05), var(--darker-bg));
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-container {
    position: relative;
    display: inline-block;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.title-prefix,
.title-suffix {
    color: var(--primary-cyan);
    opacity: 0.7;
    animation: blink 2s ease-in-out infinite;
}

.title-main {
    color: var(--primary-magenta);
    text-shadow: var(--text-shadow-magenta);
}

.title-underline {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: var(--neon-gradient);
    animation: expand-line 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes expand-line {
    0%, 100% { width: 100px; opacity: 0.5; }
    50% { width: 300px; opacity: 1; }
}

/* Stream Filters */
.stream-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.filter-chip {
    position: relative;
    background: transparent;
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: var(--primary-cyan);
    padding: 10px 20px;
    border-radius: 20px;
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
}

.filter-chip:hover,
.filter-chip.active {
    border-color: var(--primary-cyan);
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.chip-text {
    position: relative;
    z-index: 2;
}

.chip-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    transition: left 0.5s;
}

.filter-chip:hover .chip-glow,
.filter-chip.active .chip-glow {
    left: 100%;
}

/* Streams Grid */
.streams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 大屏幕 (1200px+) - 3列 */
@media (min-width: 1200px) {
    .streams-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

/* 中等屏幕 (768px-1199px) - 2列 */
@media (min-width: 768px) and (max-width: 1199px) {
    .streams-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 0 15px;
    }
}

/* 小屏幕 (小于768px) - 1列 */
@media (max-width: 767px) {
    .streams-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 10px;
    }
}

/* 超小屏幕 (小于480px) - 1列，更紧凑 */
@media (max-width: 480px) {
    .streams-grid {
        gap: 20px;
        padding: 0 5px;
    }
}

/* Stream Cards */
.stream-card {
    position: relative;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.stream-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan);
    box-shadow:
        0 20px 40px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.stream-frame {
    position: relative;
    width: 100%;
}

.frame-corners {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-cyan);
}

.corner.tl {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.corner.tr {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.corner.bl {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.corner.br {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.stream-thumbnail {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.stream-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, filter 0.3s;
    filter: grayscale(0.3) sepia(0.1);
}

.stream-card:hover .stream-thumbnail img {
    transform: scale(1.1);
    filter: grayscale(0) sepia(0);
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 255, 0.03) 2px,
        rgba(0, 255, 255, 0.03) 4px
    );
    pointer-events: none;
}

.stream-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.stream-card:hover .stream-overlay {
    opacity: 1;
}

.stream-play-btn {
    position: relative;
    width: 70px;
    height: 70px;
    background: rgba(0, 255, 255, 0.2);
    border: 2px solid var(--primary-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}

.stream-play-btn:hover {
    background: var(--primary-cyan);
    color: var(--dark-bg);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    transform: scale(1.1);
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-cyan);
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

.stream-duration {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-cyan);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: var(--mono-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.stream-quality {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 0, 255, 0.2);
    color: var(--primary-magenta);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: var(--primary-font);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    border: 1px solid var(--primary-magenta);
    text-transform: uppercase;
}

/* Stream Info */
.stream-info {
    padding: 20px;
}

.stream-title {
    position: relative;
    margin-bottom: 15px;
}

.stream-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.title-glow {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-gradient);
    transition: width 0.3s;
}

.stream-card:hover .title-glow {
    width: 100%;
}

.stream-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--mono-font);
    font-size: 12px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(0, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat i {
    font-size: 10px;
    color: var(--neon-green);
}

.stat-divider {
    color: rgba(0, 255, 255, 0.3);
    font-size: 8px;
}

/* Cyberpunk Categories */
.cyber-categories {
    padding: 100px 20px;
    background: linear-gradient(180deg, rgba(0, 255, 255, 0.05), var(--darker-bg));
}

.categories-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-node {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: pointer;
    transition: all 0.3s;
}

.node-core {
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--primary-cyan);
    border-radius: 50%;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s;
}

.category-node:hover .node-core {
    border-color: var(--primary-magenta);
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.5);
    transform: scale(1.05);
}

.node-icon {
    font-size: 32px;
    color: var(--primary-cyan);
    margin-bottom: 10px;
    transition: all 0.3s;
}

.category-node:hover .node-icon {
    color: var(--primary-magenta);
    text-shadow: var(--text-shadow-magenta);
}

.node-core h3 {
    font-size: 14px;
    font-weight: 900;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 5px 0;
}

.node-count {
    font-size: 12px;
    color: var(--neon-green);
    font-family: var(--mono-font);
    font-weight: 700;
}

.node-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ring {
    position: absolute;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.ring.outer {
    width: 200px;
    height: 200px;
    animation: ring-pulse 4s ease-in-out infinite;
}

.ring.middle {
    width: 180px;
    height: 180px;
    animation: ring-pulse 4s ease-in-out infinite 1s;
}

.ring.inner {
    width: 140px;
    height: 140px;
    animation: ring-pulse 4s ease-in-out infinite 2s;
}

@keyframes ring-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Cyberpunk Footer */
.cyber-footer {
    position: relative;
    background: var(--darker-bg);
    border-top: 2px solid var(--primary-cyan);
    overflow: hidden;
}

.footer-grid {
    position: relative;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.footer-section {
    position: relative;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.footer-logo .logo-main {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-cyan);
    text-shadow: var(--text-shadow-cyan);
    letter-spacing: 3px;
}

.footer-logo .logo-sub {
    font-size: 16px;
    color: var(--primary-magenta);
    text-shadow: var(--text-shadow-magenta);
    letter-spacing: 4px;
    transform: translateY(-5px);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: status-blink 2s infinite;
    box-shadow: 0 0 10px var(--neon-green);
}

.status-text {
    font-family: var(--mono-font);
    font-size: 11px;
    color: var(--neon-green);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-desc {
    font-family: var(--mono-font);
    font-size: 14px;
    color: rgba(0, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.neural-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.neural-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.neural-link:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.neural-link i {
    color: var(--primary-cyan);
    font-size: 14px;
}

.link-label {
    font-family: var(--mono-font);
    font-size: 11px;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--primary-magenta);
    text-shadow: var(--text-shadow-magenta);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s;
    padding: 8px 0;
    border-left: 2px solid transparent;
    padding-left: 10px;
}

.nav-item:hover {
    border-left-color: var(--primary-cyan);
    transform: translateX(5px);
}

.nav-prefix {
    font-family: var(--mono-font);
    font-size: 12px;
    color: var(--neon-green);
    font-weight: 700;
}

.nav-text {
    font-family: var(--mono-font);
    font-size: 13px;
    color: rgba(0, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-item:hover .nav-text {
    color: var(--primary-cyan);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono-font);
    font-size: 12px;
    color: rgba(0, 255, 255, 0.7);
}

.contact-item i {
    color: var(--primary-magenta);
    font-size: 14px;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding: 30px 0;
    position: relative;
    z-index: 2;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright, .system-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--mono-font);
    font-size: 11px;
    color: rgba(0, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.separator {
    color: rgba(0, 255, 255, 0.3);
}

.version, .uptime {
    color: var(--neon-green);
    font-weight: 700;
}

/* Category responsive design */
@media (max-width: 768px) {
    .categories-matrix {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .categories-matrix {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .node-core {
        width: 140px;
        height: 140px;
    }

    .ring.outer {
        width: 180px;
        height: 180px;
    }

    .ring.middle {
        width: 160px;
        height: 160px;
    }

    .ring.inner {
        width: 120px;
        height: 120px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cyber-header .container {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }

    .cyber-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .cyber-search {
        width: 100%;
        max-width: 300px;
    }

    .hero-terminal {
        display: none;
    }

    .cyber-hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 15px;
    }

    .main-title {
        font-size: 42px;
    }

    .subtitle {
        font-size: 18px;
    }

    .cyber-visual {
        height: 400px;
        margin-top: 40px;
    }

    .hero-stats {
        justify-content: center;
    }

    /* Streams grid handled by dedicated media queries above */

    .section-title {
        font-size: 28px;
        flex-direction: column;
        gap: 10px;
    }

    .stream-filters {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .main-title {
        font-size: 32px;
    }

    .cyber-btn {
        padding: 14px 24px;
        font-size: 12px;
        min-width: 150px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hologram-container {
        width: 200px;
        height: 200px;
    }

    .floating-hex {
        width: 60px;
        height: 60px;
    }
}

/* Loading States */
.loading {
    opacity: 0;
    transform: translateY(20px);
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s, transform 0.5s;
}

/* Error States */
.error-message {
    color: var(--error-red);
    text-align: center;
    padding: 20px;
    font-family: var(--mono-font);
    border: 1px solid var(--error-red);
    background: rgba(255, 0, 64, 0.1);
    border-radius: 4px;
    margin: 20px 0;
}

/* Success States */
.success-message {
    color: var(--neon-green);
    text-align: center;
    padding: 20px;
    font-family: var(--mono-font);
    border: 1px solid var(--neon-green);
    background: rgba(0, 255, 0, 0.1);
    border-radius: 4px;
    margin: 20px 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-magenta);
}

/* Selection Style */
::selection {
    background: rgba(0, 255, 255, 0.3);
    color: var(--dark-bg);
}

::-moz-selection {
    background: rgba(0, 255, 255, 0.3);
    color: var(--dark-bg);
}

/* Admin Panel Styles */
.admin-content {
    max-width: 900px;
    width: 90vw;
    max-height: 90vh;
    overflow: hidden;
}

.admin-content .modal-header {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
}

.admin-content .modal-title {
    color: var(--neon-green);
}

.admin-panel {
    max-height: 60vh;
    overflow-y: auto;
}

.admin-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(0, 255, 0, 0.7);
    padding: 12px 24px;
    font-family: var(--mono-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--neon-green);
    border-bottom-color: var(--neon-green);
    background: rgba(0, 255, 0, 0.1);
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.add-video-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 4px;
    transition: all 0.3s;
}

.video-item:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.video-info {
    flex: 1;
}

.video-info strong {
    color: var(--primary-cyan);
    font-family: var(--mono-font);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.video-meta {
    color: rgba(0, 255, 255, 0.7);
    font-family: var(--mono-font);
    font-size: 11px;
}

.video-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 16px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    background: transparent;
    color: var(--neon-green);
    font-family: var(--mono-font);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}

.action-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.action-btn.delete {
    border-color: rgba(255, 0, 64, 0.3);
    color: var(--error-red);
}

.action-btn.delete:hover {
    background: rgba(255, 0, 64, 0.1);
    box-shadow: 0 0 15px rgba(255, 0, 64, 0.3);
}

.action-btn.active {
    background: rgba(0, 255, 0, 0.2);
    border-color: var(--neon-green);
}

.no-videos,
.no-videos-grid {
    text-align: center;
    color: rgba(0, 255, 255, 0.7);
    font-family: var(--mono-font);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 40px;
}

/* Select styling */
select.cyber-input {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%2300ff00" height="8" viewBox="0 0 24 8" width="24"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

select.cyber-input option {
    background: var(--dark-bg);
    color: var(--neon-green);
}

/* Password Modal Styles */
.password-content {
    max-width: 500px;
}

.password-content .modal-header {
    background: rgba(255, 0, 255, 0.1);
    border-color: #ff00ff;
}

.password-content .modal-title {
    color: var(--primary-magenta);
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 30px;
}

.password-hint {
    text-align: center;
    margin-top: -10px;
}

/* Enhanced input styling for better UX */
.cyber-input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    transform: translateY(-1px);
}

.cyber-input::placeholder {
    color: rgba(0, 255, 255, 0.4);
}

/* Password field specific styling */
input[type="password"].cyber-input {
    letter-spacing: 4px;
    font-family: 'Courier New', var(--mono-font);
}