﻿@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500&family=Exo+2:wght@400;500&family=Share+Tech+Mono&display=swap');

/* Винтажный фон в стиле Sony 80-х */
BODY {
    FONT-SIZE: 14px;
    PADDING-RIGHT: 0px;
    PADDING-LEFT: 0px;
    SCROLLBAR-FACE-COLOR: #2a2a2a;
    BACKGROUND: #1a1a1a;
    background: linear-gradient(135deg, 
        #0a0a0a 0%,
        #1a1a1a 30%,
        #2a2a2a 70%,
        #333333 100%);
    PADDING-BOTTOM: 0px;
    MARGIN: 0 auto;
    FONT: 12px 'Orbitron', 'Share Tech Mono', Verdana, Arial, Helvetica, sans-serif;
    SCROLLBAR-HIGHLIGHT-COLOR: #cc0000;
    SCROLLBAR-SHADOW-COLOR: #990000;
    COLOR: #cccccc;
    SCROLLBAR-3DLIGHT-COLOR: #444444;
    SCROLLBAR-ARROW-COLOR: #cc0000;
    PADDING-TOP: 0px;
    SCROLLBAR-TRACK-COLOR: #1a1a1a;
    SCROLLBAR-DARKSHADOW-COLOR: #333333;
    line-height: 1.6;
    max-width: 1200px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}

/* Эффект сканирующей линии CRT */
BODY::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 10%, 
        rgba(204, 0, 0, 0.5) 50%, 
        transparent 90%);
    animation: scanline 8s linear infinite;
    z-index: 9999;
    pointer-events: none;
}

@keyframes scanline {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Эффект старых ЭЛТ-мониторов */
BODY::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15) 0px,
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
    z-index: 9998;
}

/* Основные элементы в ретро-стиле */
FONT, TH, TD, P, DIV {
    FONT: 14px 'Orbitron', 'Share Tech Mono', Verdana, Arial, Helvetica, sans-serif;
    COLOR: #cccccc;
}

.gensmall {FONT-SIZE: 13px; font-family: 'Share Tech Mono', monospace; color: #999999;}
TD.genmed {FONT-SIZE: 14px; font-family: 'Orbitron', sans-serif;}
.genmed {FONT-SIZE: 13px; font-family: 'Share Tech Mono', monospace;}
.explaintitle {
    FONT-WEIGHT: 500;
    FONT-SIZE: 13px;
    COLOR: #cc0000;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 5px rgba(204, 0, 0, 0.5);
}

/* Ретро-ссылки как кнопки магнитофона */
A:link {
    COLOR: #cc0000;
    TEXT-DECORATION: none;
    transition: all 0.3s ease;
    padding: 2px 6px;
    border: 1px solid #444444;
    background: linear-gradient(to bottom, #333333 0%, #2a2a2a 100%);
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

A:active {
    COLOR: #ff3333;
    TEXT-DECORATION: none;
    background: linear-gradient(to bottom, #2a2a2a 0%, #333333 100%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

A:visited {
    COLOR: #990000;
    TEXT-DECORATION: none;
}

A:hover {
    COLOR: #ff3333;
    TEXT-DECORATION: none;
    border-color: #cc0000;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 10px rgba(204, 0, 0, 0.3);
}

A.postlink {
    COLOR: #cc0000;
    TEXT-DECORATION: none;
    font-weight: 500;
    border: 2px solid #cc0000;
    background: linear-gradient(to bottom, #333333 0%, #2a2a2a 100%);
}

/* Заголовки в стиле Sony */
.topictitle {
    FONT-WEIGHT: 500;
    FONT-SIZE: 13px;
    font-family: 'Orbitron', sans-serif;
    color: #cc0000;
    text-shadow: 0 0 5px rgba(204, 0, 0, 0.3);
}

A.topictitle:visited {COLOR: #990000;}
A.topictitle:hover {
    COLOR: #ff3333;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

.name {
    FONT-WEIGHT: 500;
    FONT-SIZE: 13px;
    color: #cc0000;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 5px rgba(204, 0, 0, 0.3);
}

/* Разделители как полосы магнитофона */
HR {
    BORDER-RIGHT: #ffffff 0px solid;
    BORDER-TOP: 2px solid #cc0000;
    BORDER-LEFT: #ffffff 0px solid;
    BORDER-BOTTOM: #ffffff 0px solid;
    HEIGHT: 0px;
    margin: 20px 0;
    position: relative;
}

HR::before {
    content: '◄ ▶';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    padding: 0 10px;
    color: #cc0000;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
}

/* Категории в стиле панели управления */
TD.cat, TD.catHead, TD.catSides, TD.catLeft, TD.catRight, TD.catBottom {
    FONT-WEIGHT: 500;
    background: linear-gradient(to bottom, 
        #333333 0%,
        #2a2a2a 50%,
        #222222 100%);
    TEXT-INDENT: 15px;
    LETTER-SPACING: 1px;
    HEIGHT: 40px;
    color: #cc0000;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    border: 1px solid #444444;
    border-top: 2px solid #cc0000;
    text-shadow: 0 1px 1px rgba(0,0,0,0.8);
    position: relative;
}

TD.cat::before {
    content: '■';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #cc0000;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Ряды таблиц с эффектом металла */
.row1 {
    background: linear-gradient(to bottom,
        rgba(34, 34, 34, 0.9) 0%,
        rgba(42, 42, 42, 0.9) 100%);
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    border-bottom: 1px solid #333333;
}

.row2 {
    background: linear-gradient(to bottom,
        rgba(42, 42, 42, 0.9) 0%,
        rgba(50, 50, 50, 0.9) 100%);
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    border-bottom: 1px solid #333333;
}

.row3 {
    background: linear-gradient(to bottom,
        rgba(50, 50, 50, 0.9) 0%,
        rgba(58, 58, 58, 0.9) 100%);
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    border-bottom: 1px solid #333333;
}

.row1:hover, .row2:hover, .row3:hover {
    background: linear-gradient(to bottom,
        rgba(204, 0, 0, 0.1) 0%,
        rgba(42, 42, 42, 0.9) 100%);
    border-left: 2px solid #cc0000;
    box-shadow: 
        inset 5px 0 10px rgba(204, 0, 0, 0.1),
        0 2px 5px rgba(0, 0, 0, 0.3);
}

.helpline {
    background: linear-gradient(to bottom,
        rgba(204, 0, 0, 0.05) 0%,
        rgba(42, 42, 42, 0.9) 100%);
    border: 1px solid #444444;
    border-left: 3px solid #cc0000;
}

TD.spacerow {
    background: repeating-linear-gradient(
        45deg,
        #333333,
        #333333 10px,
        #2a2a2a 10px,
        #2a2a2a 20px
    );
}

TD.rowpic {
    background: linear-gradient(to right,
        rgba(204, 0, 0, 0.1) 0%,
        rgba(42, 42, 42, 0.9) 100%);
}

/* Заголовки таблиц как кнопки магнитофона */
TH {
    PADDING-RIGHT: 15px;
    PADDING-LEFT: 15px;
    FONT-WEIGHT: 500;
    FONT-SIZE: 14px;
    background: linear-gradient(to bottom,
        #444444 0%,
        #333333 50%,
        #222222 100%);
    COLOR: #ffffff;
    WHITE-SPACE: nowrap;
    HEIGHT: 40px;
    TEXT-ALIGN: center;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid #555555;
    border-top-color: #666666;
    border-bottom-color: #222222;
    text-shadow: 
        0 -1px 0 rgba(0, 0, 0, 0.8),
        0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

TH::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(204, 0, 0, 0.5),
        transparent);
}

/* Контейнеры в стиле корпуса техники */
.bodyline {
    BORDER-RIGHT: 2px solid #444444;
    BORDER-TOP: 2px solid #666666;
    background: linear-gradient(to bottom,
        rgba(26, 26, 26, 0.95) 0%,
        rgba(34, 34, 34, 0.95) 100%);
    BORDER-LEFT: 2px solid #444444;
    BORDER-BOTTOM: 2px solid #222222;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.bodyline::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(204, 0, 0, 0.2);
    border-radius: 4px;
    pointer-events: none;
}

.forumline {
    BORDER-RIGHT: 1px solid #444444;
    BORDER-TOP: 1px solid #666666;
    background: linear-gradient(to bottom,
        rgba(26, 26, 26, 0.95) 0%,
        rgba(34, 34, 34, 0.95) 100%);
    BORDER-LEFT: 1px solid #444444;
    BORDER-BOTTOM: 1px solid #222222;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Ретро-заголовки */
.maintitle, H1 {
    FONT: bold 28px/130% 'Orbitron', 'Share Tech Mono', Verdana, Arial, Helvetica, sans-serif;
    COLOR: #cc0000;
    TEXT-DECORATION: none;
    text-align: center;
    margin: 30px 0;
    padding-bottom: 15px;
    position: relative;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(204, 0, 0, 0.3);
}

.maintitle::after, H1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        #cc0000,
        #990000,
        #cc0000,
        transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(204, 0, 0, 0.5);
}

H2, .subtitle {
    FONT: bold 22px/150% 'Orbitron', 'Share Tech Mono', Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    COLOR: #990000;
    margin-top: 25px;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(153, 0, 0, 0.2);
    position: relative;
    padding-left: 20px;
}

H2::before, .subtitle::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #cc0000;
}

/* Технические блоки в стиле дисплея */
.code_td, .php_td, .q_td, .quote_td {
    FONT-SIZE: 13px;
    COLOR: #00cc00;
    FONT-FAMILY: 'Share Tech Mono', 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(0, 204, 0, 0.3);
}

.code_table, .php_table, .q_table, .quote_table {
    BORDER-RIGHT: 2px solid #555555;
    BORDER-TOP: 2px solid #666666;
    FONT-SIZE: 13px;
    BORDER-LEFT: 2px solid #555555;
    WIDTH: 98%;
    BORDER-BOTTOM: 2px solid #444444;
    FONT-FAMILY: 'Share Tech Mono', 'Courier New', monospace;
    background: rgba(0, 20, 0, 0.9);
    border-radius: 6px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 
        inset 0 0 20px rgba(0, 204, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

.code_table::before {
    content: 'LCD';
    position: absolute;
    top: -10px;
    left: 20px;
    background: #222222;
    color: #00cc00;
    padding: 2px 10px;
    font-size: 11px;
    font-family: 'Orbitron', sans-serif;
    border-radius: 3px;
    border: 1px solid #444444;
}

/* Блоки цитат */
.quote {
    BORDER-RIGHT: 1px solid #555555;
    BORDER-TOP: 1px solid #666666;
    FONT-SIZE: 14px;
    background: linear-gradient(to bottom,
        rgba(34, 0, 0, 0.9) 0%,
        rgba(42, 0, 0, 0.9) 100%);
    BORDER-LEFT: 4px solid #cc0000;
    COLOR: #cccccc;
    LINE-HEIGHT: 1.6;
    BORDER-BOTTOM: 1px solid #444444;
    padding: 20px;
    margin: 20px 0;
    border-radius: 6px;
    position: relative;
    box-shadow: 
        inset 0 0 20px rgba(204, 0, 0, 0.1),
        0 3px 10px rgba(0, 0, 0, 0.3);
}

.quote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    color: #cc0000;
    font-size: 30px;
    font-family: serif;
    opacity: 0.3;
}

/* Блоки кода */
.code {
    BORDER-RIGHT: 2px solid #555555;
    BORDER-TOP: 2px solid #666666;
    PADDING-LEFT: 20px;
    background: rgba(0, 20, 0, 0.9);
    PADDING-BOTTOM: 20px;
    FONT: 13px 'Share Tech Mono', 'Courier New', monospace;
    BORDER-LEFT: 2px solid #555555;
    COLOR: #00cc00;
    PADDING-TOP: 20px;
    BORDER-BOTTOM: 2px solid #444444;
    border-radius: 6px;
    margin: 20px 0;
    position: relative;
    box-shadow: 
        inset 0 0 20px rgba(0, 204, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.5);
}

.code::before {
    content: 'DEBUG';
    position: absolute;
    top: -12px;
    left: 20px;
    background: #222222;
    color: #00cc00;
    padding: 3px 15px;
    border-radius: 3px;
    font-size: 11px;
    font-family: 'Orbitron', sans-serif;
    border: 1px solid #444444;
    text-shadow: 0 0 5px rgba(0, 204, 0, 0.5);
}

/* Кнопки как элементы управления */
INPUT.button, INPUT.liteoption, .fakebut, INPUT.catbutton, INPUT.mainoption {
    BORDER: 2px solid #555555;
    FONT-SIZE: 14px;
    background: linear-gradient(to bottom,
        #444444 0%,
        #333333 50%,
        #222222 100%);
    font-weight: 500;
    padding: 10px 20px;
    color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    text-shadow: 
        0 -1px 0 rgba(0, 0, 0, 0.8),
        0 1px 0 rgba(255, 255, 255, 0.1);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 3px 5px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

INPUT.button:hover, INPUT.liteoption:hover, .fakebut:hover, 
INPUT.catbutton:hover, INPUT.mainoption:hover {
    border-color: #cc0000;
    color: #ff3333;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 15px rgba(204, 0, 0, 0.3);
}

INPUT.button:active, INPUT.liteoption:active, .fakebut:active, 
INPUT.catbutton:active, INPUT.mainoption:active {
    background: linear-gradient(to bottom,
        #222222 0%,
        #333333 50%,
        #444444 100%);
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Стили для форм ввода */
INPUT, SELECT, TEXTAREA {
    FONT: 13px 'Share Tech Mono', 'Orbitron', Verdana, Arial, Helvetica, sans-serif;
    padding: 8px 12px;
    border: 2px solid #555555;
    border-radius: 4px;
    background: rgba(34, 34, 34, 0.9);
    transition: all 0.3s ease;
    color: #cccccc;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.05);
}

INPUT:focus, SELECT:focus, TEXTAREA:focus {
    outline: none;
    border-color: #cc0000;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(204, 0, 0, 0.3);
}

/* Ретро-копирайт */
.copyright {
    FONT-SIZE: 12px;
    COLOR: #666666;
    FONT-FAMILY: 'Share Tech Mono', monospace;
    LETTER-SPACING: -0.5px;
    text-align: center;
    padding: 25px 0;
    margin-top: 25px;
    border-top: 1px solid #333333;
    position: relative;
}

.copyright::before {
    content: '© SONY 1980s';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    padding: 0 20px;
    color: #cc0000;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
}

/* Эффекты для магнитофона */
.tape-reel {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #555555;
    border-radius: 50%;
    background: linear-gradient(45deg, 
        #333333 25%, 
        #444444 25%, 
        #444444 50%, 
        #333333 50%, 
        #333333 75%, 
        #444444 75%);
    background-size: 10px 10px;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vu-meter {
    height: 4px;
    background: linear-gradient(90deg, 
        #00cc00 0%, 
        #00cc00 30%, 
        #ffcc00 30%, 
        #ffcc00 70%, 
        #cc0000 70%, 
        #cc0000 100%);
    border-radius: 2px;
    margin: 5px 0;
    position: relative;
    overflow: hidden;
}

.vu-meter::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    animation: vu 2s ease-in-out infinite;
}

@keyframes vu {
    0%, 100% { left: 0; width: 30%; }
    50% { left: 70%; width: 30%; }
}

/* Адаптивность */
@media (max-width: 768px) {
    BODY {
        width: 95%;
        padding: 10px;
        font-size: 13px;
    }
    
    .forumline {
        overflow-x: auto;
    }
    
    .maintitle, H1 {
        font-size: 22px;
    }
    
    H2, .subtitle {
        font-size: 18px;
    }
    
    .code, .quote {
        padding: 15px;
        font-size: 12px;
    }
    
    INPUT, SELECT, TEXTAREA {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Дополнительные ретро-элементы */
.retro-border {
    border: 2px solid;
    border-image: linear-gradient(45deg, #666666, #444444, #666666) 1;
    padding: 10px;
    margin: 10px 0;
}

.sony-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    color: #cc0000;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(204, 0, 0, 0.5);
    letter-spacing: 2px;
}

.analog-display {
    font-family: 'Share Tech Mono', monospace;
    color: #00cc00;
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid #444444;
    padding: 5px 10px;
    border-radius: 3px;
    text-shadow: 0 0 5px rgba(0, 204, 0, 0.3);
}