/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0
*/

.entry-content:not(:first-child),
.entry-summary:not(:first-child),
.page-content:not(:first-child) {
    margin-top: 0;
}

/* ==============================
   DATE HEADER
============================== */
.date {
    display: block;
    width: 100%;
    margin: 0;
    padding: 13px 20px 15px;
    text-align: center;
    color: #fff;
    font-size: 19px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.2px;
    background: linear-gradient(135deg, #0b6b2d 0%, #0f8a3a 55%, #0b5f28 100%);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 10px 28px rgba(8, 53, 22, 0.22);
    position: relative;
    overflow: hidden;
}

.date::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
    pointer-events: none;
}

.date * {
    background: transparent !important;
    color: inherit !important;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* ==============================
   WRAPPER
============================== */
.matches-schedule {
    background: #f4f7f5;
    border: 1px solid #d6e2d8;
    border-top: 0;
    border-radius: 0 0 18px 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(20, 40, 25, 0.07);
}

/* ==============================
   ACCORDION ITEM
============================== */
.matches-schedule .accordion-item {
    border: 0 !important;
    border-bottom: 1px solid #d9e4db !important;
    background: transparent;
}

.matches-schedule .accordion-item:last-child {
    border-bottom: 0 !important;
}

/* ==============================
   MATCH HEADER
============================== */
.matches-schedule .accordion-button {
    position: relative;
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    column-gap: 14px;
    width: 100%;
    padding: 16px 56px 16px 18px;
    background: linear-gradient(180deg, #f1f6f2 0%, #ebf2ec 100%) !important;
    color: #132218 !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.42;
    transition: background 0.28s ease, transform 0.2s ease;
}

.matches-schedule .accordion-button:hover {
    background: linear-gradient(180deg, #edf5ef 0%, #e4eee6 100%) !important;
}

.matches-schedule .accordion-button:not(.collapsed) {
    background: linear-gradient(180deg, #e8f2ea 0%, #e0ece2 100%) !important;
    box-shadow: inset 0 -1px 0 #cad9cd !important;
}

.matches-schedule .accordion-button:focus {
    box-shadow: none !important;
    outline: none !important;
}

.matches-schedule .accordion-button::after {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.85;
}

/* ==============================
   TIME BADGE
============================== */
.time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    padding: 8px 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f4f1 100%);
    color: #05552a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    border: 1px solid #d6e0d8;
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 4px 12px rgba(8, 53, 22, 0.08);
}

/* ==============================
   FLAG
============================== */
.match-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.14);
}

.match-title {
    display: block;
    min-width: 0;
    word-break: break-word;
}

/* ==============================
   BODY
============================== */
.matches-schedule .accordion-body {
    padding: 10px 12px 12px;
    background: #eef3ef;
}

/* ==============================
   CHANNEL LIST
============================== */
.schedule-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==============================
   CHANNEL ROW
============================== */
.schedule-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 14px 16px;
    text-decoration: none;
    color: #1b2a1f;
    background: linear-gradient(180deg, #ffffff 0%, #f8faf8 100%);
    border: 1px solid #dfe8e1;
    border-radius: 14px;
    box-shadow:
        0 4px 14px rgba(19, 39, 24, 0.05),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease;
}

.schedule-link-row:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #f8fcf8 0%, #eef7f0 100%);
    border-color: #cfe0d2;
    box-shadow:
        0 8px 18px rgba(12, 58, 28, 0.09),
        inset 0 1px 0 rgba(255,255,255,0.85);
}

/* ==============================
   LEFT / RIGHT
============================== */
.channel-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.channel-right {
    flex: 0 0 auto;
}

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #edf7ef;
    border: 1px solid #d3e6d7;
    flex-shrink: 0;
    transition: all 0.22s ease;
}

.play-icon svg {
    fill: #0d7c35;
    display: block;
    width: 14px;
    height: 14px;
}

.schedule-link-row:hover .play-icon {
    background: #0d7c35;
    border-color: #0d7c35;
}

.schedule-link-row:hover .play-icon svg {
    fill: #fff;
}

.channel-name {
    color: #1f2b22;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
    transition: color 0.22s ease;
}

.schedule-link-row:hover .channel-name {
    color: #0d6e31;
}

/* ==============================
   QUALITY BADGE
============================== */
.quality {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 102px;
    padding: 8px 14px;
    background: linear-gradient(180deg, #f2fbf4 0%, #e7f6ea 100%);
    color: #0a5f2b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    border: 1px solid #cfe3d3;
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
    white-space: nowrap;
    transition: all 0.22s ease;
}

.schedule-link-row:hover .quality {
    background: linear-gradient(180deg, #0f8a3a 0%, #0b6d2d 100%);
    color: #fff;
    border-color: #0b6d2d;
    box-shadow: 0 6px 14px rgba(13, 108, 45, 0.22);
}

/* ==============================
   TABLET
============================== */
@media (max-width: 991px) {
    .date {
        font-size: 26px;
        padding: 16px 18px;
    }

    .matches-schedule .accordion-button {
        padding: 15px 48px 15px 16px;
        font-size: 15px;
    }

    .matches-schedule .accordion-body {
        padding: 10px;
    }

    .schedule-link-row {
        padding: 13px 14px;
    }
}

/* ==============================
   MOBILE
============================== */
@media (max-width: 767px) {
    .date {
        font-size: 22px;
        padding: 14px;
        border-radius: 14px 14px 0 0;
    }

    .matches-schedule {
        border-radius: 0 0 14px 14px;
    }

    .matches-schedule .accordion-button {
        grid-template-columns: 54px 20px 1fr;
        align-items: start;
        column-gap: 10px;
        padding: 14px 40px 14px 14px;
        font-size: 14px;
        line-height: 1.4;
    }

    .matches-schedule .accordion-button::after {
        right: 14px;
    }

    .time {
        min-width: 54px;
        font-size: 12px;
        padding: 7px 8px;
        margin-top: 1px;
    }

    .match-flag {
        width: 20px;
        height: 14px;
        margin-top: 4px;
    }

    .match-title {
        font-size: 14px;
    }

    .matches-schedule .accordion-body {
        padding: 10px;
    }

    .schedule-links {
        gap: 8px;
    }

    .schedule-link-row {
        padding: 12px;
        gap: 10px;
        border-radius: 12px;
    }

    .channel-left {
        gap: 8px;
        min-width: 0;
    }

    .channel-name {
        font-size: 14px;
    }

    .quality {
        min-width: auto;
        padding: 7px 11px;
        font-size: 11px;
    }
}

/* ==============================
   SMALL MOBILE
============================== */
@media (max-width: 480px) {
    .date {
        font-size: 18px;
        line-height: 1.3;
    }

    .matches-schedule .accordion-button {
        grid-template-columns: 50px 18px 1fr;
        column-gap: 8px;
        padding: 12px 36px 12px 12px;
        font-size: 13px;
    }

    .time {
        min-width: 50px;
        font-size: 11px;
        padding: 6px 8px;
    }

    .match-flag {
        width: 18px;
        height: 13px;
    }

    .channel-name {
        font-size: 13px;
    }

    .play-icon {
        width: 24px;
        height: 24px;
    }

    .quality {
        padding: 6px 10px;
        font-size: 10.5px;
    }
}