html {
    box-sizing: border-box;
}

body {
    font-size: 1.5rem; /* 24px */
    line-height: 1.6;
    background: #f7f7f9;
    color: #222;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1em 0;
    margin-bottom: 2em;
}

menu, nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
    padding: 0;
    margin: 0;
    list-style: none;
}

menu a, nav a {
    color: #ff8800;
    text-decoration: none;
    font-weight: 500;
    padding: 0.25em 0.5em;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
menu a:hover, nav a:hover {
    background: #ffe5c2;
    color: #d35400;
}

menu a.active, nav a.active {
    color: #fff;
    background: #ff8800;
    font-weight: 700;
    text-decoration: underline;
}

main {
    flex: 1 0 auto;
    max-width: 1024px;
    margin: 0 auto 2em auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 2em 40px;
    width: 100%;
}

.backgroundBlack {
    background-color: #000;
    padding: 1em 0;
}

.headerImg {
    display: block;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    max-width: 100%;
    height: auto;
    background: #000;
}

img {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 100%;
    height: auto;
}

h1 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 0.5em;
    font-weight: 700;
}
h2, main h2 {
    text-align: center;
    margin-top: 2em;
    margin-bottom: 1em;
    font-size: 1.4em;
    color: #222;
    font-weight: 700;
}
section h2 {
    text-align: center;
    margin-top: 2em;
    margin-bottom: 1em;
    font-size: 1.4em;
    color: #222;
    font-weight: 700;
}

ol {
    list-style-position: inside;
    margin-left: 0;
    padding-left: 0;
    padding: 0 1em;
}

p {
    margin: 1em 0;
    padding: 0 1em;
}

a {
    color: #0074d9;
    text-decoration: underline;
    transition: color 0.2s;
}

a:hover {
    color: #ff8800;
}

/* Исключения для кнопок и специальных ссылок */
a.link-btn,
a[class*="-btn"] {
    text-decoration: none;
    color: white;
}

a.link-btn:hover,
a[class*="-btn"]:hover {
    color: white;
}

footer {
    flex-shrink: 0;
    width: 100%;
    background: #fff;
    color: #888;
    text-align: center;
    padding: 1.5em 0 1em 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
    font-size: 1rem;
    letter-spacing: 0.02em;
    margin-top: 2em;
}

.portrait-img {
    display: block;
    margin: 0 auto 2em auto;
    max-width: 220px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Кнопки поддержки */
.support-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 30px 0;
}

/* Специальные стили для кнопок на странице donors - горизонтальное расположение */
.donors-support-links {
    flex-direction: row !important;
    justify-content: center;
    gap: 20px;
}

.donors-support-links .link-btn {
    flex: 1;
    max-width: 300px;
    margin: 0;
}

.support-links .link-btn,
a.link-btn {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 4px auto;
    padding: 0.7em 1em;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.1em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.support-links .link-btn:last-child,
a.link-btn:last-child {
    margin-bottom: 0;
}

/* Цветные кнопки */
.vk-btn { background: #4a76a8; }
.twitch-btn { background: #9146ff; }
.youtube-btn { background: #ff0000; }
.discord-btn { background: #5865f2; }
.telegram-btn { background: #0088cc; }
.vkgroup-btn { background: #4a76a8; }
.green-btn { background: #2ecc40; }
.dzen-btn { background: #000000; color: #fff; }
.donatty-btn { background: #000000; color: #fff; }
.oda-btn { background: #8b5cf6; }
.steam-btn { background: #171a21; color: #fff; }
.gog-btn { background: #8b5cf6; }
.rankone-btn { background: #1a1a1a; color: #fff; }
.sponsr-btn { background: #ff6b35; }
.goodgame-btn { background: #1e3a8a; }
.trovo-btn { background: #2ecc40; }

.support-links .link-btn:hover,
a.link-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    color: #fff;
    filter: brightness(1.08);
}

.btn-title {
    display: block;
    font-size: 1.08em;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.btn-desc {
    display: block;
    font-size: 0.95em;
    font-weight: 400;
    margin-top: 0;
    opacity: 0.85;
}

section {
    width: 100%;
}
section:first-of-type h2 {
    margin-top: 0;
}

/* Адаптивность */
@media (max-width: 600px) {
    body {
        font-size: 1.4rem;
    }
    main {
        padding: 1em 0.7em;
        border-radius: 0;
        box-shadow: none;
    }
    header, footer {
        padding-left: 0.2em;
        padding-right: 0.2em;
    }
    .headerImg {
        border-radius: 0;
    }
    img {
        border-radius: 0;
    }
    p {
        padding: 0 0.2em;
        font-size: 1.3rem;
        line-height: 1.7;
    }
    h1 {
        font-size: 2.6rem;
    }
    h2, main h2, section h2 {
        font-size: 1.8em;
    }
    a.link-btn {
        max-width: 100%;
        font-size: 1.3rem;
        padding: 0.8em 0.5em;
    }
    .btn-title {
        font-size: 1.2em;
    }
    .btn-desc {
        font-size: 1.1em;
    }
    menu a, nav a {
        font-size: 1.5rem;
        padding: 0.4em 0.8em;
    }
    menu, nav {
        gap: 1em;
    }
    footer {
        font-size: 1.2rem;
    }
    .support-links .link-btn,
    a.link-btn {
        font-size: 1em;
        padding: 10px 0 7px 0;
        max-width: 100%;
    }
    .btn-title {
        font-size: 1em;
    }
    .btn-desc {
        font-size: 0.9em;
    }
}

/* Время последнего обновления */
#last-update-time {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.95em;
    margin-bottom: 2em;
    font-style: italic;
}

/* Стили для донатеров */
.donors-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.donors-header {
    text-align: center;
    margin-bottom: 30px;
}

.donors-title {
    font-size: 2.5em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.donors-subtitle {
    font-size: 1.1em;
    color: #666;
    font-weight: 400;
}

.donors-list {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.donor-item {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1.2em 1.5em;
    margin-bottom: 1em;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.donor-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #ff8800;
}

.donor-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ff8800 0%, #ff6b35 100%);
    border-radius: 0 2px 2px 0;
}

/* Специальные стили для топ-3 */
.donor-item:nth-child(1)::before {
    background: linear-gradient(180deg, #ffd700 0%, #ffb347 100%);
    width: 6px;
}

.donor-item:nth-child(2)::before {
    background: linear-gradient(180deg, #c0c0c0 0%, #a9a9a9 100%);
    width: 5px;
}

.donor-item:nth-child(3)::before {
    background: linear-gradient(180deg, #cd7f32 0%, #b8860b 100%);
    width: 5px;
}

.donor-rank {
    background: linear-gradient(135deg, #ff8800 0%, #ff6b35 100%);
    color: white;
    font-weight: 700;
    font-size: 1.1em;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.2em;
    box-shadow: 0 4px 12px rgba(255, 136, 0, 0.3);
    flex-shrink: 0;
}

/* Специальные стили для топ-3 рангов */
.donor-item:nth-child(1) .donor-rank {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    font-size: 1.2em;
    width: 55px;
    height: 55px;
}

.donor-item:nth-child(2) .donor-rank {
    background: linear-gradient(135deg, #c0c0c0 0%, #a9a9a9 100%);
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.4);
    width: 52px;
    height: 52px;
}

.donor-item:nth-child(3) .donor-rank {
    background: linear-gradient(135deg, #cd7f32 0%, #b8860b 100%);
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4);
    width: 52px;
    height: 52px;
}

.donor-info {
    flex: 1;
    margin-right: 1em;
}

.donor-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.2em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.donor-amount {
    font-size: 1.5em;
    font-weight: 700;
    color: #ff8800;
    text-shadow: 0 1px 3px rgba(255, 136, 0, 0.2);
    background: linear-gradient(135deg, #ff8800 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

/* Специальные стили для топ-3 сумм */
.donor-item:nth-child(1) .donor-amount {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6em;
}

.donor-item:nth-child(2) .donor-amount {
    background: linear-gradient(135deg, #c0c0c0 0%, #a9a9a9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5em;
}

.donor-item:nth-child(3) .donor-amount {
    background: linear-gradient(135deg, #cd7f32 0%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5em;
}

/* Анимации */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

.update-notification {
    animation: slideIn 0.3s ease-out;
}

/* Загрузка */
.loading {
    text-align: center;
    padding: 2em;
    color: #7f8c8d;
    font-style: italic;
    font-size: 1.1em;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 600px) {
    .donor-item {
        padding: 1em;
        margin-bottom: 0.8em;
        border-radius: 12px;
    }
    
    .donor-rank {
        width: 40px;
        height: 40px;
        font-size: 0.9em;
        margin-right: 1em;
    }
    
    .donor-item:nth-child(1) .donor-rank {
        width: 45px;
        height: 45px;
        font-size: 1em;
    }
    
    .donor-item:nth-child(2) .donor-rank,
    .donor-item:nth-child(3) .donor-rank {
        width: 42px;
        height: 42px;
    }
    
    .donor-name {
        font-size: 1.1em;
    }
    
    .donor-amount {
        font-size: 1.3em;
    }
    
    .donor-item:nth-child(1) .donor-amount {
        font-size: 1.4em;
    }
    
    .donor-item:nth-child(2) .donor-amount,
    .donor-item:nth-child(3) .donor-amount {
        font-size: 1.3em;
    }
    
    /* Адаптивность для кнопок поддержки */
    .support-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    /* На мобильных устройствах кнопки donors снова вертикально */
    .donors-support-links {
        flex-direction: column !important;
        gap: 15px;
    }
    
    .donors-support-links .link-btn {
        max-width: 100%;
        flex: none;
    }
    
    .support-links .link-btn,
    a.link-btn {
        min-width: 250px;
        padding: 15px 20px;
    }
    
    .btn-title {
        font-size: 1.1em;
    }
    
    .btn-desc {
        font-size: 0.85em;
    }
}

/* Компактные кнопки только для страницы links */
.links-btns .link-btn {
    font-size: 1em;
    padding: 0.5em 0.7em;
    border-radius: 10px;
    margin-bottom: 14px;
    min-width: 180px;
    max-width: 340px;
    width: 100%;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.links-btns .link-btn .btn-title {
    font-size: 1.05em;
    margin-bottom: 4px;
    line-height: 1.2;
}

.links-btns .link-btn .btn-desc {
    font-size: 0.92em;
    line-height: 1.3;
    opacity: 0.9;
}

/* Сетка для секций на странице links */
.links-grid-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 24px;
    margin-bottom: 2.5em;
}
.links-grid-row .link-btn {
    flex: 1 1 48%;
    max-width: 340px;
    min-width: 180px;
    margin: 0;
    box-sizing: border-box;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.links-grid-row .link-btn.single-in-row {
    flex-basis: 48%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 800px) {
    .links-grid-row .link-btn,
    .links-grid-row .link-btn.single-in-row {
        flex-basis: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .links-grid-row {
        flex-direction: column;
        gap: 12px;
    }
}

/* Адаптивность для кнопок на странице links */
.links-btns .link-btn {
    min-height: 70px;
    padding: 12px 8px;
    font-size: 0.95em;
}

.links-btns .link-btn .btn-title {
    font-size: 1em;
    margin-bottom: 3px;
}

.links-btns .link-btn .btn-desc {
    font-size: 0.85em;
}

.links-grid-row .link-btn {
    min-height: 80px;
    padding: 10px 6px;
}

/* Стили для главной страницы */
.hero-section {
    display: flex;
    align-items: center;
    gap: 2em;
    margin-bottom: 2em;
    padding: 0 1em;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    text-align: left;
    margin-bottom: 0.5em;
}

.intro {
    font-size: 1.2em;
    color: #666;
    margin: 0;
    padding: 0;
}

.about-section {
    margin-bottom: 2em;
}

.quick-links-section {
    margin-bottom: 2em;
}

.highlight-box {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe5c2 100%);
    border: 2px solid #ff8800;
    border-radius: 12px;
    padding: 1.5em;
    margin: 1.5em 0;
    box-shadow: 0 4px 12px rgba(255, 136, 0, 0.1);
}

.highlight-box h3 {
    margin: 0 0 0.5em 0;
    color: #d35400;
    font-size: 1.3em;
}

.highlight-box p {
    margin: 0;
    padding: 0;
    color: #333;
}

.highlight-box code {
    background: #ff8800;
    color: white;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-weight: bold;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1em;
    margin-top: 1em;
}

.quick-link-btn {
    display: flex;
    flex-direction: column;
    padding: 1.5em;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quick-link-btn.primary {
    background: linear-gradient(135deg, #ff8800 0%, #d35400 100%);
}

.quick-link-btn.secondary {
    background: linear-gradient(135deg, #0074d9 0%, #0056b3 100%);
}

.quick-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.quick-link-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.quick-link-desc {
    font-size: 0.9em;
    opacity: 0.9;
}

.rules-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5em 2em;
    margin: 1em 0;
}

.rules-list li {
    margin-bottom: 0.8em;
    line-height: 1.5;
}

.rules-list li:last-child {
    margin-bottom: 0;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 600px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 1em;
    }
    
    .hero-content h1 {
        text-align: center;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .highlight-box {
        padding: 1em;
        margin: 1em 0;
    }
    
    .rules-list {
        padding: 1em 1.5em;
    }
}

/* Стили для страницы валюты */
.currency-hero {
    text-align: center;
    margin-bottom: 3em;
    padding: 2em;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe5c2 100%);
    border-radius: 16px;
    border: 2px solid #ffd699;
}

.currency-hero h1 {
    color: #d35400;
    margin-bottom: 0.5em;
    font-size: 2.5rem;
}

.currency-intro {
    font-size: 1.2em;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.currency-methods {
    margin-top: 2em;
}

.currency-card {
    background: #fff;
    border-radius: 16px;
    padding: 2em;
    margin-bottom: 2em;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    transition: transform 0.2s, box-shadow 0.2s;
}

.currency-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.currency-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5em;
    gap: 1em;
}

.currency-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    border: 3px solid #e9ecef;
}

.currency-info h3 {
    margin: 0 0 0.5em 0;
    font-size: 1.4em;
    color: #333;
    font-weight: 700;
}

.currency-amount {
    font-size: 1.3em;
    font-weight: 700;
    color: #ff8800;
    background: #fff5e6;
    padding: 0.3em 0.8em;
    border-radius: 20px;
    display: inline-block;
    border: 2px solid #ffd699;
}

.platforms-list {
    margin-top: 1.5em;
}

.platforms-list h4 {
    margin: 0 0 1em 0;
    color: #666;
    font-size: 1em;
    font-weight: 600;
}

.platform-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
    justify-content: center;
}

.platform-btn {
    font-size: 1em;
    padding: 0.5em 0.7em;
    border-radius: 10px;
    margin-bottom: 14px;
    min-width: 180px;
    max-width: 340px;
    width: 100%;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.platform-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: white;
}

.platform-name {
    font-size: 1.05em;
    margin-bottom: 4px;
    line-height: 1.2;
    font-weight: 600;
}

.platform-note {
    font-size: 0.92em;
    line-height: 1.3;
    opacity: 0.9;
    font-weight: 400;
}

/* Специфичные стили для карточек */
.watching-card .currency-icon {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
}

.follow-card .currency-icon {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    border-color: #e91e63;
}

.message-card .currency-icon {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-color: #4caf50;
}

.subscription-card .currency-icon {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 100%);
    border-color: #ff9800;
}

.raid-card .currency-icon {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-color: #9c27b0;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 600px) {
    .currency-hero {
        padding: 1.5em;
        margin-bottom: 2em;
    }
    
    .currency-hero h1 {
        font-size: 2rem;
    }
    
    .currency-intro {
        font-size: 1.1em;
    }
    
    .currency-card {
        padding: 1.5em;
        margin-bottom: 1.5em;
    }
    
    .currency-card-header {
        flex-direction: column;
        text-align: center;
        gap: 1em;
    }
    
    .currency-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .platform-buttons {
        flex-direction: column;
    }
    
    .platform-btn {
        min-width: auto;
        width: 100%;
    }
}

/* --- Стили для таблицы игр и фильтров --- */
#games-table-container {
    max-width: 1024px;
    margin: 0 auto 2em auto;
    overflow-x: auto;
    box-sizing: border-box;
    margin-top: 32px;
    margin-bottom: 32px;
}
.games-table {
    width: 100%;
    min-width: 600px;
    font-size: 1.08em;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.games-table th, .games-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    text-align: left;
    word-break: break-word;
    vertical-align: middle;
    line-height: 1.5;
}
.games-table th {
    background: #f7f7f7;
    font-size: 1.1em;
    font-weight: 600;
    white-space: nowrap;
    text-align: left;
}
.games-table tr:last-child td {
    border-bottom: none;
}
.games-table tbody tr:nth-child(even) {
    background: #fafbfc;
}
.games-table tbody tr:hover {
    background: #e6f7ff;
    transition: background 0.2s;
}
#games-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}
#games-filters input[type="search"], #games-filters select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
}
@media (max-width: 600px) {
    .games-table th, .games-table td {
        padding: 8px 6px;
        font-size: 0.95em;
    }
    #games-table-container {
        padding: 8px;
    }
    #games-filters {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    .games-table {
        min-width: 350px;
    }
}

.games-cards-list {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: flex-start;
    margin-top: 24px;
    align-items: stretch;
    row-gap: 32px;
}
.game-card {
    background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(255,136,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
    padding: 1.5em 1.2em 1.2em 1.2em;
    min-width: 240px;
    max-width: 340px;
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 1em;
    transition: box-shadow 0.22s, transform 0.22s;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    border-left: 8px solid #ff8800;
}
.game-card.nostream { border-left-color: #bdbdbd; }
.game-card.stream { border-left-color: #0074d9; }
.game-card.streaming { border-left-color: #ff8800; }
.game-card.wanttoreplay { border-left-color: #2ecc40; }
.game-card:hover {
    box-shadow: 0 8px 28px rgba(255,136,0,0.18), 0 6px 24px rgba(0,0,0,0.13);
    transform: translateY(-4px) scale(1.035);
}
.game-card-title {
    font-size: 1.32em;
    font-weight: 900;
    color: #d35400;
    margin-bottom: 0.15em;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 0 #fff2e0;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.game-card-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 0.1em;
    background: #fff6e8;
    border-radius: 10px;
    padding: 0.6em 0.7em 0.5em 1em;
}
.game-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #ff8800 !important;
    border: 2px solid #ff8800;
    border-radius: 8px;
    padding: 0.38em 1em 0.38em 0.8em;
    font-size: 1.08em;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(255,136,0,0.06);
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s;
    cursor: pointer;
}
.game-link-btn:hover {
    background: #ff8800;
    color: #fff !important;
    border-color: #d35400;
    box-shadow: 0 4px 16px rgba(255,136,0,0.18);
}
.game-link-btn svg {
    width: 1.3em;
    height: 1.3em;
    vertical-align: middle;
    fill: currentColor;
}
.game-card-status {
    display: flex;
    align-items: center;
    gap: 0.7em;
    margin-bottom: 0.1em;
}
.status-badge {
    display: inline-block;
    padding: 0.28em 1.1em;
    border-radius: 14px;
    font-size: 1.05em;
    font-weight: 800;
    color: #fff;
    background: #888;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    text-shadow: 0 1px 2px rgba(0,0,0,0.10);
    border: 2px solid #e0e0e0;
}
.status-badge.nostream { background: #bdbdbd; color: #444; border-color: #bdbdbd; }
.status-badge.stream { background: #0074d9; border-color: #0074d9; }
.status-badge.streaming { background: #ff8800; border-color: #ff8800; }
.status-badge.wanttoreplay { background: #2ecc40; border-color: #2ecc40; }
.game-card-comment {
    font-size: 1.08em;
    color: #7a5c2e;
    background: #fff8ef;
    border-radius: 10px;
    padding: 0.8em 1.2em;
    margin-top: 0.2em;
    word-break: break-word;
    display: flex;
    align-items: flex-start;
    gap: 0.7em;
    border-left: 3px solid #ff8800;
}
.game-card-comment .comment-icon {
    color: #ff8800;
    font-size: 1.3em;
    margin-top: 2px;
}
@media (max-width: 800px) {
    .games-cards-list {
        flex-direction: column;
        gap: 16px;
    }
    .game-card {
        min-width: 0;
        max-width: 100%;
        padding: 1em 0.6em;
    }
    .game-card-links {
        padding: 0.5em 0.4em 0.4em 0.7em;
    }
}

/* --- Новый стиль карточки игр --- */
.game-card-dark {
    background: #232323;
    color: #f3f3f3;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 180px;
    max-height: 220px;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.13);
    overflow: hidden;
    margin-bottom: 0;
    width: 440px;
    min-width: 340px;
    max-width: 460px;
    flex: 0 1 440px;
}
.game-card-poster-col {
    flex: 0 0 110px;
    background: #181818;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    min-height: 160px;
}
.game-card-poster {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    background: #222;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    display: block;
}
.game-card-poster.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 140px;
    background: #333;
    color: #aaa;
    font-size: 0.98em;
    border-radius: 8px;
    font-style: italic;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.game-card-info-col {
    flex: 1 1 0;
    padding: 14px 16px 14px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5em;
    overflow: hidden;
}
.game-card-dark .game-card-title {
    color: #fff;
    font-size: 1.18em;
    font-weight: 800;
    margin-bottom: 0.2em;
    max-height: 2.7em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    white-space: normal;
}
.game-card-dark .game-card-status .status-badge {
    background: #444;
    color: #fff;
    border: none;
    font-size: 1em;
    font-weight: 700;
    padding: 0.18em 0.9em;
    border-radius: 10px;
}
.game-card-dark .status-badge.nostream { background: #666; color: #fff; }
.game-card-dark .status-badge.stream { background: #0074d9; }
.game-card-dark .status-badge.streaming { background: #ff8800; }
.game-card-dark .status-badge.wanttoreplay { background: #2ecc40; }
.game-card-dark .status-badge.dorp { background: #b71c1c; }
.game-card-dark .game-card-links {
    background: none;
    padding: 0;
    gap: 10px;
}
.game-card-dark .game-link-btn {
    background: #0074d9;
    color: #fff !important;
    border: none;
    border-radius: 7px;
    font-size: 0.98em;
    font-weight: 700;
    padding: 0.32em 0.85em 0.32em 0.7em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}
.game-card-dark .game-link-btn:hover {
    background: #005fa3;
    color: #fff !important;
}
.game-card-dark .game-link-btn svg {
    width: 1.1em;
    height: 1.1em;
    fill: currentColor;
}
.game-card-dark .game-card-comment {
    background: #181818;
    color: #bbb;
    border-radius: 7px;
    padding: 0.5em 0.8em;
    margin-top: 0.1em;
    font-size: 0.96em;
    border-left: 3px solid #ff8800;
    display: flex;
    align-items: flex-start;
    gap: 0.6em;
    max-height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    white-space: normal;
}
.game-card-dark .comment-icon {
    color: #ff8800;
    font-size: 1.1em;
    margin-top: 2px;
}
@media (max-width: 700px) {
    .game-card-dark {
        flex-direction: column;
        max-width: 100%;
    }
    .game-card-poster-col {
        min-width: 100%;
        min-height: 120px;
        justify-content: center;
    }
    .game-card-poster, .game-card-poster.placeholder {
        width: 90px;
        height: 120px;
    }
    .game-card-info-col {
        padding: 14px 10px 14px 10px;
    }
}
@media (max-width: 900px) {
    .game-card-dark {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        flex: 1 1 100%;
    }
    .games-cards-list {
        flex-direction: column;
        gap: 18px;
        row-gap: 18px;
    }
}

/* Минималистичный список игр */
.games-minimal-list {
    list-style: none;
    padding: 0;
    margin: 2em auto;
    max-width: 1024px;
    width: 100%;
    box-sizing: border-box;
    min-height: 3em;
    display: flex;
    flex-direction: column;
}
.games-minimal-list li {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 0.7em 1em;
    border-bottom: 1px solid #eee;
    font-size: 1.15em;
    transition: background 0.15s;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    flex: 1 1 auto;
}
.games-minimal-list .loading {
    width: 100%;
    text-align: center;
    display: block;
    justify-content: center;
}
.game-status {
    font-size: 1.2em;
    width: 1.5em;
    text-align: center;
}
.game-title {
    flex: 1;
    font-weight: 500;
    color: #222;
}
.game-comment {
    color: #888;
    cursor: pointer;
    font-size: 1em;
}

/* Иконки-ссылки в минималистичном списке игр */
.game-links {
    display: flex;
    gap: 0.4em;
    align-items: center;
    margin-left: 0.5em;
}
.game-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7em;
    height: 1.7em;
    font-size: 1.1em;
    border-radius: 50%;
    background: none;
    color: #ff8800;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    border: none;
    padding: 0;
}
.game-link-icon svg {
    width: 1.2em;
    height: 1.2em;
    display: block;
}
.game-link-icon:hover {
    background: #ffe5c2;
    color: #d35400;
}

/* Цветные иконки статусов для минималистичного списка игр */
.status-icon {
    font-size: 1.3em;
    margin-right: 0.2em;
    vertical-align: middle;
    display: inline-block;
    width: 1.5em;
    text-align: center;
}
.game-status.nostatus .status-icon { color: #bbb; }
.game-status.stream .status-icon { color: #2ecc40; }
.game-status.nostream .status-icon { color: #e74c3c; }
.game-status.replay .status-icon { color: #ff8800; }
.game-status.dorp .status-icon { color: #111; }
.game-status.streaming .status-icon { color: #8e44ad; }

.game-comment-expanded {
    background: #fffbe6;
    color: #7a5c2e;
    border-left: 3px solid #ff8800;
    border-radius: 0 0 10px 10px;
    margin: 0 0 1em 2.5em;
    padding: 0.8em 1.2em;
    font-size: 1em;
    box-shadow: 0 2px 8px rgba(255,136,0,0.06);
    transition: all 0.2s;
    max-width: 90%;
    word-break: break-word;
}

.games-status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2em 2em;
    margin: 1.2em 0 0.5em 0;
    font-size: 1em;
    align-items: center;
    color: #555;
    background: #f7f7f9;
    border-radius: 8px;
    padding: 0.7em 1.2em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4em;
    white-space: nowrap;
}
.games-status-legend .status-icon {
    margin-right: 0.2em;
    font-size: 1.1em;
}