/* === ОСНОВНЫЕ СТИЛИ === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent-red: #ff003c;
    --accent-blue: #0066ff;
    --accent-cyan: #00ff88;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-primary: #e0e0e0;
    --card-bg: #111111;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* === ЗАГОЛОВОК КАНАЛОВ === */
.channels-header {
    text-align: center;
    padding: 80px 20px 50px;
    position: relative;
}

.title-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.main-title {
    font-family: 'Black Ops One', 'Orbitron', 'Anton', Impact, sans-serif;
    font-size: clamp(2rem, 7.5vw, 6rem); /* уменьшил на 1/3 */
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0a0a0a;
    text-shadow: 
        -3px -3px 0 #ff003c,
        3px 3px 0 #0066ff;
    line-height: 0.9;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    
    background: linear-gradient(45deg, #8B0000, #B22222, #DC143C, #FF0033);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: metalShift 6s ease-in-out infinite;
}

.main-title::before {
    content: 'THEFRODESDID';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: 'Orbitron', 'Black Ops One', 'Anton', Impact, sans-serif;
    font-size: clamp(1.8rem, 7vw, 5.2rem); /* уменьшил на 2/5 */
    color: transparent;
    text-shadow: 
        -4px -4px 0 #0066ff,
        4px 4px 0 #00ff88,
        0 0 30px rgba(0, 102, 255, 0.5);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    background: linear-gradient(45deg, #00BFFF, #1E90FF, #0066ff, #0044cc);
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 300% 300%;
    animation: neonShift 4s ease-in-out infinite;
}

.title-container:hover .main-title::before {
    opacity: 1;
    transform: scale(1.05) rotate(1deg);
    letter-spacing: 0.08em;
}

.title-container:hover .main-title {
    text-shadow: 
        -2px -2px 0 transparent,
        2px 2px 0 transparent;
    transform: scale(0.95);
}

@keyframes metalShift {
    0%, 100% { 
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    50% { 
        background-position: 100% 50%;
        filter: hue-rotate(20deg);
    }
}

@keyframes neonShift {
    0%, 100% { 
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    50% { 
        background-position: 100% 50%;
        filter: hue-rotate(45deg);
    }
}

.title-container::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, transparent 30%, rgba(255, 0, 60, 0.1) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.title-container:hover::after {
    opacity: 1;
    animation: sparkPulse 2s ease-in-out infinite;
}

@keyframes sparkPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

.tagline {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #888;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.title-container:hover ~ .tagline {
    color: #ff003c;
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.5);
}

.subtitle-block {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.channels-label {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-blue);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 102, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--accent-blue);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

.status-text {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tagline {
    font-size: 1.1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #888;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.title-container:hover ~ .tagline {
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.5);
}

@keyframes titleShift {
    0%, 100% { 
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    50% { 
        background-position: 100% 50%;
        filter: hue-rotate(20deg);
    }
}

@keyframes statusPulse {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 10px var(--accent-cyan);
    }
    50% { 
        opacity: 0.6;
        box-shadow: 0 0 5px var(--accent-cyan);
    }
}

/* === СЕТКА КАНАЛОВ === */
.channels-interface {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0 60px;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.channel-card {
    background: var(--card-bg);
    border: 1px solid #222;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.channel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 60, 0.05), transparent);
    transition: left 0.6s ease;
}

.channel-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 10px 30px rgba(0, 102, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.channel-card:hover::before {
    left: 100%;
}

.channel-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.channel-card:hover .channel-icon {
    background: rgba(0, 102, 255, 0.1);
    transform: scale(1.1);
}

.channel-info {
    flex: 1;
}

.channel-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--text-primary);
    font-weight: 600;
}

.channel-desc {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.4;
}

.channel-action {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.action-arrow {
    transition: transform 0.3s ease;
}

.channel-card:hover .channel-action {
    color: var(--accent-red);
}

.channel-card:hover .action-arrow {
    transform: translateX(5px);
}

/* === СТАТУС СИСТЕМЫ === */
.system-status {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.status-message {
    text-align: center;
    margin-bottom: 20px;
}

.message-text {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.connection-quality {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.quality-text {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quality-bars {
    display: flex;
    gap: 3px;
    align-items: center;
}

.bar {
    width: 4px;
    height: 12px;
    background: #333;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.bar.active {
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.bar:nth-child(4) { height: 16px; }
.bar:nth-child(5) { height: 20px; }

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .channels-grid {
        grid-template-columns: 1fr;
    }
    
    .channel-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .subtitle-block {
        flex-direction: column;
        gap: 10px;
    }
    
    .connection-quality {
        flex-direction: column;
        gap: 10px;
    }
}

/* === ЭФФЕКТЫ ЧАСТИЦ === */
@keyframes particleFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

/* === ПАРАЛЛАКС ЭЛЕМЕНТЫ === */
.visual-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.chain, .crack {
    position: absolute;
    opacity: 0.1;
    transition: transform 0.1s ease-out;
    font-size: 1.5rem;
}

.chain { 
    color: #ff003c; 
    font-size: 2rem; 
    opacity: 0.07; 
    transform: rotate(-45deg); 
}

.crack { 
    color: #0066ff; 
    font-size: 3rem; 
    opacity: 0.05; 
    letter-spacing: -0.5em; 
}

.chain-1 { top: 15%; left: 5%; }
.chain-2 { bottom: 20%; right: 8%; }
.crack-1 { top: 40%; left: 10%; transform: rotate(15deg); }
