/* ===== Y2K / OLDER BROTHER CORE STYLESHEET ===== */
/* Updated for new design with green glow, thin borders, and Bank Gothic font */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    font-family: 'Bank Gothic Medium', 'Bank Gothic', 'Arial Narrow', Arial, sans-serif;
    color: #e4ffe3;
    text-shadow: 0 0 2px #00ff00, 0 0 3px #00ff00;
}

 body {
   background-color: #101010;

}

/* ===== ANIMATED HEADER ===== */
header {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: transparent;
    border: none;
}

.header-glitch {
    position: relative;
    display: inline-block;
}

.glitch {
    font-size: 2.8em;
    font-weight: bold;
    color: #ffff00;
    text-shadow: 0 0 3px #ffff00, 0 0 5px #ffff00;
    letter-spacing: 2px;
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: #ff00ff;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.glitch::after {
    color: #00ffff;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

/* ===== GIF HEADER SECTION ===== */
.gif-header {
    text-align: center;
    margin: 0 auto 15px auto;
    padding: 5px 0;
    background: transparent;
    border: none;
}

.gif-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    margin-bottom: 10px;
    width: 100%;
    overflow: hidden;
}

.top-gif {
    width: calc(20% - 4px); /* 5 гифок по 20% минус отступы */
    max-width: 88px; /* Оригинальная ширина гифки */
    height: 31px; /* Оригинальная высота гифки */
    object-fit: contain; /* Сохраняет пропорции */
    image-rendering: pixelated;
    flex-shrink: 0;
}

.gif-label {
    color: #ffff00;
    font-size: 1em;
    text-shadow: 0 0 3px #ffff00;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* ===== MAIN LAYOUT TABLE ===== */
.main-layout {
    width: 100%;
    border-collapse: separate;
    border-spacing: 8px;
}

.sidebar {
    width: 200px;
    vertical-align: top;
    border: 1px solid #00ff00;
    padding: 15px;
}

.content {
    vertical-align: top;
    border: 1px solid #00ff00;
    padding: 20px;
}

/* ===== NAVIGATION & WIDGETS ===== */
.nav-box, .widget, .content-box {
    padding: 15px;
    margin-bottom: 20px;
}

.nav-box h3, .widget h3, .content-box h2 {
    color: #ffff00;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* ===== TITLES WITH GIFS (MAIN HEADERS) ===== */
.gif-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.title-gif {
    width: 32px;
    height: 32px;
    object-fit: scale-down;
    image-rendering: pixelated;
}

.titlesub-gif {
    width: 32px;
    height: 32px;
    object-fit: contain;
    image-rendering: pixelated;
}


.title-text {
    text-align: center;
    font-size: 1.1em;
    color: #ffff00;
    text-shadow: 0 0 3px #ffff00;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== SUBTITLES WITH GIFS (for Video Games, Media, etc.) ===== */
/* ТЕПЕРЬ ТАКОЕ ЖЕ ОФОРМЛЕНИЕ КАК У ОСНОВНЫХ ЗАГОЛОВКОВ */
.subsection-gif-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.subsection-title-gif {
    width: 24px; /* Чуть меньше чем у основных заголовков (24px vs 32px) */
    height: 24px;
    object-fit: contain;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.subtitle-text {
    text-align: center;
    font-size: 1.1em;
    color: #ffff00;
    text-shadow: 0 0 3px #ffff00;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== CONTENT SECTIONS ===== */
.interest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.interest-item {

    padding: 10px;
    min-height: 120px;
}

/* Убираем старые стили для заголовков в interest-item */
.interest-item h4 {
    display: contents; /* Важное изменение - содержимое становится частью потока */
    margin: 0;
    padding: 0;
    color: #ffff00 !important;
    text-shadow: 0 0 3px #ffff00 !important;
}

/* ===== TYPOGRAPHY & LINKS ===== */
ul {
    list-style-type: square;
    padding-left: 20px;
    color: #e4ffe3;
}

li {
    margin-bottom: 8px;
}

a {
    color: #00ffff;
    text-decoration: none;
    text-shadow: 0 0 3px #00ffff;
    transition: all 0.3s;
}

a:hover {
    color: #ffffff;
    text-shadow: 0 0 5px #ffffff;
}

.blink {
    animation: blink 1s step-start infinite;
    color: #ff0000;
    text-shadow: 0 0 3px #ff0000;
}

@keyframes blink {
    50% { opacity: 0; }
}

.y2k-text {
    color: #ff00ff;
    text-shadow: 0 0 3px #ff00ff;
}

.obc-text {
    color: #00ff00;
    padding: 0 3px;
}

.highlight {
    color: #ffff00;
    text-shadow: 0 0 3px #ffff00;
}

.small {
    font-size: 0.85em;
    color: #aaaaaa;
    font-style: italic;
}

.room-list li {
    margin-bottom: 10px;
    padding-left: 25px;
}

.ascii-art pre {
    font-family: "Courier New", monospace;
    color: #00ff00;
    padding: 10px;
    border: 1px solid #00ff00;
    text-align: center;
    margin: 15px auto;
    width: fit-content;
}

.music-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;

}

.music-table th, .music-table td {
    border: 1px solid #00ff00;
    padding: 10px;
    text-align: left;
}

.music-table th {
    color: #ffff00;
}

.music-table tr:nth-child(even) {

}

.divider {
    border: none;
    height: 1px;
    margin: 25px 0;
}

/* ===== BANNERS & COUNTER ===== */
.banner {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
}

.counter {
    font-family: "Courier New", monospace;
    font-size: 1.8em;
    color: #00ff00;
    text-align: center;
    margin: 10px 0;
}

.update-date {
    font-family: "Courier New", monospace;
    font-size: 1.3em;
    color: #ffff00;
    text-align: center;
    margin: 10px 0;
}

/* ===== SITE UPTIME WIDGET ===== */
.uptime-widget {
    border: 1px solid #00ff00;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
}

#site-uptime {
    font-size: 1.3em;
    color: #ffff00;
    text-shadow: 0 0 3px #ffff00;
    margin: 10px 0;
}

/* ===== FRIEND BANNER ===== */
.friend-banner {
    text-align: center;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid #00ff00;
}

.friend-banner img {
    max-width: 100%;
    height: auto;
    border: 1px solid #00ff00;
}

/* ===== MARQUEE TICKER ===== */
.ticker {
    background: linear-gradient(90deg, #000000, #006600, #000000);
    color: #e4ffe3;
    text-shadow: 0 0 3px #00ff00;
    padding: 8px;
    font-family: 'Bank Gothic Medium', 'Bank Gothic', 'Arial Narrow', Arial, sans-serif;
    font-weight: bold;
    margin-top: 10px;
}

/* ===== FOOTER ===== */
footer {
    margin-top: 30px;
    text-align: center;
    padding: 20px;

}

.footer-link {
    color: #ff9900;
    margin: 0 10px;
}

.copyright {
    color: #8888cc;
    font-size: 0.9em;
    margin: 15px 0;
    line-height: 1.6;
}

.webrings img {
    margin: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-layout {
        display: block;
    }
    
    .sidebar, .content {
        display: block;
        width: 90%;
        margin: 15px auto;
    }
    
    .interest-grid {
        grid-template-columns: 1fr;
    }
    
    .gif-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    .top-gif {
        width: 88px;
        flex-shrink: 0;
    }
    
    .gif-title, .subsection-gif-title {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .title-gif, .subsection-title-gif {
        height: 20px;
    }
}

/* Hide scrollbar for gif-row */
.gif-row::-webkit-scrollbar {
    display: none;
}

.gif-row {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Улучшенные стили для гифок */
.title-gif, .subsection-title-gif, .top-gif {
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}


/* ===== WINAMP PLAYER STYLES ===== */
.player-container {
    position: relative;
    display: block;
    width: 345px;
    height: 213px;
    margin: 15px auto;
    overflow: hidden;
}

.player-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

/* ===== WINAMP PLAYER WITHOUT RESET ANIMATION ===== */
.player-container {
    position: relative;
    display: block;
    width: 345px;
    height: 213px;
    margin: 15px auto;
    overflow: hidden;
}

.player-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.song-display {
    position: absolute;
    top: 100px;
    left: 135px;
    width: 140px;
    height: 20px;
    overflow: hidden;
    padding: 2px 4px;
}

/* Упрощенная анимация прокрутки без сброса */
@keyframes song-marquee {
    0% {
        transform: translateX(140px);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Анимация смены песен */
@keyframes song-change-cycle {
    0%, 11.11% {
        content: "Deftones - Headup";
    }
    11.12%, 22.22% {
        content: "Sepultura - Spit";
    }
    22.23%, 33.33% {
        content: "Shuvel - Jump In";
    }
    33.34%, 44.44% {
        content: "The Prodigy - Out of Space";
    }
    44.45%, 55.55% {
        content: "Soulfly - Pain";
    }
    55.56%, 66.66% {
        content: "Limp Bizkit - Stuck";
    }
    66.67%, 77.77% {
        content: "Linkin Park - Crawling";
    }
    77.78%, 88.88% {
        content: "Folder - Left";
    }
    88.89%, 100% {
        content: "Korn - Good God";
    }
}

/* Применяем анимации к псевдоэлементу */
.song-display::before {
    content: "Deftones - Headup";
    position: absolute;
    top: 2px;
    left: 0;
    font-family: 'Bank Gothic Medium', 'Bank Gothic', 'Arial Narrow', Arial, sans-serif;
    font-size: 14px !important;
    color: #d1ffd9 !important;
    text-shadow: 0 0 2px #00ff00, 0 0 3px #00ff00 !important;
    white-space: nowrap;
    
    /* Две параллельные анимации без сброса */
    animation: 
        song-change-cycle 90s steps(1, end) infinite,
        song-marquee 10s linear infinite;
}

.online-counter {
  background-color: rgba(0, 40, 80, 0.9);
  border: 1px solid #00ff00;
  image-rendering: auto;
  font-family: 'Bank Gothic Medium', 'Bank Gothic', 'Arial Narrow', Arial, sans-serif;
  font-size: 14 !important;
}