:root {
    --bg: #050505;
    --panel: #0d0d0d;
    --card: #0d0d14;
    --line: #1f1010;
    --red: #ff1a1a;
    --red2: #cc0000;
    --glow: rgba(255, 26, 26, 0.5);
    --soft: rgba(255, 26, 26, 0.08);
    --text: #ece8e8;
    --dim: #6e5858;
    --muted: #333;
}

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

html { height: 100%; }

html {
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

.fc-scroll {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 5px;
    z-index: 9000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.fc-scroll.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.fc-scroll-track {
    position: absolute;
    inset: 0;
    background: rgba(8, 5, 5, 0.85);
    border: none;
    border-left: 1px solid rgba(31, 16, 16, 0.8);
    cursor: pointer;
}

.fc-scroll-thumb {
    position: absolute;
    left: 0;
    width: 100%;
    min-height: 24px;
    background: linear-gradient(180deg, var(--red2) 0%, var(--red) 50%, #e62222 100%);
    border: none;
    box-shadow: 0 0 6px rgba(255, 26, 26, 0.3);
    cursor: grab;
    box-sizing: border-box;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.fc-scroll-thumb:hover {
    background: linear-gradient(180deg, #990000 0%, #bb1010 50%, #991111 100%);
    box-shadow: 0 0 4px rgba(255, 26, 26, 0.18);
}

.fc-scroll-thumb:active,
.fc-scroll-thumb.is-dragging {
    cursor: grabbing;
    background: linear-gradient(180deg, #770000 0%, #990a0a 50%, #880808 100%);
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Consolas', 'Courier New', monospace;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 20px;
}

.preloader {
    position: fixed;
    inset: 0;
    background: #050505;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: preloaderSpin 8s linear infinite;
}

.preloader-ring {
    width: 160px;
    height: 160px;
    border-top: 2px solid rgba(255, 26, 26, 0.4);
    border-right: 2px solid rgba(255, 26, 26, 0.1);
    border-bottom: 2px solid rgba(255, 26, 26, 0.05);
    border-left: 2px solid rgba(255, 26, 26, 0.3);
    animation-duration: 8s;
}

.preloader-ring.ring-2 {
    width: 120px;
    height: 120px;
    border-top: 2px solid rgba(255, 26, 26, 0.15);
    border-right: 2px solid rgba(255, 26, 26, 0.35);
    border-bottom: 2px solid rgba(255, 26, 26, 0.1);
    border-left: 2px solid rgba(255, 26, 26, 0.2);
    animation-direction: reverse;
    animation-duration: 6s;
}

.preloader-ring.ring-3 {
    width: 80px;
    height: 80px;
    border-top: 2px solid rgba(255, 26, 26, 0.5);
    border-right: 2px solid rgba(255, 26, 26, 0.05);
    border-bottom: 2px solid rgba(255, 26, 26, 0.25);
    border-left: 2px solid rgba(255, 26, 26, 0.1);
    animation-duration: 4s;
}

@keyframes preloaderSpin {
    to { transform: rotate(360deg); }
}

.preloader-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff1a1a, #cc0000);
    box-shadow: 0 0 40px rgba(255, 26, 26, 0.4);
    z-index: 2;
    animation: preloaderCore 2s ease-in-out infinite;
}

@keyframes preloaderCore {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 26, 26, 0.3), 0 0 60px rgba(255, 26, 26, 0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 60px rgba(255, 26, 26, 0.5), 0 0 120px rgba(255, 26, 26, 0.2);
        transform: scale(1.08);
    }
}

.preloader-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preloader-brand {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff1a1a, #ff4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: brandPulse 1.5s ease-in-out infinite;
}

.preloader-sub {
    font-size: 0.55rem;
    color: var(--dim);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    animation: subBlink 1.5s step-end infinite;
}

@keyframes brandPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes subBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.bg-grid {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(255,26,26,0.06) 0%, transparent 70%),
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,26,26,0.015) 40px, rgba(255,26,26,0.015) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,26,26,0.015) 40px, rgba(255,26,26,0.015) 41px);
    pointer-events: none;
    z-index: 0;
}

.bg-scanline {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 26, 26, 0.015) 2px,
        rgba(255, 26, 26, 0.015) 4px
    );
    pointer-events: none;
    z-index: 1;
    animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.bg-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--red);
    animation: particleDrift var(--dur, 5s) ease-in-out infinite;
    opacity: 0;
    left: var(--x, 50%);
    top: var(--y, 50%);
    animation-delay: var(--delay, 0s);
}

@keyframes particleDrift {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    20% { opacity: 0.7; }
    80% { opacity: 0.7; }
    100% { transform: translateY(calc(-1 * var(--dist, 60px))) scale(1); opacity: 0; }
}

.reactor {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 700px;
    height: 700px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
}

.reactor-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,26,26,0.08);
    border-radius: 50%;
    animation: spin 35s linear infinite;
}

.reactor-ring:nth-child(2) {
    inset: 70px;
    animation-direction: reverse;
    animation-duration: 22s;
    border-color: rgba(255,26,26,0.12);
}

.reactor-ring:nth-child(3) {
    inset: 140px;
    animation-duration: 16s;
    border-color: rgba(255,26,26,0.06);
}

.reactor-core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 100px var(--glow), 0 0 200px rgba(255,26,26,0.15);
    animation: corePulse 4s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes corePulse {
    0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%,-50%) scale(1.3); opacity: 1; }
}

.dashboard {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    align-items: start;
}

.profile-col {
    position: sticky;
    top: 20px;
}

.profile-card {
    background: rgba(13, 13, 13, 0.9);
    border: 1px solid var(--line);
    backdrop-filter: blur(12px);
    padding: 32px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: cardAppear 0.8s ease;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

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

.avatar-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: avatarSpin 10s linear infinite;
    border-top: 2px solid rgba(255, 26, 26, 0.5);
    border-right: 2px solid rgba(255, 26, 26, 0.1);
    border-bottom: 2px solid rgba(255, 26, 26, 0.05);
    border-left: 2px solid rgba(255, 26, 26, 0.3);
}

.avatar-ring.ring-2 {
    width: 100px;
    height: 100px;
    border-top: 2px solid rgba(255, 26, 26, 0.15);
    border-right: 2px solid rgba(255, 26, 26, 0.4);
    border-bottom: 2px solid rgba(255, 26, 26, 0.1);
    border-left: 2px solid rgba(255, 26, 26, 0.2);
    animation-direction: reverse;
    animation-duration: 7s;
}

.avatar-ring.ring-3 {
    width: 80px;
    height: 80px;
    border-top: 2px solid rgba(255, 26, 26, 0.35);
    border-right: 2px solid rgba(255, 26, 26, 0.05);
    border-bottom: 2px solid rgba(255, 26, 26, 0.2);
    border-left: 2px solid rgba(255, 26, 26, 0.1);
    animation-duration: 5s;
}

@keyframes avatarSpin { to { transform: rotate(360deg); } }

.avatar-placeholder {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(255, 26, 26, 0.3);
    z-index: 2;
    animation: avatarPulse 3s ease-in-out infinite;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes avatarPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 26, 26, 0.2); }
    50% { box-shadow: 0 0 60px rgba(255, 26, 26, 0.5); }
}

.profile-name {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.gradient-text {
    background: linear-gradient(135deg, #ff1a1a, #ff4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent {
    color: var(--text);
}

.profile-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 8px var(--red);
    animation: dotBlink 2s infinite;
}

.status-dot.busy {
    background: #ff4444;
    box-shadow: 0 0 10px #ff4444;
}

@keyframes dotBlink {
    50% { opacity: 0.3; }
}

.status-text {
    font-size: 0.6rem;
    color: var(--dim);
    letter-spacing: 0.25em;
}

.profile-status-link {
    display: block;
    text-align: center;
    margin: -12px 0 20px;
    font-size: 0.55rem;
    letter-spacing: 0.14em;
    color: var(--dim);
    text-decoration: none;
}

.profile-status-link:hover {
    color: var(--red);
}

.bio-section {
    text-align: left;
    margin-bottom: 24px;
}

.bio-header {
    font-size: 0.55rem;
    color: var(--red);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    font-weight: 700;
}

.bio-content {
    background: rgba(0, 0, 0, 0.3);
    border-left: 2px solid var(--red);
    padding: 14px 16px;
    min-height: 70px;
}

.bio-text {
    font-size: 0.78rem;
    color: var(--text);
    line-height: 1.7;
    white-space: pre-wrap;
}

.bio-placeholder {
    font-size: 0.75rem;
    color: var(--dim);
    font-style: italic;
    margin-bottom: 4px;
}

.bio-placeholder-sub {
    font-size: 0.6rem;
    color: #333;
}

.socials-section {
    text-align: left;
    margin-top: 24px;
}

.socials-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-left: 2px solid var(--red);
    transition: border-color 0.3s, background 0.3s;
}

a.social-item--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.social-item--link:hover .social-name,
a.social-item--link:hover .social-nick {
    color: var(--red, #ff1a1a);
}

.social-item:hover {
    border-color: #ff6666;
    background: rgba(255, 26, 26, 0.05);
}

.social-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.social-name {
    font-size: 0.65rem;
    color: var(--dim);
    letter-spacing: 0.1em;
    min-width: 48px;
    flex-shrink: 0;
}

.social-nick {
    font-size: 0.75rem;
    color: var(--text);
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-left: auto;
}

.radio-section {
    text-align: left;
}

.radio-dock {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 200;
    width: min(340px, calc(100vw - 32px));
    margin: 0;
    padding: 10px 12px 12px;
    background: rgba(13, 13, 13, 0.94);
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
    box-shadow:
        0 0 0 1px rgba(255, 26, 26, 0.04),
        0 12px 40px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(255, 26, 26, 0.06);
    animation: cardAppear 0.8s ease;
    transition: width 0.28s ease, padding 0.28s ease;
}

.radio-dock::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    animation: scanLine 3s ease-in-out infinite;
}

.radio-dock-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
}

.radio-dock-title {
    margin: 0;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.radio-dock-mini-song {
    display: none;
    flex: 1;
    min-width: 0;
    font-size: 0.58rem;
    color: var(--dim);
    letter-spacing: 0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.radio-toggle-btn {
    margin-left: auto;
    flex-shrink: 0;
    padding: 4px 8px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--dim);
    font-family: inherit;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.25s;
    line-height: 1.2;
}

.radio-toggle-btn:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--soft);
}

.radio-dock-body {
    margin-top: 10px;
    overflow: hidden;
    max-height: 480px;
    opacity: 1;
    transition: max-height 0.32s ease, opacity 0.22s ease, margin 0.28s ease;
}

.radio-dock.is-collapsed {
    width: min(280px, calc(100vw - 32px));
    padding: 8px 10px;
}

.radio-dock.is-collapsed .radio-dock-body {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;

    visibility: hidden;
}

.radio-dock.is-collapsed .radio-dock-mini-song {
    display: block;
}

.radio-card {
    background: rgba(0, 0, 0, 0.3);
    border-left: 2px solid var(--red);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-meta {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.radio-cover {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background-color: rgba(255, 26, 26, 0.06);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--line);
}

.radio-meta-text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radio-stream {
    font-size: 0.55rem;
    color: var(--red);
    letter-spacing: 0.15em;
    font-weight: 700;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.radio-song {
    font-size: 0.72rem;
    color: var(--text);
    line-height: 1.4;
    word-break: break-word;
    min-height: 1.4em;
}

.radio-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.55rem;
    color: var(--dim);
    letter-spacing: 0.08em;
    margin-top: 2px;
}

.radio-online {
    color: #3dff6e;
    text-shadow: 0 0 8px rgba(61, 255, 110, 0.35);
}

.radio-offline {
    color: var(--red);
}

.radio-kbps {
    color: var(--dim);
    opacity: 0.85;
}

.radio-player-wrap {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.radio-player-wrap #my_player.my_player,
.radio-player-wrap .my_player {
    width: 100% !important;
    max-width: 100%;
    display: block !important;
}

.fc-player {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: rgba(5, 5, 5, 0.85);
    border: 1px solid var(--line);
    position: relative;
    box-sizing: border-box;
}

.fc-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0.7;
}

.fc-play {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    background: rgba(255, 26, 26, 0.06);
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    user-select: none;
}

.fc-play:hover {
    border-color: var(--red);
    background: rgba(255, 26, 26, 0.12);
    box-shadow: 0 0 16px rgba(255, 26, 26, 0.15);
}

.fc-play:active {
    transform: scale(0.96);
}

.fc-play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent var(--red);
    transition: opacity 0.15s;
}

.fc-play.my_playing::before {
    content: '';
    width: 10px;
    height: 12px;
    border: none;
    border-left: 3px solid var(--red);
    border-right: 3px solid var(--red);
    background: transparent;
    left: 50%;
    box-sizing: border-box;
}

.fc-play.my_playing {
    border-color: var(--red);
    box-shadow: 0 0 14px rgba(255, 26, 26, 0.2);
    background: rgba(255, 26, 26, 0.1);
}

.fc-player-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fc-player-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-height: 14px;
}

.fc-timer {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.12em;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.fc-loading {
    font-size: 0.5rem;
    color: var(--dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-vol-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.fc-vol-label {
    font-size: 0.5rem;
    color: var(--red);
    letter-spacing: 0.15em;
    font-weight: 700;
    flex-shrink: 0;
    user-select: none;
}

.fc-vol {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    cursor: grab;
    user-select: none;
    overflow: visible;
    transition: border-color 0.2s, box-shadow 0.2s;
    touch-action: none;
}

.fc-vol:hover {
    border-color: rgba(255, 26, 26, 0.45);
    box-shadow: 0 0 12px rgba(255, 26, 26, 0.08);
}

.fc-vol:active,
.fc-vol.is-dragging {
    border-color: var(--red);
    cursor: grabbing;
}

.fc-vol-fill {
    height: 100%;
    width: 10%;
    max-width: 100%;
    background: linear-gradient(90deg, var(--red2), var(--red));
    box-shadow: 0 0 12px rgba(255, 26, 26, 0.4);
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
}

.fc-vol-cursor,
.my_volumecursor.fc-vol-cursor,
#my_player .my_volumecursor {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px !important;
    min-width: 12px;
    height: 18px !important;
    margin-top: -9px;
    background: var(--red);
    border: 1px solid #ff6666;
    box-shadow: 0 0 10px rgba(255, 26, 26, 0.55);
    cursor: grab;
    z-index: 2;
    box-sizing: border-box;
    touch-action: none;
    pointer-events: auto;
}

#my_player .my_volume,
.fc-vol-fill {
    pointer-events: none;
}

.fc-vol-cursor:active,
.fc-vol.is-dragging .fc-vol-cursor {
    cursor: grabbing;
    background: #ff4444;
    box-shadow: 0 0 14px rgba(255, 26, 26, 0.75);
}

.fc-mute {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    user-select: none;
}

.fc-mute:hover {
    border-color: var(--red);
    background: var(--soft);
}

.fc-mute::before {
    content: '♪';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--dim);
    transition: color 0.2s;
}

.fc-mute:hover::before {
    color: var(--red);
}

.fc-mute.my_muted::before {
    content: '✕';
    color: var(--red);
    font-size: 0.65rem;
    font-weight: 700;
}

.fc-mute.my_muted {
    border-color: rgba(255, 26, 26, 0.4);
    background: rgba(255, 26, 26, 0.08);
}

.radio-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.radio-link {
    font-size: 0.55rem;
    color: var(--dim);
    text-decoration: none;
    letter-spacing: 0.12em;
    padding: 6px 10px;
    border: 1px solid var(--line);
    transition: all 0.25s ease;
}

.radio-link:hover {
    color: var(--red);
    border-color: var(--red);
    background: var(--soft);
}

.projects-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.projects-panel {
    background: rgba(13, 13, 13, 0.9);
    border: 1px solid var(--line);
    overflow: hidden;
}

.projects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
}

.projects-title {
    font-size: 0.8rem;
    color: var(--red);
    letter-spacing: 0.25em;
    font-weight: 700;
}

.projects-header .visits-badge {
    order: 0;
    margin-left: auto;
    flex-shrink: 0;
}

.projects-filter {
    display: flex;
    gap: 4px;
}

.filter-btn {
    padding: 6px 16px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--dim);
    font-family: inherit;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: rgba(255,26,26,0.3);
    color: var(--text);
}

.filter-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: #000;
    font-weight: 700;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-card {
    background: transparent;
    border: none;
    border-top: 1px solid transparent;
    padding: 20px;
    transition: all 0.3s;
    animation: cardSlide 0.4s ease backwards;
    width: 100%;
    box-sizing: border-box;
}

.project-card:first-child {
    border-top: none;
}

.project-card:hover {
    border-color: transparent;
    background: rgba(255, 26, 26, 0.04);
    box-shadow: none;
}

a.project-card--link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.project-card--link:hover .project-name {
    color: var(--red, #ff1a1a);
}

.project-card--empty {
    border: none;
    background: transparent;
}

.project-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px;
    flex-wrap: wrap;
}

.project-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.05em;
}

.project-badge {
    font-size: 0.5rem;
    padding: 3px 10px;
    background: var(--soft);
    border: 1px solid rgba(255,26,26,0.15);
    color: var(--red);
    letter-spacing: 0.12em;
    font-weight: 600;
}

.project-desc {
    font-size: 0.75rem;
    color: var(--dim);
    line-height: 1.7;
    margin-bottom: 12px;
}

.project-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.project-tag {
    font-size: 0.5rem;
    padding: 3px 10px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--line);
    color: var(--dim);
    letter-spacing: 0.1em;
}

.project-tag.highlight {
    color: var(--red);
    border-color: rgba(255,26,26,0.15);
    background: var(--soft);
}

@keyframes cardSlide {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.guestbook-section {
    background: rgba(13, 13, 13, 0.9);
    border: 1px solid var(--line);
    padding: 20px;
    position: relative;
}

.guestbook-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    animation: scanLine 3s ease-in-out infinite;
}

.guestbook-header-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.guestbook-header {
    font-size: 0.8rem;
    color: var(--red);
    letter-spacing: 0.25em;
    font-weight: 700;
    margin-bottom: 0;
}

.gb-auth-hint {
    font-size: 0.5rem;
    color: var(--dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.visits-badge {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.35);
}

.visits-label {
    font-size: 0.5rem;
    color: var(--red);
    letter-spacing: 0.18em;
    font-weight: 700;
}

.visits-count {
    font-size: 0.72rem;
    color: var(--text);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
    min-width: 1.5em;
    text-align: right;
}

.gb-login-panel {
    margin-bottom: 18px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 2px solid var(--red);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.gb-login-panel[hidden] {
    display: none !important;
}

.gb-login-text {
    font-size: 0.7rem;
    color: var(--text);
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.gb-login-sub {
    font-size: 0.52rem;
    color: var(--dim);
    letter-spacing: 0.12em;
}

.gb-login-sub.error {
    color: var(--red);
    line-height: 1.5;
}

.gb-google-shell {
    position: relative;
    width: 100%;
    max-width: 360px;
    min-height: 72px;
}

.gb-google-shell.is-ready:hover .gb-google-custom {
    border-color: rgba(255, 26, 26, 0.55);
    box-shadow:
        0 0 0 1px rgba(255, 26, 26, 0.08),
        0 0 28px rgba(66, 133, 244, 0.12),
        0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.gb-google-shell.is-ready:hover .gb-google-custom-glow {
    opacity: 1;
}

.gb-google-shell.is-ready:hover .gb-google-logo {
    transform: scale(1.05);
    box-shadow: 0 0 24px rgba(66, 133, 244, 0.35);
}

.gb-google-shell.is-ready:hover .gb-google-custom-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.gb-google-shell.is-ready:hover .gb-google-custom-title {
    background: linear-gradient(90deg, #fff 0%, #ffaaaa 50%, #aaccff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gb-google-shell.is-loading .gb-google-custom-title {
    opacity: 0.7;
}

.gb-google-shell.is-loading .gb-google-custom-arrow {
    animation: gbGooglePulse 0.9s ease-in-out infinite;
}

.gb-google-hitbox {
    position: absolute;
    inset: 0;
    z-index: 5;
    opacity: 0.02;
    overflow: hidden;
    cursor: pointer;
}

.gb-google-hitbox > div {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
}

.gb-google-hitbox iframe,
.gb-google-hitbox [role="button"],
.gb-google-hitbox div[role="button"] {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 72px !important;
    max-width: none !important;
}

.gb-google-custom {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(20, 12, 12, 0.95) 0%, rgba(8, 8, 10, 0.98) 50%, rgba(14, 10, 18, 0.95) 100%);
    color: var(--text);
    font-family: inherit;
    overflow: hidden;
    isolation: isolate;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.2s ease;
    text-align: left;
    pointer-events: none;
    user-select: none;
}

.gb-google-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4285F4, #EA4335, #FBBC05, #34A853, transparent);
    opacity: 0.85;
    z-index: 2;
}

.gb-google-custom::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 26, 26, 0.02) 2px,
            rgba(255, 26, 26, 0.02) 4px
        );
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.gb-google-custom-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 50%, rgba(66, 133, 244, 0.12), transparent 45%),
                radial-gradient(circle at 70% 50%, rgba(255, 26, 26, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
    pointer-events: none;
}

.gb-google-custom-inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}

.gb-google-logo {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(66, 133, 244, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gb-google-logo svg {
    display: block;
}

.gb-google-custom-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gb-google-custom-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text);
    line-height: 1.2;
}

.gb-google-custom-sub {
    font-size: 0.48rem;
    letter-spacing: 0.18em;
    color: var(--dim);
    text-transform: uppercase;
}

.gb-google-custom-arrow {
    flex-shrink: 0;
    font-size: 0.9rem;
    color: var(--red);
    opacity: 0.55;
    transition: transform 0.25s ease, opacity 0.25s ease;
    font-weight: 700;
}

.gb-google-shell:not(.is-ready) {
    opacity: 0.5;
}

.gb-google-shell:not(.is-ready) .gb-google-hitbox {
    pointer-events: none;
}

@keyframes gbGooglePulse {
    0%, 100% { opacity: 0.3; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(4px); }
}

@media (max-width: 520px) {
    .gb-google-custom {
        max-width: 100%;
    }

    .gb-google-custom-inner {
        padding: 12px 12px;
        gap: 10px;
    }

    .gb-google-logo {
        width: 36px;
        height: 36px;
    }

    .gb-google-custom-title {
        font-size: 0.75rem;
    }
}

.guestbook-form {
    margin-bottom: 18px;
}

.guestbook-form[hidden] {
    display: none !important;
}

.gb-user-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.25);
    border-left: 2px solid var(--red);
}

.gb-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.gb-user-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gb-user-nick {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.08em;
}

.gb-user-email {
    font-size: 0.52rem;
    color: var(--dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gb-user-lock {
    font-size: 0.48rem;
    color: var(--dim);
    letter-spacing: 0.1em;
}

.gb-user-lock.locked {
    color: #3dff6e;
    text-shadow: 0 0 8px rgba(61, 255, 110, 0.25);
}

.gb-logout-btn {
    flex-shrink: 0;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--dim);
    font-family: inherit;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.25s;
}

.gb-logout-btn:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--soft);
}

.gb-nick-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.gb-nick-row[hidden] {
    display: none !important;
}

.gb-nick-btn {
    width: auto;
    min-width: 72px;
}

.gb-nick-hint {
    font-size: 0.48rem;
    color: var(--dim);
    letter-spacing: 0.1em;
    flex: 1;
    min-width: 120px;
}

.gb-row {
    display: flex;
    align-items: stretch;
    gap: 6px;
}

.gb-input-name {
    width: 140px;
    min-width: 100px;
    flex-shrink: 0;
}

.gb-verified {
    font-size: 0.55rem;
    color: #3dff6e;
    text-shadow: 0 0 6px rgba(61, 255, 110, 0.4);
    font-weight: 700;
}

.gb-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.48rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #050505;
    background: linear-gradient(135deg, #ff1a1a 0%, #ff4444 50%, #cc0000 100%);
    border: 1px solid #ff6666;
    padding: 2px 7px 2px 6px;
    box-shadow: 0 0 12px rgba(255, 26, 26, 0.45);
    text-shadow: none;
    line-height: 1.3;
    flex-shrink: 0;
    vertical-align: middle;
}

.gb-admin-badge::before {
    content: '◆';
    font-size: 0.45rem;
    color: #050505;
    opacity: 0.85;
}

.gb-message.is-admin-msg {
    border-left-color: #ff1a1a;
    background: linear-gradient(90deg, rgba(255, 26, 26, 0.08) 0%, rgba(0, 0, 0, 0.2) 40%);
    box-shadow: inset 0 0 20px rgba(255, 26, 26, 0.04);
}

.gb-message.is-admin-msg .gb-msg-name {
    color: #ff4444;
}

.gb-auth-hint.is-admin {
    color: var(--red);
}

.gb-user-lock.is-admin {
    color: var(--red);
    text-shadow: 0 0 8px rgba(255, 26, 26, 0.25);
}

.gb-del-btn {
    flex-shrink: 0;
    margin-left: 4px;
    padding: 2px 8px;
    background: transparent;
    border: 1px solid rgba(255, 26, 26, 0.35);
    color: var(--red);
    font-family: inherit;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.gb-del-btn:hover {
    background: rgba(255, 26, 26, 0.12);
    border-color: var(--red);
    box-shadow: 0 0 12px rgba(255, 26, 26, 0.2);
}

.gb-msg-header .gb-msg-date {
    margin-left: auto;
}

.gb-msg-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.gb-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--line);
    color: var(--dim);
    font-family: inherit;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.gb-like-btn:hover {
    border-color: rgba(255, 26, 26, 0.5);
    color: var(--red);
    background: rgba(255, 26, 26, 0.06);
}

.gb-like-btn.is-liked {
    border-color: rgba(255, 26, 26, 0.55);
    color: var(--red);
    background: rgba(255, 26, 26, 0.1);
    box-shadow: 0 0 12px rgba(255, 26, 26, 0.15);
}

.gb-like-icon {
    font-size: 0.85rem;
    line-height: 1;
}

.gb-like-count {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    min-width: 0.8em;
}

.project-card--empty {
    text-align: center;
    padding: 32px;
    color: var(--dim);
}
.project-empty-msg {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
}

.fx-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.fx-overlay.is-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}
.fx-reload {
    gap: 20px;
    animation: panicFlash 0.6s ease;
}
.fx-reload-title {
    color: #ff1a1a;
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    font-weight: 700;
}
.fx-reload-track {
    width: 120px;
    height: 2px;
    background: rgba(255, 26, 26, 0.2);
    overflow: hidden;
}
.fx-reload-bar {
    height: 100%;
    width: 0%;
    background: #ff1a1a;
    animation: reloadBar 0.8s ease forwards;
}
.fx-panic {
    gap: 16px;
    animation: panicIn 0.15s ease;
}
.fx-panic-title {
    color: #ff1a1a;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    animation: panicText 0.1s infinite;
}
.fx-panic-sub {
    color: #6e5858;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
}
@keyframes panicFlash {
    0% { opacity: 0; }
    30% { opacity: 1; }
    70% { opacity: 0.3; }
    100% { opacity: 1; }
}
@keyframes reloadBar {
    to { width: 100%; }
}
@keyframes panicIn {
    from { opacity: 0; transform: scale(1.1); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes panicText {
    0% { opacity: 1; transform: translateX(0); }
    25% { opacity: 0.8; transform: translateX(-4px); }
    50% { opacity: 1; transform: translateX(2px); }
    75% { opacity: 0.9; transform: translateX(-2px); }
    100% { opacity: 1; transform: translateX(0); }
}

.ctx-notification {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
    background: rgba(5, 5, 5, 0.96);
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    padding: 12px 20px;
    color: var(--text);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    box-shadow: 0 0 28px rgba(255, 26, 26, 0.1);
    pointer-events: none;
    white-space: nowrap;
    max-width: min(92vw, 520px);
    overflow: hidden;
    text-overflow: ellipsis;
    animation: notifSlide 0.3s ease, notifFade 0.5s ease 2.5s forwards;
}

.ctx-notification.is-error {
    pointer-events: auto;
    white-space: normal;
    line-height: 1.45;
    font-size: 0.85rem;
    padding: 14px 32px 14px 16px;
    max-width: min(92vw, 560px);
}

.ctx-notification.is-error.is-sticky {
    animation: notifSlide 0.3s ease;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.ctx-notification-msg {
    flex: 1 1 auto;
    min-width: 0;
}

.ctx-notification-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--dim, #6e5858);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    font-family: inherit;
}

.ctx-notification-close:hover {
    color: var(--red, #ff1a1a);
}

.ctx-notification.is-error.is-sticky {
    position: fixed;
    padding-right: 40px;
}

.g04-status-link {
    color: var(--red, #ff1a1a);
    text-decoration: none;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255, 26, 26, 0.35);
    white-space: nowrap;
    font-size: 1em;
    font-weight: 700;
}

.g04-status-link:hover {
    color: #ff4d4d;
    border-bottom-color: rgba(255, 77, 77, 0.7);
}

.gb-login-sub .g04-status-link {
    font-size: inherit;
}

@keyframes notifSlide {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes notifFade {
    to { opacity: 0; transform: translateX(-50%) translateY(-6px); }
}

.gb-input,
.gb-textarea {
    padding: 9px 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--text);
    font-family: inherit;
    font-size: 0.72rem;
    outline: none;
    transition: border-color 0.3s;
}

.gb-textarea {
    flex: 1;
    min-width: 0;
    resize: none;
    line-height: 1.5;
    overflow: hidden;
}

.gb-input:focus,
.gb-textarea:focus {
    border-color: var(--red);
}

.gb-input::placeholder,
.gb-textarea::placeholder {
    color: #333;
}

.gb-btn {
    width: 56px;
    min-width: 56px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--dim);
    font-family: inherit;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.gb-btn:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--soft);
}

.guestbook-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gb-message {
    border-left: 2px solid var(--red);
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.2);
    animation: msgSlide 0.4s ease;
}

@keyframes msgSlide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.gb-msg-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    gap: 10px;
    flex-wrap: wrap;
}

.gb-msg-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.1em;
}

.gb-msg-google {
    font-size: 0.5rem;
    color: var(--dim);
    letter-spacing: 0.06em;
    opacity: 0.9;
    border: 1px solid rgba(255, 26, 26, 0.25);
    padding: 1px 6px;
    border-radius: 2px;
}

.gb-msg-date {
    font-size: 0.5rem;
    color: var(--dim);
    letter-spacing: 0.08em;
    margin-left: auto;
    opacity: 0.85;
    font-variant-numeric: tabular-nums;
}

.gb-msg-text {
    font-size: 0.75rem;
    color: var(--text);
    line-height: 1.6;
    word-break: break-word;
}

.gb-msg-text .gb-link {
    color: #ff5555;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 26, 26, 0.35);
    word-break: break-all;
    transition: color 0.2s, border-color 0.2s, text-shadow 0.2s;
}

.gb-msg-text .gb-link:hover {
    color: #ff8888;
    border-bottom-color: var(--red);
    text-shadow: 0 0 10px rgba(255, 26, 26, 0.35);
}

.gb-empty {
    text-align: center;
    padding: 20px;
    color: var(--dim);
    font-size: 0.7rem;
    font-style: italic;
    letter-spacing: 0.1em;
}

.gb-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.gb-pagination[hidden] {
    display: none;
}

.gb-page-btn {
    padding: 6px 10px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--dim);
    font-family: inherit;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.25s;
    flex-shrink: 0;
}

.gb-page-btn:hover:not(:disabled) {
    border-color: var(--red);
    color: var(--red);
    background: var(--soft);
}

.gb-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.gb-page-nums {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.gb-page-num {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--dim);
    font-family: inherit;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gb-page-num:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--soft);
}

.gb-page-num.active {
    border-color: var(--red);
    color: var(--red);
    background: rgba(255, 26, 26, 0.08);
    box-shadow: 0 0 12px rgba(255, 26, 26, 0.1);
    cursor: default;
}

.gb-page-info {
    font-size: 0.52rem;
    color: var(--dim);
    letter-spacing: 0.12em;
    margin-left: 4px;
    white-space: nowrap;
}

.ctx-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 9998;
    display: none;
}

.ctx-overlay.active {
    display: block;
}

.ctx-menu {
    position: fixed;
    z-index: 9999;
    min-width: 240px;
    max-width: 280px;
    background: rgba(10, 10, 10, 0.97);
    border: 1px solid var(--line);
    padding: 4px 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95) translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
    box-shadow:
        0 0 30px rgba(255, 26, 26, 0.04),
        0 0 0 1px rgba(255, 26, 26, 0.06) inset;
    backdrop-filter: blur(16px);
}

.ctx-menu.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

.ctx-header {
    padding: 8px 16px 6px;
    font-size: 0.5rem;
    color: var(--dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 26, 26, 0.08);
    margin-bottom: 2px;
    font-weight: 700;
}

.ctx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.12s ease;
    position: relative;
    margin: 1px 4px;
    border-left: 2px solid transparent;
    user-select: none;
}

.ctx-item:hover {
    background: rgba(255, 26, 26, 0.06);
    border-left-color: var(--red);
}

.ctx-item:active {
    background: rgba(255, 26, 26, 0.1);
    transform: scale(0.98);
}

.ctx-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--red);
    flex-shrink: 0;
}

.ctx-label {
    flex: 1;
    font-size: 0.68rem;
    color: var(--text);
    letter-spacing: 0.08em;
    font-weight: 500;
}

.ctx-shortcut {
    font-size: 0.5rem;
    color: var(--dim);
    letter-spacing: 0.1em;
    background: rgba(255, 255, 255, 0.03);
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-weight: 600;
    opacity: 0.7;
}

.ctx-item.ctx-danger .ctx-label {
    color: #ff3333;
}

.ctx-item.ctx-danger .ctx-icon {
    color: #ff3333;
}

.ctx-item.ctx-danger .ctx-shortcut {
    color: #ff3333;
    border-color: rgba(255, 26, 26, 0.15);
    background: rgba(255, 26, 26, 0.05);
}

.ctx-item.ctx-danger:hover {
    background: rgba(255, 26, 26, 0.1);
    border-left-color: #ff3333;
}

.ctx-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 26, 26, 0.12), transparent);
    margin: 3px 16px;
}

.ctx-footer-line {
    height: 1px;
    margin: 4px 16px 0;
    background: linear-gradient(90deg, transparent, rgba(255, 26, 26, 0.06), transparent);
}

@media (max-width: 820px) {
    .dashboard {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .profile-col {
        position: static;
    }

    .reactor {
        width: 400px;
        height: 400px;
    }

    .ctx-menu {
        min-width: 200px;
        max-width: 260px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 12px;
        padding-bottom: calc(300px + env(safe-area-inset-bottom, 0px));
    }

    .radio-dock {
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        width: auto;
        max-width: none;
        z-index: 150;
    }

    .radio-dock.is-collapsed {
        right: auto;
        width: auto;
        max-width: calc(100vw - 20px);
    }

    .radio-dock-body {
        max-height: min(42vh, 320px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body:has(.radio-dock.is-collapsed) {
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }

    .gb-pagination {
        margin-bottom: 12px;
        position: relative;
        z-index: 1;
        flex-wrap: wrap;
        gap: 8px;
    }

    .gb-page-btn,
    .gb-page-num {
        min-height: 36px;
        min-width: 36px;
        padding: 8px 12px;
        font-size: 0.7rem;
    }

    .profile-card {
        padding: 24px 18px;
    }

    .avatar-wrap {
        width: 90px;
        height: 90px;
    }

    .avatar-ring {
        width: 90px;
        height: 90px;
    }

    .avatar-ring.ring-2 {
        width: 74px;
        height: 74px;
    }

    .avatar-ring.ring-3 {
        width: 58px;
        height: 58px;
    }

    .avatar-placeholder {
        width: 50px;
        height: 50px;
    }

    .profile-name {
        font-size: 1.3rem;
    }

    .projects-header {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .projects-header .visits-badge {
        order: 0;
        margin-left: auto;
    }

    .gb-row {
        flex-wrap: wrap;
    }

    .gb-input-name {
        width: 100%;
    }

    .gb-btn {
        width: auto;
        padding: 9px 16px;
    }

    .preloader-inner {
        width: 120px;
        height: 120px;
    }

    .preloader-ring {
        width: 120px;
        height: 120px;
    }

    .preloader-ring.ring-2 {
        width: 90px;
        height: 90px;
    }

    .preloader-ring.ring-3 {
        width: 60px;
        height: 60px;
    }

    .preloader-circle {
        width: 46px;
        height: 46px;
    }

    .preloader-brand {
        font-size: 1.2rem;
    }

    .ctx-menu {
        min-width: 180px;
        max-width: 240px;
    }

    .ctx-item {
        padding: 7px 12px;
    }

    .ctx-label {
        font-size: 0.63rem;
    }
}
