h1 {
  text-align: center;
  margin: 30px 0;
  font-size: 2em;
}

h2 {
  margin: 25px 0 15px 0;
  font-size: 1.5em;
  color: #1f1f1f;
}

table.main-info {
  width: 100%;
  border-collapse: collapse;
}

td img {
  border-radius: 8px;
  max-width: 100%;
}

input[type="button"] {
  background: #00bfff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  margin-top: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}

input[type="button"]:hover {
  background: #0095cc;
}

td p, td strong {
  margin: 5px 0;
  line-height: 1.5;
}

strong {
  display: block;
  margin-top: 15px;
  font-size: 1.1em;
}

table.reviews-news {
  border-spacing: 10px;
  margin-bottom: 30px;
}

table.reviews-news td {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 50%; 
}


table.reviews-news td p {
  text-align: justify;
}

table.screenshots img {
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

    .tab-btn:hover {
        color: #00bfff;
    }

    .tab-btn.active {
        color: #00bfff;
        border-bottom-color: #00bfff;
    }

.tab-content-area {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-height: 150px;
}
/* Кнопка "Смотреть трейлер" */
#playTrailer, .btn-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 0.95em;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.2;
    box-sizing: border-box;
    min-width: 140px; 
}
#playTrailer {
    background: #00bfff;
    color: white;
}

    #playTrailer:hover {
        background: #0095cc;
    }


/* Модальное окно */
.modal {
  display: none; /* Скрыто по умолчанию */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7); /* затемнённый фон */
}

/* Содержимое модалки */
.modal-content {
  position: relative;
  margin: 5% auto;
  padding: 15px;
  width: 80%;
  max-width: 800px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Закрытие модалки */
.modal .close {
  color: #333;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal .close:hover {
  color: #00bfff;
}

/* Плеер */
.modal iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 8px;
  background: #000;
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-block {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.review-author {
    font-weight: 600;
}

.review-rating {
    color: #ffb400;
}

.review-text {
    color: #333;
    line-height: 1.5;
    margin: 0 0 8px;
}

.review-date {
    font-size: 0.85em;
    color: #888;
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Сетка скриншотов */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.screenshot-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

    .screenshot-item:hover {
        transform: scale(1.02);
    }

    .screenshot-item img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        display: block;
    }

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    text-align: center;
    padding: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.9em;
}

.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
}

/* Лайтбокс */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.2s;
}

    .close-lightbox:hover {
        color: #00bfff;
    }

@media (max-width: 600px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
}

/* === Вкладка новостей === */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.news-card {
    display: block;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

    .news-card:hover {
        border-color: #00bfff;
        box-shadow: 0 4px 12px rgba(0, 191, 255, 0.15);
        transform: translateX(3px);
    }

    .news-card h4 {
        margin: 0 0 8px;
        color: #00bfff;
        font-size: 1.1em;
    }

    .news-card .news-excerpt {
        margin: 0 0 8px;
        color: #555;
        font-size: 0.95em;
        line-height: 1.5;
    }

    .news-card .news-date {
        font-size: 0.85em;
        color: #888;
    }

.btn-more-news, .btn-browse-news {
    display: inline-block;
    margin-top: 15px;
    color: #00bfff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

    .btn-more-news:hover, .btn-browse-news:hover {
        color: #0095cc;
        text-decoration: underline;
    }

.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
}

    .empty-state .btn-browse-news {
        display: block;
        margin-top: 10px;
    }

.review-section {
    margin-top: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.review-form .form-group {
    margin-bottom: 15px;
}

.review-form textarea, .review-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    resize: vertical;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

    .star-rating input {
        display: none;
    }

    .star-rating label {
        font-size: 24px;
        color: #ccc;
        cursor: pointer;
        transition: color 0.2s;
    }

        .star-rating label:hover,
        .star-rating label:hover ~ label,
        .star-rating input:checked ~ label {
            color: #ffb400;
        }

.btn-submit-review {
    background: #00bfff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

    .btn-submit-review:hover:not(:disabled) {
        background: #0095cc;
    }

    .btn-submit-review:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.review-message {
    margin-top: 10px;
    font-size: 0.9em;
    min-height: 20px;
}

    .review-message.success {
        color: #28a745;
    }

    .review-message.error {
        color: #dc3545;
    }

.fade-in {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-favorite {
    background: transparent;
    border-color: #00bfff;
    color: #00bfff;
}

    .btn-favorite:hover {
        background: rgba(0, 191, 255, 0.1);
        transform: scale(1.03);
    }

    .btn-favorite.active {
        border-color: #ff4757;
        color: #ff4757;
        background: rgba(255, 71, 87, 0.08);
    }
/* === Уведомления === */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #fff;
    color: #1f1f1f;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-left: 4px solid #00bfff;
    font-size: 0.95em;
    font-weight: 500;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease forwards;
}

.toast-success {
    border-left-color: #28a745;
}

.toast-error {
    border-left-color: #dc3545;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.news-tab .btn-more-news {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 24px;
    background: #00bfff;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.25);
    border: none;
    cursor: pointer;
}

    .news-tab .btn-more-news:hover {
        background: #0095cc;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 191, 255, 0.4);
        gap: 12px; /* Плавный сдвиг стрелки вправо */
        color: #fff;
    }

    .news-tab .btn-more-news:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(0, 191, 255, 0.2);
    }

/* Адаптив для мобильных */
@media (max-width: 600px) {
    .news-tab .btn-more-news {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
}

.game-section {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

    .game-section h2 {
        margin: 0 0 15px 0;
        color: #00bfff;
        font-size: 1.3em;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .game-section p,
    .game-section .req-content {
        white-space: pre-line;
        line-height: 1.7;
        color: #333;
        font-size: 0.95em;
        margin: 0;
    }

.req-content strong {
    display: block;
    margin: 12px 0 6px 0;
    color: #00bfff;
    font-weight: 600;
    font-size: 1.05em;
}

.req-content ul {
    padding-left: 20px;
    margin: 8px 0;
}

.req-content li {
    margin-bottom: 5px;
    color: #555;
}

/* Адаптивность */
@media (max-width: 600px) {
    .game-section {
        padding: 20px;
    }

        .game-section h2 {
            font-size: 1.15em;
        }
}