@media (max-width: 600px) {
    #settingMiniOut {
        pointer-events: none;
        accent-color: #aaa !important;
    }
    label[for="settingMiniOut"], span[data-i18n="settings.miniOut"] {
        color: #aaa !important;
        opacity: 0.7;
    }
}
@media (max-width: 600px) {
    .contact-form-card, .contact-card {
        max-width: 99vw !important;
        width: 99vw !important;
        min-width: 0 !important;
        box-sizing: border-box;
        padding-left: 6px;
        padding-right: 6px;
    }
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}
@media (max-width: 600px) {
    .simple-footer {
        display: none !important;
    }
}
/* MOBILE: Paragrafi e descrizioni scrollabili se troppo lunghi */
@media (max-width: 600px) {
    .obs-desc,
    .obs-info p,
    .obs-info span,
    .obs-info div,
    .obs-card p,
    .obs-card .obs-screenshots,
    .profile-card p,
    .profile-card .profile-bio,
    .contact-card p,
    .contact-card .contact-bio {
        max-height: 220px;
        overflow-y: auto;
        word-break: break-word;
        white-space: pre-line;
        -webkit-overflow-scrolling: touch;
        padding-right: 2px;
    }
    .obs-info,
    .obs-card {
        max-width: 98vw;
        box-sizing: border-box;
    }
    .audio-player,
    .mini-player {
        max-width: 99vw;
        width: 99vw !important;
        min-width: 0;
        box-sizing: border-box;
    }
    /* Nascondi mini player fuori dalla home su mobile */
    body:not(.home) #miniPlayer {
        display: none !important;
    }
}
/* Zoom OBS screenshot overlay */
.obs-screenshots .fullscreenable {
    transition: box-shadow 0.18s, transform 0.18s;
    cursor: zoom-in;
}
.obs-screenshots .fullscreenable:hover {
    box-shadow: 0 6px 32px #000b, 0 2px 12px #0008;
    transform: scale(1.03);
}
.contact-row { display:flex; align-items: flex-start; justify-content: center; gap: 12px; max-width: 1100px; margin: 8px auto 20px; padding: 0 8px; }
.contact-row .contact-card { flex: 1 1 auto; margin: 0; }
.contact-row .lanyard-badge { flex: 0 0 auto; display: inline-flex; align-items: flex-start; justify-content: center; }
.contact-row .lanyard-badge img { width: auto; height: auto; max-width: 100%; max-height: 180px; border-radius: 12px; border:1px solid rgba(255,215,119,0.12); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
@media (max-width: 840px) {
        .contact-row { flex-direction: column; align-items: center; gap: 8px; }
        .contact-row .contact-card { width: 100%; }
        .contact-row .lanyard-badge { width: auto; }
            .contact-row .lanyard-badge img { max-height: 150px; }
}
.glass-radio-group.blurred {
    filter: blur(12px) brightness(0.7);
    pointer-events: none;
    transition: all 0.5s ease;
}
 
.glass-radio-group {
    --bg: rgba(15, 15, 15, 0.5);
    --text: #e5e5e5;

    display: flex;
    position: relative;
    z-index: 1200;
    margin-top: -30px;
    margin-bottom: 40px;
    background: var(--bg);
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255, 215, 119, 0.08);
    overflow: hidden;
    width: fit-content;
}

.glass-radio-group input {
    display: none;
}

.glass-radio-group label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    font-size: 14px;
    padding: 0.8rem 1.6rem;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--text);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease-in-out;
}

.glass-radio-group label:hover {
    color: white;
}

.glass-radio-group input:checked + label {
    color: #fff;
}

.glass-glider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1px;
    width: calc((100% - 2px) / 3);
    box-sizing: border-box;
    border-radius: 1rem;
    z-index: 1;
    transition:
        transform 0.3s ease-out,
        background 0.4s ease-in-out,
        box-shadow 0.4s ease-in-out;
}

 
#nav-home:checked ~ .glass-glider {
    transform: translateX(0);
    background: rgba(15, 15, 15, 0.6);
    box-shadow:
        0 0 18px rgba(255, 215, 119, 0.3),
        0 0 10px rgba(255, 215, 119, 0.2) inset;
    border: 1px solid #ffd277;
}

 
#nav-contact:checked ~ .glass-glider {
    transform: translateX(100%);
    background: rgba(15, 15, 15, 0.6);
    box-shadow:
        0 0 18px rgba(255, 215, 119, 0.3),
        0 0 10px rgba(255, 215, 119, 0.2) inset;
    border: 1px solid #ffd277;
}

 
#nav-misc:checked ~ .glass-glider {
    transform: translateX(200%);
    background: rgba(15, 15, 15, 0.6);
    box-shadow:
        0 0 18px rgba(255, 215, 119, 0.3),
        0 0 10px rgba(255, 215, 119, 0.2) inset;
    border: 1px solid #ffd277;
}
 
.background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%) scale(0.5);
    transform-origin: center;
    filter: blur(25px) brightness(0.6);
    will-change: transform;
    object-position: center;
    pointer-events: none;
    transition: filter 0.5s ease;
}

 
.sections { position: relative; }
.section { display: none; }
.section.active { display: block; }

/* Content pages inside the SPA */
.content-card { max-width: 860px; width: 92%; margin: 24px auto; background: rgba(15,15,15,0.5); border:1px solid rgba(255,215,119,0.15); color:#e5e5e5; border-radius: 16px; backdrop-filter: blur(8px); padding: 24px; box-shadow: 0 8px 28px rgba(0,0,0,0.25); text-align: center; }
.content-card { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.content-card h1 { margin: 0 0 10px; font-size: 28px; text-transform: uppercase; font-family: 'MADE Outer Sans','Poppins',sans-serif; letter-spacing: .6px; }
.content-card p { margin: 0; opacity: .9; }

/* OBS page layout */
.obs-actions { margin: 12px 0 16px; display: flex; justify-content: center; }
.obs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.obs-card { position: relative; background: rgba(15,15,15,0.5); border:1px solid rgba(255,215,119,0.12); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,0.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.obs-media { position: relative; aspect-ratio: 16/9; background: #0f0f0f; }
.obs-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.obs-media { pointer-events: auto; }
.obs-media video { cursor: pointer; }
.obs-card.placeholder .obs-media { pointer-events: none; }
.obs-placeholder { width:100%; height:100%; background: linear-gradient(180deg, #2a2a2a, #1e1e1e); display:block; }
.obs-card.placeholder .obs-title.spoiler { filter: blur(2px) grayscale(100%) brightness(0.9); }
.obs-info { padding: 10px 12px 14px; }
.obs-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; text-transform: uppercase; font-family: 'MADE Outer Sans','Poppins',sans-serif; letter-spacing: .3px; color: #e5e5e5; }
.obs-desc { margin: 0; font-size: 13px; color: rgba(229,229,229,0.8); }
/* Loading overlay */
.obs-card.loading .obs-media video { filter: grayscale(1) brightness(0.8); }
.obs-card.loading .obs-media { pointer-events: none; }
.obs-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(0,0,0,0.35); color: #e5e5e5; pointer-events: none; opacity: 1; transition: opacity .25s ease, visibility .25s ease; }
.obs-loading .obs-loading-text { font-weight: 700; letter-spacing: .4px; text-transform: uppercase; font-family: 'MADE Outer Sans','Poppins',sans-serif; }
.obs-progress { width: min(280px, 80%); height: 6px; background: rgba(255,255,255,0.15); border-radius: 999px; overflow: hidden; }
.obs-progress-bar { width: 0%; height: 100%; background: rgba(255,215,119,0.9); box-shadow: 0 0 12px rgba(255,215,119,0.45); transition: width 0.2s ease; }
.obs-progress-pct { font-size: 12px; color: rgba(229,229,229,0.85); }
.obs-card.ready .obs-loading { opacity: 0; visibility: hidden; }
@media (max-width: 980px) { .obs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .obs-grid { grid-template-columns: 1fr; } }

 
.contact-card {
    max-width: 720px;
    margin: 12px auto 24px;
    padding: 24px;
    background: rgba(15,15,15,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255,215,119,0.15);
    color: #e5e5e5;
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
.contact-card h2 { margin: 0 0 8px; font-size: 28px; }
.contact-card p { margin: 0 0 16px; opacity: 0.9; }
.contact-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top: 12px; }
.contact-note { margin-top: 16px; font-size: 13px; opacity: 0.75; }

/* Center the Discord copy button inside the contact card */
.contact-card .contact-actions { justify-content: center; }

/* Copy ID button uses neutral button style */

.contact-cta-row { display:flex; align-items:center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lanyard-badge img { display:block; max-height: 96px; border-radius: 10px; border:1px solid rgba(255,215,119,0.12); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
@media (max-width: 640px) {
    .lanyard-badge img { max-width: 100%; height: auto; }
}

.contact-heading {
    max-width: 820px;
    margin: 32px auto 8px;
    padding: 0 4px;
    color: #e5e5e5;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-align: center;
    text-transform: uppercase;
    font-family: 'MADE Outer Sans', 'Poppins', sans-serif;
}

 
.contact-form-card { max-width: 760px; margin: 12px auto 32px; padding: 16px; border-radius: 14px; background: rgba(15,15,15,0.5); border:1px solid rgba(255,215,119,0.15); color:#e5e5e5; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 28px rgba(0,0,0,0.25); }
.contact-form-card h3 { margin: 0 0 12px; font-size: 22px; }
.form-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-field { display:flex; flex-direction:column; gap:6px; }
.form-field.full { grid-column: 1 / -1; margin-top: -2px; }
.form-field label { font-size: 13px; opacity: 0.85; }
.field-header { display:flex; align-items:center; justify-content: space-between; gap: 10px; }
.char-counter { font-size: 12px; color: rgba(229,229,229,0.7); margin-left: 8px; }
.email-group { display:flex; align-items:center; gap:6px; }
.email-group input { flex: 1 1 0; padding: 8px 10px; }
.email-group .at-sep { opacity: 0.9; color: #bbb; font-weight: 700; padding: 0 2px; }
.form-field input,
.form-field select,
.form-field textarea { background: rgba(24,24,24,0.7); border:1px solid rgba(255,215,119,0.15); border-radius: 10px; padding: 10px 12px; color:#e5e5e5; outline: none; transition: border .2s, box-shadow .2s; }
.form-field textarea { resize: none; }
.form-field input::placeholder { color: rgba(255,255,255,0.6); }
.form-field select:invalid { color: rgba(255,255,255,0.6); }
.form-field select option { color: #e5e5e5; }
.form-field select option[disabled] { color: rgba(255,255,255,0.6); }

 
.form-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(24,24,24,0.7);
    border: 1px solid rgba(255,215,119,0.15);
    color: #e5e5e5;
    padding-right: 38px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%23ffd277'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}
.form-field select:hover {
    background-color: rgba(24,24,24,0.8);
}
.form-field select:focus { border-color:#ffd277; box-shadow: 0 0 0 3px rgba(255,215,119,0.2); }

/* Disabled select: gray text and chevron, muted background, no hover focus visuals */
.form-field select:disabled {
    color: rgba(220,220,220,0.6);
    background-color: rgba(24,24,24,0.5);
    border-color: rgba(255,215,119,0.08);
    cursor: not-allowed;
    opacity: 0.8;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%23888888'><path d='M7 10l5 5 5-5z'/></svg>");
}
.form-field select:disabled:hover { background-color: rgba(24,24,24,0.5); }
.form-field select:disabled:focus { box-shadow: none; border-color: rgba(255,215,119,0.08); }
 
select::-ms-expand { display: none; }

 
.form-field select option { background-color: #121214; color:#e5e5e5; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color:#ffd277; box-shadow: 0 0 0 3px rgba(255,215,119,0.2); }
.form-actions { margin-top: 12px; display:flex; gap:10px; }
.form-actions #contactCopyBtn,
.contact-card .contact-actions #copyDiscord {
    font-size: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    width: 100%;
    max-width: 320px;
}
.form-actions { justify-content: center; }
.form-hint { margin-top: 8px; font-size: 12px; opacity: .7; }

@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
    .email-group { gap:4px; }
}

.misc-grid { display:grid; grid-template-columns: repeat(3, 280px); justify-content: center; column-gap:16px; row-gap:48px; margin: 48px auto 64px; }
.misc-card { background: rgba(15,15,15,0.5); border:1px solid rgba(255,215,119,0.15); border-radius:14px; padding:16px; color:#e5e5e5; backdrop-filter: blur(8px); min-height: 220px; overflow: visible; }
.misc-card h3 { margin:0 0 6px; font-size:24px; text-transform: uppercase; font-family: 'MADE Outer Sans', 'Poppins', sans-serif; letter-spacing: 0.4px; }
.misc-card p { margin:0 0 12px; opacity:0.85; font-size:14px; }
.media-preview { border-radius:10px; overflow:hidden; margin-bottom:12px; height: 90px; }
.media-preview img { width:100%; height:100%; display:block; object-fit: cover; object-position: top center; }
.media-preview img.spoiler { filter: grayscale(100%) brightness(0.85) blur(2px); transition: filter 180ms ease; }
.hover-card-details .hover-text-title.spoiler { filter: blur(2px) grayscale(100%) brightness(0.9); transition: filter 180ms ease; }
/* Optional: lighten spoiler on hover but still obscured */
.misc-card:hover .media-preview img.spoiler { filter: grayscale(90%) brightness(0.9) blur(1.5px); }
.misc-card:hover .hover-card-details .hover-text-title.spoiler { filter: blur(1.5px) grayscale(90%) brightness(0.95); }
.actions { display:flex; gap:10px; flex-wrap:wrap; }

/* Center layout variant for misc card (used by Modfolder Pack) */
.misc-card.center { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* Make the whole misc card clickable without visual change */
.misc-card .card-link { display: block; color: inherit; text-decoration: none; }
.misc-card .card-link:focus-visible { outline: 2px solid #ffd277; outline-offset: 4px; border-radius: 14px; }
.misc-card .card-link.is-disabled { pointer-events: none; cursor: default; }

/* Responsive columns for misc grid: 3 -> 2 -> 1 */
@media (max-width: 980px) {
    .misc-grid { grid-template-columns: repeat(2, 280px); }
}
@media (max-width: 640px) {
    /* Keep a single centered column that never overflows the viewport */
    .misc-grid { grid-template-columns: min(360px, 100%); }
}

/* Hover card animation (site-themed, fits old card proportions) */
.hover-card {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 0;
    border: 0;
    background: transparent;
    transition: 0.25s ease-out;
}
.hover-card-details {
    color: #e5e5e5;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    text-align: center;
    padding: 8px;
}
.hover-card-button {
    transform: translate(-50%, 125%);
    width: 60%;
    border-radius: 12px;
    border: none;
    background-color: rgba(255,215,119,0.18);
    color: #ffd277;
    font-size: 1rem;
    padding: .5rem 1rem;
    position: absolute;
    left: 50%;
    bottom: 0;
    opacity: 0;
    transition: 0.3s ease-out;
    cursor: pointer;
    z-index: 2;
}
.hover-text-body { color: rgba(229,229,229,0.75); font-size: 14px; }
.hover-text-title { font-size: 24px; font-weight: 700; margin: 0; text-transform: uppercase; font-family: 'MADE Outer Sans', 'Poppins', sans-serif; letter-spacing: 0.4px; }

.misc-card:hover {
    border-color: #ffd277;
    box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.25);
}
/* hover-card-button removed in Misc cards */

.settings-fab {
    position: fixed;
    right: 18px;
    bottom: 110px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255,215,119,0.15);
    background: rgba(15,15,15,0.5);
    color: #e8e8e8;
    box-shadow: 0 8px 22px rgba(0,0,0,0.35);
    display: grid;
    place-items: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000; /* Below mini-player */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.settings-fab:hover { background: rgba(20,20,20,0.6); }
.settings-fab:active { transform: translateY(0); }

/* Language floating action button (above settings) */
.lang-fab {
    bottom: 164px;
}

/* Language menu styles */
.lang-menu {
    position: fixed;
    /* left/top set dynamically to center above the FAB */
    padding: 6px;
    background: rgba(15,15,15,0.55);
    border: 1px solid rgba(255,215,119,0.12);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1000; /* Below mini-player */
}
.lang-menu[aria-hidden="true"] { display: none; }
.lang-item {
    appearance: none;
    border: none;
    background: transparent;
    color: #e8e8e8;
    border-radius: 0;
    padding: 4px;
    cursor: pointer;
    font-size: 14px;
    width: 36px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lang-item:hover { background: transparent; }
/* Flag icon inside language items */
.lang-flag { display:block; width: 24px; height: 16px; object-fit: contain; border-radius: 0; box-shadow: none; }

.settings-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 60; }
.settings-modal[aria-hidden="false"] { display: flex; }
.settings-modal::before { content:""; position: absolute; inset: 0; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); background: rgba(0,0,0,0.35); }
.settings-dialog { position: relative; width: min(92vw, 480px); max-height: 80vh; overflow: auto; background: rgba(15,15,15,0.5); color:#e5e5e5; border-radius: 14px; border:1px solid rgba(255,215,119,0.15); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 12px 36px rgba(0,0,0,0.5); padding: 14px; z-index: 1; }
.settings-header { display:flex; align-items:center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.settings-header h3 { margin:0; font-size: 18px; text-transform: uppercase; letter-spacing: 0.5px; font-family: 'MADE Outer Sans', 'Poppins', sans-serif; }
.settings-close { border:none; border-radius: 10px; background: rgba(255,255,255,0.08); color:#eee; padding:6px 8px; cursor:pointer; }
.settings-close:hover { background: rgba(255,255,255,0.12); }
.settings-body { display:grid; gap: 14px; }
.setting-row { display:flex; align-items:center; gap: 10px; }
.setting-range { display:flex; align-items:center; gap: 10px; }
.setting-range input[type="range"] { flex: 1 1 auto; accent-color: #ffd277; }
.setting-val { font-size: 13px; opacity: 0.8; }

.btn-discord:hover {
    box-shadow: 0 8px 22px rgba(88,101,242,0.28);
    background: linear-gradient(180deg, #7580f6 0%, #6170f4 100%);
}
.btn-discord:active {
    transform: translateY(0);
}
.btn-discord:disabled,
.btn-discord[disabled] {
    filter: saturate(0.85) brightness(0.9);
    opacity: 0.8;
    cursor: not-allowed;
}

/* Neutral/transparent variant matching the site look */
.btn-neutral {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(20,20,20,0.5);
    color: #e8e8e8;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.btn-neutral:hover {
    background: rgba(26,26,26,0.6);
    box-shadow: 0 8px 22px rgba(0,0,0,0.3);
}
.btn-neutral:active {
    transform: translateY(0);
}
.btn-neutral:disabled,
.btn-neutral[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

 
.mini-player {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1100; /* Above settings/lang, below navbar */
    width: 150px;
    background: rgba(15, 15, 15, 0.5);
    backdrop-filter: blur(6px);
    border: 2px solid #ffd277;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: none;
    cursor: grab;
    user-select: none;
}
.mini-player.dragging { cursor: grabbing; }
.mini-cover { width: 100%; aspect-ratio: 1/1; border-radius: 8px; background-size: cover; background-position: center; border:1px solid rgba(255,215,119,0.1); }
.mini-info { margin-top: 6px; text-align:center; color:#fff; font-weight:700; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-controls { margin-top: 6px; display:flex; align-items:center; justify-content:center; gap:8px; }
.mini-btn { appearance:none; border:none; background:transparent; color:#fff; padding:6px; border-radius:50%; cursor:pointer; transition: transform 0.2s ease, color 0.2s ease; }
.mini-btn:hover { background: none !important; color: #ffd277; }
.mini-btn.disabled { color: #666; cursor: default; pointer-events: none; transform: none !important; }
.mini-btn svg { display:block; }

@media (max-width: 560px) {
        .mini-player { width: 130px; }
}

 
.album-cover,
.album-cover.small,
.mini-cover {
    background-repeat: no-repeat;
    background-size: 101% 101%;
    background-position: center center;
}

* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

html {
    zoom: reset;
    -ms-zoom: 1 !important;
    -ms-content-zooming: none;
    -max-zoom: 1;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: none;
    -webkit-touch-action: none;
    -moz-touch-action: none;
    -ms-touch-action: none;
    font-family: 'Inter', Arial, sans-serif;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Fallback background when the background video is turned off */
body.bg-off {
    background: linear-gradient(135deg, #3a1c71 0%, #d76d77 50%, #ffaf7b 100%);
}

/* Hide scrollbar UI but keep scroll functionality */
html, body { -ms-overflow-style: none; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

/* Guard against sideways scroll on narrow devices */
html, body { overflow-x: hidden; }

/* Mobile improvements for visibility and usability */
@media (max-width: 640px) {
    .profile-status-tooltip {
        max-width: 70vw;
        white-space: normal;
        word-wrap: break-word;
    }
}

/* Mobile improvements for visibility and usability */
@media (max-width: 640px) {
    html { font-size: 17px; }
    body { touch-action: auto; -webkit-touch-action: auto; padding-bottom: env(safe-area-inset-bottom); }
    .main-content { padding: 24px 0 80px 0; }

    .glass-radio-group { width: calc(100% - 16px); margin: 6px 8px 20px; border-radius: 12px; }
    .glass-radio-group label { padding: 0.9rem 0.6rem; font-size: 0.95rem; }
    .glass-glider { width: calc((100% - 2px) / 3); }

    .background-video { transform: translate(-50%, -50%) scale(1); filter: blur(22px) brightness(0.65); }

    .contact-heading { font-size: 24px; margin: 16px auto 6px; }
    .contact-form-card { margin: 8px auto 20px; padding: 12px; border-radius: 12px; }
    .form-grid { grid-template-columns: 1fr; gap: 12px; }
    .form-field input, .form-field select, .form-field textarea { padding: 12px; }
    .form-actions #contactCopyBtn,
    .contact-card .contact-actions #copyDiscord { max-width: 100%; padding: 15px; }

    .contact-row { gap: 8px; }
    .contact-card { padding: 16px; border-radius: 12px; }
    .contact-card p { font-size: 0.95rem; }
    .lanyard-badge img { max-height: 140px; }

    .profile-card { width: calc(100% - 24px); margin: 16px auto; border-radius: 12px; }
    .audio-player { width: calc(100% - 24px); }
    .audio-player.compact { width: calc(100% - 24px); }
    .album-cover.small { width: 80px; height: 80px; }

    .btn { padding: 12px 16px; }
}

/* Medium screens tweaks */
@media (max-width: 840px) and (min-width: 641px) {
    html { font-size: 16px; }
    .form-grid { gap: 12px; }
    .profile-card { width: calc(100% - 48px); }
    .audio-player { width: calc(100% - 48px); }
}

 
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -webkit-user-drag: none;
    pointer-events: none;
    user-select: none;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #181818;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid #333;
    border-radius: 50%;
    border-top-color: #ffd277;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.simple-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
    z-index: 1000;
    overflow: hidden;
}



.footer-info {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 0 1.5rem;
    max-width: 100%;
    overflow: visible;
    position: relative;
}

.footer-section {
    display: flex;
    align-items: center;
}

.footer-section.left {
    justify-content: flex-start;
}

.footer-section.center {
    justify-content: center;
    flex: 1;
    display: flex;
    align-items: center;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.footer-section.left {
    flex: 1;
    min-width: fit-content;
}

.footer-section.right {
    display: flex;
    justify-content: flex-end;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    flex: 0.8;
    margin-right: 3.5rem;
}

.copyright {
    margin: 0 auto;
    padding: 0;
    font-size: 0.85rem;
    color: #868686;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1;
    text-align: center;
    width: 100%;
}

.btn-shine {
    position: relative;
    padding: 12px 48px;
    color: #fff;
    background: linear-gradient(to right, #9f9f9f 0, #fff 10%, #868686 20%);
    background-position: -100% 0;
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 6s linear infinite;
    -webkit-text-size-adjust: none;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
    font-family: "Poppins", sans-serif;
    display: inline-block;
}

@-moz-keyframes shine {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

@-webkit-keyframes shine {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

@-o-keyframes shine {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

@keyframes shine {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

.project-link {
    color: #868686;
    text-decoration: none;
    font-size: 0.85rem;
    font-family: 'MADE Outer Sans', sans-serif;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    line-height: 1;
    white-space: nowrap;
    display: inline-block;
    transform: none;
}

.project-link:hover {
    color: #ffd277;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Ensure language menu sits above overlay when needed */
/* Keep overlay above most, but navbar remains highest via its own layer */
.lang-menu { z-index: 1000; }

.overlay-content {
    color: white;
    font-size: 24px;
    padding: 20px 40px;
    border: 2px solid #ffd277;
    border-radius: 30px;
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1000;
}

.overlay-content:hover {
    transform: scale(1.05);
    background: rgba(255, 210, 119, 0.12);
    box-shadow: 0 0 20px rgba(255, 210, 119, 0.2);
}

.main-content {
    opacity: 1;
    filter: blur(20px);
    transition: all 0.5s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0 40px 0;
    box-sizing: border-box;
    width: 100%;
    z-index: 1;
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.start-music-btn {
    background: #ffd277;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', Arial, sans-serif;
}

.start-music-btn:hover {
    background: #ffd277;
    transform: scale(1.05);
}

.profile-card {
    width: 400px;
    background-color: #222;
    border-radius: 12px;
    padding: 16px;
    box-sizing: border-box;
    margin: 18px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    position: relative;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -1.5px;
    left: -1.5px;
    right: -1.5px;
    bottom: -1.5px;
    background: linear-gradient(to right, #77530a, #ffd277, #77530a);
    border-radius: 13px;
    z-index: -1;
}

.pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: repeating-linear-gradient(
        135deg,
        #232526 0px,
        #232526 20px,
        #23252699 25px,
        #414345 45px
    );
    opacity: 0.2;
    z-index: 0;
}

.cube-svg {
    position: absolute;
    width: 150%;
    height: 150%;
    left: -25%;
    top: -25%;
    background: transparent;
    opacity: 0.5;
    z-index: 1;
    animation: cubeMove 15s linear infinite alternate;
}

@keyframes cubeMove {
    from {
        transform: translateY(0) scale(1);
    }
    to {
        transform: translateY(-20%) scale(1.02) rotate(1deg);
    }
}

.profile-container {
    position: relative;
    z-index: 2;
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    background: #333;
    position: relative;
    pointer-events: none;
    user-select: none;
}

.profile-img-container {
    position: relative;
    width: 90px;
    height: 90px;
}

.profile-img-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background-image: url('png/overlay.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
    transform: translate(-51%, -41%);
}

.profile-img-container::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #222;
    transform: translate(0, 0);
    border: 1px solid #222;
}

.profile-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #747f8d;
    z-index: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tooltip on hover for status */
.profile-status-tooltip {
    position: absolute;
    bottom: 2px; /* align vertically with the status dot */
    left: calc(100% + 8px); /* sit right next to the status dot */
    right: auto;
    background: rgba(18,18,18,0.65);
    backdrop-filter: blur(8px);
    color: #e5e5e5;
    border: 1px solid rgba(255,255,255,0.12);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 3; /* above the avatar overlay */
}
.profile-img-container:hover .profile-status-tooltip { opacity: 1; transform: translateY(0); }

 
.profile-status.online {
    background-color: #23a55a;
}

.profile-status.idle {
    background-color: transparent;
    background-image: url('png/discord_idle.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.profile-status.dnd {
    background-color: #f23f43;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-status.dnd::after {
    content: '';
    width: 12px;
    height: 4px;
    background-color: #222;
    border-radius: 2px;
}

.profile-status.offline {
    background-color: #80848e;
}

.profile-status.offline::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: #222;
    border-radius: 50%;
    border: 3px solid #80848e;
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: -10px;
}

@font-face {
    font-family: 'MADE Outer Sans';
    src: url('../fonts/MADE Outer Sans Bold PERSONAL USE.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
}

.social-icon svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 0 #fff);
    transition: filter 0.3s ease, transform 0.2s ease;
    transition: transform 0.3s ease;
}

.social-icon:hover svg {
    filter: drop-shadow(0 0 8px currentColor);
}

.social-icon.youtube {
    color: #fff;
}

.social-icon.github {
    color: #fff;
}

.social-icon.spotify {
    color: #fff;
}

.social-icon.discord {
    color: #fff;
}

.social-icon:hover.youtube {
    color: #FF3333;
}

.social-icon:hover.github {
    color: #fff;
}

.social-icon:hover.spotify {
    color: #1DB954;
}

.social-icon:hover.discord {
    color: #5865F2;
}

.social-icon:hover.twitch {
    color: #6441a5;
    background: #201a28;
}

.audio-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 370px;
    background-color: #282828;
    border-radius: 16px;
    padding: 24px 24px 16px 24px;
    box-sizing: border-box;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.album-cover {
    width: 120px;
    height: 120px;
    background-color: #222;
    border-radius: 50%;
    margin-bottom: 18px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.5);
    border: 3px solid #1db954;
}

.player-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.song-info {
    text-align: center;
    margin-bottom: 10px;
}


.audio-player.compact {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 600px;
    background: rgba(15, 15, 15, 0.5);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 12px 20px;
    box-sizing: border-box;
    margin: 20px auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    position: relative;
    border: 2px solid #ffd277;
}
.album-cover.small {
    width: 100px;
    height: 100px;
    background-color: rgba(30, 30, 30, 0.6);
    border-radius: 12px;
    margin-right: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: none;
    transition: transform 0.3s ease;
}

.album-cover.small:hover {
    transform: scale(1.05);
}

.player-controls.compact {
    flex: 1;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 10px;
}
.song-info.compact {
    margin-bottom: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.song-title {
    font-size: 16px;
    color: #fff;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.artist {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 4px 0 0 0;
    font-weight: 400;
    letter-spacing: 0.1px;
}
.progress-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 8px;
    margin: 8px 0 0 0;
}

.progress-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.progress-bar.compact {
    flex: 1;
    height: 3px;
    background-color: #444;
    border-radius: 2px;
    margin: 0 4px;
    cursor: pointer;
    position: relative;
    padding: 3px 0;
    margin: -3px 4px;
}

.progress-bar.compact::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #444;
    border-radius: 2px;
    transition: height 0.2s ease, background-color 0.2s ease;
}

.progress-bar.compact:hover::before {
    height: 3px;
    background-color: #555;
}

.progress {
    position: absolute;
    top: 3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #888;
    border-radius: 2px;
    transition: width 0.1s linear, height 0.2s ease, background-color 0.2s ease;
    will-change: width;
    transform: translateZ(0);
}

.progress::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    width: 8px;
    height: 8px;
    background-color: #888;
    border-radius: 50%;
    transform: translate(0, -50%) scale(0);
    transition: transform 0.2s ease;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    will-change: transform;
}

.progress-bar.compact:hover .progress {
    height: 4px;
    background-color: #ffd277;
}

.progress-bar.compact:hover .progress::after {
    transform: translate(0, -50%) scale(1);
    background-color: #ffd277;
}

.current-time, .duration {
    font-size: 11px;
    color: #aaa;
    min-width: 36px;
    text-align: center;
}

.buttons.compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    width: 100%;
}

.prev-btn, .next-btn, .play-btn, .pause-btn, .rewind5-btn, .forward5-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: transform 0.2s ease, color 0.2s ease;
}

.prev-btn:hover, .next-btn:hover, .play-btn:hover, .pause-btn:hover, .rewind5-btn:hover, .forward5-btn:hover {
    background: none !important;
    color: #ffd277;
}

.prev-btn.disabled {
    color: #666;
    cursor: default;
    pointer-events: none;
}

.bgblue {
    background: transparent;
    max-width: 1000px;
    width: 90%;
    margin: 20px auto;
}

.card {
    font-size: 1rem;
    color: #bec4cf;
    background: #181818;
    padding: 1.5rem;
    border-radius: 1.2rem;
    line-height: 1.6;
    border: 1px solid #ffd277;
    box-shadow: 0px 1rem 1.5rem -0.9rem #000000e1;
    max-width: 800px;
    margin: 0 auto;
}

 
.profile-name {
    max-width: 130px;
    height: auto;
    display: block;
    margin: 0 auto;
    margin-top: -15px;
    margin-bottom: 5px;
    transform: scaleX(1.4);
}

 
.volume-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.volume-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-btn:hover { background-color: rgba(255, 215, 119, 0.12); color: #ffd277; }

.volume-slider-container {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(28, 28, 28, 0.95);
    padding: 10px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    width: 100px;
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 215, 119, 0.12);
}

.volume-control:hover .volume-slider-container {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

 
.volume-slider-container:hover {
    opacity: 1;
    visibility: visible;
}

.volume-btn:hover {
    background: none !important;
    color: #ffd277;
}

.volume-slider {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, #ffd277 0%, #ffd277 50%, #444 50%, #444 100%);
    outline: none;
    transition: background 0.2s;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffd277;
    border: 2px solid #fff3;
    box-shadow: 0 1px 4px #0003;
    cursor: pointer;
    transition: all 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 8px #ffd27799;
}

.volume-slider::-moz-range-thumb {
    width: 9px;
    height: 9px;
    border: 2px solid #fff3;
    border-radius: 50%;
    background: #ffd277;
    box-shadow: 0 1px 4px #0003;
    cursor: pointer;
    transition: all 0.2s;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 8px #ffd27799;
}
