/* ===== Variables & Reset ===== */
:root {
    --bg-dark: #0a0a12;
    --bg-card: rgba(18, 18, 30, 0.85);
    --accent: #00d4ff;
    --accent-glow: rgba(0, 212, 255, 0.35);
    --accent-dim: rgba(0, 212, 255, 0.1);
    --purple: #9146ff;
    --discord: #5865f2;
    --discord-glow: rgba(88, 101, 242, 0.4);
    --live: #ff2d55;
    --live-glow: rgba(255, 45, 85, 0.55);
    --text: #e8e8f0;
    --text-muted: #8888a0;
    --border: rgba(0, 212, 255, 0.15);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --radius: 12px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(145, 70, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a12 0%, #12121f 100%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    color: var(--accent);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 3000;
    background: var(--accent);
    color: #000;
    padding: 8px 14px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-decoration: none;
    border-radius: 6px;
}

.skip-link:focus {
    left: 12px;
}

/* ===== Navigation ===== */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 18, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.2s;
}

.logo-link:hover {
    transform: scale(1.02);
}

.site-logo {
    height: 42px;
    width: 42px;
    object-fit: contain;
    border-radius: 10px;
    filter: drop-shadow(0 0 8px rgba(75, 44, 128, 0.65));
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.02rem;
    letter-spacing: 1.2px;
    color: var(--text);
    white-space: nowrap;
}

.nav-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 45, 85, 0.12);
    border: 1px solid var(--live);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 0 16px var(--live-glow);
}

.nav-live-badge[hidden] {
    display: none !important;
}

.live-dot,
.offline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.live-dot {
    background: var(--live);
    box-shadow: 0 0 8px var(--live);
    animation: livePulse 1.4s infinite;
}

.offline-dot {
    background: var(--text-muted);
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.82); }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
    margin-left: auto;
}

.nav-auth {
    display: flex;
    align-items: center;
    margin-left: 16px;
    flex-shrink: 0;
}

.nav-login-btn {
    padding: 9px 16px;
    font-size: 0.8rem;
}

.nav-profile {
    max-width: 220px;
}

.nav-profile #user-display-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 110px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    position: relative;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.25);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    font-size: 1.15rem;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon.twitch:hover {
    box-shadow: 0 4px 20px rgba(145, 70, 255, 0.45);
    color: var(--purple);
    border-color: var(--purple);
}

.social-icon.youtube:hover {
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.45);
    color: #ff3333;
    border-color: #ff3333;
}

.social-icon.discord:hover {
    box-shadow: 0 4px 20px var(--discord-glow);
    color: var(--discord);
    border-color: var(--discord);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent);
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero-section {
    padding: 72px 0 56px;
}

.hero-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 18px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    font-family: var(--font-heading);
    font-size: 0.68rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.status-chip.live {
    border-color: var(--live);
    color: #fff;
    background: rgba(255, 45, 85, 0.12);
}

.status-chip[hidden] {
    display: none !important;
}

.hero-next {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hero-highlights {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0 0 28px;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.hero-highlights i {
    color: var(--accent);
    margin-right: 6px;
}

.btn-discord-outline {
    background: transparent;
    color: var(--discord);
    border: 1px solid var(--discord);
}

.btn-discord-outline:hover {
    background: rgba(88, 101, 242, 0.12);
    box-shadow: 0 6px 24px var(--discord-glow);
}

.hero-frame {
    position: relative;
    z-index: 1;
}

.hero-live-ring {
    display: none;
}

body.is-live .hero-live-ring {
    display: block;
    position: absolute;
    inset: -6px;
    border-radius: 16px;
    border: 2px solid var(--live);
    box-shadow: 0 0 24px var(--live-glow);
    pointer-events: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.glitch-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 0 30px var(--accent-glow);
}

.description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-twitch {
    background: var(--purple);
    color: #fff;
}

.btn-twitch:hover {
    box-shadow: 0 6px 24px rgba(145, 70, 255, 0.45);
}

.btn-setup {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-setup:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.img-glow {
    position: absolute;
    inset: 10%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

.hero-image img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: block;
}

/* ===== Sections ===== */
section {
    padding: 72px 0;
}

.section-band {
    background: rgba(255, 255, 255, 0.018);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.section-head .section-title,
.section-head .section-desc {
    margin-bottom: 0;
}

.section-head .section-desc {
    margin-top: 10px;
}

.section-head-row {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    text-align: left;
    margin-bottom: 28px;
}

.section-head-row .section-desc {
    text-align: left;
}

.section-kicker {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.55rem, 3.4vw, 2.15rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 12px;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.subsection-head {
    text-align: center;
    margin: 48px 0 28px;
}

.subsection-head .section-title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

/* ===== Gallery Styles ===== */
.gallery-section {
    padding: 60px 0;
}

.gallery-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.gallery-user-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
}

.user-profile-badge[hidden],
.btn[hidden] {
    display: none !important;
}

.user-profile-badge img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--accent);
}

.latest-images-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.latest-images-grid .gallery-card {
    height: 220px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.gallery-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 10, 18, 0.92) 0%, rgba(10, 10, 18, 0.15) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    opacity: 1;
}

.gallery-card-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #fff;
}

.gallery-card-stats {
    display: flex;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.album-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.album-chip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.album-chip:hover, .album-chip.active {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Modal Windows (По-големи размери) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 10, 0.9);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 14px;
    max-width: 1200px; /* По-голям прозорец */
    width: 95%;
    height: 92vh;     /* По-висок прозорец */
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.25);
}

.modal-content.modal-sm {
    max-width: 450px;
    height: auto;
    padding: 24px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 22px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.modal-body {
    display: grid;
    grid-template-columns: 2fr 1fr; /* По-голямо пространство за снимката */
    height: 100%;
}

.modal-image-wrap {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    overflow: hidden;
    padding: 10px;
}

.modal-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.modal-sidebar {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    height: 100%;
    overflow-y: auto;
}

.btn-like {
    background: rgba(145, 70, 255, 0.15);
    border: 1px solid var(--purple);
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-like:hover, .btn-like.liked {
    background: var(--purple);
    box-shadow: 0 0 15px rgba(145, 70, 255, 0.5);
}

.comments-list {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
    padding-right: 4px;
}

.comment-item {
    background: rgba(0, 0, 0, 0.35);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-author {
    font-family: var(--font-heading);
    color: var(--accent);
    font-weight: 700;
}

.cyber-form .form-group {
    margin-bottom: 16px;
}

.cyber-form label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.cyber-form input, #comment-input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 6px;
    font-family: var(--font-body);
}

#comment-input {
    resize: vertical;
    min-height: 80px;
}

#comment-form-container {
    margin-top: 12px;
}

#comment-form-container .btn {
    margin-top: 8px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.section-heading .section-title {
    margin-bottom: 0;
}

.section-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 45, 85, 0.14);
    border: 1px solid var(--live);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.section-live-badge[hidden] {
    display: none !important;
}

.stream-stage {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(8, 8, 16, 0.7);
    min-height: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.stream-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 280px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.stream-loading[hidden] {
    display: none !important;
}

#twitch-embed {
    border-radius: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

#twitch-embed[hidden] {
    display: none !important;
}

.offline-panel[hidden] {
    display: none !important;
}

.offline-visual {
    position: relative;
    min-height: 420px;
}

.offline-visual img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    filter: grayscale(0.35) brightness(0.38);
}

.offline-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(180deg, rgba(10, 10, 18, 0.2), rgba(10, 10, 18, 0.82));
}

.offline-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    letter-spacing: 1px;
    margin: 16px 0 10px;
}

.offline-overlay p {
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 520px;
    line-height: 1.5;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.game-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 1.4rem;
    background: var(--accent-dim);
    border: 1px solid var(--border);
}

.game-card h3 {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.game-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* ===== Schedule ===== */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.day-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.day-card.active-day:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.day-card.highlight-day {
    border-color: rgba(0, 212, 255, 0.45);
}

.day-card.is-today {
    border-color: var(--accent);
    box-shadow: 0 0 24px var(--accent-glow);
    transform: translateY(-4px);
}

.day-card.is-today .day-header {
    background: rgba(0, 212, 255, 0.18);
}

.day-card.is-off {
    opacity: 0.55;
}

.today-tag {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.58rem;
    letter-spacing: 1px;
    color: #000;
    background: var(--accent);
    border-radius: 4px;
    padding: 1px 5px;
    vertical-align: middle;
}

.schedule-next {
    text-align: center;
    color: var(--text-muted);
    margin: -24px 0 32px;
    font-size: 1.05rem;
}

.schedule-next strong,
.countdown-value {
    color: var(--accent);
}

.day-header {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    padding: 10px;
    background: rgba(0, 212, 255, 0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.day-content {
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.day-content .time {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.day-content .game {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.day-content .off {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* ===== Specs ===== */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.spec-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 32px 20px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.spec-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.spec-card.highlight {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.08);
}

.spec-card .icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.spec-card.highlight .icon {
    color: var(--accent);
}

.spec-card h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.spec-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== Support ===== */
.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.support-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 36px 24px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.support-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.support-card .icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.support-card h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.support-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== Discord Section ===== */
.discord-section {
    padding: 80px 0;
}

.discord-panel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(88, 101, 242, 0.32);
    background:
        radial-gradient(circle at 8% 20%, rgba(88, 101, 242, 0.22), transparent 36%),
        radial-gradient(circle at 92% 80%, rgba(0, 212, 255, 0.08), transparent 32%),
        linear-gradient(135deg, rgba(16, 16, 32, 0.96), rgba(22, 22, 42, 0.92));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    padding: 32px 32px 26px;
}

.discord-panel-glow {
    position: absolute;
    inset: auto auto -80px -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.28), transparent 70%);
    pointer-events: none;
}

.discord-panel-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto auto;
    gap: 28px;
    align-items: center;
}

.discord-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.discord-orb {
    position: relative;
    width: 92px;
    height: 92px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: radial-gradient(circle at 40% 30%, rgba(140, 150, 255, 0.35), rgba(88, 101, 242, 0.16));
    border: 1px solid rgba(88, 101, 242, 0.45);
    color: #dfe2ff;
    font-size: 2.4rem;
    box-shadow: 0 0 28px rgba(88, 101, 242, 0.28);
}

.discord-ring {
    position: absolute;
    inset: -10px;
    border-radius: 34px;
    border: 1px dashed rgba(88, 101, 242, 0.35);
    animation: discordOrbit 10s linear infinite;
}

@keyframes discordOrbit {
    to { transform: rotate(360deg); }
}

.discord-kicker {
    font-family: var(--font-heading);
    font-size: 0.66rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9aa3ff;
    margin-bottom: 6px;
}

.discord-brand-copy h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.discord-brand-copy p {
    color: var(--text-muted);
    max-width: 420px;
}

.discord-metrics {
    display: flex;
    gap: 14px;
}

.discord-metric {
    min-width: 128px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.discord-metric strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.7rem;
    line-height: 1;
    margin: 8px 0 6px;
}

.discord-metric span:last-child {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.discord-metric .dot,
.discord-stat .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    background: #43b581;
    box-shadow: 0 0 10px rgba(67, 181, 129, 0.8);
    animation: pulse 2s infinite;
}

.discord-metric .dot.offline,
.discord-stat .dot.offline {
    background: var(--text-muted);
    box-shadow: none;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.discord-panel .btn-discord {
    justify-self: end;
}

.btn-discord {
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    color: #fff;
    white-space: nowrap;
    padding: 16px 28px;
    font-size: 0.82rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-discord:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #6975f3 0%, #5865f2 100%);
    box-shadow: 0 12px 32px rgba(88, 101, 242, 0.55);
}

.discord-perks {
    position: relative;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0 0;
}

.discord-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 0.95rem;
}

.discord-perks i {
    color: #9aa3ff;
}

.discord-presence {
    position: relative;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.discord-presence-label {
    font-family: var(--font-heading);
    font-size: 0.66rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.discord-members-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.discord-member {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 8px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 999px;
    font-size: 0.88rem;
}

.discord-member:hover {
    border-color: var(--discord);
}

.discord-member img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.discord-member .status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #43b581;
    box-shadow: 0 0 6px rgba(67, 181, 129, 0.6);
}

.discord-member .status-idle { background: #faa61a; box-shadow: 0 0 6px rgba(250, 166, 26, 0.6); }
.discord-member .status-dnd { background: #ed4245; box-shadow: none; }

/* ===== IP Page ===== */
.page-hero {
    padding: 48px 0 8px;
    text-align: center;
}

.page-hero .section-desc {
    margin-bottom: 0;
}

.page-hero .glitch-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.page-gallery .gallery-section,
.page-ip .ip-section,
.page-community .community-page-section {
    padding-top: 28px;
}

.ip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.ip-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
    transition: border-color 0.2s;
}

.ip-card:hover {
    border-color: var(--accent);
}

.ip-card.highlight-ip {
    grid-column: 1 / -1;
    text-align: center;
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.05);
}

.ip-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ip-card-header .icon {
    font-size: 1.4rem;
    color: var(--accent);
}

.ip-card-header h3 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ip-value {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--accent);
    word-break: break-all;
}

.ip-card.highlight-ip .ip-value {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.ip-detail {
    font-size: 1.05rem;
    color: var(--text);
}

.ip-detail.loading {
    color: var(--text-muted);
    font-style: italic;
}

.ip-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ip-detail-row:last-child {
    border-bottom: none;
}

.ip-detail-row .label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.ip-detail-row .value {
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.ip-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.btn-copy {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-copy:hover {
    background: rgba(0, 212, 255, 0.1);
}

.btn-copy.copied {
    background: rgba(67, 181, 129, 0.2);
    border-color: #43b581;
    color: #43b581;
}

.ip-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Footer ===== */
.site-footer {
    margin-top: 24px;
    border-top: 1px solid var(--border);
    background: rgba(8, 8, 14, 0.9);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    padding: 56px 0 36px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 14px;
    max-width: 320px;
}

.footer-logo {
    margin-bottom: 4px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--accent);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.footer-bottom {
    text-align: center;
    padding: 18px 24px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-footer-compact {
    padding: 0;
}

.footer-compact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-compact-row a {
    color: var(--accent);
    text-decoration: none;
}

.ranked-section {
    background: rgba(0, 0, 0, 0.3);
}

.ranked-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.rank-card {
    position: relative;
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 18px;
    align-items: center;
    padding: 22px 22px 20px;
    background:
        radial-gradient(circle at 12% 20%, rgba(0, 212, 255, 0.08), transparent 42%),
        var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    min-width: 0;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.rank-card::after {
    content: "";
    position: absolute;
    inset: auto -20px -40px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.rank-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.rank-card.is-primary {
    border-color: rgba(0, 212, 255, 0.38);
    background:
        radial-gradient(circle at 12% 20%, rgba(0, 212, 255, 0.16), transparent 46%),
        linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(18, 18, 30, 0.9));
}

.rank-emblem-well {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.08), transparent 58%),
        rgba(6, 6, 12, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45);
}

.rank-emblem {
    width: 86px;
    height: 86px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.28));
}

.rank-card-body {
    min-width: 0;
}

.rank-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.rank-queue {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.rank-queue-tag {
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: 0.58rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #041018;
    background: var(--accent);
    border-radius: 999px;
    padding: 3px 8px;
}

.rank-card h3 {
    font-family: var(--font-heading);
    font-size: 1.22rem;
    letter-spacing: 1px;
    margin: 0 0 4px;
}

.rank-lp {
    font-size: 1.05rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 12px;
}

.rank-record {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.rank-wl {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.rank-wl b:first-child { color: #2ecc71; }
.rank-wl b:last-child { color: #e74c3c; }

.rank-wr {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.6px;
    color: var(--text);
}

.rank-bar {
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.rank-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #7cf0ff);
    transition: width 0.6s ease;
}

.rank-card[data-tier="iron"] { border-color: rgba(140, 120, 100, 0.4); }
.rank-card[data-tier="bronze"] { border-color: rgba(176, 109, 58, 0.45); }
.rank-card[data-tier="silver"] { border-color: rgba(170, 180, 190, 0.4); }
.rank-card[data-tier="gold"] { border-color: rgba(230, 190, 70, 0.5); }
.rank-card[data-tier="platinum"] { border-color: rgba(80, 210, 190, 0.45); }
.rank-card[data-tier="emerald"] { border-color: rgba(50, 190, 120, 0.45); }
.rank-card[data-tier="diamond"] { border-color: rgba(90, 170, 255, 0.5); }
.rank-card[data-tier="master"] { border-color: rgba(180, 90, 255, 0.5); }
.rank-card[data-tier="grandmaster"],
.rank-card[data-tier="challenger"] { border-color: rgba(255, 80, 90, 0.5); }

.rank-card[data-tier="gold"] .rank-emblem-well {
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45), 0 0 22px rgba(230, 190, 70, 0.22);
}
.rank-card[data-tier="platinum"] .rank-emblem-well,
.rank-card[data-tier="emerald"] .rank-emblem-well {
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45), 0 0 22px rgba(80, 210, 190, 0.2);
}
.rank-card[data-tier="diamond"] .rank-emblem-well {
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45), 0 0 22px rgba(90, 170, 255, 0.22);
}
.rank-card[data-tier="master"] .rank-emblem-well,
.rank-card[data-tier="grandmaster"] .rank-emblem-well,
.rank-card[data-tier="challenger"] .rank-emblem-well {
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45), 0 0 22px rgba(180, 90, 255, 0.22);
}

.empty-state {
    color: var(--text-muted);
    text-align: center;
    padding: 28px 16px;
    grid-column: 1 / -1;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

/* Админ бутон за изтриване */
.btn-delete-img {
    background: rgba(255, 51, 51, 0.2);
    border: 1px solid #ff3333;
    color: #ff3333;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    width: 100%;
    margin-top: 10px;
    transition: all 0.2s;
}

.btn-delete-img:hover {
    background: #ff3333;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.5);
}

/* Бутон за споделяне / копиране на линк */
.btn-share-img {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-share-img:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-share-img.copied {
    background: rgba(67, 181, 129, 0.2);
    border-color: #43b581;
    color: #43b581;
}

/* ===== MATCH HISTORY STYLES ===== */
.match-history-container {
    width: 100%;
    position: relative;
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.match-list.collapsed {
    max-height: 430px;
}

.match-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1.4fr) 110px 140px auto;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--text-muted);
    padding: 0 18px 0 0;
    border-radius: 12px;
    min-height: 76px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.match-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.match-card.win {
    border-left-color: #2ecc71;
    background: linear-gradient(90deg, rgba(46, 204, 113, 0.08), rgba(18, 18, 30, 0.85) 28%);
}

.match-card.loss {
    border-left-color: #e74c3c;
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.08), rgba(18, 18, 30, 0.85) 28%);
}

.match-champ-img {
    width: 72px;
    height: 76px;
    object-fit: cover;
}

.match-who h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    margin: 0 0 4px;
}

.match-who p,
.match-role,
.match-kda span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.match-role {
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-role-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.match-kda strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
}

.match-kda.kda-great strong { color: #7cf0ff; }
.match-kda.kda-good strong { color: #2ecc71; }
.match-kda.kda-ok strong { color: #e8e8f0; }
.match-kda.kda-poor strong { color: #e74c3c; }

.match-badge {
    justify-self: end;
    min-width: 88px;
    text-align: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.match-card.win .match-badge {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.35);
}

.match-card.loss .match-badge {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.35);
}

.expand-matches-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 13px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 1px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.expand-matches-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 1200px) {
    .logo {
        font-size: 0.94rem;
        letter-spacing: 0.8px;
    }

    .nav-links a {
        font-size: 0.74rem;
        padding: 8px 10px;
        letter-spacing: 0.8px;
    }
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-status-row,
    .hero-highlights,
    .cta-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 320px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .latest-images-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .schedule-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .discord-panel-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .discord-panel .btn-discord {
        justify-self: stretch;
        text-align: center;
    }

    .discord-perks {
        grid-template-columns: 1fr 1fr;
    }

    .community-split {
        grid-template-columns: 1fr;
    }

    .ranked-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .rank-card {
        grid-template-columns: 92px 1fr;
        padding: 16px;
        gap: 14px;
    }

    .rank-emblem-well {
        width: 92px;
        height: 92px;
    }

    .rank-emblem {
        width: 74px;
        height: 74px;
    }

    .match-card {
        grid-template-columns: 68px minmax(0, 1fr) auto;
        gap: 12px;
        padding-right: 14px;
    }

    .match-role {
        display: none;
    }

    .community-split .quotes-wall {
        grid-template-columns: 1fr;
    }

    .section-head-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ip-grid {
        grid-template-columns: 1fr;
    }

    .modal-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .modal-content {
        height: 95vh;
    }

    .modal-image-wrap {
        height: 50vh;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0;
    }

    .nav-inner {
        padding: 12px 16px;
    }

    .menu-toggle {
        display: flex;
        margin-left: 10px;
    }

    .nav-auth {
        margin-left: auto;
    }

    .nav-profile #user-display-name {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        margin-left: 0;
        flex-direction: column;
        gap: 24px;
        padding: 24px;
        background: rgba(10, 10, 18, 0.98);
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s, opacity 0.3s;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .nav-links a {
        display: block;
        text-align: center;
        padding: 12px;
    }

    .social-links {
        justify-content: center;
    }

    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .games-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-compact-row {
        flex-direction: column;
        text-align: center;
    }

    .nav-live-badge {
        font-size: 0.6rem;
        padding: 5px 8px;
    }

    .discord-panel {
        padding: 22px 16px 18px;
    }

    .discord-metrics {
        width: 100%;
    }

    .discord-perks {
        grid-template-columns: 1fr;
    }

    .ranked-grid {
        grid-template-columns: 1fr;
    }

    .match-card {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        min-height: 68px;
    }

    .match-champ-img {
        width: 64px;
        height: 68px;
    }

    .match-kda strong {
        font-size: 0.88rem;
    }

    .match-badge {
        min-width: 72px;
        padding: 6px 8px;
        font-size: 0.62rem;
    }
}

@media (max-width: 480px) {
    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .latest-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Quotes wall ===== */
.community-split {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 36px;
    align-items: start;
}

.community-panel {
    min-width: 0;
}

.community-page-section {
    padding: 12px 0 80px;
}

.community-panel-head {
    margin-bottom: 18px;
}

.community-panel-head h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.community-split .quotes-wall {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 20px;
}

.community-split .leaderboard-list {
    max-width: none;
    margin: 0;
}

.community-split .lb-toolbar {
    justify-content: flex-start;
}

.community-split .quote-form,
.community-split .community-hint {
    text-align: left;
    margin-left: 0;
    max-width: none;
}

.quotes-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.quote-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 20px 18px;
    margin: 0;
}

.quote-card p {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.quote-card footer {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.quote-form {
    display: grid;
    gap: 10px;
    max-width: 560px;
    margin: 0 auto;
}

.quote-form input,
.quote-form textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 6px;
    font-family: var(--font-body);
}

.quote-form textarea {
    min-height: 80px;
    resize: vertical;
}

.community-hint {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.community-hint a {
    color: var(--accent);
}

.pending-box {
    background: rgba(0, 212, 255, 0.05);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.pending-box h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 14px;
    color: var(--accent);
}

.pending-row,
.pending-card {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pending-card img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
}

.pending-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ===== Leaderboard ===== */
.lb-toolbar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.leaderboard-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lb-row {
    display: grid;
    grid-template-columns: 40px 40px 1fr auto auto;
    gap: 12px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 16px;
}

.lb-row:nth-child(1) { border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.lb-rank {
    font-family: var(--font-heading);
    color: var(--accent);
    font-weight: 700;
}
.lb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.lb-name { font-weight: 700; }
.lb-points { color: var(--accent); font-family: var(--font-heading); font-size: 0.85rem; }
.lb-presence { color: var(--text-muted); font-size: 0.85rem; }

/* ===== LoL extras ===== */
.streak-banner {
    position: relative;
    width: 100%;
    margin: 0 0 32px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--live);
    background: linear-gradient(90deg, rgba(255, 45, 85, 0.16), rgba(0, 212, 255, 0.1));
}

.streak-banner[hidden] {
    display: none !important;
}

.streak-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 45, 85, 0.28), transparent 42%);
    pointer-events: none;
}

.streak-content {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 22px 28px;
}

.streak-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 45, 85, 0.16);
    border: 1px solid rgba(255, 45, 85, 0.45);
    color: var(--live);
    font-size: 1.4rem;
}

.streak-kicker {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--live);
    margin-bottom: 4px;
}

.streak-title {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    letter-spacing: 1px;
    margin: 0;
}

.streak-title strong {
    color: #fff;
    font-size: 1.15em;
}

.streak-sub {
    color: var(--text-muted);
    margin: 4px 0 0;
}

.streak-marks {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 180px;
    justify-content: flex-end;
}

.streak-marks span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 8px var(--live-glow);
}

.streak-hot {
    border-color: #ff6a3d;
    background: linear-gradient(90deg, rgba(255, 90, 40, 0.22), rgba(255, 45, 85, 0.1));
}
.streak-hot .streak-icon,
.streak-hot .streak-kicker { color: #ff8a4c; border-color: rgba(255, 138, 76, 0.5); }
.streak-hot .streak-marks span { background: #ff8a4c; box-shadow: 0 0 8px rgba(255, 138, 76, 0.7); }
.streak-hot .streak-icon { animation: streakPulse 1.6s infinite; }

.streak-blaze {
    border-color: #ffb347;
    background: linear-gradient(90deg, rgba(255, 160, 40, 0.24), rgba(255, 45, 85, 0.12));
    box-shadow: 0 0 28px rgba(255, 160, 40, 0.18);
}
.streak-blaze .streak-icon,
.streak-blaze .streak-kicker { color: #ffc857; border-color: rgba(255, 200, 87, 0.55); }
.streak-blaze .streak-marks span { background: #ffc857; box-shadow: 0 0 10px rgba(255, 200, 87, 0.75); }
.streak-blaze .streak-icon { animation: streakPulse 1.2s infinite; }
.streak-blaze .streak-title strong { color: #ffe7a3; }

.streak-inferno {
    border-color: var(--accent);
    background: linear-gradient(90deg, rgba(255, 45, 85, 0.22), rgba(0, 212, 255, 0.16));
    box-shadow: 0 0 36px rgba(0, 212, 255, 0.2);
}
.streak-inferno .streak-glow {
    background:
        radial-gradient(circle at 15% 50%, rgba(255, 45, 85, 0.35), transparent 40%),
        radial-gradient(circle at 85% 50%, rgba(0, 212, 255, 0.28), transparent 42%);
    animation: streakSweep 4s linear infinite;
}
.streak-inferno .streak-icon,
.streak-inferno .streak-kicker { color: var(--accent); border-color: rgba(0, 212, 255, 0.5); }
.streak-inferno .streak-marks span { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.streak-inferno .streak-icon { animation: streakPulse 0.9s infinite; }

.streak-mythic {
    border-color: #e4c36a;
    background: linear-gradient(90deg, rgba(145, 70, 255, 0.28), rgba(228, 195, 106, 0.16), rgba(255, 45, 85, 0.18));
    box-shadow: 0 0 42px rgba(145, 70, 255, 0.28);
}
.streak-mythic .streak-glow {
    background:
        radial-gradient(circle at 20% 40%, rgba(145, 70, 255, 0.4), transparent 38%),
        radial-gradient(circle at 80% 60%, rgba(228, 195, 106, 0.28), transparent 40%);
    animation: streakSweep 3.2s linear infinite;
}
.streak-mythic .streak-icon,
.streak-mythic .streak-kicker { color: #e4c36a; border-color: rgba(228, 195, 106, 0.55); }
.streak-mythic .streak-marks span { background: #e4c36a; box-shadow: 0 0 12px rgba(228, 195, 106, 0.8); }
.streak-mythic .streak-icon { animation: streakPulse 0.75s infinite; }
.streak-mythic .streak-title { text-shadow: 0 0 18px rgba(228, 195, 106, 0.35); }

@keyframes streakPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes streakSweep {
    0% { transform: translateX(-6%); }
    100% { transform: translateX(6%); }
}

@media (max-width: 768px) {
    .streak-content {
        grid-template-columns: auto 1fr;
        padding: 18px;
    }
    .streak-marks { display: none; }
}

.lol-insight-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.insight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
}

.insight-card h3,
.mastery-block h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.fav-role {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fav-role img {
    width: 56px;
    height: 56px;
}

.fav-role strong {
    display: block;
    font-size: 1.3rem;
}

.fav-role p { color: var(--text-muted); margin: 0; }

#lp-chart {
    width: 100%;
    height: 220px;
    display: block;
}

.mastery-block { margin-bottom: 48px; }

.mastery-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.mastery-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 10px;
    text-align: center;
}

.mastery-card img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    margin: 8px 0;
}

.mastery-place {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--accent);
}

.mastery-card h4 { font-size: 0.9rem; margin-bottom: 4px; }
.mastery-card p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.mastery-points { color: var(--accent) !important; }

/* ===== Lightbox ===== */
.modal-image-wrap {
    position: relative;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    z-index: 5;
}

.lightbox-nav:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }

.lightbox-counter {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 12px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
}

/* ===== Easter egg ===== */
.egg-unlocked .site-logo {
    animation: eggSpin 1.2s ease-in-out infinite;
    filter: drop-shadow(0 0 16px #d9cba3) drop-shadow(0 0 8px #4b2c80);
}

.egg-unlocked .background-overlay {
    animation: eggFlash 0.8s ease-in-out 3;
}

@keyframes eggSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(-8deg) scale(1.12); }
}

@keyframes eggFlash {
    0%, 100% { filter: none; }
    50% { filter: hue-rotate(40deg) saturate(1.4); }
}

.egg-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #3d246b;
    color: #d9cba3;
    border: 1px solid #d9cba3;
    border-radius: 10px;
    padding: 12px 22px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0;
    pointer-events: none;
    z-index: 4000;
    transition: opacity 0.3s, transform 0.3s;
}

.egg-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 992px) {
    .quotes-wall,
    .mastery-row,
    .lol-insight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .lb-row {
        grid-template-columns: 28px 32px 1fr;
        grid-template-rows: auto auto;
    }
    .lb-points, .lb-presence { grid-column: 3; }
    .mastery-row { grid-template-columns: repeat(2, 1fr); }
}
