/* ===== A TOPE CON EL PODCAST - EPISODIOS ===== */

.atope-podcast .podcast-grid {
    --podcast-orange: #ff8500;
    --podcast-bg: #080808;
    --podcast-text: #ffffff;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
    font-family: inherit;
    color: var(--podcast-text);
}

/* Tarjeta */
.atope-podcast .podcast-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--podcast-bg);
    border-radius: 10px;
    border: 1px solid rgba(255, 133, 0, 0.18);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.atope-podcast .podcast-card:hover {
    transform: translateY(-5px);
    border-color: var(--podcast-orange);
}

/* Portada */
.atope-podcast .podcast-card__cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #222;
}

.atope-podcast .podcast-card__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.atope-podcast .podcast-card:hover .podcast-card__cover img {
    transform: scale(1.04);
}

/* Número de capítulo */
.atope-podcast .podcast-card__number {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 7px 12px;
    color: #fff;
    background: var(--podcast-orange);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Contenido */
.atope-podcast .podcast-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}

.atope-podcast .podcast-card__date {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
    color: #ccc;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.atope-podcast .podcast-card__date::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    background: var(--podcast-orange);
    border-radius: 2px;
}

.atope-podcast .podcast-card__title {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 800;
    line-height: 1.2;
    text-transform: none;
}

.atope-podcast .podcast-card__category {
    margin: 0 0 18px;
    color: #fff;
    font-size: 11px;
    line-height: 1.8;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.atope-podcast .podcast-card__category span {
    color: var(--podcast-orange);
    font-weight: 800;
}

.atope-podcast .podcast-card__line {
    width: 75px;
    height: 5px;
    margin-bottom: 18px;
    background: var(--podcast-orange);
}

.atope-podcast .podcast-card__description {
    margin: 0 0 25px;
    color: #ddd;
    font-size: 15px;
    line-height: 1.7;
}

/* Botón */
.atope-podcast .podcast-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: auto;
    padding: 13px 20px;
    border: 2px solid var(--podcast-orange);
    border-radius: 40px;
    background: var(--podcast-orange);
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none !important;
    transition: background 0.25s ease, color 0.25s ease;
}

.atope-podcast .podcast-card__button:hover {
    background: transparent;
    color: var(--podcast-orange) !important;
}

.atope-podcast .podcast-card__play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    flex-shrink: 0;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 11px;
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
    .atope-podcast .podcast-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .atope-podcast .podcast-card__content {
        padding: 22px;
    }

    .atope-podcast .podcast-card__title {
        font-size: 23px;
    }
}

/* ===== MÓVIL ===== */
@media (max-width: 600px) {
    .atope-podcast .podcast-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .atope-podcast .podcast-card {
        max-width: 480px;
        width: 100%;
        margin-inline: auto;
    }

    .atope-podcast .podcast-card__content {
        padding: 22px;
    }

    .atope-podcast .podcast-card__title {
        font-size: 24px;
    }

    .atope-podcast .podcast-card__description {
        font-size: 15px;
    }

    .atope-podcast .podcast-card__button {
        width: 100%;
        box-sizing: border-box;
    }
}
/* ===== SELECTOR DE ORDEN ===== */
.atope-podcast .podcast-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 24px;
}

.atope-podcast .podcast-sort__label {
    color: #ccc;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.atope-podcast .podcast-sort {
    padding: 10px 40px 10px 18px;
    border: 2px solid #ff8500;
    border-radius: 40px;
    background: #080808 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ff8500' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.atope-podcast .podcast-sort:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .atope-podcast .podcast-toolbar {
        justify-content: space-between;
        gap: 10px;
    }

    .atope-podcast .podcast-sort__label {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 11px;
        letter-spacing: 1px;
    }

    .atope-podcast .podcast-sort {
        flex: 1;
        min-width: 0;
        max-width: 240px;
    }
}
