body {
    margin: 0;
    background: linear-gradient(180deg, #f8f9fb 0%, #eef1f4 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1f2933;
}

.podcast-main {
    width: min(96%, 1600px);
    margin: 0 auto;
    padding: 28px 20px 48px;
}

.podcast-hero,
.podcast-toolbar,
.podcast-results,
.podcast-empty {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(215, 221, 228, 0.95);
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(31, 41, 51, 0.08);
}

.podcast-hero {
    padding: 28px 30px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.btn-volver-podcast {
    border: none;
    background: transparent;
    color: #22303c;
    padding: 10px 12px;
    margin: -4px 0 0 -6px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.btn-volver-podcast:hover,
.btn-volver-podcast:focus-visible {
    background: rgba(221, 21, 21, 0.12);
    color: #b31515;
    transform: translateX(-2px);
    outline: none;
}

.podcast-hero-copy {
    flex: 1;
    min-width: 0;
}

.podcast-heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 18px;
    align-items: center;
}

.podcast-search-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.podcast-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #1f2933;
    font-weight: 700;
}

.podcast-title {
    margin: 0;
    font-size: clamp(18px, 1.55vw, 22px);
    line-height: 1.2;
    color: #1f2933;
    font-weight: 800;
}

.podcast-description {
    margin: 14px 0 0;
    max-width: 860px;
    font-size: 16px;
    line-height: 1.7;
    color: #52606d;
}

.podcast-search-field {
    position: relative;
}

.podcast-search-field i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #8a94a6;
    pointer-events: none;
}

.podcast-search-input {
    width: 100%;
    min-height: 50px;
    padding: 12px 18px 12px 48px;
    border-radius: 16px;
    border: 1px solid #d7dde4;
    background: #f9fafb;
    font: inherit;
    color: #1f2933;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.podcast-search-input:focus {
    outline: none;
    border-color: rgba(221, 21, 21, 0.55);
    box-shadow: 0 0 0 4px rgba(221, 21, 21, 0.12);
    background: #fff;
}

.podcast-search-counter {
    color: #52606d;
    font-size: 14px;
}

.podcast-search-counter {
    font-weight: 700;
    white-space: nowrap;
}

.podcast-results {
    padding: 24px;
}

.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.podcast-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid #dfe5eb;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 248, 250, 0.96) 100%);
    box-shadow: 0 14px 30px rgba(31, 41, 51, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.podcast-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(179, 21, 21, 0.12);
    border-color: rgba(221, 21, 21, 0.22);
}

.podcast-meta-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.podcast-date,
.podcast-parts {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
}

.podcast-date {
    background: #eef2f6;
    color: #52606d;
}

.podcast-parts {
    background: #eef2f6;
    color: #3f4d5a;
}

.podcast-card-title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.25;
    color: #1f2933;
}

.podcast-card-desc {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.7;
    color: #52606d;
}

.podcast-card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.podcast-info-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 14px;
    background: #f2f5f8;
    color: #334e68;
    font-size: 13px;
}

.podcast-file-name {
    margin: 0 0 14px;
    color: #7b8794;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
}

.podcast-player {
    width: 100%;
    margin-top: auto;
    min-height: 48px;
    accent-color: #dd1515;
}

.podcast-card-status {
    margin-top: 12px;
    min-height: 20px;
    font-size: 12px;
    color: #7b8794;
}

.podcast-empty {
    padding: 52px 28px;
    text-align: center;
    display: none;
}

.podcast-empty.visible {
    display: block;
}

.podcast-empty i {
    font-size: 54px;
    color: #d0d6de;
    margin-bottom: 14px;
}

.podcast-empty h2 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #1f2933;
}

.podcast-empty p {
    margin: 0;
    color: #66788a;
    font-size: 15px;
    line-height: 1.7;
}

.podcast-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.podcast-pagination[hidden] {
    display: none;
}

.podcast-page-btn,
.podcast-nav-btn {
    border: 1px solid #d7dde4;
    background: #fff;
    color: #253443;
    border-radius: 14px;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.podcast-page-btn:hover,
.podcast-nav-btn:hover,
.podcast-page-btn:focus-visible,
.podcast-nav-btn:focus-visible {
    border-color: rgba(221, 21, 21, 0.35);
    background: rgba(221, 21, 21, 0.1);
    color: #b31515;
    outline: none;
}

.podcast-page-btn.active {
    background: #dd1515;
    border-color: #dd1515;
    color: #fff;
    box-shadow: 0 10px 22px rgba(221, 21, 21, 0.22);
}

.podcast-nav-btn:disabled,
.podcast-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.podcast-loading {
    color: #52606d;
    font-size: 15px;
}

@media (max-width: 900px) {
    .podcast-toolbar-row {
        grid-template-columns: 1fr;
    }

    .podcast-search-counter {
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .podcast-main {
        width: min(100%, 100%);
        padding: 20px 14px 40px;

    .podcast-heading-row {
        grid-template-columns: 1fr;
    }

    .podcast-search-inline {
        grid-template-columns: 1fr;
    }
    }

    .podcast-hero,
    .podcast-toolbar,
    .podcast-results,
    .podcast-empty {
        border-radius: 20px;
    }

    .podcast-hero {
        padding: 22px 18px;
        flex-direction: column;
        gap: 12px;
    }

    .podcast-results {
        padding: 16px;
    }

    .podcast-card {
        padding: 18px;
    }
}