/* app/static/css/pages/index.css */
/* Стили для главной страницы */

.main-container {
    padding-top: var(--app-spacing-md);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Логотип — по центру, ширина 250px */
.logo-header {
    text-align: center;
    margin-bottom: var(--app-spacing-lg);
}

.logo-header a {
    display: inline-block;
}

.logo-header img {
    display: block;
    max-width: 250px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Плеер */
#radio-player {
    margin-bottom: 0;
}

/* Баннер — без отступов, ширина как у плеера */
.banner-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.banner-image {
    width: 100%;
    height: 590px;
    object-fit: cover;
    display: block;
}

/* Две колонки — как в оригинале */
.content-row {
    display: flex;
    gap: 0;
    align-items: stretch;
    background: #f4f4f4;
    border-bottom: 1px solid #000;
    overflow: hidden;
}

.content-left {
    flex: 1;
    min-width: 0;
    padding: 50px;
    border-right: 1px solid rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.content-right {
    width: 320px;
    flex-shrink: 0;
    padding: 50px;
    overflow: hidden;
}

/* Заголовки блоков — как в оригинале */
.moduleTitle {
    font-size: 22px;
    margin: 0 20px 10px;
    color: #0091ff;
}

/* Сетка вещания */
.schedule-block {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    overflow: hidden;
}

.schedule-content {
    min-height: 100px;
    overflow-x: auto;
}

/* ===== СТИЛИ ДЛЯ ТАБЛИЦЫ СЕТКИ ВЕЩАНИЯ ===== */
.schedule-content .custom table {
    border-collapse: collapse;
    border-color: #f5f3f1 #f5f3f1 #696969;
    border-style: solid;
    border-width: 0px 0px 1px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    min-width: 600px;
}

.schedule-content .custom table tr {
    border-bottom: 1px solid #696969;
}

.schedule-content .custom table tr:last-child {
    border-bottom: none;
}

.schedule-content .custom table td {
    padding: 10px 15px;
    vertical-align: middle;
}

.schedule-content .custom table td:first-child {
    width: 151px;
    text-align: center;
    min-width: 80px;
}

.schedule-content .custom table td:nth-child(2) {
    width: 877px;
    text-align: left;
    word-break: break-word;
}

.schedule-content .custom table td:last-child {
    width: 279px;
    text-align: right;
    white-space: nowrap;
    min-width: 100px;
}

.schedule-content .custom table td img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.schedule-content .custom table td p {
    margin: 0;
    text-align: left;
}

/* Название рубрики — черный цвет */
.schedule-content .custom table td p .schedule-name {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
}

/* Описание — серый цвет */
.schedule-content .custom table td p .schedule-desc {
    color: #808080;
    font-size: 14px;
}

/* Время эфира */
.schedule-content .custom table td .schedule-time {
    color: #808080;
}

.schedule-content .custom table td .schedule-time strong {
    font-size: 22px;
    color: #000000;
}

.schedule-content .custom table td .schedule-time sup {
    font-size: 14px;
}

.schedule-content .custom p {
    color: #808080;
    font-size: 11px;
    font-family: arial, sans-serif;
    text-align: center;
    margin-top: 10px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .main-container {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 992px) {
    .content-row {
        flex-direction: column;
    }

    .content-left {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.6);
        padding: 30px;
    }

    .content-right {
        width: 100%;
        padding: 30px;
    }

    .schedule-content .custom table {
        min-width: 100%;
    }

    .schedule-content .custom table td:first-child {
        width: 100px;
        min-width: 60px;
    }

    .schedule-content .custom table td:nth-child(2) {
        width: auto;
    }

    .schedule-content .custom table td:last-child {
        width: auto;
        min-width: 80px;
        text-align: right;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .logo-header img {
        max-width: 180px;
    }

    .banner-image {
        height: 300px;
    }

    .content-left,
    .content-right {
        padding: 20px 15px;
    }

    .moduleTitle {
        font-size: 18px;
        margin: 0 0 10px;
    }

    .schedule-content .custom table td {
        padding: 8px 10px;
    }

    .schedule-content .custom table td p .schedule-name {
        font-size: 15px;
    }

    .schedule-content .custom table td p .schedule-desc {
        font-size: 13px;
    }

    .schedule-content .custom table td .schedule-time strong {
        font-size: 16px;
    }

    /* Переводим таблицу в блочный вид */
    .schedule-content .custom table,
    .schedule-content .custom table tbody,
    .schedule-content .custom table tr,
    .schedule-content .custom table td {
        display: block;
        width: 100%;
    }

    .schedule-content .custom table tr {
        border-bottom: 1px solid #696969;
        padding: 10px 0;
    }

    .schedule-content .custom table td {
        padding: 4px 0;
        text-align: left !important;
        border: none;
        width: 100% !important;
    }

    .schedule-content .custom table td:first-child {
        text-align: left !important;
    }

    .schedule-content .custom table td:last-child {
        text-align: left !important;
        white-space: normal;
    }

    .schedule-content .custom table td img {
        display: inline-block;
        margin: 0;
        width: 40px;
    }

    .schedule-content .custom table td p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .banner-image {
        height: 200px;
    }

    .content-left,
    .content-right {
        padding: 15px 10px;
    }

    .moduleTitle {
        font-size: 16px;
        margin: 0 0 8px;
    }

    .schedule-content .custom table td p .schedule-name {
        font-size: 14px;
    }

    .schedule-content .custom table td p .schedule-desc {
        font-size: 12px;
    }

    .schedule-content .custom table td .schedule-time strong {
        font-size: 14px;
    }

    .schedule-content .custom table td {
        padding: 3px 0;
    }

    .schedule-content .custom table td img {
        width: 32px;
    }
}

/* Контакты */
.contacts-page {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--app-spacing-lg);
    background: var(--app-color-bg-body);
    border-radius: var(--app-radius-lg);
    box-shadow: var(--app-shadow-sm);
}

.contacts-page h1 {
    margin-bottom: var(--app-spacing-lg);
    text-align: center;
}

.contacts-info p {
    padding: var(--app-spacing-sm) 0;
    border-bottom: 1px solid var(--app-color-border-light);
    display: flex;
    justify-content: space-between;
}

.contacts-info p:last-child {
    border-bottom: none;
}

.contacts-info strong {
    color: var(--app-color-text-secondary);
}

@media (max-width: 768px) {
    .contacts-info p {
        flex-direction: column;
        gap: var(--app-spacing-xs);
    }
}