/* Shared premium controls used by podcast catalogue cards. */
.podcast-poster,
.podcast-card__image,
.podcast-image,
.premium-share-preview__cover img,
.premium-recommendation__cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
    object-fit: contain;
    object-position: center;
}

.admin-podcast-poster-frame {
    width: min(100%, 12.5rem);
    max-width: 12.5rem;
    margin-inline: 0;
    overflow: hidden;
    aspect-ratio: 5 / 3;
    border: 1px solid rgba(229, 196, 107, .42);
    border-radius: .85rem;
    background: rgba(8, 35, 60, .88);
}

.admin-podcast-poster {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.podcast-taxonomy-badge {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    min-height: 1.4rem;
    padding: 0.2rem 0.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(244, 213, 123, 0.72);
    border-radius: 0.7rem;
    color: #F4D57B;
    background: rgba(13, 49, 84, 0.78);
    box-shadow: 0 3px 10px rgba(3, 20, 38, 0.16);
    backdrop-filter: blur(6px);
    cursor: default;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-decoration: none;
    white-space: normal;
}

.podcast-taxonomy-badge--featured {
    min-height: 1.4rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.64rem;
}

.podcast-taxonomy-badge--compact {
    min-height: 1.2rem;
    padding: 0.14rem 0.42rem;
    font-size: 0.58rem;
}

.podcast-premium-action {
    display: inline-flex;
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding: 0.58rem 0.88rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    border: 1px solid rgba(242, 210, 132, 0.7);
    border-radius: 999px;
    color: #f8fbff;
    background: linear-gradient(145deg, #0d3154, #071328);
    box-shadow: 0 7px 18px rgba(3, 9, 22, 0.16);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.podcast-premium-action i {
    color: #f5d993;
    font-size: 0.68rem;
}

.podcast-card__footer .podcast-catalog-control-effect {
    border-color: rgba(242, 210, 132, 0.7);
    box-shadow: 0 4px 12px rgba(3, 20, 38, 0.16);
    transition:
        box-shadow 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
    .podcast-card__footer .podcast-catalog-control-effect:hover {
        box-shadow: 0 6px 14px rgba(3, 20, 38, 0.22);
        filter: brightness(1.045);
        text-decoration: none;
    }
}

.podcast-card__footer .podcast-catalog-control-effect:active {
    box-shadow: 0 2px 7px rgba(3, 20, 38, 0.14);
    filter: brightness(0.985);
}

.podcast-card__footer .podcast-catalog-control-effect:focus-visible {
    outline: 2px solid #F4D57B;
    outline-offset: 2px;
    text-decoration: none;
}

.podcast-card .podcast-card__footer {
    --podcast-card-footer-status-width: clamp(5rem, 26cqw, 5.75rem);
    --podcast-card-footer-action-width: clamp(5.5rem, 28cqw, 6.25rem);
    display: grid !important;
    width: 100%;
    min-width: 0;
    grid-template-columns: max-content var(--podcast-card-footer-status-width) var(--podcast-card-footer-action-width);
    align-items: center !important;
    justify-content: space-between;
    gap: clamp(0.25rem, 1.5cqw, 0.5rem);
    padding-inline: clamp(0.125rem, 0.8cqw, 0.25rem);
}

.podcast-card__duration {
    display: inline-flex;
    width: max-content;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: flex-start;
    font-size: clamp(0.68rem, 4cqw, 0.875rem);
    line-height: 1.2;
    white-space: nowrap;
}

.podcast-card__status {
    display: grid;
    width: var(--podcast-card-footer-status-width);
    min-width: 0;
    align-items: center;
    gap: 0.25rem;
}

.podcast-card__footer .podcast-access-badge {
    width: var(--podcast-card-footer-status-width);
    min-width: var(--podcast-card-footer-status-width);
    max-width: var(--podcast-card-footer-status-width);
}

.podcast-card__footer .podcast-premium-action {
    width: var(--podcast-card-footer-action-width);
    min-width: var(--podcast-card-footer-action-width);
    max-width: var(--podcast-card-footer-action-width);
}

.podcast-card__footer .podcast-access-badge,
.podcast-card__footer .podcast-premium-action {
    height: 44px;
    min-height: 44px;
    padding-inline: clamp(0.38rem, 2cqw, 0.82rem);
    flex-shrink: 0;
    font-size: clamp(0.64rem, 3.5cqw, 0.74rem);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .podcast-catalog-control-effect,
    .podcast-premium-action,
    .podcast-premium-action i {
        transition: none;
    }

    .podcast-catalog-control-effect:hover,
    .podcast-catalog-control-effect:active,
    .podcast-premium-action:hover,
    .podcast-premium-action:active,
    .podcast-premium-action:hover i {
        transform: none;
    }
}
