/* --------------------------------------------------------------
   GENERAL LAYOUT
-------------------------------------------------------------- */

.rs-schedule {
    max-width: 900px;
    margin: 0 auto;
}

.rs-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.rs-schedule-title {
    text-align: center;
    margin-bottom: 20px;
}

/* --------------------------------------------------------------
   DAY MENU
-------------------------------------------------------------- */

.rs-day-menu {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.rs-day-menu button {
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.rs-day-menu button:hover {
    background: #111 !important;
    color: #fff !important;
}

.rs-day-menu button.active {
    background: #c00 !important;
    color: #fff !important;
}

/* --------------------------------------------------------------
   STATION CARD (grey frame + spacing)
-------------------------------------------------------------- */

.rs-station {
    border: 1px solid #ddd;     /* grey frame around each entry */
    padding: 12px;
    margin: 0 0 5px 0;          /* 5px space between entries */
}

.rs-station-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* --------------------------------------------------------------
   STATION LOGO (100x100, 2px padding, 1px black border)
-------------------------------------------------------------- */

.rs-station-logo {
    width: 100px !important;
    height: 100px !important;
    padding: 2px !important;
    border: 1px solid #000 !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;
}

.rs-station-logo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;

    /* defensive: neutralize theme effects */
    filter: none !important;
    transform: none !important;
}

/* --------------------------------------------------------------
   STATION MAIN
-------------------------------------------------------------- */

.rs-station-main {
    flex: 1;
}

.rs-station-topline {
    display: flex;
    align-items: center;        /* icons on a line in the middle */
    width: 100%;
    gap: 10px;
}

.rs-station-title {
    margin: 0;
    font-size: 1.4rem;

    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.rs-station-nextshow {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    opacity: 0.85;
    white-space: nowrap;
}

.rs-station-links {
    margin-left: auto;          /* push icons to the right */
    display: inline-flex;
    align-items: center;        /* vertical center */
    gap: 6px;
}

/* 10px gap from the day menu to the entries */
.rs-schedule-list {
    margin-top: 10px;
}

/* Description block (below title line) */
.rs-station-desc {
    margin: 8px 0 0 0;
    padding: 8px 10px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    color: #000;
    font-size: 0.95rem;
    line-height: 1.35;
}

/* --------------------------------------------------------------
   ICON BUTTONS (BLACK PNG + CSS RED HOVER)
-------------------------------------------------------------- */

.rs-icon-btn {
    border: 2px solid #000;
    border-radius: 50%;
    padding: 4px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    line-height: 0;

    /* defensive against theme dimming */
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    background: transparent !important;
}

.rs-icon-btn:hover {
    border-color: #c00;
}

.rs-icon {
    width: 24px;
    height: 24px;
    display: block;

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    /* defensive against theme dimming */
    opacity: 1 !important;
    transform: none !important;
    mix-blend-mode: normal !important;
}

.rs-icon-home {
    background-image: url('../icons/icon-home.png');
}

.rs-icon-radio {
    background-image: url('../icons/icon-stream.png');
}

.rs-icon-bluesky {
    background-image: url('../icons/icon-bluesky.png');
}

.rs-icon-btn:hover .rs-icon {
    filter: invert(16%) sepia(98%) saturate(7484%) hue-rotate(356deg) brightness(94%) contrast(120%) !important;
    -webkit-filter: invert(16%) sepia(98%) saturate(7484%) hue-rotate(356deg) brightness(94%) contrast(120%) !important;
}

/* --------------------------------------------------------------
   COUNTRY FLAG (circle-flags, ring turns red on hover)
-------------------------------------------------------------- */

.rs-flag-wrap {
    width: 34px;
    height: 34px;
    padding: 4px;
    border: 2px solid #000;
    border-radius: 50%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.rs-flag-wrap:hover {
    border-color: #c00; /* only ring changes */
}

.rs-flag {
    width: 24px;
    height: 24px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    filter: none !important;
    -webkit-filter: none !important;
    mix-blend-mode: normal !important;
}

/* --------------------------------------------------------------
   SCHEDULE LIST
-------------------------------------------------------------- */

.rs-station-schedule-list {
    margin-top: 10px;
    padding-left: 0;
    list-style: none;
}

.rs-station-schedule-item {
    margin: 4px 0;
}

.rs-time-local {
    margin-left: 6px;
    font-weight: bold;
}

/* Country flag icon (circle-flags) */
.rs-icon-btn.rs-icon-btn-flag:hover {
    border-color: #c00; /* only ring changes for country */
}

/* Keep the flag itself unchanged on hover */
.rs-flag {
    filter: none !important;
    -webkit-filter: none !important;
}