hr {
    width: 100%;
    margin: 0.5em auto;
    border-bottom: 1px solid #e6e6e6;
}

.header {
    width: 100%;
    background-image: url("../img/matt-botsford-197870.07ed5a717e0b.jpg");
    background-size: cover;
    background-position: center center;
    padding: 2em 0;
    position: relative;
    margin-bottom: 2em;
}
.header__overlay {
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}
.header__content {
    position: relative;
    z-index: 5;
}
.header__title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 0;
    color: #FFFFFF;
}
.header__title > a {
    color: #FFFFFF;
}
.header__title > a:hover {
    color: #FFFFFF;
}
.header__subtitle {
    font-size: 1.2em;
    text-align: center;
    color: #FFFFFF;
}


/* .episode { */
/*     width: 100%; */
/*     margin-bottom: 0.5em; */
/* } */
.episode .fa-play {
    display: inherit;
}
.episode .fa-pause {
    display: none;
}

button.playing .fa-play {
    display: none;
}
button.playing .fa-pause {
    display: inherit;
}

/**/

.episode__content {
    align-content: space-evenly;
    display: grid;
}
.feed .episode__content {
    margin: 0 !important;
}
.episode__title {
    font-size: 1.1em;
    font-weight: 500;
    margin: 0;
}
.episode__podcast {
    font-size: 0.8em;
    margin: 0;
}
.episode__image {
    width: 80px;
    border-radius: 5px;
}
.episode__published {
    font-size: 0.9em;
    align-content: space-evenly;
    display: grid;
    text-align: center;
}

@media only screen and (max-width: 550px) {
    .episode__title {
        font-size: 0.9em;
    }
    .episode__image {
        width: 50px;
    }
    .episode__podcast {
        font-size: 0.6em;
        margin: 0.5em 0 0;
    }
    .episode__published {
        font-size: 0.6em;
    }

}


.podcast {
    margin-bottom: 0.7em;
}
.podcast__content {
    align-content: space-evenly;
    display: grid;
}
.podcast__title {
    font-size: 2em;
    font-weight: 500;
    margin: 0;
}


.page {

}
.page__title {
    font-size: 2em;
}


.player {
    --player-accent: #3b2636;
    display: none;
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    grid-template-columns: minmax(12rem, 2fr) minmax(24rem, 3fr);
    align-items: center;
    gap: 1.5rem;
    padding: .6rem max(1rem, calc((100vw - 75rem) / 2));
    border-top: 1px solid rgba(59, 38, 54, .12);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 -10px 30px rgba(25, 15, 23, .1);
    backdrop-filter: blur(16px);
}
.player__episode {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .75rem;
}
.player__episode img {
    width: 2.75rem;
    height: 2.75rem;
    flex: none;
    border-radius: .65rem;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(25, 15, 23, .16);
}
.player-title {
    overflow: hidden;
    color: #241720;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.player audio {
    outline: none;
}
body.show-player {
    padding-bottom: 4.5rem;
}
body.show-player .player {
    display: grid;
}
.shown {
    display: block !important;
}
.plyr {
    height: auto !important;
}
.plyr--audio {
    position: relative;
}
.plyr__menu__container {
    background: #fff;
}
.plyr--audio .plyr__progress__buffer {
    color: var(--player-accent);
}
.plyr--audio .plyr__controls {
    padding: .25rem;
    background: transparent;
}
.plyr--full-ui input[type=range] {
    color: var(--player-accent);
}
.plyr--audio .plyr__control.plyr__tab-focus, .plyr--audio .plyr__control:hover, .plyr--audio .plyr__control[aria-expanded=true] {
    background: var(--player-accent);
    color: #fff;
}
.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::before {
    background: var(--player-accent);
}
.plyr__menu__container .plyr__control[role=menuitemradio].plyr__tab-focus::before, .plyr__menu__container .plyr__control[role=menuitemradio]:hover::before {
    background: rgba(255, 255, 255, .3);
}

@media only screen and (max-width: 640px) {
    .player {
        grid-template-columns: minmax(0, 1fr);
        gap: .15rem;
        padding: .5rem .75rem .4rem;
    }
    .player__episode img {
        width: 2.25rem;
        height: 2.25rem;
        border-radius: .5rem;
    }
    .player-title {
        font-size: .8rem;
    }
    body.show-player {
        padding-bottom: 6rem;
    }
}

.index__header {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    margin-bottom: 1.3em;
}
.index__title {
    width: auto;
    display: table;
    border-left: 6px solid #412b40;
    padding-left: 0.5em;
    margin: 0;
    margin-right: 1em;
}
.index__filters {
    font-size: 0.9em;
    margin-left: auto;
    text-align: right;
    width: 190px;
}
.index__filters__sep {
    font-size: 0.5em;
    position: relative;
    bottom: 2px;
    margin: 0 0.5em;
}
@media only screen and (max-width: 420px) {
    .index__filters {
        display: none;
    }
}

.featured {
    text-align: center;
    margin-bottom: 3em;
}
.featured__image {
    width: 65px;
    border-radius: 5px;
    margin: 0.3em;
}
.featured__title {
    border: 0;
    text-align: center;
    margin: 0 auto 0.5em;
    border-bottom: 4px solid #412b40;
    padding: 0;
    color: #412b40;
    font-size: 1.2em;
    font-weight: 600;
    display: table;
}
.featured__all {
    display: block;
    margin-top: 0.5em;
    font-size: 1em;
}

.subtle-icon {
    color: #dcdcdc;
}
.small-icon {
    font-size: 0.5em;
}

.submit-indicator {
    display: none;
}
.htmx-request .submit-indicator {
    display: block;
}
.htmx-request.submit-indicator {
    display: block;
}

/* Visual refresh */
:root {
    --bg: #f6f8fc;
    --card: #fff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --accent: #5b21b6;
    --accent-soft: #f5f3ff;
}

body {
    background: radial-gradient(1200px 500px at 10% -20%, #e0e7ff 0%, transparent 50%), var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.grid-container {
    max-width: 1120px;
}

.header__title,
.header__subtitle {
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.header__subtitle {
    color: #e2e8f0;
    font-weight: 500;
}

.feed {
    margin-top: 14px;
}

.feed.divide-y.divide-gray-300 > :not([hidden]) ~ :not([hidden]) {
    border-color: transparent !important;
}

.feed .episode {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin: 10px 0;
    padding: 14px 12px !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feed .episode:hover {
    transform: translateY(-2px);
    border-color: #c4b5fd;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

.episode .text-gray-500 {
    color: var(--muted) !important;
}

.feed .episode img.w-12 {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover;
    border-radius: 12px;
    background: var(--accent-soft);
    box-shadow: 0 2px 8px rgba(91, 33, 182, 0.16);
}

.breadcrumbs {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
}

.breadcrumbs li {
    flex: none;
}

.breadcrumbs li:last-child {
    overflow: hidden;
    flex: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.page__title {
    max-width: 900px;
    margin: 1.25rem 0 1rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.page__title + .episode {
    overflow: hidden;
    margin: 0 0 3rem;
    padding: 0 !important;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.page__title + .episode > .cell {
    margin-right: 0;
    margin-left: 0;
}

.page__title + .episode > .large-8 {
    width: 66.666%;
    padding: 1.75rem 2rem 2rem;
}

.page__title + .episode > .large-8 > p {
    margin: 0;
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.75;
}

.page__title + .episode .relative.my-4 {
    margin: 0 0 1.5rem;
}

.page__title + .episode .relative.flex.justify-center {
    justify-content: flex-start;
}

.page__title + .episode button {
    width: auto;
    height: 3rem;
    padding: 0 1.25rem;
    gap: 0.65rem;
    background: var(--accent);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(91, 33, 182, 0.25);
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.page__title + .episode button::after {
    content: "Predvajaj epizodo";
}

.page__title + .episode button.playing::after {
    content: "Premor";
}

.page__title + .episode button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(91, 33, 182, 0.32);
}

button[data-audio]:focus-visible {
    outline: 3px solid #a78bfa;
    outline-offset: 3px;
}

.page__title + .episode > .large-4 {
    width: 33.334%;
    margin-top: 0 !important;
    padding: 1.5rem;
    background: var(--accent-soft);
    border-left: 1px solid #ddd6fe;
}

.page__title + .episode > .large-4 > ul {
    margin: 0;
    list-style: none;
}

.page__title + .episode > .large-4 > ul > li {
    padding: 0.65rem 0;
    border-bottom: 1px solid #ddd6fe;
    line-height: 1.5;
}

.page__title + .episode > .large-4 > ul > li:last-child {
    border-bottom: 0;
}

.page__title + .episode > .large-4 .fas {
    width: 1.4rem;
    color: var(--accent);
    text-align: center;
}

.page__title + .episode > .large-4 ul ul {
    display: inline;
    margin: 0;
    list-style: none;
}

.page__title + .episode > .large-4 ul ul li {
    display: inline;
}

.page__title + .episode a {
    color: var(--accent);
    font-weight: 600;
}

.index__filters {
    display: flex;
    width: auto;
    margin-left: auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.index__filters a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.index__filters__sep {
    margin: 0;
}

[aria-label="Footer"] {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

@media only screen and (max-width: 639px) {
    .page__title {
        font-size: 1.75rem;
    }

    .page__title + .episode > .large-8,
    .page__title + .episode > .large-4 {
        width: 100%;
        padding: 1.25rem;
    }

    .page__title + .episode > .large-4 {
        border-top: 1px solid #ddd6fe;
        border-left: 0;
    }
}
