/* ================================================
   MIDNIGHT.CORRIDOR — style.css
   Aesthetic: late-night cyber-comfort
   Dark, cozy, atmospheric, chronically-online vibes
   ================================================ */

/* ========== VARIABLES ========== */
:root {
    /* Color system — dark cyber with warm comfort accents */
    --bg-deep:        #05060d;
    --bg-darker:      #0a0e1a;
    --bg-panel:       rgba(10, 14, 26, 0.92);
    --bg-panel-light: rgba(18, 24, 40, 0.85);
    --bg-card:        rgba(14, 20, 36, 0.6);

    /* Primary — soft cyan (comforting neon) */
    --primary:        #4ecdc4;
    --primary-dim:    #2a8e87;
    --primary-glow:   rgba(78, 205, 196, 0.3);

    /* Secondary — warm amber (comforting warmth) */
    --secondary:      #ffb347;
    --secondary-dim:  #c98d3a;
    --secondary-glow: rgba(255, 179, 71, 0.3);

    /* Accent — soft pink */
    --accent:         #ff6b9d;
    --accent-dim:     #c4527a;
    --accent-glow:    rgba(255, 107, 157, 0.3);

    /* Status colors */
    --success:        #6bcb77;
    --warning:        #ffd93d;
    --error:          #ff6b6b;

    /* Text */
    --text-primary:   #c8d4e8;
    --text-secondary: #7a8ba8;
    --text-dim:       #4a5878;
    --text-bright:    #e8f0ff;

    /* Borders */
    --border:         rgba(78, 205, 196, 0.15);
    --border-bright:  rgba(78, 205, 196, 0.35);

    /* Fonts */
    --font-mono:  'Share Tech Mono', 'Courier New', monospace;
    --font-pixel: 'Press Start 2P', 'Courier New', monospace;

    /* Shadows */
    --shadow-glow:    0 0 20px var(--primary-glow);
    --shadow-deep:    0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-card:    0 4px 20px rgba(0, 0, 0, 0.4);

    /* Spacing */
    --gap-xs: 4px;
    --gap-sm: 8px;
    --gap-md: 16px;
    --gap-lg: 24px;
    --gap-xl: 40px;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--primary-dim); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

::selection {
    background: var(--primary);
    color: var(--bg-deep);
}

/* ================================================
   SPLASH PAGE
   ================================================ */
.splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep);
    overflow: hidden;
}

.splash-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(78, 205, 196, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(78, 205, 196, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
}

.splash-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(78, 205, 196, 0.08), transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 107, 157, 0.06), transparent 50%);
    pointer-events: none;
}

.splash-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 520px;
    padding: var(--gap-lg);
}

/* Glitch title */
.splash-glitch h1 {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
    letter-spacing: 2px;
    margin-bottom: var(--gap-lg);
    position: relative;
}

.splash-glitch h1::before,
.splash-glitch h1::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.splash-glitch h1::before {
    color: var(--accent);
    animation: glitchA 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
}

.splash-glitch h1::after {
    color: var(--secondary);
    animation: glitchB 3s infinite;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
}

.splash-box {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--gap-md) var(--gap-lg);
    margin-bottom: var(--gap-lg);
}

.splash-loading-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-darker);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: var(--gap-sm);
}

.splash-loading-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 10px var(--primary-glow);
    transition: width 0.3s ease;
}

.splash-loading-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: left;
}

.splash-tagline {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: var(--gap-sm);
    letter-spacing: 1px;
}

.splash-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--gap-lg);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.enter-btn {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 12px 32px;
    cursor: pointer;
    letter-spacing: 2px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.enter-btn:disabled {
    border-color: var(--text-dim);
    color: var(--text-dim);
    cursor: not-allowed;
}

.enter-btn:not(:disabled):hover {
    background: var(--primary);
    color: var(--bg-deep);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.enter-btn span {
    position: relative;
    z-index: 1;
}

.splash-hint {
    margin-top: var(--gap-sm);
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* Splash exit animation */
.splash-overlay.fade-out {
    animation: splashFade 0.6s ease forwards;
}

@keyframes splashFade {
    to { opacity: 0; pointer-events: none; }
}

/* ================================================
   BLOG — MAIN LAYOUT
   ================================================ */
.blog-hidden {
    display: none;
}

#blog {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: var(--gap-lg) 0;
}

/* Background layers */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(78, 205, 196, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(78, 205, 196, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
    pointer-events: none;
}

.bg-stars {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-star {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.bg-vignette {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(78, 205, 196, 0.06), transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 107, 157, 0.05), transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 179, 71, 0.04), transparent 60%);
    pointer-events: none;
}

/* ================================================
   MAIN PANEL — center content
   ================================================ */
.main-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 780px;
    margin: 0 var(--gap-lg);
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: calc(100vh - 48px);
    overflow: hidden;
    animation: panelFadeIn 0.8s ease;
}

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================
   BLOG HEADER
   ================================================ */
.blog-header {
    text-align: center;
    padding: var(--gap-xl) var(--gap-lg) var(--gap-md);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.blog-title {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
    letter-spacing: 3px;
    margin-bottom: var(--gap-xs);
}

.blog-title::before,
.blog-title::after {
    content: attr(data-text);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.blog-title::before {
    color: var(--accent);
    animation: glitchA 5s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
    opacity: 0.7;
}

.blog-title::after {
    color: var(--secondary);
    animation: glitchB 5s infinite;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
    opacity: 0.7;
}

.blog-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: var(--gap-md);
}

/* Marquee */
.header-marquee {
    overflow: hidden;
    white-space: nowrap;
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--gap-xs) 0;
    margin-top: var(--gap-md);
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    font-size: 0.75rem;
    color: var(--secondary);
    margin-right: 40px;
}

/* ================================================
   CONTENT SECTIONS
   ================================================ */
.content-section {
    display: none;
    padding: var(--gap-lg);
    animation: sectionFade 0.4s ease;
}

.content-section.active {
    display: block;
}

@keyframes sectionFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-heading {
    font-size: 1.1rem;
    color: var(--text-bright);
    margin-bottom: var(--gap-md);
    letter-spacing: 1px;
}

.heading-bracket {
    color: var(--primary);
}

.section-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: var(--gap-lg);
}

/* ================================================
   NEWS SECTION
   ================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--gap-md);
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--gap-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    border-color: var(--border-bright);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.news-date {
    font-size: 0.7rem;
    color: var(--primary-dim);
    margin-bottom: var(--gap-xs);
}

.news-card h3 {
    font-size: 0.9rem;
    color: var(--text-bright);
    margin-bottom: var(--gap-xs);
}

.news-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.news-tag {
    display: inline-block;
    margin-top: var(--gap-sm);
    font-size: 0.65rem;
    color: var(--secondary);
    border: 1px solid var(--secondary-dim);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

/* ================================================
   MEDIA WALL — GIFs, images, videos
   ================================================ */
.media-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--gap-sm);
    margin-bottom: var(--gap-lg);
}

.media-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    aspect-ratio: 1;
    cursor: pointer;
}

.media-item:hover {
    border-color: var(--border-bright);
    box-shadow: var(--shadow-glow);
    transform: scale(1.03);
    z-index: 2;
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-item .media-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--text-primary);
    font-size: 0.65rem;
    padding: var(--gap-sm) var(--gap-xs) var(--gap-xs);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-item:hover .media-label {
    opacity: 1;
}

/* Animated placeholder tiles for GIF aesthetic */
.media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: placeholderPulse 3s ease-in-out infinite;
}

@keyframes placeholderPulse {
    0%, 100% { filter: brightness(0.8) saturate(1.2); }
    50% { filter: brightness(1.1) saturate(1.5); }
}

/* ================================================
   OBSESSED SECTION
   ================================================ */
.obsessed-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-sm);
}

.obsessed-item {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--gap-md);
    transition: all 0.3s ease;
}

.obsessed-item:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateX(4px);
}

.obsessed-emoji {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.obsessed-text {
    font-size: 0.85rem;
    color: var(--text-bright);
}

/* ================================================
   HOME FOOTER
   ================================================ */
.home-footer {
    margin-top: var(--gap-xl);
    padding: var(--gap-lg) 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-gif-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap-sm);
}

.footer-badge {
    font-size: 0.65rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    background: var(--bg-card);
}

/* ================================================
   DRAGGABLE WINDOW (MENU)
   ================================================ */
.window {
    position: fixed;
    z-index: 100;
    background: var(--bg-panel);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-deep), 0 0 30px rgba(78, 205, 196, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.menu-window {
    top: 30px;
    left: 30px;
    width: 240px;
}

.window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--gap-sm) var(--gap-md);
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    cursor: move;
    user-select: none;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red    { background: #ff6b6b; }
.dot-yellow { background: #ffd93d; }
.dot-green  { background: #6bcb77; }

.window-title {
    font-size: 0.7rem;
    color: var(--text-secondary);
    flex: 1;
    text-align: center;
}

.window-minimize {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.window-minimize:hover {
    color: var(--primary);
}

.window-body {
    padding: var(--gap-md);
}

/* Menu window minimized state */
.menu-window.minimized .window-body {
    display: none;
}

.menu-window.minimized {
    width: 180px;
}

/* ================================================
   MENU NAV
   ================================================ */
.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-align: left;
    padding: var(--gap-xs) var(--gap-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.menu-link:hover {
    background: var(--bg-card);
    color: var(--primary);
    border-color: var(--border);
    padding-left: 12px;
}

.menu-link.active {
    background: var(--bg-card);
    color: var(--primary);
    border-color: var(--border-bright);
}

.menu-icon {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

/* ================================================
   MENU SIDEBAR INFO
   ================================================ */
.menu-divider {
    height: 1px;
    background: var(--border);
    margin: var(--gap-md) 0;
}

.sidebar-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--gap-xs);
}

/* Now Playing */
.now-playing {
    text-align: center;
}

.np-album {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--gap-sm);
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a2e, #0a3a3a);
    border: 2px solid var(--border-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.np-vinyl-spin {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-deep);
    border: 2px solid var(--primary);
    animation: spin 4s linear infinite;
    position: relative;
}

.np-vinyl-spin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.np-track {
    font-size: 0.75rem;
    color: var(--text-bright);
    margin-bottom: 2px;
}

.np-artist {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-bottom: var(--gap-xs);
}

.np-progress {
    height: 3px;
    background: var(--bg-darker);
    border-radius: 2px;
    overflow: hidden;
}

.np-progress-fill {
    height: 100%;
    width: 35%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    animation: progressMove 20s linear infinite;
}

/* Status box */
.status-box {
    font-size: 0.7rem;
}

.status-line {
    color: var(--text-secondary);
    margin-bottom: var(--gap-xs);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
    animation: pulse 2s ease-in-out infinite;
}

.hit-counter {
    display: inline-block;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2px 8px;
    font-size: 0.75rem;
    color: var(--secondary);
    letter-spacing: 2px;
    margin-top: 2px;
}

/* Webring */
.webring-nav {
    display: flex;
    gap: var(--gap-xs);
    flex-wrap: wrap;
}

.ring-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.ring-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ================================================
   ABOUT SECTION
   ================================================ */
.about-container {
    display: flex;
    gap: var(--gap-lg);
    flex-wrap: wrap;
}

.about-avatar {
    text-align: center;
    flex-shrink: 0;
}

.avatar-frame {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--gap-sm);
    position: relative;
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    border: 2px solid var(--border-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: avatarGlow 4s ease-in-out infinite;
}

.avatar-question {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.5;
}

.avatar-rim {
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-md);
    border: 1px solid var(--accent);
    opacity: 0.3;
    animation: spin 10s linear infinite;
}

.avatar-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.about-badges {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: var(--gap-md);
}

.badge {
    font-size: 0.65rem;
    color: var(--secondary);
    border: 1px solid var(--secondary-dim);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.about-text {
    flex: 1;
    min-width: 280px;
}

.about-text p {
    margin-bottom: var(--gap-md);
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.about-quote {
    color: var(--secondary) !important;
    font-style: italic;
    border-left: 2px solid var(--secondary-dim);
    padding-left: var(--gap-md);
}

.about-stats {
    display: flex;
    gap: var(--gap-lg);
    margin-top: var(--gap-lg);
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-dim);
}

/* ================================================
   ANIME SECTION
   ================================================ */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--gap-md);
}

.anime-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--gap-md);
    transition: all 0.3s ease;
    position: relative;
}

.anime-card:hover {
    border-color: var(--border-bright);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.anime-rank {
    position: absolute;
    top: -8px;
    right: var(--gap-sm);
    background: var(--bg-deep);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.anime-poster {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--radius-sm);
    margin-bottom: var(--gap-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-placeholder {
    font-size: 3rem;
    color: rgba(255,255,255,0.15);
    font-family: var(--font-mono);
}

.anime-card h3 {
    font-size: 0.85rem;
    color: var(--text-bright);
    margin-bottom: var(--gap-xs);
}

.anime-status {
    font-size: 0.65rem;
    color: var(--accent);
    margin-bottom: var(--gap-xs);
}

.anime-desc {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--gap-sm);
}

.anime-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.anime-tags span {
    font-size: 0.6rem;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

/* ================================================
   MUSIC SECTION
   ================================================ */
.music-feature {
    margin-bottom: var(--gap-lg);
}

.spotify-embed {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.spotify-embed iframe {
    display: block;
}

.embed-caption {
    background: var(--bg-darker);
    padding: var(--gap-xs) var(--gap-md);
    font-size: 0.7rem;
    color: var(--secondary);
}

.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--gap-md);
}

.playlist-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--gap-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.playlist-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-3px);
}

.playlist-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    margin-bottom: var(--gap-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.playlist-emoji {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.playlist-card h3 {
    font-size: 0.85rem;
    color: var(--text-bright);
    margin-bottom: var(--gap-xs);
}

.playlist-card p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: var(--gap-xs);
}

.playlist-tag {
    font-size: 0.6rem;
    color: var(--accent);
    border: 1px solid var(--accent-dim);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

/* ================================================
   GAMES SECTION
   ================================================ */
.games-list {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.game-row {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--gap-md);
    transition: all 0.3s ease;
}

.game-row:hover {
    border-color: var(--border-bright);
    transform: translateX(4px);
}

.game-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.game-info {
    flex: 1;
}

.game-info h3 {
    font-size: 0.85rem;
    color: var(--text-bright);
    margin-bottom: 2px;
}

.game-info p {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.game-rating {
    font-size: 0.75rem;
    color: var(--secondary);
    letter-spacing: 1px;
    flex-shrink: 0;
}

/* ================================================
   WRITING SECTION
   ================================================ */
.writing-list {
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
}

.writing-entry {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--gap-lg);
    border-left: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.writing-entry:hover {
    border-left-color: var(--accent);
    box-shadow: var(--shadow-card);
}

.writing-date {
    font-size: 0.65rem;
    color: var(--primary-dim);
    margin-bottom: var(--gap-xs);
}

.writing-entry h3 {
    font-size: 1rem;
    color: var(--text-bright);
    margin-bottom: var(--gap-sm);
}

.writing-entry p {
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.writing-tags {
    display: flex;
    gap: 6px;
    margin-top: var(--gap-sm);
    flex-wrap: wrap;
}

.writing-tags span {
    font-size: 0.6rem;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

/* ================================================
   LINKS SECTION
   ================================================ */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--gap-md);
}

.link-card {
    display: block;
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--gap-md);
    transition: all 0.3s ease;
    color: inherit;
}

.link-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 15px var(--secondary-glow);
    transform: translateY(-3px);
}

.link-icon {
    font-size: 1.8rem;
    margin-bottom: var(--gap-xs);
}

.link-card h3 {
    font-size: 0.85rem;
    color: var(--text-bright);
    margin-bottom: var(--gap-xs);
}

.link-card p {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* ================================================
   GUESTBOOK SECTION
   ================================================ */
.guestbook-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--gap-lg);
    margin-bottom: var(--gap-lg);
}

.form-row {
    display: flex;
    gap: var(--gap-md);
    margin-bottom: var(--gap-md);
    flex-wrap: wrap;
}

.form-row input {
    flex: 1;
    min-width: 150px;
}

.guestbook-form input,
.guestbook-form textarea {
    width: 100%;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: var(--gap-sm) var(--gap-md);
    outline: none;
    transition: border-color 0.3s ease;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.guestbook-form textarea {
    margin-bottom: var(--gap-md);
    resize: vertical;
    font-family: var(--font-mono);
}

.gb-submit-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: var(--gap-sm) var(--gap-lg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gb-submit-btn:hover {
    background: var(--primary);
    color: var(--bg-deep);
    box-shadow: 0 0 15px var(--primary-glow);
}

.guestbook-entries {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

.gb-entry {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    padding: var(--gap-md);
    animation: sectionFade 0.4s ease;
}

.gb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--gap-xs);
    flex-wrap: wrap;
    gap: var(--gap-xs);
}

.gb-name {
    font-size: 0.8rem;
    color: var(--accent);
}

.gb-date {
    font-size: 0.65rem;
    color: var(--text-dim);
}

.gb-entry p {
    font-size: 0.8rem;
    color: var(--text-primary);
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes gridMove {
    from { background-position: 0 0; }
    to { background-position: 50px 50px; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; box-shadow: 0 0 6px currentColor; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes glitchA {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(2px, -1px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
}

@keyframes glitchB {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -1px); }
    40% { transform: translate(-2px, 1px); }
    60% { transform: translate(1px, 1px); }
    80% { transform: translate(-1px, -1px); }
}

@keyframes progressMove {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 0 5px var(--primary-glow); }
    50% { box-shadow: 0 0 20px var(--primary-glow); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
    .menu-window {
        width: 200px;
        top: 10px;
        left: 10px;
        font-size: 0.75rem;
    }

    .main-panel {
        margin: 0 var(--gap-sm);
        max-width: calc(100% - 20px);
    }

    .blog-title {
        font-size: 1.5rem;
    }

    .splash-glitch h1 {
        font-size: 1.4rem;
    }

    .news-grid,
    .anime-grid,
    .playlist-grid,
    .links-grid {
        grid-template-columns: 1fr;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
    }

    .about-text {
        min-width: 0;
    }

    .game-row {
        flex-wrap: wrap;
    }

    .game-rating {
        width: 100%;
        text-align: right;
    }
}

@media (max-width: 480px) {
    .menu-window {
        width: 170px;
    }

    .window-body {
        padding: var(--gap-sm);
    }

    .content-section {
        padding: var(--gap-md);
    }

    .blog-title {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
}
