/* Podcast AI module stylesheet. */
#podcasts-hero {
    --hero-image:
        radial-gradient(circle at 18% 18%, rgba(200, 192, 197, 0.18), transparent 28%),
        radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.08), transparent 24%),
        linear-gradient(135deg, #1b171d 0%, #120f14 52%, #1d1820 100%);
    --hero-accent: var(--primary);
}

#podcasts-hero.page-hero {
    min-height: 100dvh;
}

#podcasts-hero .page-hero__panel {
    max-width: 980px;
}

#podcasts-hero .page-hero__body {
    max-width: 760px;
}

#podcasts-hero .page-hero__body--disclaimer {
    max-width: 720px;
    font-size: 0.94rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.62);
}

.podcast-section {
    position: relative;
    padding: 80px 0 120px;
}

.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

.podcast-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    transition: transform 0.4s ease, filter 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.podcast-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.podcast-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.podcast-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #100d11;
}

.podcast-modal__drawer .drawer-body {
    padding-bottom: 50px;
    font-size: 0.78rem;
    line-height: 1.65;
}

.podcast-modal__drawer .drawer-body h1,
.podcast-modal__drawer .drawer-body h2,
.podcast-modal__drawer .drawer-body h3,
.podcast-modal__drawer .drawer-body h4 {
    font-family: var(--font-primary);
    color: var(--primary);
    margin: 24px 0 12px 0;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    letter-spacing: 0.01em;
}

.podcast-modal__drawer .drawer-body h3 {
    font-size: 0.98rem;
}

.podcast-modal__drawer .drawer-body h4 {
    font-size: 0.9rem;
}

.podcast-modal__drawer .drawer-body p {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.podcast-modal__drawer .drawer-body strong {
    color: #fff;
    font-weight: 600;
}

.podcast-modal__drawer .drawer-body em {
    color: rgba(255, 255, 255, 0.82);
    font-style: italic;
}

.podcast-modal__drawer .drawer-body ul,
.podcast-modal__drawer .drawer-body ol {
    margin: 12px 0 20px 20px;
    color: rgba(255, 255, 255, 0.85);
}

.podcast-modal__drawer .drawer-body li {
    margin-bottom: 8px;
}

.podcast-modal__drawer .drawer-body li::marker {
    color: var(--primary);
}

.podcast-modal__drawer .drawer-body blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 16px;
    margin: 20px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.ai-response-fade {
    animation: aiResponseFadeIn 0.5s ease-out forwards;
}

@keyframes aiResponseFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.podcast-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.02) brightness(0.92);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
    scale: 1.2;
}

.podcast-card:hover .podcast-card__thumb img {
    transform: scale(1.04);
    filter: saturate(1.08) brightness(1);
}

.podcast-card__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    min-width: 0;
    padding: 30px;
}

.podcast-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.podcast-card__badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(200, 192, 197, 0.1);
    color: var(--primary);
    border: 1px solid rgba(200, 192, 197, 0.2);
}

.podcast-card__date {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
}

.podcast-card__title {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.25;
    color: #fff;
    overflow-wrap: anywhere;
}

.podcast-card__guest,
.podcast-modal__guest {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(200, 192, 197, 0.08);
    border: 1px solid rgba(200, 192, 197, 0.14);
    color: rgba(255, 255, 255, 0.82);
    overflow-wrap: anywhere;
}

.podcast-card__guest {
    font-size: 0.84rem;
    line-height: 1.4;
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
}

.podcast-modal__guest {
    width: fit-content;
    font-size: 0.9rem;
    line-height: 1.45;
}

.podcast-card__guest i,
.podcast-modal__guest i {
    color: var(--primary);
    font-size: 0.95rem;
}

.podcast-card__guest-label,
.podcast-modal__guest-label {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.64);
}

.podcast-card__guest-name,
.podcast-modal__guest-name {
    color: #fff;
    font-weight: 600;
}

.podcast-card__description {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podcast-card__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.podcast-card__link::after {
    content: '>';
    transition: transform 0.25s ease;
}

.podcast-card:hover .podcast-card__link::after {
    transform: translateX(2px);
}

.podcast-empty {
    padding: 42px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
}

.podcast-empty h2 {
    margin-bottom: 12px;
    font-size: 2rem;
}

.podcast-empty p {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

#global-modal.podcast-modal-open .modal-content-wrapper {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    transform: none;
}

#global-modal.podcast-modal-open #global-modal-content {
    width: 100%;
    height: 100%;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
}

.podcast-modal-shell {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 100%;
    border-radius: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 16%, rgba(200, 192, 197, 0.12), transparent 28%),
        linear-gradient(135deg, rgba(20, 17, 22, 0.98), rgba(10, 9, 12, 1));
    border: 0;
    box-shadow: none;
    --podcast-stage-offset: 0px;
}

@media (min-width: 901px) {
    .podcast-modal-shell:not(.is-content-collapsed) {
        --podcast-stage-offset: min(260px, 46vw);
    }
}

.podcast-modal__stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 14%, rgba(200, 192, 197, 0.16), transparent 26%),
        linear-gradient(180deg, rgba(20, 17, 22, 0.98), rgba(10, 9, 12, 1));
}

.podcast-modal__player {
    position: absolute;
    inset: 0;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 0;
    background: #0f0d11;
    border: 0;
    box-shadow: none;
}

.podcast-modal__player-surface {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.podcast-modal__player-art,
.podcast-modal__player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border: 0;
}

.podcast-modal__player-art {
    filter: saturate(1.05) brightness(0.72);
    transform: translate3d(calc(var(--podcast-stage-offset, 0px) * -1), 0, 0) scale(1.02);
    transform-origin: center center;
    transition: opacity 0.35s ease, transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}

.podcast-modal__player iframe {
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.podcast-modal__player-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(17, 14, 19, 0.12), rgba(17, 14, 19, 0.42) 42%, rgba(17, 14, 19, 0.94)),
        radial-gradient(circle at top left, rgba(200, 192, 197, 0.2), transparent 38%);
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.podcast-modal__player.is-playing .podcast-modal__player-art {
    opacity: 0;
    transform: translate3d(calc(var(--podcast-stage-offset, 0px) * -1), 0, 0) scale(1.04);
}

.podcast-modal__player.is-playing .podcast-modal__player-overlay {
    opacity: 0.18;
}

.podcast-modal__player.is-playing iframe {
    opacity: 1;
}

.podcast-modal__stage-control[hidden],
.podcast-modal__stage-collapse-hitbox[hidden] {
    display: none !important;
}

.podcast-modal__stage-collapse-hitbox {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
}

.podcast-modal-shell.is-collapse-hitbox-visible .podcast-modal__stage-collapse-hitbox {
    pointer-events: auto;
}

@media (hover: none),
(pointer: coarse) {
    .podcast-modal-shell.is-collapse-hitbox-visible .podcast-modal__player iframe {
        pointer-events: none;
    }
}

.podcast-modal__player-toggle {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    appearance: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    transform: translate3d(calc(-50% - var(--podcast-stage-offset, 0px)), -50%, 0);
    background: rgba(20, 17, 22, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.podcast-modal__player.is-playing .podcast-modal__player-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(calc(-50% - var(--podcast-stage-offset, 0px)), -50%, 0) scale(0.92);
}

.podcast-modal__stage-controls {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 3;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.podcast-modal-shell.is-stage-controls-visible .podcast-modal__stage-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.podcast-modal__player-toggle:focus-visible,
.podcast-modal__panel-toggle:focus-visible,
.podcast-modal__stage-control:focus-visible,
.podcast-modal__stage-collapse-hitbox:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.podcast-modal__player-toggle:hover,
.podcast-modal__panel-toggle:hover,
.podcast-modal__stage-control:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
}

.podcast-modal__player-toggle-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
}

.podcast-modal__player-toggle-icon::before,
.podcast-modal__player-toggle-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease, height 0.25s ease, border-radius 0.25s ease;
}

.podcast-modal__player:not(.is-playing) .podcast-modal__player-toggle-icon::before {
    width: 0;
    height: 0;
    left: 3px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid currentColor;
    background: transparent;
    border-radius: 0;
}

.podcast-modal__player:not(.is-playing) .podcast-modal__player-toggle-icon::after {
    opacity: 0;
}

.podcast-modal__player.is-playing .podcast-modal__player-toggle-icon::before,
.podcast-modal__player.is-playing .podcast-modal__player-toggle-icon::after {
    width: 18px;
    height: 2px;
    background: currentColor;
}

.podcast-modal__player.is-playing .podcast-modal__player-toggle-icon::before {
    transform: rotate(45deg);
}

.podcast-modal__player.is-playing .podcast-modal__player-toggle-icon::after {
    transform: rotate(-45deg);
}

.podcast-modal__stage-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(20, 17, 22, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.podcast-modal__stage-control--stop {
    background: rgba(200, 192, 197, 0.18);
}

.podcast-modal__content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: min(520px, 92vw);
    max-width: 100vw;
    min-width: 0;
    min-height: 0;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: clamp(28px, 3vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 22px;
    background:
        linear-gradient(180deg, rgba(18, 15, 20, 0.96), rgba(13, 11, 15, 0.98)),
        radial-gradient(circle at top, rgba(200, 192, 197, 0.08), transparent 42%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -24px 0 52px rgba(0, 0, 0, 0.28);
    transition: opacity 0.22s ease, transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
    scrollbar-width: none;
}

.podcast-modal__content::-webkit-scrollbar {
    display: none;
}

.podcast-modal-shell.is-content-collapsed .podcast-modal__content {
    opacity: 0;
    transform: translate3d(calc(100% + 28px), 0, 0);
    pointer-events: none;
}

.podcast-modal-shell.is-content-overlay .podcast-modal__content {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.podcast-modal__content-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px 18px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 3;
    padding-bottom: 18px;
    padding-right: clamp(76px, 8vw, 108px);
    margin-bottom: 18px;
    background: linear-gradient(180deg, rgba(18, 15, 20, 0.98), rgba(18, 15, 20, 0.92) 78%, rgba(18, 15, 20, 0));
}

.podcast-modal__content-body {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.podcast-modal__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 14px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
}

.podcast-modal__panel-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: fit-content;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.podcast-modal__panel-toggle:hover {
    gap: 0;
}

.podcast-modal__panel-toggle-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    font-size: 0.82rem;
    line-height: 1;
    transform: translateX(1px);
}

.podcast-modal__panel-toggle-icon i {
    width: 100%;
    height: 100%;
    display: block;
    line-height: 1;
}

.podcast-modal__panel-toggle-text {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    transform: translateX(-4px);
    padding-left: 0;
    overflow: hidden;
    transition: max-width 0.25s ease, opacity 0.25s ease, transform 0.25s ease, padding-left 0.25s ease;
}

.podcast-modal__panel-toggle:hover .podcast-modal__panel-toggle-text,
.podcast-modal__panel-toggle:focus-visible .podcast-modal__panel-toggle-text {
    max-width: 120px;
    opacity: 1;
    transform: translateX(0);
    padding-left: 10px;
}

.podcast-modal__content h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.55rem, 2.7vw, 2.25rem);
    line-height: 1.08;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.podcast-modal__hero-date {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.86rem;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.podcast-modal__description {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.podcast-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.podcast-modal__actions .btn {
    min-height: 52px;
    justify-content: center;
}

.podcast-modal__play {
    min-width: 180px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

@media (max-width: 900px) {
    #podcasts-hero.page-hero {
        min-height: auto;
        padding: 150px 0 80px;
    }

    .podcast-section {
        padding: 64px 0 96px;
    }

    .podcast-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .podcast-card__body {
        padding: 22px;
    }

    .podcast-card__title {
        font-size: 1.28rem;
    }

    #podcasts-hero .page-hero__body--disclaimer {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .podcast-modal-shell {
        width: 100%;
        height: 100%;
    }

    .podcast-modal__content {
        width: 100%;
        padding: 22px 18px 24px;
        border-left: 0;
    }

    .podcast-modal-shell.is-content-overlay .podcast-modal__content {
        width: 100%;
        max-width: 100%;
        border-left: 0;
    }

    .podcast-modal__content h2 {
        font-size: clamp(1.45rem, 5.8vw, 2rem);
    }

    .podcast-modal__stage-controls {
        left: 16px;
        bottom: 16px;
    }

    .podcast-modal__player-toggle {
        width: 78px;
        height: 78px;
    }

    .podcast-modal__actions .btn {
        flex: 1 1 220px;
    }
}

@media (max-width: 640px) {
    .podcast-card__body {
        padding: 20px;
    }

    .podcast-card__description {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .podcast-empty {
        padding: 28px 20px;
    }

    .podcast-modal__content h2 {
        font-size: clamp(1.35rem, 6.8vw, 1.85rem);
    }

    .podcast-modal__content {
        padding: 20px 16px 22px;
    }

    .podcast-modal__play,
    .podcast-modal__actions .btn {
        width: 100%;
    }

    .podcast-modal__actions {
        flex-direction: column;
    }

    .podcast-modal__stage-controls {
        left: 14px;
        right: 14px;
        bottom: 14px;
        flex-direction: column;
        align-items: stretch;
    }

    .podcast-modal__stage-control {
        width: 100%;
    }

    .podcast-modal__panel-toggle-text {
        max-width: none;
        opacity: 1;
        transform: translateX(0);
    }
}

@media (hover: none),
(pointer: coarse) {
    .podcast-modal__panel-toggle-text {
        max-width: none;
        opacity: 1;
        transform: translateX(0);
    }
}

/* AI Sub-Panel Drawer */
.podcast-modal__drawer.is-open {
    transform: translateX(0) !important;
}

.podcast-modal__drawer .drawer-close:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    transform: rotate(90deg);
}

.podcast-modal__drawer .drawer-body::-webkit-scrollbar {
    width: 6px;
}

.podcast-modal__drawer .drawer-body::-webkit-scrollbar-track {
    background: transparent;
}

.podcast-modal__drawer .drawer-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

@media (max-width: 900px) {
    .podcast-modal__drawer {
        width: 100% !important;
        border-right: 0 !important;
    }

    .podcast-modal__drawer .drawer-panel {
        border-right: 0 !important;
    }
}

@media (max-width: 900px) {
    .podcast-card {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}

body.admin-page .admin-podcast-autofill-field {
    grid-column: 1 / -1;
    margin-bottom: 5px;
}

body.admin-page .admin-podcast-autofill {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
}

body.admin-page .admin-podcast-autofill__input {
    flex: 1 1 320px;
    min-width: 0;
}

body.admin-page .admin-ai-autofill-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 0 0 auto;
    min-height: 52px;
    padding: 8px 16px 8px 8px;
    border-radius: 14px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f43f5e 100%);
    background-size: 200% auto;
    cursor: pointer;
    color: #ffffff;
    text-align: left;
    box-shadow:
        0 8px 24px rgba(236, 72, 153, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border: none;
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease,
        background-position 0.6s ease;
}

body.admin-page .admin-ai-autofill-btn__glow {
    display: none;
}

body.admin-page .admin-ai-autofill-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3) 50%,
            transparent);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.6s ease;
    z-index: 1;
}

body.admin-page .admin-ai-autofill-btn:hover {
    transform: translateY(-2px) scale(1.02);
    background-position: right center;
    box-shadow:
        0 14px 32px rgba(236, 72, 153, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

body.admin-page .admin-ai-autofill-btn:hover::after {
    transform: translateX(100%) skewX(-15deg);
}

body.admin-page .admin-ai-autofill-btn:active {
    transform: translateY(0) scale(0.98);
}

body.admin-page .admin-ai-autofill-btn:disabled,
body.admin-page .admin-ai-autofill-btn.is-loading {
    cursor: progress;
    pointer-events: none;
    opacity: 0.8;
    filter: saturate(0.6);
}

body.admin-page .admin-ai-autofill-btn__icon {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

body.admin-page .admin-ai-autofill-btn__icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

body.admin-page .admin-ai-autofill-btn__label {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

body.admin-page .admin-ai-autofill-btn:hover .admin-ai-autofill-btn__icon {
    transform: scale(1.15) rotate(-10deg);
    background: #ffffff;
    color: #ec4899;
    border-color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

body.admin-page .admin-ai-autofill-btn.is-loading .admin-ai-autofill-btn__icon svg {
    animation: admin-ai-autofill-sparkle-spin 1.2s infinite ease-in-out;
}

@keyframes admin-ai-autofill-sparkle-spin {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.3) rotate(180deg);
        opacity: 0.6;
    }

    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

@media (max-width: 720px) {
    body.admin-page .admin-podcast-autofill {
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    body.admin-page .admin-podcast-autofill {
        flex-direction: column;
    }

    body.admin-page .admin-ai-autofill-btn {
        width: 100%;
        min-width: 0;
        flex-basis: auto;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.admin-page .admin-ai-autofill-btn,
    body.admin-page .admin-ai-autofill-btn::before,
    body.admin-page .admin-ai-autofill-btn::after,
    body.admin-page .admin-ai-autofill-btn__icon {
        animation: none !important;
        transition: none !important;
    }
}
