/* =========================================================================
 * La Historia con Wifi · Podcast
 * Página /podcast/, ficha de episodio y reproductor fijo.
 * Reusa piezas de Personajes (extra.css): hero, buscador, tarjetas y CTA.
 * ====================================================================== */

/* Página /podcast/ -------------------------------------------------------- */
body.lhw-shop .lhw-pc {
    padding: 48px 0 110px;
}

body.lhw-shop .lhw-pc-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: 56px;
    align-items: center;
    margin-bottom: 40px;
}

body.lhw-shop .lhw-pc-hero p b {
    font-family: var(--fd);
    font-weight: 800;
}

/* Botones de plataformas */
body.lhw-shop .lhw-pc-plat {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

body.lhw-shop .lhw-pc-plat a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    font-family: var(--fd);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    color: var(--ink) !important;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 999px;
    text-decoration: none !important;
    transition: background .2s, transform .2s;
}

body.lhw-shop .lhw-pc-plat a:hover {
    background: var(--sun);
    transform: translateY(-2px);
}

body.lhw-shop .lhw-pc-plat svg {
    width: 20px;
    height: 20px;
}

/* Episodio destacado */
body.lhw-shop .lhw-pc-feat {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 16px 16px 22px;
    color: #fff;
    background: var(--ink);
    border-radius: 26px;
    box-shadow: 10px 10px 0 var(--sun);
    transform: rotate(1.5deg);
}

body.lhw-shop .lhw-pc-new {
    position: absolute;
    top: -14px;
    left: 22px;
    z-index: 2;
    padding: 8px 14px 7px;
    font-family: var(--fl);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--ecr);
    border-radius: 999px;
    transform: rotate(-4deg);
}

body.lhw-shop .lhw-pc-feat-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 16px;
}

body.lhw-shop .lhw-pc-feat-n {
    font-family: var(--fl);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sun);
}

body.lhw-shop .lhw-pc-feat h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
}

body.lhw-shop .lhw-pc-feat .lhw-pc-feat-meta {
    margin: 2px 0 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, .7) !important;
}

body.lhw-shop .lhw-pc-feat-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

body.lhw-shop .lhw-pc-feat-link {
    font-family: var(--fd);
    font-size: 15px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

/* Botón de play */
body.lhw-shop .lhw-pc-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 10px;
    width: 52px;
    height: 52px;
    padding: 0;
    color: var(--sun);
    background: var(--ink);
    border: 0;
    border-radius: 999px;
    text-transform: none;
    cursor: pointer;
    transition: transform .2s, background .2s;
}

body.lhw-shop .lhw-pc-play:hover {
    transform: scale(1.08);
}

body.lhw-shop .lhw-pc-play svg {
    width: 22px;
    height: 22px;
}

body.lhw-shop .lhw-pc-play .i-pause,
body.lhw-shop .lhw-pc-play.is-on .i-play {
    display: none;
}

body.lhw-shop .lhw-pc-play.is-on .i-pause,
body.lhw-shop .lhw-pc-play .i-play {
    display: inline-flex;
}

body.lhw-shop .lhw-pc-play.is-big {
    width: auto;
    height: 56px;
    padding: 0 24px 0 18px;
    font-family: var(--fd);
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    background: var(--sun);
}

body.lhw-shop .lhw-pc-play.is-big:hover {
    transform: translateY(-2px);
}

/* Lista de episodios */
body.lhw-shop .lhw-pc-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.lhw-shop .lhw-pc-list > li[hidden] {
    display: none;
}

body.lhw-shop .lhw-pc-ep {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    height: 100%;
    padding: 14px 18px 14px 14px;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 20px;
    transition: transform .2s, box-shadow .2s;
}

body.lhw-shop .lhw-pc-ep:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 0 var(--ink);
}

body.lhw-shop .lhw-pc-img {
    display: block;
    align-self: start;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--paper2);
    border-radius: 14px;
}

body.lhw-shop .lhw-pc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.lhw-shop .lhw-pc-info {
    min-width: 0;
}

body.lhw-shop .lhw-pc-num {
    display: block;
    font-family: var(--fl);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

body.lhw-shop .lhw-pc-num b {
    color: var(--ecr);
}

body.lhw-shop .lhw-pc-info h3 {
    margin: 4px 0 6px;
    font-family: var(--fd);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--ink);
}

body.lhw-shop .lhw-pc-info h3 a {
    color: var(--ink) !important;
    text-decoration: none !important;
    background-image: linear-gradient(var(--sun), var(--sun));
    background-repeat: no-repeat;
    background-position: 0 92%;
    background-size: 0 .32em;
    transition: background-size .25s;
}

body.lhw-shop .lhw-pc-info h3 a:hover {
    background-size: 100% .32em;
}

body.lhw-shop .lhw-pc-txt {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.lhw-shop .lhw-pc-txt.is-open {
    display: block;
    overflow: visible;
}

body.lhw-shop .lhw-pc-toggle {
    margin: 6px 0 0;
    padding: 0;
    font-family: var(--fd);
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    color: var(--ink);
    background: none;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* Reproductor fijo ----------------------------------------------------------- */
.lhw-pc-bar {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 9995;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    width: min(760px, calc(100% - 24px));
    padding: 10px 14px 10px 10px;
    color: #fff;
    background: #171512;
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .28), 6px 6px 0 #F4C430;
    transform: translateX(-50%);
}

.lhw-pc-bar[hidden] {
    display: none;
}

.lhw-pc-bar-img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 12px;
}

.lhw-pc-bar-img[hidden] {
    display: none;
}

.lhw-pc-bar-mid {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.lhw-pc-bar-t {
    overflow: hidden;
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lhw-pc-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lhw-pc-bar-seek {
    flex: 1 1 auto;
    min-width: 0;
    height: 4px;
    margin: 0;
    accent-color: #F4C430;
    cursor: pointer;
}

.lhw-pc-bar-time {
    flex: 0 0 auto;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 14px;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .65);
}

.lhw-pc-bar-ctl {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lhw-pc-bar-ctl button {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.lhw-pc-bar-ctl button:hover {
    background: rgba(255, 255, 255, .1);
}

.lhw-pc-bar-ctl svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.lhw-pc-bar-ctl .lhw-pc-bar-play {
    width: 48px;
    height: 48px;
    color: #171512;
    background: #F4C430;
}

.lhw-pc-bar-ctl .lhw-pc-bar-play:hover {
    background: #F4C430;
    transform: scale(1.06);
}

.lhw-pc-bar-play .i-pause,
.lhw-pc-bar.is-on .lhw-pc-bar-play .i-play {
    display: none;
}

.lhw-pc-bar-play .i-play,
.lhw-pc-bar.is-on .lhw-pc-bar-play .i-pause {
    display: inline-grid;
}

.lhw-pc-bar-ctl .lhw-pc-bar-x svg {
    width: 18px;
    height: 18px;
    opacity: .7;
}

body.lhw-pc-has-bar {
    padding-bottom: 96px;
}

/* Ficha de episodio ---------------------------------------------------------- */
body.lhw-shop .lhw-ep-hero {
    grid-template-columns: 380px minmax(0, 1fr);
}

body.lhw-shop .lhw-ep-cover {
    position: relative;
    width: 100%;
    max-width: 380px;
}

/* Disco que asoma detrás de la portada */
body.lhw-shop .lhw-ep-cover::before {
    content: "";
    position: absolute;
    top: 6%;
    right: -14%;
    width: 88%;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(circle, var(--sun) 0 13%, var(--ink) 13.5% 15%, transparent 15.5%),
        repeating-radial-gradient(circle, #2B2723 0 2px, #171512 2px 5px);
    border-radius: 50%;
    transition: transform .6s;
}

body.lhw-shop .lhw-ep-cover:hover::before {
    transform: translateX(10%) rotate(40deg);
}

body.lhw-shop .lhw-ep-cover img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 2px solid var(--ink);
    border-radius: 22px;
    box-shadow: 10px 10px 0 var(--sun);
    transform: rotate(-2deg);
}

body.lhw-shop .lhw-ep .lhw-pp-intro h1 {
    font-size: clamp(36px, 4.8vw, 66px);
    line-height: 1;
}

/* Sin letra capital: el primer párrafo suele repetir el título */
body.lhw-shop .lhw-ep .lhw-pp-body > p:first-of-type::first-letter {
    float: none;
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
}

body.lhw-shop .lhw-ep-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

body.lhw-shop .lhw-ep-actions .lhw-pc-plat {
    margin-top: 0;
}

body.lhw-shop .lhw-pc-play.lhw-ep-play {
    width: auto;
    height: auto;
    padding: 16px 26px 16px 20px;
    color: #fff;
    background: var(--ink);
    border: 2px solid var(--ink);
}

body.lhw-shop .lhw-pc-play.lhw-ep-play:hover {
    transform: translateY(-2px);
}

body.lhw-shop .lhw-pc-play.lhw-ep-play svg {
    color: var(--sun);
}

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 921px) {
    body.lhw-shop .lhw-pc-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    body.lhw-shop .lhw-pc-feat {
        width: min(100%, 420px);
    }

    body.lhw-shop .lhw-pc-list {
        grid-template-columns: minmax(0, 1fr);
    }

    body.lhw-shop .lhw-ep-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    body.lhw-shop .lhw-ep-cover {
        width: min(78%, 320px);
        margin: 0 auto 0 0;
    }
}

@media (max-width: 600px) {
    body.lhw-shop .lhw-pc {
        padding: 28px 0 72px;
    }

    body.lhw-shop .lhw-pc-feat {
        transform: none;
        box-shadow: 6px 6px 0 var(--sun);
    }

    body.lhw-shop .lhw-pc-feat h2 {
        font-size: 22px;
    }

    body.lhw-shop .lhw-pc-ep {
        grid-template-columns: 76px minmax(0, 1fr) auto;
        gap: 12px;
        padding: 10px 12px 10px 10px;
        border-radius: 16px;
    }

    body.lhw-shop .lhw-pc-img {
        border-radius: 10px;
    }

    body.lhw-shop .lhw-pc-num {
        font-size: 12.5px;
    }

    body.lhw-shop .lhw-pc-info h3 {
        font-size: 16px;
    }

    body.lhw-shop .lhw-pc-txt,
    body.lhw-shop .lhw-pc-toggle {
        display: none;
    }

    body.lhw-shop .lhw-pc-play {
        width: 44px;
        height: 44px;
    }

    body.lhw-shop .lhw-pc-play svg {
        width: 18px;
        height: 18px;
    }

    .lhw-pc-bar {
        bottom: 10px;
        gap: 10px;
        padding: 8px 8px 8px 8px;
        border-radius: 16px;
    }

    .lhw-pc-bar-img {
        width: 44px;
        height: 44px;
    }

    .lhw-pc-bar-back,
    .lhw-pc-bar-fwd {
        display: none !important;
    }

    .lhw-pc-bar-time {
        display: none;
    }

    body.lhw-shop .lhw-ep-actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.lhw-shop .lhw-ep-actions .lhw-pc-plat a {
        flex: 1 1 0;
        justify-content: center;
    }
}
