/* ----- RESET & GLOBAL ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f3f5f7;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #222;
    font-size: 13px;
    line-height: 1.4;
}

a {
    color: #1f5fbf;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ----- HEADER ----- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #d9dde3;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1400px;
    margin: auto;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 18px;
    white-space: nowrap;
}

.nav-links a {
    color: #444;
    font-size: 13px;
    font-weight: 500;
}

.nav-links a:hover {
    color: #1f5fbf;
    text-decoration: none;
}

.search-box {
    flex: 1;
    min-width: 250px;
}
/* Стили для стандартной формы поиска WordPress */
.search-box form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccd2da;
    border-radius: 8px;
    background: #f7f9fb;
    font-size: 13px;
}

.search-box button,
.search-box input[type="submit"] {
    padding: 8px 16px;
    background: #1f5fbf;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.search-box button:hover,
.search-box input[type="submit"]:hover {
    background: #0d4ca0;
}
.search-box form div {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-box input#s {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccd2da;
    border-radius: 8px;
    background: #f7f9fb;
    font-size: 13px;
}

.search-box input#searchsubmit {
    padding: 8px 16px;
    background: #1f5fbf;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.search-box input#searchsubmit:hover {
    background: #0d4ca0;
}

.top-links {
    display: flex;
    gap: 14px;
    white-space: nowrap;
	color: #444;
	text-decoration: none;
}

.top-links a {
    color: #1f5fbf;
    text-decoration: none;
}

/* ----- LAYOUT ----- */
.layout {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 18px;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 20px;
}

/* ----- SIDEBAR ----- */
.sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cover-image {
    width: 208px;
    height: 288px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #dfe3e8;
    object-fit: cover;
    display: block;
}

.ratings-box {
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    margin-bottom: 18px;
    overflow: hidden;
    width: 100%;
}

.ratings-box .ratings-content {
    padding: 14px;
    text-align: center;
}

.ratings-box h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #1f5fbf;
}

.ratings-box .avg-score {
    font-size: 24px;
    font-weight: 700;
    color: #1f5fbf;
    margin-bottom: 8px;
}

.ratings-box .scores-list {
    font-size: 11px;
    color: #666;
}

.game-info-widget {
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    margin-bottom: 18px;
    overflow: hidden;
    width: 100%;
}

.game-info-widget table {
    width: 100%;
    border-collapse: collapse;
}

.game-info-widget td {
    padding: 8px 12px;
    vertical-align: top;
    border-bottom: 1px solid #edf0f3;
}

.game-info-widget tr:last-child td {
    border-bottom: none;
}

.game-info-widget .bob-row-headline {
    background: #fafbfd;
    text-align: center;
    font-size: 18px;
    padding: 12px;
}

.game-info-widget .bob-row-content {
    padding: 8px 12px;
}

.company-system-line {
    margin-bottom: 5px;
}

/* ----- MAIN CONTENT ----- */
.game-card {
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 14px;
    overflow: hidden;
}

.game-title {
    padding: 20px 24px 0 24px;
}

.game-title h1 {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    line-height: 1.2;
}

/* ----- TABS ----- */
.tabs {
    display: flex;
    border-bottom: 1px solid #edf0f3;
    background: #fafbfd;
    flex-wrap: wrap;
    margin-top: 8px;
}

.tab-btn {
    flex: 1;
    padding: 13px 10px;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    border-right: 1px solid #edf0f3;
    transition: 0.15s;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    color: #444;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn.active {
    background: #fff;
    color: #111;
    border-bottom: 2px solid #1f5fbf;
    margin-bottom: -1px;
}

.tab-btn:hover {
    background: #f1f4f7;
}

.tab-content {
    display: none;
    padding: 20px 24px;
    line-height: 1.5;
}

.tab-content.active {
    display: block;
}

.speedrun-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.speedrun-category {
    flex: 1;
    min-width: 150px;
}

.speedrun-category strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #1f5fbf;
}

.speedrun-category ol {
    margin: 0;
    padding-left: 20px;
}

.speedrun-category li {
    margin-bottom: 6px;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1100px) {
    .layout {
        grid-template-columns: 1fr;
    }
    .speedrun-stats {
        flex-direction: column;
        gap: 16px;
    }
}
/* Убираем подчёркивание у всех ссылок в шапке */
.site-header a {
    text-decoration: none;
}

/* Меняем цвет при наведении */
.site-header a:hover {
    color: #1f5fbf;
    text-decoration: none;
}

/* Отдельно для логотипа */
.logo a {
    color: #111;
    text-decoration: none;
}

.logo a:hover {
    color: #1f5fbf;
    text-decoration: none;
}

/* ----- FOOTER (modern) ----- */
.site-footer {
    background: #fff;
    border-top: 1px solid #dfe3e8;
    margin-top: 60px;
    padding: 40px 0 30px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 18px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1f5fbf;
    display: inline-block;
}

.footer-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-row {
    font-size: 12px;
    line-height: 1.5;
}

.detail-label {
    color: #666;
    font-weight: 500;
    min-width: 90px;
    display: inline-block;
}

.detail-value {
    color: #333;
}

.footer-description {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.footer-credits {
    font-size: 12px;
    margin-bottom: 10px;
}

.footer-credits a {
    color: #1f5fbf;
    text-decoration: none;
}

.footer-credits a:hover {
    text-decoration: underline;
}

.footer-copyright {
    font-size: 11px;
    color: #888;
    margin-top: 15px;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .footer-columns {
        flex-direction: column;
        gap: 25px;
    }
    
    .footer-col {
        text-align: left;
    }
    
    .footer-col h4 {
        display: block;
    }
}