.podcast-library-content {
    margin: 0 auto;
    max-width: 76rem;
    padding: 4rem 1.5rem 6rem;
    width: 100%;
}

.podcast-library-hero {
    align-items: flex-end;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.podcast-library-hero h1,
.podcast-library-hero p { margin: 0; }
.podcast-library-hero h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: .95; margin: .4rem 0 1rem; }
.podcast-library-hero > div > p:last-child { color: var(--podcast-muted); max-width: 46rem; }
.podcast-library-message { color: var(--podcast-muted); min-height: 1.5rem; }
.podcast-library-page-list { display: grid; gap: 1rem; margin-top: 1rem; }

.podcast-library-card,
.podcast-library-empty {
    background: var(--podcast-surface);
    border: 1px solid var(--podcast-border);
    border-radius: 1.25rem;
    box-shadow: 0 .8rem 2.2rem rgba(15, 23, 42, .06);
    padding: 1.35rem;
}

.podcast-library-card { overflow: hidden; position: relative; }
.podcast-library-card::after { background: radial-gradient(circle at 100% 100%, rgba(217, 145, 30, .16), transparent 42%); content: ""; inset: 0; pointer-events: none; position: absolute; z-index: 0; }
.podcast-library-card.is-success::after { background: radial-gradient(circle at 100% 100%, rgba(42, 166, 92, .16), transparent 42%); }
.podcast-library-card.is-danger::after { background: radial-gradient(circle at 100% 100%, rgba(211, 66, 66, .16), transparent 42%); }
.podcast-library-card > * { position: relative; z-index: 1; }
.podcast-library-card header { align-items: center; display: flex; gap: 1rem; justify-content: space-between; max-width: calc(100% - 4rem); }

.podcast-library-card.is-processing {
    border-color: color-mix(in srgb, #d9911e 28%, var(--podcast-border));
    box-shadow: 0 .8rem 2.2rem rgba(15, 23, 42, .06), 0 0 0 1px color-mix(in srgb, #d9911e 7%, transparent);
}

.podcast-library-processing-outline {
    height: 100%;
    inset: 0;
    overflow: visible;
    pointer-events: none;
    position: absolute;
    width: 100%;
    z-index: 3;
}

.podcast-library-processing-outline rect {
    fill: transparent;
    height: calc(100% - 2px);
    rx: 1.2rem;
    ry: 1.2rem;
    vector-effect: non-scaling-stroke;
    width: calc(100% - 2px);
    x: 1px;
    y: 1px;
}

.podcast-library-processing-line,
.podcast-library-processing-glow {
    animation: podcast-processing-outline 3.2s linear infinite;
    stroke-dasharray: 13 87;
    stroke-dashoffset: 0;
    stroke-linecap: round;
}

.podcast-library-processing-line {
    stroke: #d9911e;
    stroke-width: 2px;
}

.podcast-library-processing-glow {
    filter: blur(5px);
    opacity: .34;
    stroke: #f2b84f;
    stroke-width: 6px;
}

.podcast-library-title-wrap { align-items: center; display: flex; flex: 1 1 auto; gap: .6rem; min-width: 0; }
.podcast-library-title-wrap input { background: transparent; border: 0; border-bottom: 1px solid transparent; color: inherit; flex: 1 1 auto; font: inherit; font-size: 1.2rem; font-weight: 800; min-width: 0; padding: .35rem 0; }
.podcast-library-title-wrap input:focus { border-bottom-color: var(--podcast-accent); outline: 0; }

.podcast-library-save,
.podcast-library-delete { background: transparent; border: 0; cursor: pointer; font: inherit; }
.podcast-library-save { color: var(--podcast-muted); flex: 0 0 auto; font-size: .82rem; font-weight: 700; opacity: .8; padding: .35rem .45rem; }
.podcast-library-save:hover,
.podcast-library-save:focus-visible { color: var(--podcast-accent); opacity: 1; }

.podcast-library-status-dot,
.podcast-library-status-progress {
    position: absolute;
    right: 1.15rem;
    top: 1.15rem;
}

.podcast-library-status-dot { background: #d9911e; border-radius: 50%; box-shadow: 0 0 0 .3rem color-mix(in srgb, #d9911e 14%, transparent); height: .55rem; width: .55rem; }
.is-success > .podcast-library-status-dot { background: #2aa65c; box-shadow: 0 0 0 .3rem color-mix(in srgb, #2aa65c 14%, transparent); }
.is-danger > .podcast-library-status-dot { background: #d34242; box-shadow: 0 0 0 .3rem color-mix(in srgb, #d34242 14%, transparent); }

.podcast-library-status-progress {
    align-items: center;
    animation: podcast-progress-float 2s ease-in-out infinite;
    display: grid;
    height: 3rem;
    justify-items: center;
    place-items: center;
    width: 3rem;
}

.podcast-library-status-progress svg {
    filter: drop-shadow(0 .2rem .5rem rgba(217,145,30,.2));
    grid-area: 1 / 1;
    height: 100%;
    overflow: visible;
    transform: rotate(-90deg);
    width: 100%;
}

.podcast-library-status-progress circle {
    fill: none;
    stroke-width: 4;
}

.podcast-library-status-progress .track {
    stroke: color-mix(in srgb, #d9911e 18%, var(--podcast-border));
}

.podcast-library-status-progress .value {
    animation: podcast-progress-pulse 1.8s ease-in-out infinite;
    stroke: #d9911e;
    stroke-dasharray: 113.1;
    stroke-dashoffset: calc(113.1 - (113.1 * var(--progress) / 100));
    stroke-linecap: round;
    transition: stroke-dashoffset .45s ease;
}

.podcast-library-status-progress strong {
    color: #b96f08;
    font-size: .76rem;
    font-variant-numeric: tabular-nums;
    font-weight: 850;
    grid-area: 1 / 1;
    line-height: 1;
}

.podcast-library-status-progress small {
    font-size: .55em;
    margin-left: .05em;
}

.podcast-library-status-dot::after,
.podcast-library-status-progress::after {
    background: #111827;
    border-radius: .45rem;
    color: #fff;
    content: attr(data-tooltip);
    font-size: .72rem;
    font-weight: 650;
    opacity: 0;
    padding: .38rem .55rem;
    pointer-events: none;
    position: absolute;
    right: -.2rem;
    top: calc(100% + .35rem);
    transform: translateY(-.2rem);
    transition: opacity .15s ease, transform .15s ease;
    white-space: nowrap;
}

.podcast-library-status-dot:hover::after,
.podcast-library-status-progress:hover::after { opacity: 1; transform: translateY(0); }

.podcast-library-meta { color: var(--podcast-muted); display: flex; flex-wrap: wrap; font-size: .84rem; gap: .55rem 1rem; margin-top: .8rem; }
.podcast-library-progress { color: var(--podcast-muted); margin: .9rem 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.podcast-library-card.is-processing .podcast-library-progress::before {
    animation: podcast-status-blink 1.35s ease-in-out infinite;
    background: #d9911e;
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: .45rem;
    margin-right: .5rem;
    vertical-align: .08rem;
    width: .45rem;
}
.podcast-library-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.15rem; }
.podcast-library-action-button { align-items: center; display: inline-flex; gap: .55rem; justify-content: center; }
.podcast-button-icon { display: block; flex: 0 0 auto; height: 1.05rem; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; width: 1.05rem; }
.podcast-button-icon circle,
.podcast-button-icon path { fill: none; }
.podcast-library-action-button[data-play] .podcast-button-icon path { fill: currentColor; stroke: none; }
.podcast-library-action-button:hover .podcast-button-icon,
.podcast-library-action-button:focus-visible .podcast-button-icon { transform: translateY(-1px); }
.podcast-library-action-button .podcast-button-icon { transition: transform .16s ease; }
.podcast-library-player { flex: 0 1 auto; min-width: 0; }
.podcast-library-player.is-mounted { flex: 1 1 30rem; }
.podcast-library-player-shell,
.podcast-stream-player-shell { align-items: center; display: flex; flex: 1 1 30rem; gap: .55rem; min-width: min(100%, 18rem); }
.podcast-library-player-shell audio,
.podcast-stream-player-shell audio { flex: 1 1 auto; min-width: 0; width: 100%; }
.podcast-library-player-close,
.podcast-stream-player-close { align-items: center; appearance: none; background: transparent; border: 1px solid var(--podcast-border); border-radius: 50%; color: var(--podcast-muted); cursor: pointer; display: inline-flex; flex: 0 0 auto; font: inherit; font-size: 1.15rem; height: 2.25rem; justify-content: center; line-height: 1; padding: 0; width: 2.25rem; }
.podcast-library-player-close:hover,
.podcast-library-player-close:focus-visible,
.podcast-stream-player-close:hover,
.podcast-stream-player-close:focus-visible { border-color: var(--podcast-accent); color: var(--podcast-accent); outline: 0; }
.podcast-library-delete { color: var(--podcast-muted); font-size: .82rem; margin-left: auto; opacity: .72; padding: .45rem .25rem; }
.podcast-library-delete:hover,
.podcast-library-delete:focus-visible { color: #c93f3f; opacity: 1; }
.podcast-library-empty { padding: 3rem; text-align: center; }
.podcast-library-empty h2 { margin-top: 0; }

@keyframes podcast-processing-outline { to { stroke-dashoffset: -100; } }
@keyframes podcast-progress-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes podcast-progress-pulse { 0%,100% { filter: drop-shadow(0 0 0 rgba(217,145,30,0)); } 50% { filter: drop-shadow(0 0 4px rgba(217,145,30,.52)); } }
@keyframes podcast-status-blink { 0%,100% { opacity: .32; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
    .podcast-library-processing-line,
    .podcast-library-processing-glow,
    .podcast-library-status-progress,
    .podcast-library-status-progress .value,
    .podcast-library-card.is-processing .podcast-library-progress::before { animation: none; }
}

@media (max-width: 700px) {
    .podcast-library-content { padding-top: 2rem; }
    .podcast-library-hero,
    .podcast-library-card header { align-items: stretch; flex-direction: column; }
    .podcast-library-card header { max-width: calc(100% - 3.5rem); }
    .podcast-library-title-wrap { align-items: stretch; }
    .podcast-library-actions,
    .podcast-library-actions .podcast-button,
    .podcast-library-player,
    .podcast-library-player-shell,
    .podcast-stream-player-shell { width: 100%; }
    .podcast-library-delete { margin-left: 0; width: auto; }
}