main {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 30px 15px;
}




/* Мейн конт */
.watch-container {
    width: 100%;
    max-width: 1200px;
    margin-top: 0;
    padding: 0 15px;
}

/* Контейнер плеера */
.player-container {
    width: 100%;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

/* Контейнер поиска в watch-container */
.watch-container {
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 1000px;
}



/* ======== Плеер ==================================== */
/* Табы для плееров */
.player-tabs {
    display: flex;
    gap: 0;
    background-color: #1e1e1e;
    border-bottom: 1px solid #333;
}

.tab-button {
    padding: 12px 24px;
    background-color: transparent;
    border: none;
    color: #aaa;
    font-size: 16px;
    font-family: 'Segoe UI';
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-bottom: 2px solid transparent;
}

.tab-button:hover {
    background-color: #252525;
    color: #aaa;
}

.tab-button.active {
    color: #fff;
    border-bottom-color: #4a4a4a;
    background-color: #1a1a1a;
}


/* Обертка для iframe */
.player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 18px;
    font-family: 'Segoe UI';
    text-align: center;
    padding: 20px;
}

.player-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}



/* ======== Информация об аниме ==================================== */
/* Блок */
.anime-info-container {
    width: 100%;
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.anime-info-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}


/* Постер */
.anime-poster {
    color: #aaa;
    flex-shrink: 0;
    width: 200px;
}

.anime-poster img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}


/* Правая часть с информацией */
.anime-info-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.anime-info-title {
    color: #dbdbdb;
    font-size: 28px;
    font-weight: bold;
    font-family: 'Segoe UI';
    margin: 0;
    line-height: 1.3;
}


/* Альтернативные названия */
.anime-alt-names {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.alt-name-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #1e1e1e;
    color: #aaa;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Segoe UI';
    border: 1px solid #333;
}

.alt-name-more {
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.alt-name-more:hover {
    background-color: #252525;
    color: #aaa;
}

.alt-name-item {
    display: inline-block;
}


/* Список информации об аниме */
.anime-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.anime-info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    font-size: 15px;
    font-family: 'Segoe UI';
}

.info-label {
    color: #888;
    font-weight: 500;
    min-width: 150px;
}

.info-value {
    color: #aaa;
}


/* Статусы релиза | Вышел | Онгоинг | Анонс */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.status-released {
    background-color: #4caf50;
}

.status-ongoing {
    background-color: #ff9800;
}

.status-anons {
    background-color: #f44336;
}


/* Описание */
.anime-description {
    margin-top: 10px;
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
    font-family: 'Segoe UI';
}

.anime-description p {
    margin: 0;
    white-space: pre-wrap;
}



/* ======== Связанное ==================================== */
/* .related-container использует стили .anime-info-container */
/* .results-grid, .result-block, .result-poster, .result-title используют стили из search.css */

.related-title {
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Segoe UI';
    margin-bottom: 20px;
    text-align: center;
    margin-top: 0;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    /* .anime-title {
        font-size: 20px;
    } */
    
    .tab-button {
        padding: 10px 16px;
        font-size: 14px;
    }

    
    .anime-info-content {
        flex-direction: column;
    }
    
    .anime-poster {
        width: 150px;
        align-self: center;
    }
    
    .anime-info-title {
        font-size: 22px;
        text-align: center;
    }
    
    .anime-alt-names {
        justify-content: center;
    }
    
    .info-label {
        min-width: 140px;
        font-size: 14px;
    }
    
    .info-value {
        font-size: 14px;
    }
    
    .related-title {
        font-size: 20px;
    }
}

