/* DPL — расписание будущих турниров */
body.schedule-page,
body.schedule-detail-page {
    min-height: 100vh;
    background-color: #080c12 !important;
    background-image: url('/static/core/dpl-cosmic-bg.svg') !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

body.schedule-page > header,
body.schedule-detail-page > header {
    background:
        radial-gradient(circle at 8% 45%, rgba(44,82,117,.11), transparent 23%),
        radial-gradient(circle at 87% 30%, rgba(78,51,116,.11), transparent 26%),
        linear-gradient(90deg, rgba(9,15,23,.975), rgba(12,16,25,.97) 52%, rgba(17,13,29,.965)) !important;
    border-bottom-color: rgba(100,113,137,.20) !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.26), inset 0 -1px 0 rgba(104,132,174,.035);
}

.schedule-shell,
.schedule-detail-shell {
    width: 88%;
    max-width: 1500px;
    margin: 0 auto;
    padding-bottom: 56px;
}

.schedule-heading {
    padding: 42px 0 24px;
    border-bottom: 1px solid rgba(80,90,104,.36);
}

.schedule-heading-label,
.schedule-card-kicker,
.schedule-info-label {
    color: #f05259;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.45px;
}

.schedule-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-top: 8px;
}

.schedule-heading h1 {
    margin: 0;
    font-size: 46px;
    line-height: 1;
    letter-spacing: -1px;
}

.schedule-heading p {
    margin: 10px 0 0;
    color: #8994a2;
    font-size: 14px;
}

.schedule-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 13px;
    border: 1px solid rgba(220,68,76,.40);
    border-radius: 7px;
    background: rgba(45,14,19,.34);
    color: #9da7b4;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.schedule-count strong {
    color: #ff565d;
    font-size: 15px;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.schedule-card {
    position: relative;
    min-height: 238px;
    overflow: hidden;
    display: block;
    background-color: #0d131a;
    background-position: center;
    background-size: cover;
    border: 1px solid rgba(238,68,76,.72);
    border-radius: 9px;
    box-shadow: inset 0 1px 0 rgba(255,120,124,.06), 0 0 18px rgba(239,54,61,.07), 0 14px 34px rgba(0,0,0,.20);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

/* Делаем читаемую левую часть, но не перекрываем правую сторону баннера. */
.schedule-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(5,9,14,.80) 0%, rgba(5,9,14,.70) 24%, rgba(5,9,14,.34) 43%, rgba(5,9,14,.10) 58%, rgba(5,9,14,.04) 100%),
        linear-gradient(0deg, rgba(5,9,14,.24) 0%, rgba(5,9,14,.08) 24%, transparent 46%);
}

.schedule-card::after,
.schedule-detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255,255,255,.018), transparent 34%);
}

.schedule-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255,88,94,.90);
    box-shadow: inset 0 1px 0 rgba(255,135,139,.08), 0 0 22px rgba(244,60,67,.12), 0 15px 36px rgba(0,0,0,.22);
}

.schedule-card-overlay {
    position: absolute;
    z-index: 1;
    left: 26px;
    top: 22px;
    bottom: 22px;
    width: min(46%, 700px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.schedule-card-title h2 {
    margin: 8px 0 0;
    max-width: 100%;
    color: #fff;
    font-size: clamp(28px, 2.5vw, 42px);
    line-height: .98;
    letter-spacing: -1.1px;
    text-shadow: 0 3px 16px rgba(0,0,0,.96), 0 1px 3px rgba(0,0,0,.95);
    overflow-wrap: anywhere;
}

.schedule-meta-row,
.schedule-dates-row {
    display: flex;
    align-items: flex-end;
    flex-wrap: nowrap;
    gap: 26px;
    min-width: 0;
}

.schedule-dates-row {
    margin-top: auto;
}

.schedule-inline-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.schedule-format-inline,
.schedule-prize-inline {
    flex: 0 0 auto;
}

.schedule-date-inline {
    flex: 0 1 auto;
}

.schedule-info-label {
    text-shadow: 0 2px 8px rgba(0,0,0,1), 0 1px 2px rgba(0,0,0,1);
}

.schedule-inline-block strong,
.schedule-format {
    color: #f7f8fa;
    font-size: 17px;
    line-height: 1.1;
    white-space: nowrap;
    text-shadow: 0 3px 12px rgba(0,0,0,1), 0 1px 3px rgba(0,0,0,1);
}

.schedule-format {
    display: inline;
    width: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none !important;
    font-size: 17px !important;
    font-weight: 900;
    letter-spacing: 0;
}

.schedule-format-mix_cup { color: #ff858b !important; }
.schedule-format-premade_team { color: #91b7ff !important; }

.schedule-empty {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px;
    border: 1px solid rgba(73,84,98,.42);
    border-radius: 9px;
    background: rgba(11,16,23,.82);
    text-align: center;
}

.schedule-empty strong { font-size: 17px; }
.schedule-empty span { color: #7f8a97; font-size: 12px; }

.schedule-note {
    margin-top: 18px;
    color: #727e8c;
    font-size: 11px;
    text-align: center;
}

/* Страница «Подробнее» */
.schedule-detail-shell { padding-top: 28px; }

.schedule-back {
    display: inline-block;
    margin-bottom: 14px;
    color: #9aa5b2;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.schedule-back:hover { color: #fff; }

.schedule-detail-hero {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: radial-gradient(circle at 76% 24%, rgba(151,33,42,.20), transparent 34%), #0e141b;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(238,68,76,.72);
    border-radius: 10px;
}

.schedule-detail-content {
    position: relative;
    z-index: 1;
    padding: 34px;
}

.schedule-detail-content h1 {
    margin: 10px 0 16px;
    font-size: clamp(38px, 5vw, 66px);
    line-height: .96;
    text-shadow: 0 3px 18px rgba(0,0,0,.80);
}

.schedule-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.schedule-detail-panel,
.schedule-description {
    border: 1px solid rgba(70,81,95,.46);
    border-radius: 8px;
    background: rgba(13,19,26,.88);
    box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

.schedule-detail-panel {
    min-height: 118px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.schedule-detail-panel strong {
    font-size: 19px;
    line-height: 1.2;
}

.schedule-detail-prize strong { color: #f4cf78; }

.schedule-description {
    margin-top: 14px;
    padding: 25px 28px;
}
.schedule-description div { margin-top: 12px; color: #a6b0bc; line-height: 1.65; }
.schedule-description p { margin: 0 0 10px; }

.schedule-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

@media (max-width: 1280px) {
    .schedule-card-overlay {
        width: min(56%, 760px);
        gap: 16px;
    }
    .schedule-meta-row,
    .schedule-dates-row {
        gap: 18px;
    }
    .schedule-inline-block strong,
    .schedule-format { font-size: 15px !important; }
}

@media (max-width: 1020px) {
    .schedule-card {
        min-height: 340px;
        background-position: center;
    }
    .schedule-card-overlay {
        width: calc(100% - 48px);
        right: 24px;
    }
    .schedule-meta-row,
    .schedule-dates-row {
        flex-wrap: wrap;
        gap: 14px 26px;
    }
    .schedule-date-inline {
        flex: 0 0 calc(50% - 13px);
    }
    .schedule-detail-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    body.schedule-page,
    body.schedule-detail-page { background-attachment: scroll !important; }
    .schedule-shell,
    .schedule-detail-shell { width: 92%; }
    .schedule-heading-row { align-items: flex-start; flex-direction: column; gap: 14px; }
    .schedule-heading h1 { font-size: 36px; }
    .schedule-card {
        min-height: 450px;
        background-position: center top;
    }
    .schedule-card-overlay {
        left: 20px;
        right: 20px;
        top: 20px;
        bottom: 20px;
        width: auto;
        gap: 14px;
    }
    .schedule-card-title h2 { font-size: 34px; }
    .schedule-meta-row,
    .schedule-dates-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .schedule-date-inline {
        flex: 1 1 auto;
    }
    .schedule-detail-grid { grid-template-columns: 1fr; }
    .schedule-detail-content { padding: 25px; }
    .schedule-detail-actions { flex-direction: column; }
    .schedule-detail-actions a { width: 100%; }
}
