*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.crt {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.09) 0px,
            rgba(0, 0, 0, 0.09) 1px,
            transparent 1px,
            transparent 3px
        ),
        linear-gradient(
            90deg,
            rgba(80, 0, 200, 0.018),
            rgba(0, 60, 200, 0.01),
            rgba(80, 0, 200, 0.018)
        );
}
.crt::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.55) 100%);
}
.crt::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(120, 40, 255, 0.035) 50%,
        transparent
    );
    animation: crt-scan 8s linear infinite;
}
@keyframes crt-scan {
    0%   { top: -120px; }
    80%  { top: -120px; }
    100% { top: 100vh;  }
}

:root {
    --bg:            #04000d;
    --surface:       rgba(6, 0, 20, 0.28);
    --border:        rgba(157, 78, 221, 0.14);
    --border-accent: rgba(157, 78, 221, 0.38);
    --text:          #e8e0f5;
    --text-muted:    #9d8cb5;
    --purple:        #c77dff;
    --violet:        #9d4edd;
    --lavender:      #e0aaff;
    --sidebar-width: 280px;
    --font:          "MS UI Gothic", Verdana, sans-serif;
}

html, body {
    min-height: 100%;
    font-family: var(--font);
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.site-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 14px 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100vh;
}

.glass {
    background: rgba(5, 0, 18, 0.18);
    border: 1px solid var(--border);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 8px;
    box-shadow: 0 0 24px rgba(80, 0, 180, 0.05);
}

.site-header {
    background: rgba(5, 0, 18, 0.25);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 14px 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 0 32px rgba(100, 0, 220, 0.08);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-title {
    font-size: 1.7em;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: linear-gradient(90deg, #7b2fff 0%, #9d4edd 20%, #c77dff 45%, #e0aaff 55%, #c77dff 72%, #9d4edd 88%, #7b2fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(157, 78, 221, 0.65));
}

.clock-display {
    font-size: 0.95em;
    color: var(--purple);
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.marquee-wrap {
    overflow: hidden;
    width: 100%;
}
.marquee-track {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee-scroll 14s linear infinite;
    color: var(--text-muted);
    font-size: 0.88em;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

.radio-player {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(5, 0, 18, 0.18);
    border: 1px solid var(--border);
    backdrop-filter: blur(7px);
    border-radius: 6px;
    padding: 6px 12px;
    flex-shrink: 0;
    min-width: 0;
}
.radio-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82em;
    color: var(--text-muted);
    white-space: nowrap;
}
.radio-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
    transition: background 0.3s;
}
.radio-dot.playing {
    background: var(--purple);
    animation: radio-pulse 1.2s ease-in-out infinite;
}
@keyframes radio-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(199, 125, 255, 0.7); }
    50%       { box-shadow: 0 0 0 5px rgba(199, 125, 255, 0); }
}
.radio-name {
    font-weight: 600;
    color: var(--text);
}
.radio-btn {
    background: rgba(157, 78, 221, 0.12);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 4px;
    color: var(--purple);
    font-family: var(--font);
    font-size: 0.82em;
    padding: 3px 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.radio-btn:hover { background: rgba(157, 78, 221, 0.22); }
.crt-toggle {
    background: rgba(157, 78, 221, 0.08);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 4px;
    color: rgba(199, 125, 255, 0.6);
    font-family: var(--font);
    font-size: 0.75em;
    padding: 3px 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.crt-toggle:hover { background: rgba(157, 78, 221, 0.15); color: var(--purple); }
.crt-toggle.crt-off {
    background: rgba(60, 40, 90, 0.1);
    border-color: rgba(100, 80, 140, 0.2);
    color: rgba(100, 80, 140, 0.5);
}
.radio-vol {
    width: 60px;
    accent-color: var(--purple);
    cursor: pointer;
}
.radio-station {
    background: rgba(30, 0, 60, 0.4);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 4px;
    color: var(--text);
    font-size: 0.75em;
    padding: 2px 5px;
    cursor: pointer;
    outline: none;
}
.radio-station:hover {
    border-color: rgba(157, 78, 221, 0.45);
}

.site-nav {
    background: rgba(5, 0, 18, 0.20);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
}
.nav-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 7px 14px;
}
.nav-inner a {
    color: var(--text-muted) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.83em;
    padding: 5px 14px;
    border-radius: 20px;
    transition: color 0.15s, background 0.15s;
    letter-spacing: 0.03em;
}
.nav-inner a:hover,
.nav-inner a.active {
    color: var(--lavender) !important;
    background: rgba(157, 78, 221, 0.18);
}
.nav-shop {
    margin-left: auto;
    color: var(--lavender) !important;
    border: 1px solid rgba(224, 170, 255, 0.22) !important;
    background: rgba(157, 78, 221, 0.10) !important;
}
.nav-shop:hover {
    color: #fff !important;
    background: rgba(157, 78, 221, 0.24) !important;
    border-color: rgba(224, 170, 255, 0.45) !important;
}

.layout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex: 1;
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 22px 26px;
    line-height: 1.75;
}
.main-content h1 {
    color: var(--purple);
    font-size: 1.3em;
    border-bottom: 1px solid var(--border-accent);
    padding-bottom: 0.3em;
    margin-bottom: 0.6em;
    margin-top: 1.2em;
}
.main-content h1:first-child { margin-top: 0; }
.main-content h2 {
    color: var(--purple);
    font-size: 1.1em;
    border-bottom: 1px solid var(--border-accent);
    padding-bottom: 0.2em;
    margin-bottom: 0.5em;
    margin-top: 1em;
}
.main-content h2:first-child { margin-top: 0; }
.main-content a {
    color: var(--lavender) !important;
    text-decoration: underline dotted;
    text-underline-offset: 2px;
}
.main-content a:hover { color: var(--purple) !important; text-decoration: underline; }
.main-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.2em 0;
}
.main-content ul, .main-content ol { padding-left: 1.5em; }
.main-content p { margin-bottom: 0.5em; }

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-card {
    background: rgba(5, 0, 18, 0.20);
    border: 1px solid var(--border);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(80, 0, 180, 0.04);
}
.sidebar-card.gf-card {
    border-color: rgba(199, 125, 255, 0.32);
}
.card-header {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.2), rgba(80, 0, 180, 0.08));
    border-bottom: 1px solid var(--border);
    padding: 5px 12px;
    font-weight: 700;
    font-size: 0.78em;
    letter-spacing: 0.08em;
    color: var(--purple);
    text-transform: lowercase;
}
.gf-card .card-header {
    color: var(--lavender);
    background: linear-gradient(135deg, rgba(199, 125, 255, 0.2), rgba(157, 78, 221, 0.08));
}
.card-body {
    padding: 10px 12px;
    font-size: 0.87em;
}

.stat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.stat-list li {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    gap: 8px;
}
.stat-list li span:first-child {
    font-weight: 600;
    color: var(--text);
    flex-shrink: 0;
}

.status-text {
    text-align: center;
    margin-bottom: 10px;
    font-size: 0.95em;
    color: var(--text-muted);
}
#text-status {
    font-size: 1.7em;
    font-weight: 700;
    display: block;
    line-height: 1.2;
    margin-top: 2px;
}
.activity-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(5, 0, 18, 0.30);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 6px;
    font-size: 0.85em;
    word-break: break-word;
}
.activity-box img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    flex-shrink: 0;
    object-fit: cover;
}
.activity-icon {
    font-size: 1.8em;
    flex-shrink: 0;
}
.act-elapsed {
    font-size: 0.78em;
    opacity: 0.45;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}
.last-listened {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82em;
    color: var(--text-muted);
}
.last-listened img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    opacity: 0.75;
}
.last-listened-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}
.ll-label { font-size: 0.8em; opacity: 0.6; margin-bottom: 1px; }
.ll-title { font-weight: 600; color: var(--text); font-size: 0.92em; }
.ll-ago   { opacity: 0.55; font-size: 0.82em; }
.last-game {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82em;
    color: var(--text-muted);
}
.last-game img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    opacity: 0.75;
}

.activity-show-more {
    display: block;
    margin-top: 12px;
    padding: 5px 10px;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--purple);
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s, opacity 0.15s;
    letter-spacing: 0.03em;
}
.activity-show-more:hover {
    background: rgba(157, 78, 221, 0.2);
}

.gf-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    padding: 4px 0;
}
.gf-link img {
    image-rendering: pixelated;
    border: 1px solid rgba(199, 125, 255, 0.22);
    border-radius: 2px;
}
.gf-name {
    font-size: 0.88em;
    color: var(--lavender);
    font-weight: 600;
}

.tw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    text-align: center;
}
.tw-label {
    font-size: 0.8em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}
.tw-value { font-size: 0.95em; }

.socials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}
.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 4px;
    border-radius: 8px;
    text-decoration: none;
    background: rgba(157, 78, 221, 0.07);
    border: 1px solid rgba(157, 78, 221, 0.14);
    color: rgba(224, 170, 255, 0.7);
    font-size: 0.68em;
    transition: background 0.15s, transform 0.12s, border-color 0.15s;
}
.social-btn:hover {
    background: rgba(157, 78, 221, 0.18);
    border-color: rgba(157, 78, 221, 0.4);
    color: var(--lavender);
    transform: translateY(-2px);
    text-decoration: none;
}
.social-btn img {
    width: 22px;
    height: 22px;
    display: block;
}
.social-btn i {
    font-size: 1.4em;
    line-height: 1;
}

.project-list { margin-top: 8px; }
.project-article {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.22);
}
.project-articule-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}
.project-articul-titul {
    margin: 0;
    font-size: 1.05em;
    color: var(--purple);
}
.project-articool-date {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.82em;
    white-space: nowrap;
}
.platform-icons { list-style: none; padding: 0; margin: 0 0 4px 0; }
.platform-icons li { display: inline-block; margin-right: 4px; }

.webring-area { text-align: center; }
.webring-area > * { margin: 6px auto; }

.astral-member-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
}
.astral-member-btn {
    flex-shrink: 0;
    width: 88px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #080014;
    border: 1px solid var(--border);
    font-size: 18px;
    border-radius: 3px;
}
.astral-member-info h3 { margin: 0 0 4px; font-size: 1em; color: var(--purple); }
.astral-member-info p  { margin: 0; font-size: 0.88em; opacity: 0.8; }
.astral-sad-face { color: var(--text-muted); text-decoration: none; }

button, input[type="submit"], select {
    background: rgba(157, 78, 221, 0.12);
    border: 1px solid var(--border-accent);
    border-radius: 4px;
    color: var(--text);
    padding: 4px 12px;
    cursor: pointer;
    font-family: var(--font);
    font-size: inherit;
    transition: background 0.15s;
}
button:hover, input[type="submit"]:hover { background: rgba(157, 78, 221, 0.22); }
input, textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-family: var(--font);
    font-size: inherit;
    padding: 4px 8px;
}
textarea { min-height: fit-content; }

a { color: var(--lavender); }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(157, 78, 221, 0.42); border-radius: 3px; }
