/* ============================================================
   Polar Impact Records · 电台节目单集列表
   与 style.css / community.css 共用配色：浅色底、蓝色强调
   ============================================================ */

.radio-episodes {
    padding: 88px 0 96px;
    border-top: 1px solid #e6eef7;
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(0, 152, 232, 0.07), transparent 60%),
        #f5f8fc;
}

.radio-episodes h2 {
    margin: 10px 0 10px;
    color: #071426;
    font-size: clamp(1.85rem, 3.4vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-align: left;
    animation: none;
    opacity: 1;
    transform: none;
}

.re-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px 30px;
}

.re-eyebrow {
    margin: 0;
    color: #0098e8;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.re-status {
    margin: 0;
    color: #6d8299;
    font-size: 0.84rem;
    line-height: 1.7;
}

.re-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border: 1px solid #cfe3f5;
    border-radius: 999px;
    background: #fff;
    color: #0a6fb5;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.re-all-link:hover,
.re-all-link:focus-visible {
    border-color: #0098e8;
    color: #0098e8;
    box-shadow: 0 8px 20px rgba(0, 111, 196, 0.14);
}

.re-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    margin: 28px 0 18px;
}

.re-years {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.re-year {
    padding: 7px 17px;
    border: 1px solid #dbe7f3;
    border-radius: 999px;
    background: #fff;
    color: #48627c;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.re-year:hover {
    border-color: #0098e8;
    color: #0098e8;
}

.re-year.active {
    border-color: transparent;
    background: #0098e8;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 152, 232, 0.26);
}

.re-search {
    position: relative;
    display: block;
    width: 268px;
    max-width: 100%;
}

.re-search .fa {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #90a4b9;
    font-size: 0.85rem;
    pointer-events: none;
}

.re-search input {
    width: 100%;
    height: 38px;
    padding: 0 16px 0 36px;
    border: 1px solid #dbe7f3;
    border-radius: 999px;
    background: #fff;
    color: #1e3a53;
    font-family: inherit;
    font-size: 0.84rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.re-search input::placeholder {
    color: #9aadc0;
}

.re-search input:focus {
    border-color: #0098e8;
    box-shadow: 0 0 0 3px rgba(0, 152, 232, 0.14);
}

.re-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.re-item {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
    border: 1px solid #e6eef7;
    border-radius: 18px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.re-item:hover {
    transform: translateY(-2px);
    border-color: #cfe3f5;
    box-shadow: 0 16px 34px rgba(12, 40, 70, 0.08);
}

.re-cover {
    display: block;
    width: 132px;
    height: 132px;
    overflow: hidden;
    border-radius: 14px;
    background: #eef4fa;
    box-shadow: 0 10px 22px rgba(12, 40, 70, 0.12);
}

.re-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.re-cover:hover img,
.re-cover:focus-visible img {
    transform: scale(1.04);
}

.re-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: start;
    gap: 8px 20px;
    min-width: 0;
}

.re-headline {
    display: flex;
    grid-column: 1;
    align-items: flex-start;
    gap: 12px;
}

.re-badge {
    flex: 0 0 auto;
    margin-top: 3px;
    padding: 4px 9px;
    border: 1px solid #cceaff;
    border-radius: 8px;
    background: #e8f6ff;
    color: #0090dd;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.re-title {
    margin: 0;
    color: #071426;
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.re-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.re-title a:hover,
.re-title a:focus-visible {
    color: #0077c8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.re-meta {
    display: flex;
    grid-column: 1;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin: 0;
    color: #73859a;
    font-size: 0.8rem;
    line-height: 1.6;
}

.re-meta span,
.re-meta time {
    white-space: nowrap;
}

.re-date {
    color: #37536e;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.re-actions {
    display: flex;
    grid-column: 2;
    grid-row: 1 / span 2;
    flex-wrap: wrap;
    align-self: center;
    justify-content: flex-end;
    gap: 10px;
}

.re-listen {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0098e8, #006fc4);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.re-listen::after {
    content: "↗";
    font-size: 0.82rem;
}

.re-listen:hover,
.re-listen:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 111, 196, 0.3);
}

.re-toggle {
    padding: 7px 16px;
    border: 1px solid #dbe7f3;
    border-radius: 999px;
    background: #fff;
    color: #48627c;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.re-toggle:hover {
    border-color: #0098e8;
    color: #0098e8;
}

.re-toggle[aria-expanded="true"] {
    border-color: #cceaff;
    background: #e8f6ff;
    color: #0090dd;
}

.re-desc {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    padding: 14px 16px;
    max-height: 340px;
    overflow: auto;
    border: 1px dashed #dbe7f3;
    border-radius: 12px;
    background: #f7fafd;
    color: #4a6076;
    font-size: 0.82rem;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.re-empty {
    margin: 26px 0 0;
    padding: 34px 0;
    color: #73859a;
    font-size: 0.9rem;
    text-align: center;
}

.radio-episodes .page-btn {
    display: block;
    margin: 8px auto 0;
}

@media (max-width: 900px) {
    .re-body {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .re-actions {
        align-self: stretch;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .radio-episodes {
        padding: 64px 0 72px;
    }

    .re-head {
        align-items: flex-start;
    }

    .re-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .re-search {
        width: 100%;
    }

    .re-item {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 14px;
        padding: 12px;
        border-radius: 14px;
    }

    .re-cover {
        width: 88px;
        height: 88px;
        border-radius: 11px;
    }

    .re-headline {
        flex-direction: column;
        gap: 6px;
    }

    .re-badge {
        margin-top: 0;
    }

    .re-title {
        font-size: 0.96rem;
    }

    .re-meta {
        gap: 2px 13px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .re-item {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .re-cover {
        width: 72px;
        height: 72px;
    }

    .re-actions {
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .re-item,
    .re-cover img,
    .re-listen {
        transition: none;
    }

    .re-item:hover {
        transform: none;
    }
}
