/* ===================== */
/* BASE */
/* ===================== */

body {
    margin: 0;
    background: #121212;
    color: #aaaaaaa6;
    font-family: 'JetBrains Mono', monospace;
}

/* ===================== */
/* HERO */
/* ===================== */

.hero {
    background: #cfcfcfdd;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.hero img {
    width: 450px;
    height: 450px;
    object-fit: cover;
    max-width: 100%;
}

.hero h1 {
    letter-spacing: 36px;
    color: #777;
    font-weight: lighter;
    font-size: 28px;
    margin: 0 0 10px 0;
}

.hero h2 {
    letter-spacing: 36px;
    color: #777;
    font-weight: lighter;
    font-size: 18px;
    margin: 10px 0 0 0;
}

/* ===================== */
/* HEADER */
/* ===================== */

.archive-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 40px 60px 0;
}

.archive-title {
    font-size: 11px;
    letter-spacing: 2px;
    color: #666;
    white-space: nowrap;
}

.archive-line {
    flex: 1;
    height: 1px;
    background: #222;
}

/* ===================== */
/* GRID */
/* ===================== */

.grid {
    column-count: 2;
    column-gap: 100px;
    padding: 80px 100px;
    max-width: 100%;
    box-sizing: border-box;
}

.card {
    break-inside: avoid;
    margin-bottom: 80px;
    position: relative;
    perspective: 800px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform-style: preserve-3d;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    transition: transform 0.25s ease;
    transform-origin: center center;
    will-change: transform;
    pointer-events: auto;
    transform: translateZ(0) scale(1.05);
}

.card img:hover {
    transform: translateZ(-20px) scale(1.05);
}

/* ===================== */
/* PLAYER */
/* ===================== */

.player {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    margin-top: 8px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.player:hover {
    opacity: 1;
}

.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    pointer-events: auto;
}

.btn::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #aaa;
    display: inline-block;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.player.playing .btn::before {
    clip-path: none;
    background: none;
    background-image: linear-gradient(
        to right,
        #aaa 0 2px,
        transparent 2px 4px,
        #aaa 4px 6px
    );
}

.line {
    flex: 1;
    height: 1px;
    background: #333;
    pointer-events: none;
}

.time {
    pointer-events: none;
    white-space: nowrap;
}

/* ===================== */
/* FOOTER */
/* ===================== */

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 100px;
    border-top: 1px solid #111;
    font-size: 11px;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer a {
    color: #666;
    text-decoration: none;
    transition: 0.2s;
}

.footer a:hover {
    color: #aaa;
}

.footer-right span {
    cursor: pointer;
    color: #666;
    transition: 0.2s;
}

.footer-right span:hover {
    color: #aaa;
}

/* ===================== */
/* GALLERY */
/* ===================== */

.gallery {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 9999;
}

.gallery.active {
    opacity: 1;
    pointer-events: all;
}

.gallery-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    z-index: 2;
}

.gallery-close {
    position: fixed;
    top: 20px;
    right: 25px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    z-index: 10000;
    transition: 0.2s;
}

.gallery-close:hover {
    color: #fff;
}

.gallery-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 32px;
    padding: 16px 20px;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
    font-family: 'JetBrains Mono', monospace;
}

.gallery-nav:hover {
    background: rgba(255,255,255,0.15);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

/* ===================== */
/* WIN98 */
/* ===================== */

.win98 {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    z-index: 9999;
}

.win98.active {
    opacity: 1;
    pointer-events: all;
}

.win98-window {
    width: 320px;
    background: #c0c0c0;
    color: #000;
    font-size: 11px;
    font-family: Tahoma, sans-serif;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
}

.win98-window,
.win98-window * {
    font-family: "MS Sans Serif", Tahoma, Geneva, sans-serif;
    font-size: 11px;
}

.win98-header {
    background: #000080;
    color: #fff;
    padding: 3px 6px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.win98-body {
    display: flex;
    gap: 10px;
    padding: 12px;
}

.win98-footer {
    padding: 10px;
    display: flex;
    justify-content: center;
}

.win98-btn {
    padding: 3px 18px;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    cursor: pointer;
    font-family: "MS Sans Serif", Tahoma, Geneva, sans-serif;
    font-size: 11px;
}

.win98-btn:active {
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

.win98-icon {
    width: 24px;
    height: 24px;
    border: 1px solid #000;
    background: #c0c0c0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: lighter;
    font-family: "MS Sans Serif", Tahoma, sans-serif;
}

.win98-close {
    cursor: pointer;
}

/* ===================== */
/* DOWNLOADS */
/* ===================== */

.downloads-body {
    display: flex;
    flex-direction: column;
    padding: 6px;
    background: #c0c0c0;
    border: 2px solid;
    border-top-color: #808080;
    border-left-color: #808080;
    border-right-color: #fff;
    border-bottom-color: #fff;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px;
    cursor: default;
    border-bottom: 1px solid #dcdcdc;
}

.download-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.download-left img {
    width: 16px;
    height: 16px;
    image-rendering: pixelated;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    background: #c0c0c0;
    border: 1px solid #808080;
}

.download-btn img {
    width: 14px;
    height: 14px;
    image-rendering: pixelated;
}

.download-item:hover {
    background: #000080;
    color: #fff;
}

.download-item:hover .download-btn {
    background: #000080;
    border-color: #fff;
}

.download-item:hover .download-btn img {
    filter: invert(1);
}

.downloads-close {
    cursor: pointer;
}

/* ===================== */
/* ADMIN PANEL */
/* ===================== */

.admin-body {
    background: #121212;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.admin-window {
    max-width: 1100px;
    width: 100%;
}

.admin-content {
    padding: 12px 14px;
}

.admin-section {
    margin-bottom: 20px;
}

.admin-section-title {
    font-size: 11px;
    font-weight: bold;
    color: #000;
    padding-bottom: 4px;
    border-bottom: 1px solid #808080;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-edit-indicator {
    background: #000080;
    color: #fff;
    padding: 1px 8px;
    font-size: 10px;
    font-weight: normal;
    display: none;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-form-group label {
    font-size: 11px;
    color: #000;
}

.admin-form-group input {
    padding: 3px 5px;
    background: #fff;
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    font-family: "MS Sans Serif", Tahoma, Geneva, sans-serif;
    font-size: 11px;
    width: 100%;
    box-sizing: border-box;
}

.admin-form-group input:focus {
    outline: 1px solid #000080;
}

.admin-form-group input[type="file"] {
    padding: 2px;
    background: transparent;
    border: none;
}

.admin-form-group input[type="file"]:focus {
    outline: none;
}

.admin-btn-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.admin-btn-secondary {
    display: none;
}

.admin-error-message,
.admin-success-message {
    padding: 4px 8px;
    margin-bottom: 10px;
    font-size: 11px;
    display: none;
}

.admin-error-message {
    background: #ffdddd;
    border: 1px solid #ff0000;
    color: #cc0000;
}

.admin-success-message {
    background: #ddffdd;
    border: 1px solid #00aa00;
    color: #006600;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    background: #fff;
}

.admin-table th {
    text-align: left;
    padding: 4px 6px;
    background: #c0c0c0;
    font-weight: bold;
    border: 1px solid #808080;
    color: #000;
}

.admin-table td {
    padding: 4px 6px;
    border: 1px solid #808080;
    vertical-align: middle;
}

.admin-table img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 1px solid #808080;
}

.admin-table-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.admin-table-actions a,
.admin-table-actions button {
    padding: 2px 10px;
    font-size: 10px;
    text-decoration: none;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    cursor: pointer;
    font-family: "MS Sans Serif", Tahoma, Geneva, sans-serif;
    color: #000;
}

.admin-table-actions a:active,
.admin-table-actions button:active {
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

.admin-table-actions .delete {
    border-right: 2px solid #600000;
    border-bottom: 2px solid #600000;
}

.admin-table-actions .delete:active {
    border-top: 2px solid #600000;
    border-left: 2px solid #600000;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

.admin-music-info {
    color: #444;
    font-size: 10px;
}

.admin-header-logout {
    color: #fff;
    text-decoration: none;
    font-weight: normal;
}

.admin-header-logout:hover {
    text-decoration: underline;
}

.admin-form-hint {
    font-size: 10px;
    color: #666;
}

/* ===================== */
/* LOGIN */
/* ===================== */

.login-body {
    min-height: 100vh;
    background: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-window {
    width: 340px;
}

.login-body-padding {
    padding: 16px 12px 12px;
}

.login-body-padding form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-body-padding label {
    font-size: 11px;
    color: #000;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.login-body-padding input {
    padding: 4px 6px;
    background: #fff;
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    font-family: "MS Sans Serif", Tahoma, Geneva, sans-serif;
    font-size: 11px;
}

.login-body-padding input:focus {
    outline: 1px solid #000080;
}

.login-footer-pad {
    padding: 8px 0 0;
}

.login-error {
    color: #ff0000;
    font-size: 11px;
    text-align: center;
    padding: 4px;
    background: #fff;
    border: 1px solid #ff0000;
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */

@media (min-width: 1921px) {
    .grid {
        column-count: 3;
        column-gap: 120px;
        padding: 100px 150px;
        max-width: 2400px;
        margin: 0 auto;
    }
    
    .card {
        margin-bottom: 100px;
    }
    
    .hero img {
        width: 600px;
        height: 600px;
    }
    
    .hero h1 {
        font-size: 36px;
        letter-spacing: 48px;
    }
    
    .hero h2 {
        font-size: 24px;
        letter-spacing: 42px;
    }
    
    .footer {
        padding: 50px 150px;
    }
}

@media (min-width: 769px) and (max-width: 1920px) {
    .grid {
        column-count: 2;
        column-gap: 80px;
        padding: 80px 100px;
    }
    
    .card {
        margin-bottom: 80px;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .hero img {
        width: 360px;
        height: auto;
    }
    
    .hero h1 {
        font-size: 20px;
        letter-spacing: 16px;
    }
    
    .hero h2 {
        font-size: 14px;
        letter-spacing: 12px;
    }
    
    .archive-header {
        padding: 30px 40px 0;
    }
    
    .grid {
        column-gap: 40px;
        padding: 60px 40px;
    }
    
    .card {
        margin-bottom: 50px;
    }
    
    .footer {
        padding: 30px 40px;
    }
    
    .gallery-img {
        max-width: 75%;
        max-height: 75%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 15px;
    }
    
    .hero img {
        width: 100%;
        max-width: 320px;
        height: auto;
    }
    
    .hero h1 {
        font-size: 14px;
        letter-spacing: 6px;
    }
    
    .hero h2 {
        font-size: 11px;
        letter-spacing: 4px;
    }
    
    .archive-header {
        padding: 20px;
        gap: 10px;
    }
    
    .archive-title {
        font-size: 9px;
        letter-spacing: 1px;
    }
    
    .grid {
        column-count: 1;
        padding: 30px 15px;
        column-gap: 0;
    }
    
    .card {
        margin-bottom: 30px;
    }
    
    .footer {
        flex-direction: column;
        gap: 15px;
        padding: 25px 15px;
        text-align: center;
    }
    
    .footer-left {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .gallery-img {
        max-width: 95%;
        max-height: 95%;
    }
    
    .gallery-nav {
        font-size: 28px;
        padding: 14px 16px;
    }
    
    .gallery-nav.prev {
        left: 10px;
    }
    
    .gallery-nav.next {
        right: 10px;
    }
    
    .player {
        font-size: 9px;
    }
    
    .win98-window {
        width: 90%;
        max-width: 320px;
    }
    
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-window {
        max-width: 100%;
    }
    
    .admin-table {
        font-size: 10px;
    }
    
    .admin-table td,
    .admin-table th {
        padding: 3px 4px;
    }
    
    .admin-table-actions a,
    .admin-table-actions button {
        padding: 2px 6px;
        font-size: 9px;
    }
    
    .admin-body {
        padding: 10px;
    }
    
    .admin-content {
        padding: 8px 10px;
    }
    
    .login-window {
        width: 90%;
        max-width: 340px;
    }
}

/* ===================== */
/* PROGRESS BAR */
/* ===================== */

.progress-bar {
    width: 200px;
    height: 16px;
    border: 1px solid #000;
    background: #fff;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #000080;
}



/* ===================== */
/* LOGIN V2 */
/* ===================== */

.login-body{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#121212;
    padding:30px;
}

.login-window{
    width:380px;
    animation:loginAppear .25s ease;
}

@keyframes loginAppear{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:none;
    }
}

.login-body-padding{
    padding:18px;
}

.login-logo{
    display:flex;
    justify-content:center;
    margin-bottom:16px;
}

.login-logo img{
    width:64px;
    height:64px;
    image-rendering:auto;
}

.login-title{
    text-align:center;
    font-weight:bold;
    margin-bottom:4px;
    font-size:13px;
}

.login-subtitle{
    text-align:center;
    color:#555;
    margin-bottom:18px;
    font-size:11px;
}

.login-body-padding form{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.login-body-padding label{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.login-body-padding input[type=text],
.login-body-padding input[type=password]{

    background:white;

    border-top:2px solid #404040;
    border-left:2px solid #404040;
    border-right:2px solid white;
    border-bottom:2px solid white;

    padding:5px 6px;

    font-size:11px;
}

.login-body-padding input:focus{

    outline:none;

    border-top:2px solid #000080;
    border-left:2px solid #000080;
}

.login-checkbox{

    flex-direction:row!important;
    align-items:center;
    gap:8px;

    cursor:pointer;

    user-select:none;
}

.login-buttons{

    display:flex;

    justify-content:flex-end;

    gap:8px;

    margin-top:6px;
}

.login-error{

    background:#ffdede;

    border:1px solid #d40000;

    color:#b00000;

    padding:8px;

    text-align:center;

    animation:shake .25s;
}

@keyframes shake{

0%{transform:translateX(0);}
25%{transform:translateX(-4px);}
50%{transform:translateX(4px);}
75%{transform:translateX(-4px);}
100%{transform:none;}

}

.login-buttons .win98-btn{

    min-width:90px;

}

.login-body input::placeholder{

    color:#888;

}
