/* ============================================
   NEWSTWITCH — MAIN STYLESHEET
   Version: 1.0.0
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }

/* === LAYOUT === */
.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 64px;
}

/* === GRID SYSTEM === */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 24px; }

.layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .layout-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* === HEADER === */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: var(--color-header-bg);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition);
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text);
    flex-shrink: 0;
}

.site-logo .logo-icon {
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 900;
}

.site-logo:hover { color: var(--color-accent); }

/* Primary Navigation */
.primary-nav { display: flex; align-items: center; }

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-nav a {
    display: block;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all var(--transition);
    white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-page-ancestor > a {
    color: var(--color-text);
    background: rgba(255,255,255,0.06);
}

.primary-nav .current-menu-item > a {
    color: var(--color-accent);
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Search Toggle */
.search-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    border: 1px solid var(--color-border);
}
.search-toggle:hover {
    background: rgba(145,70,255,0.15);
    color: var(--color-accent);
    border-color: var(--color-accent);
}
.search-toggle svg { width: 18px; height: 18px; }

/* Search Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(14, 14, 16, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.search-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}
.search-overlay-inner {
    width: 100%;
    max-width: 640px;
    padding: 0 var(--container-pad);
    position: relative;
}
.search-overlay input[type="search"] {
    width: 100%;
    background: var(--color-card);
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 1.25rem;
    padding: 16px 56px 16px 20px;
    outline: none;
    box-shadow: var(--shadow-glow);
}
.search-overlay input[type="search"]::placeholder { color: var(--color-text-muted); }
.search-overlay-close {
    position: absolute;
    right: calc(var(--container-pad) + 8px);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1.5rem;
    line-height: 1;
    padding: 8px;
}
.search-overlay-close:hover { color: var(--color-text); }

/* Mobile Burger */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    gap: 5px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--color-border);
}
.burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}
.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    z-index: 999;
    padding: 16px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
}
.mobile-nav.is-open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all var(--transition);
}
.mobile-nav a:hover,
.mobile-nav .current-menu-item > a { color: var(--color-accent); background: rgba(145,70,255,0.1); }

@media (max-width: 900px) {
    .primary-nav { display: none; }
    .burger { display: flex; }
    .mobile-nav { display: block; }
}

/* === SECTION HEADERS === */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title::before {
    content: '';
    display: block;
    width: 3px;
    height: 18px;
    background: var(--color-accent);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--color-accent);
}
.section-link {
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}
.section-link:hover { gap: 8px; color: var(--color-accent); }
.section-link::after { content: '→'; }

/* === HERO === */
.hero-section { margin-bottom: 56px; }

.hero-post {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    background: var(--color-card);
}

.hero-post a.hero-link {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.hero-post:hover .hero-image { transform: scale(1.04); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(14,14,16,0.97) 0%,
        rgba(14,14,16,0.6) 50%,
        rgba(14,14,16,0.1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 100%;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.hero-title {
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-excerpt {
    font-size: 1rem;
    color: rgba(245,245,245,0.75);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: rgba(245,245,245,0.55);
}
.hero-meta span { display: flex; align-items: center; gap: 5px; }

@media (max-width: 640px) {
    .hero-post { min-height: 340px; }
    .hero-content { padding: 24px; }
}

/* === NEWS CARDS === */
.news-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    border-color: rgba(145,70,255,0.3);
}

.card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: var(--color-bg-secondary);
    flex-shrink: 0;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .card-thumb img { transform: scale(1.06); }
.card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-secondary), var(--color-card));
    color: var(--color-text-muted);
    font-size: 2rem;
    opacity: 0.3;
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.card-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    display: inline-block;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}
.news-card:hover .card-title { color: var(--color-accent); }

.card-excerpt {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
}
.card-meta-left { display: flex; align-items: center; gap: 12px; }
.card-meta-left span { display: flex; align-items: center; gap: 4px; }

.card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Card Featured (large) */
.news-card--featured .card-title { font-size: 1.2rem; -webkit-line-clamp: 4; }

/* === TAGS / BADGES === */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all var(--transition);
}
.tag--accent {
    background: rgba(145,70,255,0.12);
    border-color: rgba(145,70,255,0.4);
    color: var(--color-accent);
}
.tag:hover {
    background: rgba(145,70,255,0.15);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
}
.btn--primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.btn--primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #fff;
    box-shadow: 0 4px 16px var(--color-accent-glow);
    transform: translateY(-1px);
}
.btn--outline {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}
.btn--outline:hover {
    background: var(--color-accent);
    color: #fff;
}
.btn--ghost {
    background: rgba(255,255,255,0.06);
    color: var(--color-text-muted);
    border-color: var(--color-border);
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.1);
    color: var(--color-text);
}
.btn--sm { padding: 6px 14px; font-size: 0.8rem; }
.btn--lg { padding: 14px 32px; font-size: 1rem; }

/* === SIDEBAR === */
.widget {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}
.widget-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

/* Popular Posts Widget */
.popular-post-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    align-items: flex-start;
}
.popular-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.popular-post-item:first-child { padding-top: 0; }
.popular-post-num {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-accent);
    opacity: 0.4;
    min-width: 24px;
    line-height: 1;
    padding-top: 2px;
}
.popular-post-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.popular-post-title:hover { color: var(--color-accent); }
.popular-post-date { font-size: 0.72rem; color: var(--color-text-muted); margin-top: 3px; }

/* === RATING PAGE === */
.rating-header-section {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.rating-header-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(145,70,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.rating-header-section h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 10px; }
.rating-header-section p { color: var(--color-text-muted); max-width: 480px; margin: 0 auto 24px; }

.rating-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 32px;
}
.rating-tab {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--color-bg-secondary);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
    cursor: pointer;
}
.rating-tab.is-active,
.rating-tab:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

/* Rating panels — hidden by default, shown via JS */
.rating-panel {
    display: none;
}
.rating-panel.is-active {
    display: block;
}

.rating-table {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.rating-table-header {
    display: grid;
    grid-template-columns: 60px 1fr 140px 140px 120px;
    padding: 14px 20px;
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}
.rating-row {
    display: grid;
    grid-template-columns: 60px 1fr 140px 140px 120px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    align-items: center;
    transition: background var(--transition);
}
.rating-row:last-child { border-bottom: none; }
.rating-row:hover { background: rgba(255,255,255,0.03); }

.rating-position {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-muted);
    text-align: center;
}
.rating-position.top-1 { color: #FFD700; }
.rating-position.top-2 { color: #C0C0C0; }
.rating-position.top-3 { color: #CD7F32; }

.rating-streamer {
    display: flex;
    align-items: center;
    gap: 14px;
}
.rating-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border);
    background: var(--color-bg-secondary);
    flex-shrink: 0;
}
.rating-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 3px;
}
.rating-name a:hover { color: var(--color-accent); }
.rating-platform {
    font-size: 0.72rem;
    color: var(--color-accent);
    font-weight: 600;
}

.rating-change {
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}
.change-up { color: #22C55E; }
.change-down { color: #EF4444; }
.change-same { color: var(--color-text-muted); }

.rating-index, .rating-views {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .rating-table-header,
    .rating-row {
        grid-template-columns: 40px 1fr 80px;
    }
    .rating-table-header > *:nth-child(4),
    .rating-table-header > *:nth-child(5),
    .rating-row > *:nth-child(4),
    .rating-row > *:nth-child(5) { display: none; }
    .rating-header-section { padding: 24px 20px; }
}

/* === SINGLE POST === */
.single-header {
    margin-bottom: 32px;
}
.single-header .post-category {
    display: inline-block;
    margin-bottom: 12px;
}
.single-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}
.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}
.post-meta a:hover { color: var(--color-accent); }
.post-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.post-meta-item svg { width: 14px; height: 14px; opacity: 0.7; }

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.post-thumbnail {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 36px;
    aspect-ratio: 16/9;
    background: var(--color-card);
}
.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Content */
.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(245,245,245,0.88);
    max-width: 760px;
}
.post-content p { margin-bottom: 1.5em; }
.post-content h2 {
    font-size: 1.5rem;
    margin: 2em 0 0.75em;
    color: var(--color-text);
}
.post-content h3 {
    font-size: 1.2rem;
    margin: 1.75em 0 0.6em;
    color: var(--color-text);
}
.post-content h4 { margin: 1.5em 0 0.5em; }
.post-content ul, .post-content ol {
    margin: 0 0 1.5em 1.5em;
    list-style: initial;
}
.post-content ol { list-style-type: decimal; }
.post-content li { margin-bottom: 0.5em; }
.post-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.post-content a:hover { color: var(--color-accent-hover); }
.post-content img {
    border-radius: var(--radius-md);
    margin: 1.5em 0;
    width: 100%;
    height: auto;
}
.post-content strong { color: var(--color-text); font-weight: 700; }
.post-content em { font-style: italic; }
.post-content code {
    background: var(--color-bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: var(--color-accent);
}
.post-content pre {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    overflow-x: auto;
    margin: 1.5em 0;
}
.post-content pre code {
    background: none;
    padding: 0;
    font-size: 0.9rem;
    color: var(--color-text);
}
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9rem;
}
.post-content th, .post-content td {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    text-align: left;
}
.post-content th {
    background: var(--color-bg-secondary);
    font-weight: 700;
    color: var(--color-text);
}
.post-content tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* Blockquote */
.post-content blockquote,
.wp-block-quote {
    border-left: 3px solid var(--color-accent);
    background: rgba(145,70,255,0.06);
    margin: 2em 0;
    padding: 20px 24px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    box-shadow: -3px 0 12px var(--color-accent-glow);
}
.post-content blockquote p,
.wp-block-quote p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 0;
}
.post-content blockquote cite,
.wp-block-quote cite {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--color-accent);
    font-style: normal;
    font-weight: 600;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}
.post-tag {
    padding: 5px 14px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    transition: all var(--transition);
}
.post-tag:hover {
    background: rgba(145,70,255,0.1);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Share Buttons */
.share-block {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 32px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.share-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 4px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all var(--transition);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    background: var(--color-bg-secondary);
}
.share-btn:hover {
    transform: translateY(-2px);
    color: var(--color-text);
    border-color: rgba(255,255,255,0.2);
}
.share-btn svg { width: 16px; height: 16px; }
.share-btn--vk:hover { background: rgba(0,119,255,0.1); border-color: #0077FF; color: #0077FF; }
.share-btn--tg:hover { background: rgba(0,136,204,0.1); border-color: #0088CC; color: #0088CC; }
.share-btn--tw:hover { background: rgba(0,0,0,0.3); border-color: #fff; color: #fff; }
.share-btn--copy:hover { background: rgba(145,70,255,0.1); border-color: var(--color-accent); color: var(--color-accent); }

/* Related Posts */
.related-posts { margin-top: 48px; }
.related-posts .section-header { margin-bottom: 20px; }

/* Author Box */
.author-box {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 40px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.author-box-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
    flex-shrink: 0;
}
.author-box-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.author-box-name a:hover { color: var(--color-accent); }
.author-box-bio { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.6; }

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}
.breadcrumbs a { color: var(--color-text-muted); transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumbs .sep { opacity: 0.4; }
.breadcrumbs .current { color: var(--color-text); }

/* === SUBSCRIBE SECTION === */
.subscribe-section {
    background: linear-gradient(135deg, var(--color-card) 0%, rgba(145,70,255,0.08) 100%);
    border: 1px solid rgba(145,70,255,0.2);
    border-radius: var(--radius-lg);
    padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px);
    text-align: center;
    margin: 64px 0;
    position: relative;
    overflow: hidden;
}
.subscribe-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(145,70,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.subscribe-section h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: 10px;
}
.subscribe-section p {
    color: var(--color-text-muted);
    margin-bottom: 28px;
    font-size: 0.95rem;
}
.subscribe-form {
    display: flex;
    gap: 10px;
    max-width: 460px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}
.subscribe-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 12px 18px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition);
}
.subscribe-form input[type="email"]:focus { border-color: var(--color-accent); }
.subscribe-form input[type="email"]::placeholder { color: var(--color-text-muted); }

/* === PAGINATION === */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 48px 0 24px;
}
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all var(--transition);
}
.page-numbers.current,
.page-numbers:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}
.page-numbers.dots { background: none; border: none; }

/* === COMMENTS === */
.comments-section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}
.comments-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 28px; }

.comment-list { list-style: none; }
.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}
.comment-body { display: flex; gap: 14px; }
.comment-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}
.comment-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.comment-author-name { font-weight: 700; font-size: 0.9rem; }
.comment-date { font-size: 0.78rem; color: var(--color-text-muted); }
.comment-text { font-size: 0.9rem; color: rgba(245,245,245,0.8); }

/* Comment Form */
#respond { margin-top: 32px; }
.comment-form-title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.comment-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    padding: 12px 16px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition);
    margin-bottom: 16px;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--color-accent); }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 640px) { .comment-form-row { grid-template-columns: 1fr; } }

/* === ARCHIVE / CATEGORY PAGE === */
.archive-header {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}
.archive-header::after {
    content: '';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(145,70,255,0.12) 0%, transparent 70%);
}
.archive-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: 8px;
}
.archive-title { font-size: clamp(1.3rem, 3vw, 2rem); margin-bottom: 8px; }
.archive-description { color: var(--color-text-muted); font-size: 0.9rem; }

/* === SEARCH PAGE === */
.search-header {
    margin-bottom: 36px;
}
.search-form-main {
    position: relative;
    max-width: 640px;
    margin-bottom: 28px;
}
.search-form-main input[type="search"] {
    width: 100%;
    background: var(--color-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    padding: 14px 56px 14px 20px;
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition);
}
.search-form-main input:focus { border-color: var(--color-accent); }
.search-form-main button {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    display: flex;
}
.search-count { color: var(--color-text-muted); font-size: 0.9rem; }
.search-count strong { color: var(--color-accent); }

/* === 404 PAGE === */
.error-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 40px 20px;
}
.error-404-code {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-accent), #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}
.error-404 h2 { font-size: 1.4rem; margin-bottom: 12px; }
.error-404 p { color: var(--color-text-muted); max-width: 400px; margin: 0 auto 32px; }

/* === ADVERTISEMENT ZONES === */
.ad-zone {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-sm);
    contain: layout style;
}
.ad-zone--728x90 {
    min-height: 90px;
    max-width: 728px;
    margin-inline: auto;
    margin-block: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-zone--300x250 {
    min-height: 250px;
    max-width: 300px;
    margin-inline: auto;
    margin-bottom: 24px;
}
.ad-zone--320x50 {
    min-height: 50px;
    max-width: 320px;
    margin-inline: auto;
    margin-block: 16px;
}
.ad-zone--fluid {
    min-height: 60px;
    margin-block: 24px;
}
.ad-zone:empty { display: none; }

/* Responsive ad zone adjustments */
@media (max-width: 768px) {
    .ad-zone--728x90 {
        min-height: 50px;
        max-width: 320px;
    }
}

/* === FOOTER === */
.site-footer {
    background: var(--color-card);
    border-top: 1px solid var(--color-border);
    padding-top: 56px;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-brand .site-logo {
    font-size: 1.1rem;
    margin-bottom: 14px;
}
.footer-brand p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 20px;
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all var(--transition);
    font-size: 0.85rem;
}
.footer-social-link:hover {
    background: rgba(145,70,255,0.15);
    border-color: var(--color-accent);
    color: var(--color-accent);
}
.footer-col-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    margin-bottom: 16px;
}
.footer-nav li { margin-bottom: 10px; }
.footer-nav a {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    transition: color var(--transition);
}
.footer-nav a:hover { color: var(--color-accent); }

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copy {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.footer-copy a { color: var(--color-accent); }
.footer-legal {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
}
.footer-legal a {
    color: var(--color-text-muted);
    transition: color var(--transition);
}
.footer-legal a:hover { color: var(--color-accent); }

@media (max-width: 1024px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* === UTILITY === */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-48 { margin-top: 48px; }
.divider { border: none; border-top: 1px solid var(--color-border); margin: 40px 0; }

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--color-card) 25%, var(--color-bg-secondary) 50%, var(--color-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 900;
    box-shadow: 0 4px 16px var(--color-accent-glow);
}
.scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.scroll-top:hover { background: var(--color-accent-hover); transform: translateY(-2px); }
.scroll-top svg { width: 20px; height: 20px; }

/* Live badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #EF4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 4px;
}
.live-badge::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: live-pulse 1.4s ease infinite;
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Insights block */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 768px) { .insights-grid { grid-template-columns: 1fr; } }

.insight-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.insight-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-accent);
    opacity: 0;
    transition: opacity var(--transition);
}
.insight-card:hover {
    border-color: rgba(145,70,255,0.3);
    box-shadow: var(--shadow-glow);
}
.insight-card:hover::before { opacity: 1; }
.insight-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-accent);
    opacity: 0.25;
    line-height: 1;
    flex-shrink: 0;
}
.insight-content {}
.insight-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.35;
}
.insight-title a:hover { color: var(--color-accent); }
.insight-meta { font-size: 0.75rem; color: var(--color-text-muted); }

/* Homepage sections spacing */
.home-section { margin-bottom: 56px; }

/* Glow effect utility */
.glow { box-shadow: var(--shadow-glow); }

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* Print */
@media print {
    .site-header, .site-footer, .ad-zone, .share-block, .related-posts { display: none; }
    .site-main { padding-top: 0; }
    body { background: #fff; color: #000; }
}


/* ============================================================
   BIOGRAPHY PAGE — Биография стримеров
   ============================================================ */

/* Заголовок страницы биографии */
.bio-page-header {
    text-align: center;
    padding: 40px 0 32px;
}
.bio-page-header h1 { margin-bottom: 12px; }
.bio-page-desc {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto 28px;
}
.text-accent { color: var(--color-accent); }
.mb-16 { margin-bottom: 16px; display: inline-block; }

/* Фильтры */
.bio-filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 600px;
    margin: 0 auto;
}
.bio-search-input {
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-card);
    color: var(--color-text);
    font-size: 0.95rem;
    transition: border-color var(--transition);
}
.bio-search-input:focus {
    outline: none;
    border-color: var(--color-accent);
}
.bio-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.bio-filter-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}
.bio-filter-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.bio-filter-btn.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* Сетка биографий */
.bio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 48px;
}
@media (max-width: 1024px) { .bio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .bio-grid { grid-template-columns: 1fr; } }

/* Карточка биографии */
.bio-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.bio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--color-accent);
}

/* Бейдж позиции */
.bio-card-rank {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--color-bg-secondary);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
}
.bio-card-rank.rank-top-1 { background: rgba(255, 215, 0, 0.15); color: #FFD700; border-color: #FFD700; }
.bio-card-rank.rank-top-2 { background: rgba(192, 192, 192, 0.15); color: #C0C0C0; border-color: #C0C0C0; }
.bio-card-rank.rank-top-3 { background: rgba(205, 127, 50, 0.15); color: #CD7F32; border-color: #CD7F32; }

/* Аватар */
.bio-card-avatar {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: 16px;
}
.bio-card-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--color-accent);
    object-fit: cover;
}
.bio-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--color-border);
    background: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.bio-card-change {
    position: absolute;
    bottom: -4px;
    right: calc(50% - 48px);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid var(--color-card);
}
.bio-card-change.change-up   { background: #22C55E; color: #fff; }
.bio-card-change.change-down { background: #EF4444; color: #fff; }

/* Информация */
.bio-card-info { text-align: center; }
.bio-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.bio-card-name a:hover { color: var(--color-accent); }
.bio-card-category {
    font-size: 0.8rem;
    color: var(--color-accent);
    margin-bottom: 8px;
    font-weight: 500;
}
.bio-card-excerpt {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
}

/* Статистика */
.bio-card-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.bio-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: var(--color-bg-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    min-width: 70px;
}
.bio-stat-icon  { font-size: 1rem; }
.bio-stat-value { font-size: 0.85rem; font-weight: 700; color: var(--color-text); }
.bio-stat-label { font-size: 0.68rem; color: var(--color-text-muted); }

/* Кнопки карточки */
.bio-card-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn--sm {
    padding: 7px 14px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}
.btn--ghost {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all var(--transition);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* Пустое состояние */
.bio-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--color-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--color-border);
}
.bio-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.bio-empty h2   { margin-bottom: 10px; }
.bio-empty p    { color: var(--color-text-muted); margin-bottom: 20px; }


/* ============================================================
   NAVIGATION — Игровая ссылка
   ============================================================ */
.nav-game-link {
    background: linear-gradient(135deg, rgba(145,70,255,0.2), rgba(145,70,255,0.1)) !important;
    border: 1px solid var(--color-accent) !important;
    color: var(--color-accent) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
}
.nav-game-link:hover {
    background: var(--color-accent) !important;
    color: #fff !important;
}

/* ============================================================
   GAME PAGE — Строитель башни
   ============================================================ */

/* Заголовок */
.game-page-header {
    text-align: center;
    padding: 32px 0 24px;
}
.game-page-desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 480px;
    margin: 8px auto 0;
}

/* Обёртка */
.game-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
    padding-bottom: 60px;
}
@media (max-width: 768px) {
    .game-wrapper { grid-template-columns: 1fr; }
    .game-sidebar  { order: 2; }
    .game-area     { order: 1; }
}

/* Сайдбар */
.game-sidebar { display: flex; flex-direction: column; gap: 16px; }
.game-info-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px;
}
.game-info-card h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--color-accent);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}
.game-rules { display: flex; flex-direction: column; gap: 8px; }
.game-rules li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}
.rule-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
kbd {
    display: inline-block;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.75rem;
    font-family: monospace;
}
.game-records { display: flex; flex-direction: column; gap: 10px; }
.game-record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-sm);
}
.record-label { font-size: 0.8rem; color: var(--color-text-muted); }
.record-value { font-size: 1.3rem; font-weight: 800; color: var(--color-accent); }
.game-tips p { font-size: 0.82rem; color: var(--color-text-muted); line-height: 1.5; }

/* Игровая зона */
.game-area {
    position: relative;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}

/* HUD — счёт */
.game-hud {
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 10;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
.game-score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.score-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.5);
    font-weight: 700;
}
.score-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 20px rgba(145,70,255,0.8);
}
.game-combo {
    background: var(--color-accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    animation: comboPulse 0.4s ease;
}
@keyframes comboPulse {
    0%   { transform: scale(0.8); opacity: 0; }
    60%  { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Canvas */
#gameCanvas {
    display: block;
    width: 100%;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Экраны старта/окончания */
.game-screen {
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 16, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    z-index: 20;
}
/* Управление через JS: style.display = flex/none */
#screen-start { display: flex; }
#screen-over  { display: none; }
.game-screen-content {
    text-align: center;
    padding: 32px 24px;
    max-width: 280px;
}
.game-screen-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: iconFloat 2s ease-in-out infinite;
}
@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
.game-screen-content h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
}
.game-screen-content p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}
.game-final-score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.final-score-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-accent);
}
.btn--lg {
    padding: 12px 28px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}
