@font-face {
    font-family: 'vhs_font';
    src: url('fonts/vhs_font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #00FF00;
    --secondary-color: #008800;
    --bg-color: #050505;
    --card-bg: rgba(0, 30, 0, 0.4);
    --glow: 0 0 10px #00FF00;
    --border-glow: 0 0 5px #00FF00, inset 0 0 5px #00FF00;
    --text-shadow: 0 0 5px #00FF00;
    --max-width: 1300px;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--primary-color);
    font-family: 'vhs_font', 'Courier New', monospace;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06)),
        var(--bg-color);
    background-size: 100% 4px, 3px 100%, 100% 100%;
}

header::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 9999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

header {
    width: 100%;
    max-width: var(--max-width);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.header-logo {
    width: 140px;
    filter: drop-shadow(0 0 15px var(--primary-color));
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05) rotate(2deg);
}

h1 {
    font-size: clamp(2em, 5vw, 4em);
    text-shadow: 0 0 15px var(--primary-color);
    margin: 0;
    letter-spacing: 10px;
    text-transform: uppercase;
    white-space: nowrap;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.nav-button {
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    padding: 12px 35px;
    font-size: 1.8em;
    text-shadow: var(--text-shadow);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: var(--primary-color);
    transition: all 0.5s;
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    z-index: -1;
}

.nav-button:hover {
    color: var(--bg-color);
    text-shadow: none;
    box-shadow: 0 0 30px var(--primary-color);
}

.nav-button:hover::before {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.nav-active {
    background-color: rgba(0, 255, 0, 0.15);
    border-style: double;
    border-width: 4px;
    box-shadow: var(--border-glow);
}

.social-container {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.social-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
    text-shadow: 0 0 8px var(--primary-color);
}

.social-link img {
    width: 24px;
    filter: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover img {
    filter: drop-shadow(0 0 8px var(--primary-color)) drop-shadow(0 0 4px var(--primary-color));
}

main {
    width: 100%;
    max-width: var(--max-width);
    padding: 0 40px 100px;
}

h2 {
    font-size: 1.8em;
    margin: 60px 0 30px;
    text-shadow: var(--text-shadow);
}

.log-container {
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    box-shadow: var(--border-glow);
    padding: 30px;
    backdrop-filter: blur(5px);
    line-height: 1.6;
}

#chat-box {
    height: 320px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 10px;
    font-size: 0.95em;
}

.admin-name-tag {
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 2px 8px;
    font-weight: bold;
    text-shadow: none;
    box-shadow: 0 0 10px var(--primary-color);
    margin: 0 5px;
}

.nuke-btn {
    background: transparent;
    border: 1px solid #ff0000;
    color: #ff0000;
    font-size: 0.7em;
    padding: 2px 6px;
    margin-left: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.nuke-btn:hover {
    background: #ff0000;
    color: #fff;
    box-shadow: 0 0 10px #ff0000;
}

.chat-input-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

input[type="text"] {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-family: inherit;
    padding: 15px;
    font-size: 1.1em;
    transition: box-shadow 0.3s;
}

input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 15px var(--primary-color);
}

#user-name {
    width: 180px;
}

#user-msg {
    flex-grow: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    padding: 0 30px;
    font-family: inherit;
    font-size: 1.2em;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--primary-color);
    transform: scale(1.02);
}

.album-section {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 40px;
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    padding: 40px;
    margin-bottom: 80px;
    box-shadow: var(--border-glow);
    backdrop-filter: blur(8px);
}

.album-info {
    text-align: left;
}

.album-cover {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.category-nav {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
}

.cat-btn {
    background: transparent;
    border: none;
    color: var(--secondary-color);
    font-family: inherit;
    font-size: 1.1em;
    cursor: pointer;
    padding: 15px 5px;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cat-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    text-shadow: var(--text-shadow);
}

.cat-btn:hover {
    color: var(--primary-color);
    opacity: 0.8;
}

.music-category {
    display: none;
}

.music-category.active {
    display: block;
    animation: fadeInCat 0.5s ease-out;
}

@keyframes fadeInCat {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tracklist {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 5px;
    table-layout: fixed;
    margin-top: -20px;
}

.track-row {
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
}

.track-row:hover {
    background: rgba(0, 255, 0, 0.08);
}

.track-row td {
    padding: 15px 10px;
}

.tracklist tr td:nth-child(1) {
    width: 40px;
    text-align: center;
    color: var(--secondary-color);
}

.tracklist tr td:nth-child(2) {
    width: auto;
    word-wrap: break-word;
    vertical-align: middle;
    padding-left: 20px;
}

.tracklist tr td:nth-child(3) {
    width: 80px;
    text-align: center;
}

.tracklist tr td:nth-child(4) {
    width: 220px;
    text-align: right;
    padding-right: 15px;
}

.tracklist tr:first-child td {
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: none;
    letter-spacing: 2px;
}

.track-number {
    color: var(--secondary-color);
}

.track-title {
    font-size: 1.1em;
    color: #fff;
    text-shadow: 0 0 2px #fff;
}

.global-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: rgba(0, 10, 0, 0.95);
    border-top: 2px solid var(--primary-color);
    padding: 0 40px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 40px;
    backdrop-filter: blur(20px);
    box-shadow: 0 -15px 40px rgba(0, 255, 0, 0.25);
    transform: translateY(300px);
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.global-player-bar.active {
    transform: translateY(0);
}

.player-info {
    display: flex;
    align-items: flex-end;
    gap: 25px;
    min-width: 450px;
    position: relative;
    height: 100%;
}

.player-art {
    width: 250px;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
    background: #000;
    opacity: 0;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.global-player-bar.active .player-art {
    opacity: 1;

}

.player-art:hover {
    transform: scale(1.05) translateY(-5px);
}

.player-text {
    display: flex;
    flex-direction: column;
    padding-bottom: 30px;
    padding-left: 10px;
    gap: 12px;
}

#current-track-title {
    font-size: 1.1em;
    color: #fff;
    text-shadow: 0 0 5px var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

#current-track-album {
    font-size: 0.8em;
    color: var(--secondary-color);
}

.player-controls-main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

audio#main-audio {
    flex-grow: 1;
    height: 40px;
    filter: invert(1) hue-rotate(90deg) brightness(1.2);
}

.play-trigger {
    width: 44px;
    height: 44px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4em;
    transition: all 0.2s;
    position: relative;
    padding: 0;
    line-height: 1;
}

.play-trigger:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.play-trigger.playing {
    background: var(--primary-color);
    color: var(--bg-color);
}

.play-trigger.playing::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary-color);
    animation: pulse-border 1.5s infinite;
}

@keyframes pulse-border {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.download-cell {
    display: flex;
    gap: 10px;
    white-space: nowrap;
    justify-content: flex-end;
}

.btn-download {
    border: 1px solid var(--primary-color);
    padding: 6px 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85em;
    transition: all 0.2s;
    background: rgba(0, 255, 0, 0.05);
}

.btn-download:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.zip-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--secondary-color);
}

.btn-zip {
    display: inline-block;
    border: 2px solid var(--primary-color);
    padding: 15px 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2em;
    margin: 15px 0;
    transition: all 0.3s;
}

.btn-zip:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--primary-color);
}

.border-table {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    padding: 50px;
    box-shadow: var(--border-glow);
}

.game-preview {
    width: 100%;
    max-width: 1000px;
    border: 1px solid var(--primary-color);
    filter: sepia(1) hue-rotate(100deg) brightness(0.7);
    margin-bottom: 30px;
}

.progress-container {
    width: 400px;
    height: 20px;
    border: 1px solid var(--primary-color);
    position: relative;
    background: #000;
}

.progress-bar {
    background: var(--primary-color);
    width: 60px;
    height: 100%;
    position: absolute;
    animation: scanning 2s linear infinite;
    box-shadow: 0 0 20px var(--primary-color);
}

@keyframes scanning {
    0% {
        left: -60px;
    }

    100% {
        left: 400px;
    }
}

footer {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    font-size: 0.75em;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(160, 160, 160, 0.2);
    margin-top: auto;
    letter-spacing: 2px;
    opacity: 1;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
    border-left: 1px solid var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* M-V-W */
#v-w-wrap {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.v-w-inner {
    padding: 20px;
    text-align: center;
    max-width: 300px;
    width: 90%;
}

#v-w-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    color: #555;
    padding: 10px;
    width: 100%;
    font-family: monospace;
    text-align: center;
    outline: none;
    font-size: 0.9em;
}

#v-w-input:focus {
    border-bottom-color: #555;
    color: #888;
}

@media (max-width: 1100px) {
    .album-section {
        grid-template-columns: 1fr;
    }

    .album-cover {
        max-width: 500px;
        margin: 0 auto 30px;
        display: block;
    }

    .header-inner {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    main {
        padding: 0 15px 150px;
    }

    h1 {
        font-size: 2em;
        letter-spacing: 5px;
        white-space: normal; 
        text-align: center;
    }

    .header-logo {
        width: 100px;
    }

    .nav-button {
        font-size: 1.1em;
        padding: 8px 15px;
    }

    .chat-input-container {
        flex-direction: column;
    }

    #user-name {
        width: 100%;
    }

    #chat-box {
        height: 250px;
    }

    .progress-container {
        width: 100%;
    }

    audio {
        min-width: 100px;
    }
    
    .category-nav {
        gap: 15px;
        overflow-x: auto;
        padding-bottom: 15px;
        justify-content: flex-start;
        display: -webkit-box; 
    }
    
    .cat-btn {
        font-size: 0.9em;
        white-space: nowrap;
    }

    .global-player-bar {
        height: auto;
        padding: 10px 15px;
        flex-direction: column;
        gap: 10px;
        transform: translateY(100%);
    }

    .global-player-bar.active {
        transform: translateY(0);
    }
    
    .player-info {
        min-width: 0;
        width: 100%;
        height: auto;
        align-items: center;
        gap: 15px;
        justify-content: flex-start;
    }
    
    .player-art {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    }
    
    .player-text {
        padding-bottom: 0;
        padding-left: 0;
        gap: 2px;
        text-align: left;
    }
    
    #current-track-title {
        max-width: 180px;
        font-size: 1em;
    }
    
    .player-controls-main {
        width: 100%;
    }
    
    .social-container {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-link {
        font-size: 1.1em;
    }

    .album-section {
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .album-info .album-cover {
        max-width: 150px;
    }

    .tracklist tr td:nth-child(1) { width: 30px; }
    .tracklist tr td:nth-child(2) { padding-left: 10px; }
    .tracklist tr td:nth-child(3) { width: 50px; }
    .tracklist tr td:nth-child(4) { width: 120px; text-align: right; }
    
    .track-title { font-size: 0.85em; }
    .btn-download { padding: 4px 6px; font-size: 0.7em; }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
        letter-spacing: 2px;
    }

    nav {
        gap: 8px;
        margin: 15px 0;
    }

    .nav-button {
        font-size: 0.8em;
        padding: 5px 10px;
    }
    
    .tracklist tr td:nth-child(4) { width: 80px; }
    .btn-download:last-child { display: none; }
}