/* ===== BASE STYLES ===== */
body {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 2rem 0;
}

/* ===== HEADER STYLES ===== */
header {
    background-color: #000000;
    border-bottom: 2px solid #ff0000;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.links a:not(:first-child)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ff0000;
    transition: width 0.3s ease;
}

.links a:hover:not(:first-child)::after {
    width: 100%;
}

.links a:hover {
    color: #ff0000;
    transform: translateY(-2px);
}

.links img {
    transition: transform 0.3s ease;
}

.links img:hover {
    transform: scale(1.1);
}

/* Special donation button */
a[href*="dalink"] {
    background-color: #ff0000;
    color: #000000 !important;
    font-weight: bold;
    margin-left: auto;
}

a[href*="dalink"]:hover {
    background-color: #cc0000;
    transform: scale(1.05);
}

/* ===== HOME PAGE STYLES ===== */
.home-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #111111;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease;
}

.welcome-title {
    text-align: center;
    font-size: 2.5rem;
    color: #ff0000;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    position: relative;
    padding-bottom: 1rem;
}

.welcome-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: #ff0000;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #cccccc;
    text-align: center;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    gap: 1.5rem;
}

.feature-item {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 4px solid #ff0000;
    border-radius: 6px;
    background: #1a1a1a;
}

.feature-link {
    display: block;
    color: #ffffff !important;
    text-decoration: none;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.feature-link:hover {
    color: #ff0000 !important;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 0, 0, 0.1),
        transparent);
    transition: 0.5s;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
}

/* Special donate item */
.feature-item.donate-item {
    border-color: #ff4444;
    background: linear-gradient(45deg, #ff0000 0%, #990000 100%);
}

.feature-item.donate-item .feature-link {
    font-weight: bold;
}

.feature-item.donate-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Header */
    .links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    a[href*="donationalerts"] {
        margin-left: 0;
        order: 1;
    }

    .links a {
        font-size: 0.9rem;
        padding: 0.3rem 0.7rem;
    }

    .links img {
        width: 45px;
        height: 45px;
    }

    /* Home page */
    .home-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .lead-text {
        font-size: 1rem;
    }

    .feature-item {
        padding: 1rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.shadow-red {
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}

.feature-item:active {
    transform: translateY(1px);
}

/* Страница "Обо мне" */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
    position: relative;
}

/* Добавляем фоновое градиентное свечение */
.about-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%,
        rgba(255, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.95) 100%);
    z-index: -1;
}

.about-h1 {
    text-align: center;
    font-size: 2.8rem;
    color: #ff0000;
    margin-bottom: 3rem;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.about-content-section {
    border: 2px solid #ff0000;
    border-radius: 12px;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: #111111;
}

.about-card {
    position: relative;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

/* Красные уголки для изображений */
.image-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.image-wrapper::before,
.image-wrapper::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #ff0000;
    z-index: 2;
}

.image-wrapper::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.image-wrapper::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.about-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.about-card h3 {
    text-align: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Стили для кнопок */
.about-card form button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.about-card form button:hover {
    background: linear-gradient(45deg, #cc0000, #990000);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.about-card form button:hover::before {
    left: 100%;
}

/* Адаптив */
@media (max-width: 1024px) {
    .about-content-section {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .about-card img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .about-h1 {
        font-size: 2rem;
    }

    .about-content-section {
        padding: 1.5rem;
    }

    .about-card {
        padding: 1rem;
    }

    .about-card img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .about-card img {
        height: 250px;
    }

    .about-card h3 {
        font-size: 1.3rem;
    }

    .about-card form button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Краткая информация - продвинутый стиль */
.short-info-page {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 20px;
    position: relative;
}

.short-info-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%,
        rgba(255, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.9) 100%);
    z-index: -1;
}

.short-info-title {
    text-align: center;
    font-size: 2.8rem;
    color: #ff0000;
    margin-bottom: 3rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.short-info-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: #ff0000;
    border-radius: 2px;
}

.short-info-list {
    list-style: none;
    padding: 2rem;
    background: rgba(17, 17, 17, 0.95);
    border: 2px solid #ff0000;
    border-radius: 15px;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.1);
}

.short-info-item {
    padding: 1.2rem;
    margin: 1rem 0;
    background: linear-gradient(145deg, #1a1a1a, #131313);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.short-info-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent,
        rgba(255, 0, 0, 0.1),
        transparent);
    transform: rotate(45deg);
    transition: 0.6s;
}

.short-info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2);
}

.short-info-item:hover::before {
    left: 150%;
}

/* Иконки */
.short-info-item::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    background-size: contain;
    filter: invert(15%) sepia(99%) saturate(7455%) hue-rotate(360deg) brightness(101%) contrast(107%);
    opacity: 0.7;
}

.short-info-item:nth-child(1)::after { background-image: url('data:image/svg+xml;utf8,<svg ...>'); }
/* Добавить SVG-иконки для каждого пункта */

.eye-color {
    color: #00a8ff;
    position: relative;
    padding: 0 5px;
    cursor: pointer;
}

.eye-color::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 168, 255, 0.1);
    transform: skewX(-15deg);
    z-index: -1;
    transition: 0.3s;
}

.eye-color:hover {
    text-shadow: 0 0 15px rgba(0, 168, 255, 0.5);
}

/* Адаптив + Анимации */
@media (max-width: 768px) {
    .short-info-title {
        font-size: 2.2rem;
    }

    .short-info-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@keyframes itemEntrance {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.short-info-item {
    animation: itemEntrance 0.6s ease forwards;
    opacity: 0;
}

.short-info-item:nth-child(1) { animation-delay: 0.2s; }
.short-info-item:nth-child(2) { animation-delay: 0.3s; }
.short-info-item:nth-child(3) { animation-delay: 0.4s; }
.short-info-item:nth-child(4) { animation-delay: 0.5s; }
.short-info-item:nth-child(5) { animation-delay: 0.6s; }
.short-info-item:nth-child(6) { animation-delay: 0.7s; }
.short-info-item:nth-child(7) { animation-delay: 0.8s; }
.short-info-item:nth-child(8) { animation-delay: 0.9s; }
.short-info-item:nth-child(9) { animation-delay: 1.0s; }
.short-info-item:nth-child(10) { animation-delay: 1.1s; }

/* Страница целей */
.goals-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
}

.goals-title {
    text-align: center;
    font-size: 2.5rem;
    color: #ff0000;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.goals-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    background: #111111;
    border: 2px solid #ff0000;
    border-radius: 12px;
    padding: 2rem;
}

.goal-item {
    padding: 1.5rem;
    margin: 1rem 0;
    background: #1a1a1a;
    border-radius: 8px;
    border-left: 4px solid #ff0000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.goal-item.completed {
    border-left-color: #00ff00;
    opacity: 0.9;
}

.goal-info {
    flex: 1;
}

.goal-name {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.goal-date {
    color: #cccccc;
    font-size: 0.9rem;
}

.status-toggle {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.goal-item.completed .status-toggle {
    background: linear-gradient(45deg, #00aa00, #008800);
}

.add-goal-form {
    background: #111111;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #ff0000;
    margin-top: 2rem;
}

.add-goal-form h3 {
    color: #ff0000;
    margin-bottom: 1.5rem;
    text-align: center;
}

.add-goal-form button[type="submit"] {
    background: #ff0000;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: bold;
}

.add-goal-form button[type="submit"]:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

/* Адаптив */
@media (max-width: 768px) {
    .goal-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-toggle {
        width: 100%;
        text-align: center;
    }

    .goals-list {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .goals-title {
        font-size: 2rem;
    }

    .goal-name {
        font-size: 1rem;
    }

    .status-toggle {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Анимации */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.goal-item {
    animation: slideIn 0.6s ease forwards;
}

.goal-item:nth-child(1) { animation-delay: 0.2s; }
.goal-item:nth-child(2) { animation-delay: 0.3s; }
.goal-item:nth-child(3) { animation-delay: 0.4s; }

/* Страница "Моё любимое" */
.my-fav-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.my-fav-title {
    text-align: center;
    font-size: 2.8rem;
    color: #ff0000;
    margin-bottom: 3rem;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.my-fav-block {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem;
    background: #111111;
    border: 2px solid #ff0000;
    border-radius: 12px;
}

.fav-item {
    position: relative;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.fav-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
}

.image-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.image-wrapper::before,
.image-wrapper::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #ff0000;
    z-index: 2;
}

.image-wrapper::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.image-wrapper::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.fav-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.fav-item p {
    color: #ffffff;
    font-size: 1.3rem;
    margin: 1rem 0;
}

.fav-item button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fav-item button:hover {
    background: linear-gradient(45deg, #cc0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fav-item {
    animation: fadeIn 0.6s ease forwards;
}

.fav-item:nth-child(1) { animation-delay: 0.2s; }
.fav-item:nth-child(2) { animation-delay: 0.3s; }
.fav-item:nth-child(3) { animation-delay: 0.4s; }
.fav-item:nth-child(4) { animation-delay: 0.5s; }

/* Адаптив */
@media (max-width: 1024px) {
    .my-fav-block {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .my-fav-title {
        font-size: 2.2rem;
    }

    .my-fav-block {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .fav-item {
        padding: 1rem;
    }

    .fav-item img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .fav-item img {
        height: 250px;
    }

    .fav-item p {
        font-size: 1.1rem;
    }

    .fav-item button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* ===== Аниме страница ===== */
.anime-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.anime-title {
    text-align: center;
    font-size: 2.8rem;
    color: #ff0000;
    margin-bottom: 3rem;
    text-shadow: 0 0 25px rgba(255, 0, 0, 0.5);
    position: relative;
    padding-bottom: 1rem;
}

.anime-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: #ff0000;
    border-radius: 2px;
}

/* Сетка с аниме */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    background: rgba(17, 17, 17, 0.95);
    border: 2px solid #ff0000;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* Карточка аниме */
.anime-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.anime-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
}

/* Изображение */
.image-container {
    position: relative;
    overflow: hidden;
}

.anime-poster {
    width: 100%;
    height: 313px;
    object-fit: cover;
    border-bottom: 3px solid #ff0000;
    transition: transform 0.3s ease;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(255, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.anime-card:hover .hover-overlay {
    opacity: 1;
}

/* Детали */
.anime-details {
    padding: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.detail-label {
    color: #ff5555;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
}

.title-text {
    font-family: 'Segoe UI', sans-serif;
    max-width: 150px;
    text-align: right;
    line-height: 1.3;
}

.score-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #ffd700;
}

.rating-star {
    font-size: 1.2rem;
    color: #ffd700;
    filter: drop-shadow(0 0 3px #ffd700);
}

/* Форма добавления */
.add-anime-form {
    background: rgba(17, 17, 17, 0.95);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #ff0000;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.submit-btn {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white !important;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: bold;
    text-transform: uppercase;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #cc0000, #990000);
    transform: translateY(-2px);
}

/* Кнопка удаления */
.delete-form {
    position: absolute;
    bottom: 0;
    right: 1rem;
    z-index: 2;
}

.delete-anime-btn {
    background: rgba(255, 0, 0, 0.9);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
}

.delete-anime-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.delete-icon {
    font-size: 1.2rem;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .anime-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .anime-title {
        font-size: 2.2rem;
    }

    .anime-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .anime-poster {
        height: 400px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .anime-poster {
        height: 350px;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-value {
        margin-top: 0.5rem;
    }
}

/* Анимации */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) rotate(3deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

.anime-card {
    animation: cardEntrance 0.6s ease forwards;
    opacity: 0;
}


/* ===== ОСНОВНЫЕ СТИЛИ ===== */
.games-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    font-family: 'Segoe UI', sans-serif;
}

.page-title {
    text-align: center;
    font-size: 2.8rem;
    color: #ff0000;
    margin-bottom: 3rem;
    text-shadow: 0 0 25px rgba(255, 0, 0, 0.5);
    position: relative;
    padding-bottom: 1rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: #ff0000;
    border-radius: 2px;
}

/* ===== ФОРМА ДОБАВЛЕНИЯ ===== */
.add-game-form {
    background: rgba(17, 17, 17, 0.95);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #ff0000;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.submit-btn {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white !important;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: bold;
    text-transform: uppercase;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #cc0000, #990000);
    transform: translateY(-2px);
}

/* ===== СЕТКА ИГР ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    background: rgba(17, 17, 17, 0.95);
    border: 2px solid #ff0000;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* ===== КАРТОЧКА ИГРЫ ===== */
.game-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
}

/* Изображение */
.image-container {
    position: relative;
    overflow: hidden;
}

.game-cover {
    width: 100%;
    height: 313px;
    object-fit: cover;
    border-bottom: 3px solid #ff0000;
    transition: transform 0.3s ease;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(255, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .hover-overlay {
    opacity: 1;
}

/* Детали игры */
.game-details {
    padding: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.detail-label {
    color: #ff5555;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
}

.title-text {
    font-family: 'Segoe UI', sans-serif;
    max-width: 150px;
    text-align: right;
    line-height: 1.3;
}

/* ===== КНОПКА УДАЛЕНИЯ ===== */
.delete-form {
    position: absolute;
    bottom: 0;
    right: 1rem;
    z-index: 2;
}

.delete-game-btn {
    background: rgba(255, 0, 0, 0.9);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: none; /* Убрать размытие */
    z-index: 100; /* Увеличить приоритет */
}

.delete-game-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.delete-icon {
    font-size: 1.2rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.2rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .game-cover {
        height: 280px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .game-cover {
        height: 250px;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-value {
        margin-top: 0.5rem;
        text-align: left;
    }
}

/* ===== АНИМАЦИИ ===== */
@keyframes gameCardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) rotate(-3deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

.game-card {
    animation: gameCardEntrance 0.6s ease forwards;
    opacity: 0;
}

/* ===== Музыка ===== */
.music-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* ===== ГРУППЫ ИСПОЛНИТЕЛЕЙ ===== */
.music-groups {
    background: #111111;
    border: 2px solid #ff0000;
    border-radius: 12px;
    padding: 1rem;
}

.artist-group {
    margin-bottom: 1rem;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.group-checkbox {
    display: none;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 0, 0, 0.1);
}

.group-header:hover {
    background: rgba(255, 0, 0, 0.2);
}

.artist-name {
    color: #ff5555;
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toggle-icon {
    color: #ff0000;
    font-size: 2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

/* ===== СПИСОК ТРЕКОВ ===== */
.songs-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.group-checkbox:checked ~ .songs-list {
    max-height: 1000px;
}

.group-checkbox:checked ~ .group-header .toggle-icon {
    transform: rotate(45deg);
}

.song-item {
    padding: 1rem;
    border-top: 1px solid rgba(255, 0, 0, 0.1);
}

.song-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.song-title {
    color: #ffffff;
    font-size: 1.1rem;
    flex-grow: 1;
}

.delete-song-btn {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 1rem;
    transition: all 0.3s ease;
}

.delete-song-btn:hover {
    color: #ff0000;
    transform: scale(1.2);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .artist-name {
        font-size: 1.2rem;
    }

    .song-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .group-header {
        padding: 1rem;
    }

    .toggle-icon {
        font-size: 1.5rem;
    }

    .delete-song-btn {
        font-size: 1.5rem;
    }
}

/* ===== ФИЛЬМЫ И СЕРИАЛЫ ===== */
.media-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* ===== ГРУППЫ КОНТЕНТА ===== */
.media-groups {
    background: #111111;
    border: 2px solid #ff0000;
    border-radius: 12px;
    padding: 1rem;
}

.media-group {
    margin-bottom: 2rem;
}

.group-checkbox {
    display: none;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    background: rgba(255, 0, 0, 0.15);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.group-header:hover {
    background: rgba(255, 0, 0, 0.25);
}

.type-name {
    color: #ff5555;
    font-size: 1.6rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toggle-icon {
    color: #ff0000;
    font-size: 2.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

/* ===== СЕТКА КОНТЕНТА ===== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.group-checkbox:checked ~ .content-grid {
    max-height: fit-content;
}

.group-checkbox:checked ~ .group-header .toggle-icon {
    transform: rotate(90deg);
}

/* ===== КАРТОЧКА КОНТЕНТА ===== */
.media-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.2);
}

.image-container {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-card:hover img {
    transform: scale(1.05);
}

.type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}

.media-info {
    padding: 1.5rem;
    position: relative;
}

.title {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.delete-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: #ff0000;
    transform: scale(1.1);
}

.delete-icon {
    color: white;
    font-size: 1.2rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .type-name {
        font-size: 1.3rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .image-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .group-header {
        padding: 1rem;
    }

    .type-name {
        font-size: 1.1rem;
    }

    .toggle-icon {
        font-size: 2rem;
    }
}

/* ===== СТРАНИЦА НОВОСТЕЙ ===== */
.news-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
}

.news-list {
    display: grid;
    gap: 2rem;
}

.news-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid #ff0000;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.1);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.news-header h2 {
    color: #ff5555;
    margin: 0;
}

.news-header time {
    color: #cccccc;
    font-size: 0.9rem;
}

.news-preview {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #ff0000;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.read-more:hover {
    opacity: 0.8;
}

/* ===== ДЕТАЛЬНАЯ СТРАНИЦА ===== */
.news-detail-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
}

.full-news {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.news-title {
    color: #ff5555;
    margin-top: 0;
}

.news-date {
    color: #cccccc;
    display: block;
    margin-bottom: 2rem;
}

.news-content {
    color: #ffffff;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Форма добавления новости */
.add-news-form {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 2px solid #ff0000;
}

.add-news-form h2 {
    color: #ff5555;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.add-news-form textarea {
    height: 200px;
    resize: vertical;
}

.add-news-form .submit-btn {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.add-news-form .submit-btn:hover {
    background: linear-gradient(45deg, #cc0000, #990000);
    transform: translateY(-2px);
}

/* ===== КОММЕНТАРИИ ===== */
.comments-section {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comment-form {
    margin-bottom: 3rem;
}

.comment-card {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #3a3a3a;
    transition: transform 0.2s ease;
}

.comment-card:hover {
    transform: translateX(5px);
}

.comment-content {
    color: #ddd;
    line-height: 1.6;
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.comment-form {
    margin-bottom: 3rem;
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 1rem; /* Добавлено */
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ff4444 !important;
}

.error-text {
    color: #ff4444;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
    padding: 0 1rem; /* Добавлено */
}

input, textarea {
    width: calc(100% - 2rem); /* Исправлено */
    padding: 1rem;
    background: #111111;
    border: 2px solid #ff0000;
    border-radius: 6px;
    color: white;
    font-family: inherit;
    display: block; /* Добавлено */
    margin: 0 auto; /* Добавлено */
    box-sizing: border-box; /* Добавлено */
}

.submit-btn {
    width: calc(100% - 2rem); /* Добавлено */
    margin: 0 1rem; /* Добавлено */
}

/* АДАПТИВ */
@media (max-width: 768px) {
    .comments-section {
        padding: 1.5rem; /* Уменьшено */
    }

    .form-group {
        padding: 0 0.5rem; /* Уменьшено */
    }

    input, textarea {
        width: calc(100% - 1rem); /* Исправлено */
        padding: 0.8rem;
    }

    .submit-btn {
        width: calc(100% - 1rem);
        margin: 0 0.5rem;
    }

    .error-text {
        padding: 0 0.5rem;
    }
}

/* ===== ОСНОВНЫЕ СТИЛИ СТРАНИЦЫ ===== */
.contacts-page {
    background: #0a0a0a;
    min-height: 100vh;
    padding: 4rem 2rem;
}

.contacts-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: #111111;
    border-radius: 12px;
    padding: 2.5rem;
    border: 2px solid #ff0000;
    box-shadow: 0 0 30px rgba(255,0,0,0.1);
    align-items: start;
}

/* ===== ЛЕВАЯ КОЛОНКА ===== */
.contact-column {
    position: relative;
}

.section-title {
    color: #ff5555;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px rgba(255,0,0,0.3);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: #ff0000;
    border-radius: 2px;
}

.contact-list {
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.2rem;
    background: #1a1a1a;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-icon {
    font-size: 2rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,0,0,0.15);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-label {
    color: #ff6666;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.4;
}

/* ===== БЛОК СОЦСЕТЕЙ ===== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 1rem;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

.social-platform {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.social-button {
    box-sizing: border-box;
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    border: 1px solid transparent;
    white-space: nowrap;
}

/* Telegram */
.tg-item {
    border-color: rgba(0, 136, 204, 0.2);
}
.tg-button {
    background: linear-gradient(45deg, #0088cc, #00a8e8);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.1);
}
.tg-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.2);
}

/* VK */
.vk-item {
    border-color: rgba(76, 117, 163, 0.2);
}
.vk-button {
    background: linear-gradient(45deg, #4c75a3, #5b88bd);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(76, 117, 163, 0.1);
}
.vk-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 117, 163, 0.2);
}

/* Instagram */
.inst-item {
    border-color: rgba(193, 53, 132, 0.2);
}
.inst-button {
    background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(193, 53, 132, 0.1);
}
.inst-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 53, 132, 0.2);
}

/* ===== ПРАВАЯ КОЛОНКА С КАРТОЙ ===== */
.map-column {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    border: 2px solid #ff0000;
}

.yandex-map-container {
    flex: 1;
    position: relative;
}

.yandex-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .contacts-container {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .map-column {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .contacts-page {
        padding: 2rem 1rem;
    }

    .contacts-container {
        padding: 1.5rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .social-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .social-platform {
        margin-bottom: 0;
        margin-right: 15px;
    }

    .social-button {
        width: auto;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .contact-value {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .social-item {
        flex-direction: column;
        align-items: stretch;
    }

    .social-button {
        width: 100%;
    }
}

/* ===== PROGRESS PAGE STYLES ===== */

/* Обёртка контента страницы прогресса */
.progress-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #1a1a1a;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Заголовок блока */
.progress-container h2,
.progress-container h3 {
    margin-bottom: 1rem;
    color: #ff4444;
    font-size: 1.75rem;
    text-align: center;
}

/* Таблица прогресса */
.progress-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: #0f0f0f;
    border-radius: 0.5rem;
    overflow: hidden;
}

.progress-table th,
.progress-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #333;
    color: #ddd;
}

.progress-table th {
    background-color: #222;
    color: #ff6666;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.progress-table tbody tr:nth-child(even) {
    background-color: #0a0a0a;
}

.progress-table tbody tr:hover {
    background-color: #333;
}

/* Статус “в процессе” (без галочки) */
.progress-table .text-danger {
    font-weight: bold;
    font-size: 1.2rem;
}

/* Статус “завершено” (с галочкой) */
.progress-table .text-success {
    font-weight: bold;
    color: #44ff44 !important;
}

/* Кнопки на странице прогресса */
.progress-container .btn-primary {
    background-color: #ff4444;
    border-color: #ff4444;
    transition: background-color 0.3s ease;
}
.progress-container .btn-primary:hover {
    background-color: #cc3333;
}

.progress-container .btn-secondary {
    background-color: #333;
    border-color: #333;
    color: #ccc;
}
.progress-container .btn-secondary:hover {
    background-color: #444;
}

/* ===== NAVIGATION: “В процессе” активная ссылка ===== */
header .links a {
    padding: 0.4rem 0.8rem;
    border-radius: 0.25rem;
}

header .links a:hover {
    background-color: #222;
    color: #ff4444;
}

/* Если в шаблоне добавить класс active к ссылке “В процессе” */
header .links a.active {
    background-color: #ff4444;
    color: #000;
}

/* Общие стили для мобильных */
@media (max-width: 768px) {
    .progress-container {
        margin: 1rem;
        padding: 1rem;
    }

    .progress-container h3 {
        font-size: 1.5rem;
    }

    /* Таблица */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .progress-table {
        min-width: 600px;
    }

    .progress-table th,
    .progress-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Скрыть колонку "Категория" на маленьких экранах */
    .progress-table th:nth-child(2),
    .progress-table td:nth-child(2) {
        display: none;
    }

    /* Форма */
    .form-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Кнопки редактирования/удаления */
    .progress-table form {
        display: inline-block;
        margin: 0.25rem 0;
    }

    .progress-table button {
        width: 100%;
        font-size: 0.85rem;
    }

    /* Уменьшить отступы для кнопок */
    .btn-primary,
    .btn-secondary {
        padding: 0.375rem 0.75rem;
    }
}

/* Дополнительные стили для маленьких экранов */
@media (max-width: 480px) {
    .progress-container {
        margin: 0.5rem;
        padding: 0.75rem;
    }

    .progress-table th,
    .progress-table td {
        font-size: 0.75rem;
    }
}

/* ===== ИСТОРИЯ ПРОГРЕССА ===== */
.history-group {
    margin: 0;
    background: transparent;
    border-radius: 4px;
    overflow: hidden;
}

.history-checkbox {
    display: none;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 100, 255, 0.1);
    border-radius: 4px;
}

.history-header:hover {
    background: rgba(0, 100, 255, 0.2);
}

.history-count {
    color: #4d94ff;
    font-size: 0.9rem;
    font-weight: bold;
}

.history-header .toggle-icon {
    color: #0066cc;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.history-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-top: 0.5rem;
}

.history-checkbox:checked ~ .history-content {
    max-height: 500px;
}

.history-checkbox:checked ~ .history-header .toggle-icon {
    transform: rotate(45deg);
}

/* ===== ТАБЛИЦА ИСТОРИИ ===== */
.history-table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    font-size: 0.85rem;
}

.history-table th {
    background: rgba(0, 100, 255, 0.2);
    color: #4d94ff;
    padding: 0.5rem;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid rgba(0, 100, 255, 0.1);
}

.history-table td {
    padding: 0.4rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-table tr:last-child td {
    border-bottom: none;
}

.history-table tr:hover {
    background: rgba(0, 100, 255, 0.1);
}

/* ===== КНОПКИ ДЕЙСТВИЙ ===== */
.action-btn {
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 30px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* Добавлено для лучшей видимости */
}

.delete-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff4444;
    transform: scale(1.1);
}

.edit-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
    transform: scale(1.1);
}

/* Убедитесь, что ячейка таблицы имеет правильную высоту */
.actions-cell {
    vertical-align: middle;
    text-align: center;
}

.projects-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
    font-family: 'Segoe UI', sans-serif; /* Убедимся, что используется нужный шрифт */
}

.projects-title {
    text-align: center;
    font-size: 2.5rem;
    color: #cc0000; /* Приглушённый красный */
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(204, 0, 0, 0.2); /* Мягкая тень */
    position: relative;
    padding-bottom: 1rem;
}

.projects-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #990000; /* Ещё более тёмный красный */
    border-radius: 2px;
}

/* Форма */
.add-project-form {
    background: #111111;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #990000; /* Тёмно-красная рамка */
    margin-bottom: 2rem;
}

.add-project-form h3 {
    color: #cc0000;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Список проектов */
.projects-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #1a1a1a;
    border-radius: 8px;
    border-left: 4px solid #990000; /* Тёмно-красная левая граница */
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Тень без красного */
}

.project-name {
    color: #ffffff;
    font-size: 1.3rem;
    margin: 0 0 0.75rem 0;
}

.project-description {
    color: #cccccc; /* Светло-серый текст */
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* Стили для ссылок в описании */
.project-description a {
    color: #4da6ff; /* Голубой цвет ссылки */
    text-decoration: none;
    border-bottom: 1px dotted #4da6ff; /* Точечное подчеркивание */
    transition: all 0.2s ease;
}

.project-description a:hover {
    color: #66b3ff; /* Более светлый голубой при наведении */
    border-bottom: 1px solid #66b3ff; /* Сплошное подчеркивание при наведении */
    text-shadow: 0 0 5px rgba(77, 166, 255, 0.3); /* Лёгкая светящаяся тень */
}

.project-date {
    color: #777777; /* Тёмно-серый цвет даты */
    font-size: 0.85rem;
}

.project-description a {
    color: #4da6ff; /* Голубой цвет ссылки */
    text-decoration: none;
    border-bottom: 1px dotted #4da6ff; /* Точечное подчеркивание */
    transition: all 0.2s ease;
}

.project-description a:hover {
    color: #66b3ff; /* Более светлый голубой при наведении */
    border-bottom: 1px solid #66b3ff; /* Сплошное подчеркивание при наведении */
    text-shadow: 0 0 5px rgba(77, 166, 255, 0.3); /* Лёгкая светящаяся тень */
}

/* Адаптивность */
@media (max-width: 768px) {
    .projects-title {
        font-size: 2rem;
    }
    .add-project-form {
        padding: 1.5rem;
    }
    .project-item {
        padding: 1rem;
    }
    .project-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .projects-page {
        padding: 0 10px;
    }
    .projects-title {
        font-size: 1.8rem;
    }
    .project-description {
        font-size: 0.95rem;
    }
}

/* ===== ACTIVITY PAGE ===== */
.activity-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #111111;
    border: 2px solid #ff0000;
    border-radius: 18px;
    box-shadow:
        0 0 30px rgba(255, 0, 0, 0.2),
        0 0 60px rgba(255, 0, 0, 0.1) inset;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.activity-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,0,0,0.05) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Заголовок и навигация */
.activity-container .activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.activity-container .activity-header h2 {
    font-size: 2.1rem;
    color: #ff4444;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    margin: 0;
    flex: 1;
    text-align: center;
}

.activity-container .week-nav {
    display: flex;
    gap: 1rem;
}

.activity-container .week-nav a {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1rem;
    min-width: 130px;
    text-align: center;
}

.activity-container .week-nav a:hover {
    background: linear-gradient(45deg, #cc0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

/* Вкладки */
.activity-container .activity-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.activity-container .activity-tab {
    padding: 0.8rem 1.5rem;
    border: 2px solid #ff0000;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
    background: rgba(255, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.activity-container .activity-tab.active {
    background: #ff0000;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.activity-container .activity-tab:hover:not(.active) {
    background: rgba(255, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* Статистика */
.activity-container .stats-box {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 14px;
    padding: 1.8rem;
    margin-bottom: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.activity-container .stat-item {
    padding: 1.2rem;
    border-left: 4px solid #ff0000;
    border-radius: 10px;
    background: linear-gradient(145deg, #1a1a1a, #131313);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activity-container .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent);
    transition: 0.5s;
}

.activity-container .stat-item:hover::before {
    left: 100%;
}

.activity-container .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.25);
}

.activity-container .stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #ff0000;
    line-height: 1.2;
}

.activity-container .stat-label {
    color: #cccccc;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.activity-container .stat-unit {
    color: #999;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

/* Сетка по дням */
.activity-container .days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* Фиксируем 7 колонок */
    gap: 1.2rem;
    margin-top: 1rem;
}

.activity-container .day-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 1.3rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #222;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 0;
}

.activity-container .day-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #ff0000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-container .day-card:hover {
    transform: translateY(-6px);
    border-color: #ff0000;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2);
}

.activity-container .day-card:hover::before {
    opacity: 1;
}

.activity-container .day-name {
    font-weight: bold;
    color: #ff4444;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-container .day-value {
    font-size: 1rem;
    color: #fff;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.activity-container .hidden {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: -9999px;
}

/* Форма */
.activity-container form {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid #ff0000;
}

.activity-container form p {
    margin: 0.8rem 0;
}

.activity-container form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
    font-weight: bold;
}

.activity-container form input[type="number"] {
    width: 100%;
    padding: 0.8rem;
    background: #111;
    border: 2px solid #ff0000;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
}

.activity-container form button {
    margin-top: 1rem;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
}

.activity-container form button:hover {
    background: linear-gradient(45deg, #cc0000, #990000);
    transform: translateY(-2px);
}

/* АДАПТИВНОСТЬ ДЛЯ СТРАНИЦЫ АКТИВНОСТИ */
@media (max-width: 768px) {
    .activity-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .activity-container .activity-header {
        flex-direction: column;
        text-align: center;
    }

    .activity-container .activity-header h2 {
        font-size: 1.8rem;
    }

    .activity-container .week-nav a {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .activity-container .activity-tabs {
        gap: 0.5rem;
    }

    .activity-container .activity-tab {
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
        min-width: 100px;
    }

    .activity-container .stats-box {
        padding: 1.2rem;
        gap: 1rem;
    }

    .activity-container .stat-value {
        font-size: 1.6rem;
    }

    .activity-container .days-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .activity-container {
        margin: 0.5rem;
        padding: 1rem;
    }

    .activity-container .activity-header h2 {
        font-size: 1.5rem;
    }

    .activity-container .activity-tab {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }

    .activity-container .stats-box {
        grid-template-columns: 1fr;
    }

    .activity-container .days-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .activity-container .day-card {
        padding: 0.8rem;
    }

    .activity-container .day-name {
        font-size: 0.95rem;
    }

    .activity-container .day-value {
        font-size: 0.85rem;
    }
}