/*
THESIS: قاب یک استودیوی پخش خرداد است؛ تصویر مالک صحنه می‌ماند و رابطِ پرزرق‌وبرقِ تقلیدی را رد می‌کند.
OWN-WORLD: زغالی عمیق، نارنجی پخش، تایپوگرافی فارسی سنگین، خط زمان نورانی و کنترل‌های دقیق ۴۴ پیکسلی.
STORY: مخاطب قسمت را می‌شناسد، با یک لمس پخش می‌کند، مسیر تماشا را حفظ می‌کند و طبیعی به برنامه بعدی می‌رسد.
FIRST VIEWPORT: کاور ۱۶:۹، نشان خرداد در بالا، Play مرکزی و کنترل‌های دو ردیفه روی لبه پایین.
FORM: توسعه مستقیم زبان بصری موجود سایت در حالت Operate؛ وضعیت، عمل و دسترس‌پذیری بر تزئین مقدم‌اند.
*/

@font-face {
    font-display: block;
    font-family: "Material Symbols Rounded";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/material-symbols-rounded-subset.woff2") format("woff2");
}

.khp-player {
    --khp-primary: #ff7a00;
    --khp-control: #ffb066;
    --khp-bg: #070707;
    --khp-surface: #11100f;
    --khp-raised: #1b1815;
    --khp-text: #fffaf5;
    --khp-muted: #c9bfb6;
    --khp-danger: #ff5d5d;
    color: var(--khp-text);
    direction: rtl;
    font-family: var(--kh-font-family, IRANSansX, IRANSans, Tahoma, Arial, sans-serif);
    margin: 0;
    outline: none;
    position: relative;
    width: 100%;
}

.khp-player *,
.khp-player *::before,
.khp-player *::after {
    box-sizing: border-box;
}

.khp-player button,
.khp-player input,
.khp-player select {
    font: inherit;
}

.khp-stage {
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 82% 10%, color-mix(in srgb, var(--khp-primary) 22%, transparent), transparent 30%),
        linear-gradient(180deg, #16100b 0%, var(--khp-bg) 62%);
    border: 1px solid color-mix(in srgb, var(--khp-primary) 34%, transparent);
    border-radius: 16px;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.055);
    direction: ltr;
    isolation: isolate;
    min-height: 220px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.khp-stage::before {
    background:
        linear-gradient(90deg, rgba(7, 7, 7, 0.58), rgba(7, 7, 7, 0.2) 50%, rgba(7, 7, 7, 0.58)),
        var(--khp-portrait-backdrop, none) center / cover no-repeat;
    content: "";
    filter: blur(22px) saturate(0.72);
    inset: -28px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: scale(1.08);
    transition: opacity 180ms ease;
    z-index: 0;
}

.khp-player .khp-stage > .khp-media {
    aspect-ratio: auto;
    background: #000;
    display: block;
    height: 100%;
    inset: 0;
    max-height: none;
    max-width: none;
    object-fit: contain;
    position: absolute;
    width: 100%;
    z-index: 0;
}

.khp-player.is-portrait-media .khp-stage::before {
    opacity: 0.55;
}

.khp-player.is-portrait-media .khp-stage > .khp-media {
    background: transparent;
    z-index: 1;
}

.khp-topbar {
    align-items: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent);
    direction: rtl;
    display: flex;
    gap: 12px;
    inset: 0 0 auto;
    min-height: 76px;
    padding: 14px 16px 28px;
    pointer-events: none;
    transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1), transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 4;
}

.khp-brand {
    align-items: center;
    background: rgba(7, 7, 7, 0.78);
    border: 1px solid color-mix(in srgb, var(--khp-primary) 48%, transparent);
    border-radius: 999px;
    color: var(--khp-control);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 900;
    gap: 5px;
    min-height: 34px;
    padding: 5px 10px;
}

.khp-brand .khp-icon {
    font-size: 19px;
}

.khp-title {
    color: var(--khp-text);
    display: block;
    font-size: clamp(12px, 1.5vw, 15px);
    font-weight: 850;
    line-height: 1.8;
    max-width: min(70%, 720px);
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 12px #000;
    white-space: nowrap;
}

.khp-icon {
    direction: ltr;
    display: inline-block;
    font-family: "Material Symbols Rounded";
    font-feature-settings: "liga";
    font-size: 24px;
    font-style: normal;
    font-variation-settings: "FILL" 0, "wght" 520, "GRAD" 0, "opsz" 24;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
}

.khp-icon-fallback {
    display: none;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
}

.khp-player.khp-icons-fallback .khp-icon {
    display: none;
}

.khp-player.khp-icons-fallback .khp-icon-fallback {
    display: inline-flex;
}

.khp-center-play {
    align-items: center;
    background: linear-gradient(135deg, var(--khp-control), var(--khp-primary));
    border: 0;
    border-radius: 50%;
    box-shadow: 0 18px 44px color-mix(in srgb, var(--khp-primary) 38%, transparent), 0 0 0 10px color-mix(in srgb, var(--khp-primary) 11%, transparent);
    color: #150a03;
    cursor: pointer;
    display: flex;
    height: clamp(64px, 8vw, 82px);
    justify-content: center;
    left: 50%;
    padding: 0;
    position: absolute;
    top: 47%;
    transform: translate(-50%, -50%);
    transition: opacity 170ms ease-out, transform 190ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 190ms ease-out;
    width: clamp(64px, 8vw, 82px);
    z-index: 5;
}

.khp-center-play:hover {
    box-shadow: 0 22px 54px color-mix(in srgb, var(--khp-primary) 48%, transparent), 0 0 0 14px color-mix(in srgb, var(--khp-primary) 13%, transparent);
    transform: translate(-50%, -50%) scale(1.045);
}

.khp-center-play .khp-icon {
    font-size: clamp(38px, 5vw, 48px);
    font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 48;
    margin-inline-start: 3px;
}

.khp-player.is-playing .khp-center-play {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.86);
}

.khp-gesture-zone {
    bottom: 94px;
    pointer-events: none;
    position: absolute;
    top: 70px;
    width: 38%;
    z-index: 2;
}

.khp-gesture-zone--back {
    left: 0;
}

.khp-gesture-zone--forward {
    right: 0;
}

.khp-feedback {
    align-items: center;
    animation: khp-feedback 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
    background: rgba(7, 7, 7, 0.8);
    border: 1px solid color-mix(in srgb, var(--khp-control) 42%, transparent);
    border-radius: 14px;
    color: var(--khp-text);
    display: none;
    flex-direction: column;
    gap: 4px;
    left: 50%;
    min-width: 92px;
    padding: 13px 16px;
    pointer-events: none;
    position: absolute;
    top: 44%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.khp-feedback.is-visible {
    display: flex;
}

.khp-feedback .khp-icon {
    color: var(--khp-control);
    font-size: 34px;
    font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 40;
}

.khp-feedback b {
    font-size: 12px;
    line-height: 1.7;
}

@keyframes khp-feedback {
    0% {
        filter: blur(5px);
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.78);
    }
    30% {
        filter: blur(0);
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

.khp-loading {
    align-items: center;
    background: rgba(7, 7, 7, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    color: var(--khp-text);
    direction: rtl;
    display: flex;
    font-size: 12px;
    gap: 9px;
    left: 50%;
    padding: 8px 13px;
    position: absolute;
    top: 48%;
    transform: translate(-50%, -50%);
    z-index: 9;
}

.khp-loading[hidden],
.khp-error[hidden],
.khp-resume[hidden],
.khp-vote-panel[hidden],
.khp-end-screen[hidden],
.khp-settings[hidden],
.khp-time-preview[hidden],
.khp-subtitles[hidden],
.khp-control[hidden],
.khp-countdown[hidden] {
    display: none !important;
}

.khp-spinner {
    animation: khp-spin 760ms linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    border-top-color: var(--khp-primary);
    height: 18px;
    width: 18px;
}

@keyframes khp-spin {
    to {
        transform: rotate(360deg);
    }
}

.khp-error,
.khp-resume {
    background: rgba(11, 9, 7, 0.97);
    border: 1px solid color-mix(in srgb, var(--khp-primary) 36%, transparent);
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
    color: var(--khp-text);
    direction: rtl;
    left: 50%;
    max-width: calc(100% - 28px);
    min-width: min(360px, calc(100% - 28px));
    padding: 20px;
    position: absolute;
    text-align: center;
    top: 44%;
    transform: translate(-50%, -50%);
    z-index: 12;
}

.khp-error__icon,
.khp-resume__icon {
    align-items: center;
    background: color-mix(in srgb, var(--khp-primary) 15%, transparent);
    border-radius: 50%;
    color: var(--khp-control);
    display: inline-flex;
    height: 46px;
    justify-content: center;
    margin-bottom: 10px;
    width: 46px;
}

.khp-error__icon {
    background: color-mix(in srgb, var(--khp-danger) 14%, transparent);
    color: var(--khp-danger);
}

.khp-error strong,
.khp-resume strong {
    display: block;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.8;
}

.khp-error p {
    color: var(--khp-muted);
    font-size: 12px;
    line-height: 1.9;
    margin: 6px 0 14px;
}

.khp-error > button,
.khp-button,
.khp-countdown button {
    align-items: center;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 850;
    justify-content: center;
    min-height: 44px;
    padding: 8px 15px;
}

.khp-error > button,
.khp-button--primary,
.khp-countdown button:first-child {
    background: var(--khp-primary);
    color: #120904;
}

.khp-button--secondary,
.khp-countdown button:last-child {
    background: rgba(255, 255, 255, 0.1);
    color: var(--khp-text);
}

.khp-resume__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.khp-controls {
    background: linear-gradient(180deg, transparent 0%, rgba(8, 8, 8, 0.74) 22%, rgba(5, 5, 5, 0.98) 70%);
    bottom: 0;
    direction: rtl;
    left: 0;
    padding: 30px 15px 14px;
    position: absolute;
    right: 0;
    transform: translateY(0);
    transition: opacity 190ms ease-out, transform 210ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 8;
}

.khp-player.is-playing.is-controls-hidden .khp-controls {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

.khp-player.is-playing.is-controls-hidden .khp-topbar {
    opacity: 0;
    transform: translateY(-8px);
}

.khp-player.is-playing.is-controls-hidden {
    cursor: none;
}

.khp-timeline {
    direction: ltr;
    height: 42px;
    position: relative;
}

.khp-timeline::before,
.khp-buffered,
.khp-played {
    border-radius: 999px;
    height: 4px;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 19px;
}

.khp-timeline::before {
    background: rgba(255, 255, 255, 0.18);
    content: "";
    right: 0;
}

.khp-buffered {
    background: rgba(255, 255, 255, 0.34);
    width: 0;
}

.khp-played {
    background: linear-gradient(90deg, var(--khp-control), var(--khp-primary));
    box-shadow: 0 4px 16px color-mix(in srgb, var(--khp-primary) 38%, transparent);
    width: 0;
}

.khp-timeline input {
    appearance: none;
    background: transparent;
    cursor: pointer;
    height: 42px;
    inset: 0;
    margin: 0;
    position: absolute;
    width: 100%;
}

.khp-timeline input::-webkit-slider-thumb {
    appearance: none;
    background: var(--khp-primary);
    border: 3px solid #fff5ec;
    border-radius: 50%;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--khp-primary) 18%, transparent);
    height: 17px;
    width: 17px;
}

.khp-timeline input::-moz-range-thumb {
    background: var(--khp-primary);
    border: 3px solid #fff5ec;
    border-radius: 50%;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--khp-primary) 18%, transparent);
    height: 13px;
    width: 13px;
}

.khp-time-preview {
    background: rgba(8, 8, 8, 0.96);
    border: 1px solid color-mix(in srgb, var(--khp-primary) 34%, transparent);
    border-radius: 9px;
    bottom: 34px;
    color: var(--khp-text);
    direction: ltr;
    font-size: 11px;
    min-width: 52px;
    padding: 6px 8px;
    pointer-events: none;
    position: absolute;
    text-align: center;
    transform: translateX(-50%);
    z-index: 11;
}

.khp-time-preview > [hidden] {
    display: none !important;
}

.khp-time-preview__image {
    aspect-ratio: 16 / 9;
    align-items: center;
    background: #151515 center / cover no-repeat;
    border-radius: 6px;
    display: block;
    margin-bottom: 5px;
    overflow: hidden;
    position: relative;
    width: 156px;
}

.khp-time-preview__image::after {
    background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.42));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.khp-time-preview__media {
    display: block;
    filter: blur(3px);
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.025);
    transition:
        filter 140ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 140ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
}

.khp-time-preview__image.is-ready .khp-time-preview__media {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
}

.khp-time-preview__image > i {
    background: rgba(7, 7, 7, 0.78);
    border-radius: 6px;
    color: var(--khp-muted);
    font-size: 9px;
    font-style: normal;
    inset-inline: 10px;
    line-height: 1.7;
    padding: 4px 6px;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.khp-time-preview__image.is-ready > i {
    display: none;
}

.khp-control-row,
.khp-volume {
    align-items: center;
    display: flex;
}

.khp-control-row {
    direction: ltr;
    gap: 6px;
}

.khp-control {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 11px;
    color: var(--khp-text);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
    position: relative;
    transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out, transform 150ms ease-out;
    width: 44px;
}

.khp-control[hidden] {
    display: none !important;
}

.khp-control:hover {
    background: color-mix(in srgb, var(--khp-primary) 15%, #151515);
    border-color: color-mix(in srgb, var(--khp-primary) 50%, transparent);
    color: var(--khp-control);
    transform: translateY(-1px);
}

.khp-control[aria-pressed="true"] {
    background: color-mix(in srgb, var(--khp-primary) 78%, #4a102b);
    border-color: color-mix(in srgb, var(--khp-control) 72%, transparent);
    color: #fff;
}

.khp-control--primary {
    background: linear-gradient(135deg, var(--khp-control), var(--khp-primary));
    border-color: color-mix(in srgb, var(--khp-control) 72%, transparent);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--khp-primary) 24%, transparent);
    color: #160b04;
}

.khp-control--primary .khp-icon {
    font-variation-settings: "FILL" 1, "wght" 650, "GRAD" 0, "opsz" 32;
}

.khp-control[data-khp-tooltip]::after {
    background: #211d19;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    bottom: calc(100% + 8px);
    color: var(--khp-text);
    content: attr(data-khp-tooltip);
    direction: rtl;
    font-size: 11px;
    left: 50%;
    opacity: 0;
    padding: 5px 8px;
    pointer-events: none;
    position: absolute;
    transform: translate(-50%, 4px);
    transition: opacity 130ms ease-out, transform 130ms ease-out;
    white-space: nowrap;
}

.khp-control[data-khp-tooltip]:hover::after,
.khp-control[data-khp-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.khp-time {
    align-items: center;
    background: color-mix(in srgb, var(--khp-primary) 9%, transparent);
    border: 1px solid color-mix(in srgb, var(--khp-primary) 18%, transparent);
    border-radius: 999px;
    color: #ffe1c5;
    direction: ltr;
    display: flex;
    font-size: 11px;
    gap: 4px;
    min-height: 36px;
    padding: 7px 9px;
    white-space: nowrap;
}

.khp-time i {
    color: rgba(255, 255, 255, 0.42);
    font-style: normal;
}

.khp-volume {
    direction: ltr;
    gap: 5px;
}

.khp-volume input {
    accent-color: var(--khp-primary);
    cursor: pointer;
    width: clamp(62px, 8vw, 98px);
}

.khp-spacer {
    flex: 1 1 auto;
}

.khp-speed {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 11px;
    direction: ltr;
    display: inline-flex;
    gap: 3px;
    height: 44px;
    padding-inline: 7px;
}

.khp-speed .khp-icon {
    color: var(--khp-control);
    font-size: 20px;
}

.khp-speed select {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--khp-text);
    cursor: pointer;
    direction: ltr;
    font-size: 11px;
    font-weight: 800;
    outline: none;
    padding: 0;
}

.khp-speed option {
    background: #161616;
    color: #fff;
}

.khp-settings {
    background: rgba(15, 14, 13, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 13px;
    bottom: 70px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    direction: rtl;
    max-width: min(310px, calc(100% - 24px));
    padding: 14px;
    position: absolute;
    right: 60px;
    width: 290px;
    z-index: 15;
}

.khp-settings strong,
.khp-settings small {
    display: block;
}

.khp-settings strong {
    font-size: 14px;
    margin-bottom: 10px;
}

.khp-settings label {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    cursor: pointer;
    display: flex;
    gap: 8px;
    min-height: 44px;
}

.khp-settings input {
    accent-color: var(--khp-primary);
}

.khp-settings button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--khp-text);
    cursor: pointer;
    display: flex;
    gap: 8px;
    min-height: 44px;
    padding: 0;
    text-align: right;
    width: 100%;
}

.khp-settings button:hover {
    color: var(--khp-control);
}

.khp-settings small {
    color: var(--khp-muted);
    font-size: 10px;
    line-height: 1.8;
    margin-top: 7px;
}

.khp-vote-panel {
    background: rgba(14, 12, 10, 0.96);
    border: 1px solid color-mix(in srgb, var(--khp-primary) 30%, transparent);
    border-radius: 13px;
    bottom: 106px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.46);
    direction: rtl;
    max-width: calc(100% - 28px);
    padding: 14px 14px 11px;
    position: absolute;
    right: 14px;
    width: 250px;
    z-index: 13;
}

.khp-vote-panel > strong {
    display: block;
    font-size: 13px;
    line-height: 1.8;
    padding-inline-end: 30px;
}

.khp-vote-panel__close {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--khp-muted);
    cursor: pointer;
    display: flex;
    height: 34px;
    justify-content: center;
    left: 6px;
    padding: 0;
    position: absolute;
    top: 6px;
    width: 34px;
}

.khp-vote-panel__buttons {
    display: flex;
    gap: 7px;
    margin-top: 9px;
}

.khp-vote-panel__buttons button {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--khp-text);
    cursor: pointer;
    display: flex;
    flex: 1;
    gap: 5px;
    justify-content: center;
    min-height: 44px;
}

.khp-vote-panel__buttons button:hover,
.khp-vote-panel__buttons button.is-selected {
    background: color-mix(in srgb, var(--khp-primary) 16%, #161616);
    border-color: color-mix(in srgb, var(--khp-primary) 52%, transparent);
    color: var(--khp-control);
}

.khp-vote-panel__buttons button.is-saved {
    animation: khp-vote-saved 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes khp-vote-saved {
    45% {
        box-shadow: 0 0 0 7px color-mix(in srgb, var(--khp-primary) 18%, transparent);
        transform: scale(1.04);
    }
}

.khp-vote-panel > small {
    color: var(--khp-control);
    display: block;
    font-size: 10px;
    line-height: 1.8;
    min-height: 18px;
    margin-top: 5px;
}

.khp-end-screen {
    background:
        radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--khp-primary) 22%, transparent), transparent 34%),
        rgba(5, 5, 5, 0.985);
    direction: rtl;
    inset: 0;
    overflow: auto;
    padding: clamp(18px, 3vw, 28px);
    position: absolute;
    z-index: 20;
}

.khp-end-screen__head {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.khp-end-screen__head span,
.khp-end-screen__head strong {
    display: block;
}

.khp-end-screen__head span {
    color: var(--khp-control);
    font-size: 11px;
    font-weight: 800;
}

.khp-end-screen__head strong {
    font-size: clamp(18px, 3vw, 26px);
    line-height: 1.5;
    margin-top: 3px;
}

.khp-end-screen__head button {
    align-items: center;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: var(--khp-text);
    cursor: pointer;
    display: flex;
    flex: 0 0 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
    width: 44px;
}

.khp-countdown {
    background: color-mix(in srgb, var(--khp-primary) 10%, #111);
    border: 1px solid color-mix(in srgb, var(--khp-primary) 22%, transparent);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 11px;
}

.khp-countdown > span {
    display: block;
    font-size: 12px;
    font-weight: 800;
}

.khp-countdown__track {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    height: 4px;
    margin-block: 9px;
    overflow: hidden;
}

.khp-countdown__track i {
    background: var(--khp-primary);
    display: block;
    height: 100%;
    transform: scaleX(1);
    transform-origin: left center;
    transition: transform 1s linear;
    width: 100%;
}

.khp-countdown > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.khp-countdown button {
    font-size: 11px;
}

.khp-recommendations {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.khp-recommendation {
    align-items: center;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    color: var(--khp-text);
    display: grid;
    gap: 10px;
    grid-template-columns: 42% minmax(0, 1fr);
    min-height: 96px;
    overflow: hidden;
    padding: 8px;
    text-decoration: none;
    transition: background-color 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out;
}

.khp-recommendation:hover,
.khp-recommendation:focus-visible {
    background: color-mix(in srgb, var(--khp-primary) 10%, #151515);
    border-color: color-mix(in srgb, var(--khp-primary) 42%, transparent);
    outline: none;
    transform: translateY(-1px);
}

.khp-recommendation img,
.khp-recommendation__placeholder {
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
    border-radius: 8px;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.khp-recommendation__copy {
    min-width: 0;
}

.khp-recommendation__copy span,
.khp-recommendation__copy strong,
.khp-recommendation__copy small {
    display: block;
}

.khp-recommendation__copy span {
    color: var(--khp-control);
    font-size: 10px;
    font-weight: 800;
}

.khp-recommendation__copy strong {
    display: -webkit-box;
    font-size: 12px;
    line-height: 1.8;
    margin-top: 2px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.khp-recommendation__copy small {
    color: var(--khp-muted);
    font-size: 10px;
    margin-top: 4px;
}

.khp-control:focus-visible,
.khp-center-play:focus-visible,
.khp-player button:focus-visible,
.khp-player input:focus-visible,
.khp-player select:focus-visible,
.khp-recommendation:focus-visible {
    outline: 2px solid var(--khp-control);
    outline-offset: 2px;
}

.khp-player:fullscreen,
.khp-player.is-fullscreen {
    background: #000;
    height: 100%;
    width: 100%;
}

html.khp-page-fullscreen,
body.khp-page-fullscreen {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.khp-player.is-css-fullscreen {
    box-sizing: border-box;
    height: 100vh !important;
    height: 100dvh !important;
    inset: 0 !important;
    margin: 0 !important;
    max-height: none !important;
    max-width: none !important;
    position: fixed !important;
    width: 100vw !important;
    z-index: 2147483600;
}

.khp-player:fullscreen .khp-stage,
.khp-player.is-fullscreen .khp-stage {
    border: 0;
    border-radius: 0;
    height: 100%;
    max-height: 100vh;
    width: 100%;
}

.khp-player.is-css-fullscreen .khp-stage {
    aspect-ratio: auto;
    max-height: none;
    min-height: 0;
}

.khp-player.is-css-fullscreen .khp-topbar {
    padding-top: max(10px, env(safe-area-inset-top));
}

.khp-player.is-css-fullscreen .khp-controls {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    padding-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right));
}

.khp-player:fullscreen .khp-vote-panel,
.khp-player.is-fullscreen .khp-vote-panel {
    bottom: 112px;
}

.khp-player.is-inline-pip {
    min-height: var(--khp-inline-pip-placeholder, 220px);
}

.khp-player.is-inline-pip .khp-stage {
    animation: khp-inline-pip-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
    bottom: max(14px, env(safe-area-inset-bottom));
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.58), 0 0 0 1px color-mix(in srgb, var(--khp-primary) 48%, transparent);
    height: auto;
    inset-inline-end: max(14px, env(safe-area-inset-right));
    min-height: 0;
    position: fixed;
    width: min(420px, calc(100vw - 28px));
    z-index: 2147482000;
}

.khp-player.is-inline-pip .khp-topbar {
    min-height: 58px;
    padding: 9px 10px 22px;
}

.khp-player.is-inline-pip .khp-brand {
    font-size: 10px;
    min-height: 30px;
}

.khp-player.is-inline-pip .khp-title {
    max-width: calc(100% - 78px);
}

.khp-player.is-inline-pip .khp-controls {
    padding: 22px 7px 7px;
}

.khp-player.is-inline-pip .khp-control-row {
    gap: 4px;
}

.khp-player.is-inline-pip .khp-control {
    flex-basis: 40px;
    height: 40px;
    width: 40px;
}

.khp-player.is-inline-pip .khp-control-row > [data-khp-skip],
.khp-player.is-inline-pip .khp-volume input,
.khp-player.is-inline-pip .khp-speed .khp-icon {
    display: none;
}

.khp-player.is-inline-pip .khp-time {
    background: transparent;
    border: 0;
    font-size: 9px;
    padding-inline: 2px;
}

.khp-player.is-inline-pip .khp-speed {
    height: 40px;
    max-width: 52px;
    padding-inline: 5px;
}

.khp-player.is-inline-pip .khp-speed select {
    font-size: 10px;
    max-width: 42px;
}

@keyframes khp-inline-pip-in {
    0% {
        filter: blur(5px);
        opacity: 0;
        transform: translateY(18px) scale(0.94);
    }
    100% {
        filter: blur(0);
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .khp-player.is-portrait-media:not(.is-inline-pip):not(.is-fullscreen) .khp-stage {
        aspect-ratio: var(--khp-media-aspect, 9 / 16);
        max-height: min(82svh, 760px);
    }

    .khp-player.is-portrait-media:not(.is-inline-pip):not(.is-fullscreen) .khp-stage::before {
        opacity: 0.24;
    }

    .khp-stage {
        border-radius: 14px;
    }

    .khp-controls {
        padding: 26px 10px 10px;
    }

    .khp-control-row {
        gap: 4px;
    }

    .khp-control {
        border-radius: 10px;
        flex-basis: 44px;
        height: 44px;
        width: 44px;
    }

    .khp-volume input {
        width: 66px;
    }

    .khp-time {
        font-size: 10px;
        padding-inline: 7px;
    }

    .khp-speed {
        height: 44px;
    }

    .khp-recommendations {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .khp-stage {
        min-height: 0;
    }

    .khp-topbar {
        min-height: 58px;
        padding: 8px 9px 20px;
    }

    .khp-brand {
        font-size: 10px;
        min-height: 30px;
        padding-inline: 8px;
    }

    .khp-title {
        max-width: calc(100% - 80px);
    }

    .khp-center-play {
        height: 62px;
        width: 62px;
    }

    .khp-center-play .khp-icon {
        font-size: 38px;
    }

    .khp-controls {
        padding: 22px 7px 7px;
    }

    .khp-timeline {
        height: 34px;
    }

    .khp-timeline::before,
    .khp-buffered,
    .khp-played {
        top: 15px;
    }

    .khp-timeline input {
        height: 34px;
    }

    .khp-time-preview__image {
        width: 128px;
    }

    .khp-control {
        flex-basis: 44px;
        height: 44px;
        width: 44px;
    }

    .khp-control .khp-icon {
        font-size: 22px;
    }

    .khp-control-row > [data-khp-skip] {
        display: none;
    }

    .khp-control-row > [data-khp-pip] {
        display: none;
    }

    .khp-volume input {
        display: none;
    }

    .khp-speed {
        max-width: 58px;
    }

    .khp-speed .khp-icon {
        display: none;
    }

    .khp-time {
        background: transparent;
        border: 0;
        font-size: 9px;
        padding-inline: 2px;
    }

    .khp-vote-panel {
        bottom: 92px;
        right: 8px;
        width: 230px;
    }

    .khp-settings {
        bottom: 58px;
        right: 8px;
    }

    .khp-error,
    .khp-resume {
        padding: 14px;
        top: 43%;
    }

    .khp-error__icon,
    .khp-resume__icon {
        height: 38px;
        margin-bottom: 5px;
        width: 38px;
    }

    .khp-resume__actions {
        margin-top: 10px;
    }

    .khp-button {
        flex: 1;
        font-size: 11px;
        padding-inline: 8px;
    }

    .khp-end-screen {
        padding: 13px;
    }

    .khp-end-screen__head {
        margin-bottom: 9px;
    }

    .khp-end-screen__head strong {
        font-size: 17px;
    }

    .khp-recommendations {
        grid-template-columns: 1fr;
    }

    .khp-recommendation {
        min-height: 82px;
    }
}

@media (max-width: 390px) {
    .khp-player.is-inline-pip .khp-stage {
        bottom: max(8px, env(safe-area-inset-bottom));
        inset-inline-end: 8px;
        width: calc(100vw - 16px);
    }

    .khp-control-row {
        gap: 3px;
    }

    .khp-control {
        flex-basis: 44px;
        height: 44px;
        width: 44px;
    }

    .khp-time {
        letter-spacing: -0.02em;
    }

    .khp-speed {
        height: 44px;
        max-width: 49px;
        padding-inline: 5px;
    }

    .khp-speed select {
        font-size: 10px;
        max-width: 40px;
    }

}

.khp-player.is-inline-pip.is-sitewide-pip {
    bottom: max(14px, env(safe-area-inset-bottom));
    inset-inline-end: max(14px, env(safe-area-inset-right));
    margin: 0;
    min-height: 0;
    position: fixed;
    width: min(420px, calc(100vw - 28px));
    z-index: 2147482000;
}

.khp-player.is-inline-pip.is-sitewide-pip .khp-stage {
    bottom: auto;
    height: auto;
    inset: auto;
    min-height: 0;
    position: relative;
    width: 100%;
}

.khp-sitewide-placeholder {
    align-items: center;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 82% 10%, rgba(255, 122, 0, 0.14), transparent 32%),
        #11100f;
    border: 1px solid rgba(255, 176, 102, 0.32);
    border-radius: 16px;
    color: #c9bfb6;
    direction: rtl;
    display: flex;
    font-family: var(--kh-font-family, IRANSansX, IRANSans, Tahoma, Arial, sans-serif);
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.9;
    padding: 24px;
    text-align: center;
    width: 100%;
}

.khp-site-nav-status {
    align-items: center;
    background: #11100f;
    border: 1px solid rgba(255, 176, 102, 0.44);
    border-radius: 12px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.46);
    color: #fffaf5;
    direction: rtl;
    display: flex;
    font-family: var(--kh-font-family, IRANSansX, IRANSans, Tahoma, Arial, sans-serif);
    font-size: 12px;
    font-weight: 700;
    gap: 9px;
    inset-inline-start: 50%;
    line-height: 1.7;
    max-width: calc(100vw - 32px);
    padding: 9px 13px;
    position: fixed;
    top: 16px;
    transform: translateX(50%);
    z-index: 2147482001;
}

.khp-site-nav-status[hidden] {
    display: none !important;
}

.khp-site-nav-status::before {
    animation: khp-site-nav-spin 700ms linear infinite;
    border: 2px solid rgba(255, 176, 102, 0.3);
    border-radius: 50%;
    border-top-color: #ff7a00;
    content: "";
    flex: 0 0 auto;
    height: 14px;
    width: 14px;
}

.khp-site-nav-status.is-error {
    border-color: rgba(255, 93, 93, 0.72);
}

.khp-site-nav-status.is-error::before {
    animation: none;
    border: 0;
    color: #ff8b8b;
    content: "!";
    font-size: 17px;
    font-weight: 900;
    height: auto;
    line-height: 1;
    text-align: center;
    width: 14px;
}

body.admin-bar .khp-site-nav-status {
    top: 48px;
}

@keyframes khp-site-nav-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 560px) {
    .khp-player.is-inline-pip.is-sitewide-pip {
        bottom: max(8px, env(safe-area-inset-bottom));
        inset-inline-end: 8px;
        width: calc(100vw - 16px);
    }

    .khp-site-nav-status {
        font-size: 11px;
        top: 10px;
    }

    .khp-sitewide-placeholder {
        border-radius: 14px;
        font-size: 11px;
        padding: 18px;
    }

    body.admin-bar .khp-site-nav-status {
        top: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .khp-player *,
    .khp-player *::before,
    .khp-player *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }

    .khp-site-nav-status::before {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (forced-colors: active) {
    .khp-stage,
    .khp-control,
    .khp-center-play,
    .khp-resume,
    .khp-error,
    .khp-vote-panel {
        border: 1px solid CanvasText;
    }

    .khp-site-nav-status {
        border: 1px solid CanvasText;
    }

    .khp-sitewide-placeholder {
        border: 1px solid CanvasText;
    }
}

/* Podcast mode — میز شنیدن تحریریه خرداد */
.khp-podcast-sentinel {
    display: block;
    height: 1px;
    pointer-events: none;
    width: 100%;
}

.khp-podcast {
    --khp-audio-accent: #ff9a3c;
    --khp-audio-bg: #0a0b0c;
    --khp-audio-surface: #151311;
    --khp-audio-raised: #211c18;
    --khp-audio-border: rgba(255, 154, 60, 0.25);
    --khp-audio-text: #fff9f2;
    --khp-audio-muted: #c7bdb4;
    color: var(--khp-audio-text);
    direction: rtl;
    font-family: var(--kh-font-family, IRANSansX, IRANSans, Tahoma, Arial, sans-serif);
    margin: 0;
    outline: none;
    position: relative;
    width: 100%;
}

.khp-podcast *,
.khp-podcast *::before,
.khp-podcast *::after {
    box-sizing: border-box;
}

.khp-podcast button,
.khp-podcast input,
.khp-podcast select {
    font: inherit;
}

.khp-podcast__media {
    display: none;
}

.khp-podcast__shell {
    background:
        radial-gradient(circle at 10% 12%, color-mix(in srgb, var(--khp-audio-accent) 16%, transparent), transparent 31%),
        linear-gradient(145deg, #211914 0%, var(--khp-audio-surface) 42%, var(--khp-audio-bg) 100%);
    border: 1px solid var(--khp-audio-border);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.055);
    display: grid;
    gap: clamp(20px, 3vw, 36px);
    grid-template-columns: minmax(190px, 28%) minmax(0, 1fr);
    isolation: isolate;
    min-height: 320px;
    overflow: hidden;
    padding: clamp(18px, 3vw, 34px);
    position: relative;
}

.khp-podcast__shell::after {
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.7px, transparent 0.7px);
    background-size: 8px 8px;
    content: "";
    inset: 0;
    opacity: 0.11;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.khp-podcast__art {
    align-self: center;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #32241a, #0e0d0c);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.43);
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.khp-podcast__art > img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.khp-podcast__art::after {
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.72));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.khp-podcast__art-placeholder {
    align-items: center;
    color: var(--khp-audio-accent);
    display: flex;
    height: 100%;
    justify-content: center;
}

.khp-podcast__art-placeholder .khp-icon {
    font-size: clamp(58px, 8vw, 94px);
}

.khp-podcast__badge {
    align-items: center;
    backdrop-filter: blur(12px);
    background: rgba(9, 9, 9, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    bottom: 14px;
    color: var(--khp-audio-text);
    display: inline-flex;
    font-size: 11px;
    font-weight: 850;
    gap: 6px;
    padding: 7px 10px;
    position: absolute;
    right: 14px;
    z-index: 2;
}

.khp-podcast__badge .khp-icon {
    color: var(--khp-audio-accent);
    font-size: 18px;
}

.khp-podcast__equalizer {
    align-items: end;
    bottom: 18px;
    display: flex;
    gap: 3px;
    height: 18px;
    left: 16px;
    position: absolute;
    z-index: 2;
}

.khp-podcast__equalizer i {
    animation: khp-podcast-wave 780ms ease-in-out infinite alternate;
    background: var(--khp-audio-accent);
    border-radius: 3px;
    height: 28%;
    opacity: 0.7;
    width: 3px;
}

.khp-podcast__equalizer i:nth-child(2) {
    animation-delay: -420ms;
    height: 72%;
}

.khp-podcast__equalizer i:nth-child(3) {
    animation-delay: -210ms;
    height: 100%;
}

.khp-podcast__equalizer i:nth-child(4) {
    animation-delay: -570ms;
    height: 55%;
}

.khp-podcast__equalizer i:nth-child(5) {
    animation-delay: -120ms;
    height: 82%;
}

.khp-podcast:not(.is-playing) .khp-podcast__equalizer i {
    animation-play-state: paused;
}

@keyframes khp-podcast-wave {
    to {
        height: 18%;
        opacity: 0.42;
    }
}

.khp-podcast__body {
    align-self: center;
    min-width: 0;
}

.khp-podcast__header > div {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.khp-podcast__program {
    color: var(--khp-audio-accent);
    font-size: 13px;
    font-weight: 900;
}

.khp-podcast__episode {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--khp-audio-muted);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
}

.khp-podcast__header h2 {
    color: var(--khp-audio-text);
    font-size: clamp(20px, 3vw, 31px);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.55;
    margin: 0;
    text-wrap: balance;
}

.khp-podcast__header p {
    align-items: center;
    color: var(--khp-audio-muted);
    display: flex;
    font-size: 12px;
    gap: 6px;
    margin: 7px 0 0;
}

.khp-podcast__header p .khp-icon {
    color: var(--khp-audio-accent);
    font-size: 17px;
}

.khp-podcast__timeline {
    direction: ltr;
    height: 30px;
    margin-top: 24px;
    position: relative;
}

.khp-podcast__timeline-track {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    height: 5px;
    left: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 12px;
}

.khp-podcast__timeline-track i,
.khp-podcast__timeline-track b {
    border-radius: inherit;
    bottom: 0;
    left: 0;
    position: absolute;
    top: 0;
    width: 0;
}

.khp-podcast__timeline-track i {
    background: rgba(255, 255, 255, 0.25);
}

.khp-podcast__timeline-track b {
    background: linear-gradient(90deg, var(--khp-primary), var(--khp-audio-accent));
    box-shadow: 0 0 16px color-mix(in srgb, var(--khp-primary) 45%, transparent);
}

.khp-podcast__timeline input {
    appearance: none;
    background: transparent;
    cursor: pointer;
    height: 30px;
    inset: 0;
    margin: 0;
    position: absolute;
    width: 100%;
}

.khp-podcast__timeline input::-webkit-slider-thumb {
    appearance: none;
    background: #fff;
    border: 3px solid var(--khp-primary);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    height: 16px;
    width: 16px;
}

.khp-podcast__timeline input::-moz-range-thumb {
    background: #fff;
    border: 3px solid var(--khp-primary);
    border-radius: 50%;
    height: 11px;
    width: 11px;
}

.khp-podcast__timeline output {
    background: #050505;
    border: 1px solid var(--khp-audio-border);
    border-radius: 6px;
    bottom: 26px;
    color: #fff;
    font-size: 10px;
    padding: 4px 7px;
    position: absolute;
    transform: translateX(-50%);
}

.khp-podcast__time-row {
    align-items: center;
    color: var(--khp-audio-muted);
    direction: ltr;
    display: flex;
    font-size: 11px;
    justify-content: space-between;
    margin-top: -3px;
}

.khp-podcast__time-row > button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--khp-audio-muted);
    cursor: pointer;
    direction: rtl;
    display: inline-flex;
    gap: 5px;
    max-width: 55%;
    padding: 4px;
}

.khp-podcast__time-row > button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.khp-podcast__time-row .khp-icon {
    color: var(--khp-audio-accent);
    font-size: 17px;
}

.khp-podcast__transport,
.khp-podcast__actions,
.khp-podcast__volume {
    align-items: center;
    display: flex;
}

.khp-podcast__transport {
    direction: ltr;
    gap: clamp(7px, 1.3vw, 13px);
    justify-content: center;
    margin: 16px 0;
}

.khp-podcast__button {
    align-items: center;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--khp-audio-text);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 42px;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
    width: 42px;
}

.khp-podcast__button:hover,
.khp-podcast__button:focus-visible {
    background: rgba(255, 154, 60, 0.13);
    border-color: var(--khp-audio-accent);
    color: var(--khp-audio-accent);
    outline: 0;
    transform: translateY(-1px);
}

.khp-podcast__button--seek {
    isolation: isolate;
}

.khp-seek-icon {
    align-items: center;
    color: currentColor;
    direction: ltr;
    display: inline-flex;
    flex: 0 0 auto;
    height: 29px;
    justify-content: center;
    line-height: 1;
    position: relative;
    width: 29px;
}

.khp-seek-icon svg {
    fill: none;
    height: 29px;
    inset: 0;
    overflow: visible;
    position: absolute;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transform-origin: center;
    width: 29px;
}

.khp-seek-icon--forward svg {
    transform: scaleX(-1);
}

.khp-seek-icon b {
    color: currentColor;
    direction: ltr;
    font-family: var(--kh-font-family, IRANSansX, Tahoma, sans-serif);
    font-size: 8px;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

.khp-podcast__button--play {
    background: linear-gradient(135deg, var(--khp-audio-accent), var(--khp-primary));
    border: 0;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--khp-primary) 32%, transparent);
    color: #1b0c03;
    height: 58px;
    width: 58px;
}

.khp-podcast__button--play:hover,
.khp-podcast__button--play:focus-visible {
    background: linear-gradient(135deg, #ffc07c, var(--khp-primary));
    color: #130902;
}

.khp-podcast__button--play .khp-icon {
    font-size: 34px;
    font-variation-settings: "FILL" 1, "wght" 650, "GRAD" 0, "opsz" 36;
}

.khp-podcast__actions {
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    direction: ltr;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 15px;
}

.khp-podcast__volume {
    gap: 5px;
}

.khp-podcast__volume input {
    accent-color: var(--khp-primary);
    direction: ltr;
    width: 70px;
}

.khp-podcast__speed {
    align-items: center;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    display: inline-flex;
    gap: 2px;
    height: 42px;
    padding: 0 8px;
}

.khp-podcast__speed .khp-icon {
    color: var(--khp-audio-accent);
    font-size: 19px;
}

.khp-podcast__speed select {
    background: transparent;
    border: 0;
    color: var(--khp-audio-text);
    cursor: pointer;
    direction: ltr;
    font-size: 11px;
    font-weight: 800;
    outline: 0;
}

.khp-podcast__speed option {
    background: #171513;
}

.khp-podcast__loading,
.khp-podcast__error,
.khp-podcast__resume {
    align-items: center;
    backdrop-filter: blur(15px);
    background: rgba(8, 8, 8, 0.9);
    border: 1px solid var(--khp-audio-border);
    border-radius: 14px;
    display: flex;
    gap: 10px;
    inset: 50% auto auto 50%;
    max-width: min(90%, 430px);
    padding: 17px 20px;
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 8;
}

.khp-podcast__loading[hidden],
.khp-podcast__error[hidden],
.khp-podcast__resume[hidden] {
    display: none;
}

.khp-podcast__error,
.khp-podcast__resume {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
}

.khp-podcast__error p {
    color: var(--khp-audio-muted);
    font-size: 12px;
    margin: 0;
}

.khp-podcast__error button,
.khp-podcast__resume button {
    background: var(--khp-primary);
    border: 0;
    border-radius: 999px;
    color: #180b03;
    cursor: pointer;
    font-weight: 850;
    min-height: 40px;
    padding: 8px 15px;
}

.khp-podcast__resume > div {
    display: flex;
    gap: 8px;
}

.khp-podcast__resume > div button:last-child {
    background: rgba(255, 255, 255, 0.1);
    color: var(--khp-audio-text);
}

.khp-podcast-panel {
    background: #11100f;
    border: 1px solid var(--khp-audio-border);
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.27);
    margin-top: 12px;
    overflow: hidden;
}

.khp-podcast-panel[hidden] {
    display: none;
}

.khp-podcast-panel > header {
    align-items: center;
    background: linear-gradient(90deg, rgba(255, 154, 60, 0.1), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    padding: 15px 18px;
}

.khp-podcast-panel > header span {
    color: var(--khp-audio-accent);
    display: block;
    font-size: 10px;
    font-weight: 900;
}

.khp-podcast-panel > header strong {
    display: block;
    font-size: 15px;
    margin-top: 2px;
}

.khp-podcast-panel > header button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--khp-audio-muted);
    cursor: pointer;
    display: flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.khp-podcast-transcript > div {
    max-height: min(55vh, 520px);
    overflow: auto;
    padding: 10px;
}

.khp-podcast-transcript__line {
    align-items: start;
    background: transparent;
    border: 0;
    border-radius: 11px;
    color: var(--khp-audio-muted);
    cursor: pointer;
    display: grid;
    gap: 12px;
    grid-template-columns: 54px 1fr;
    line-height: 2;
    padding: 10px 12px;
    text-align: right;
    transition: background-color 160ms ease, color 160ms ease;
    width: 100%;
}

.khp-podcast-transcript__line time {
    color: var(--khp-audio-accent);
    direction: ltr;
    font-size: 10px;
    padding-top: 4px;
}

.khp-podcast-transcript__line:hover,
.khp-podcast-transcript__line.is-active {
    background: rgba(255, 154, 60, 0.09);
    color: var(--khp-audio-text);
}

.khp-podcast-transcript__line.is-active {
    box-shadow: inset -3px 0 var(--khp-primary);
}

.khp-podcast-queue__items,
.khp-podcast__end > [data-khp-podcast-end-items] {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.khp-podcast-queue__settings {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 16px 0;
}

.khp-podcast-queue__autoplay {
    align-items: center;
    color: var(--khp-audio-muted);
    display: flex;
    font-size: 11px;
    gap: 8px;
}

.khp-podcast-queue__autoplay input {
    accent-color: var(--khp-primary);
    height: 17px;
    width: 17px;
}

.khp-podcast-queue__reset {
    align-items: center;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--khp-audio-text);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    gap: 6px;
    min-height: 44px;
    padding: 8px 11px;
}

.khp-podcast-queue__reset:hover:not(:disabled) {
    background: rgba(255, 154, 60, 0.12);
    border-color: var(--khp-audio-accent);
}

.khp-podcast-queue__reset:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.khp-podcast-queue__reset .khp-icon {
    color: var(--khp-audio-accent);
    font-size: 19px;
}

.khp-podcast-queue__help,
.khp-podcast-queue__status {
    color: var(--khp-audio-muted);
    font-size: 10px;
    line-height: 1.85;
    margin: 0;
    padding: 8px 16px 0;
}

.khp-podcast-queue__status {
    color: var(--khp-audio-accent);
    padding-top: 1px;
}

.khp-podcast-queue__items {
    list-style: none;
    margin: 0;
    max-height: min(54vh, 540px);
    overflow: auto;
}

.khp-podcast-queue__item {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 14px;
    display: grid;
    gap: 4px;
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 4px;
    position: relative;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.khp-podcast-queue__item:hover {
    border-color: rgba(255, 154, 60, 0.5);
}

.khp-podcast-queue__item.is-dragging,
.khp-podcast-queue__item.is-keyboard-grabbed {
    background: #211912;
    border-color: var(--khp-audio-accent);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
    z-index: 2;
}

.khp-podcast-queue__items.is-reordering .khp-podcast-queue__item:not(.is-dragging) {
    opacity: 0.62;
}

.khp-podcast-queue__handle {
    align-items: center;
    align-self: stretch;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: var(--khp-audio-muted);
    cursor: grab;
    display: inline-flex;
    justify-content: center;
    min-height: 56px;
    min-width: 44px;
    padding: 0;
    touch-action: none;
}

.khp-podcast-queue__handle:hover,
.khp-podcast-queue__handle[data-grabbed="true"] {
    background: rgba(255, 154, 60, 0.12);
    color: var(--khp-audio-accent);
}

.khp-podcast-queue__handle:active {
    cursor: grabbing;
}

.khp-podcast-queue__handle .khp-icon {
    font-size: 25px;
}

.khp-podcast-queue__item .khp-podcast-item {
    background: transparent;
    border: 0;
    border-radius: 10px;
    grid-template-columns: 58px minmax(0, 1fr) 30px;
    padding: 4px;
}

.khp-podcast-queue__item .khp-podcast-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.khp-podcast-queue__item .khp-podcast-item img,
.khp-podcast-queue__item .khp-podcast-item__placeholder {
    height: 58px;
    width: 58px;
}

.khp-podcast-queue__item .khp-podcast-item > b {
    align-items: center;
    align-self: center;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    padding: 0;
    width: 28px;
}

.khp-podcast-queue__empty {
    align-items: center;
    color: var(--khp-audio-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    min-height: 150px;
    padding: 24px;
    text-align: center;
}

.khp-podcast-queue__empty .khp-icon {
    color: var(--khp-audio-accent);
    font-size: 34px;
}

.khp-podcast-queue__empty strong {
    color: var(--khp-audio-text);
    font-size: 13px;
}

.khp-podcast-queue__empty small {
    font-size: 10px;
}

.khp-podcast-item {
    align-items: center;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 13px;
    color: var(--khp-audio-text);
    display: grid;
    gap: 12px;
    grid-template-columns: 66px minmax(0, 1fr) auto;
    padding: 8px;
    text-decoration: none;
}

.khp-podcast-item:hover {
    border-color: var(--khp-audio-accent);
}

.khp-podcast-item img,
.khp-podcast-item__placeholder {
    align-items: center;
    aspect-ratio: 1;
    background: #241b15;
    border-radius: 9px;
    display: flex;
    height: 66px;
    justify-content: center;
    object-fit: cover;
    width: 66px;
}

.khp-podcast-item span {
    min-width: 0;
}

.khp-podcast-item small,
.khp-podcast-item em {
    color: var(--khp-audio-muted);
    display: block;
    font-size: 10px;
    font-style: normal;
}

.khp-podcast-item strong {
    display: block;
    font-size: 13px;
    margin: 3px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.khp-podcast-item > b {
    background: var(--khp-primary);
    border-radius: 999px;
    color: #180b03;
    font-size: 10px;
    padding: 7px 10px;
}

.khp-podcast__sleep,
.khp-podcast__vote {
    background: #171411;
    border: 1px solid var(--khp-audio-border);
    border-radius: 14px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.36);
    padding: 15px;
}

.khp-podcast__sleep {
    margin-top: 12px;
}

.khp-podcast__sleep[hidden],
.khp-podcast__vote[hidden],
.khp-podcast__end[hidden],
.khp-podcast-mini[hidden] {
    display: none;
}

.khp-podcast__sleep > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0;
}

.khp-podcast__sleep button,
.khp-podcast__countdown button {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: var(--khp-audio-text);
    cursor: pointer;
    min-height: 38px;
    padding: 7px 12px;
}

.khp-podcast__sleep small {
    color: var(--khp-audio-muted);
}

.khp-podcast__vote {
    bottom: 18px;
    left: 18px;
    position: absolute;
    text-align: center;
    width: min(270px, calc(100% - 36px));
    z-index: 9;
}

.khp-podcast__vote > button {
    background: transparent;
    border: 0;
    color: var(--khp-audio-muted);
    cursor: pointer;
    left: 7px;
    position: absolute;
    top: 7px;
}

.khp-podcast__vote > div {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 10px 0 6px;
}

.khp-podcast__vote [data-khp-podcast-vote] {
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--khp-audio-text);
    cursor: pointer;
    display: flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.khp-podcast__vote [data-khp-podcast-vote].is-active {
    background: var(--khp-primary);
    color: #150a03;
}

.khp-podcast__vote small {
    color: var(--khp-audio-accent);
    display: block;
    min-height: 18px;
}

.khp-podcast__end {
    background: rgba(9, 9, 9, 0.97);
    border: 1px solid var(--khp-audio-border);
    border-radius: 20px;
    inset: 0;
    overflow: auto;
    padding: clamp(18px, 4vw, 34px);
    position: absolute;
    z-index: 10;
}

.khp-podcast__end > div:first-child > span {
    color: var(--khp-audio-accent);
    font-size: 11px;
    font-weight: 900;
}

.khp-podcast__end > div:first-child > strong {
    display: block;
    font-size: clamp(20px, 3vw, 28px);
}

.khp-podcast__end > button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: var(--khp-audio-text);
    cursor: pointer;
    margin-top: 10px;
    min-height: 40px;
    padding: 8px 16px;
}

.khp-podcast__countdown {
    align-items: center;
    background: rgba(255, 154, 60, 0.1);
    border: 1px solid var(--khp-audio-border);
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 10px;
}

.khp-podcast-mini {
    --khp-mini-progress: 0%;
    align-items: center;
    backdrop-filter: blur(20px);
    background: rgba(15, 14, 13, 0.94);
    border: 1px solid var(--khp-audio-border);
    border-radius: 16px;
    bottom: 14px;
    box-shadow: 0 16px 52px rgba(0, 0, 0, 0.46);
    direction: rtl;
    display: grid;
    gap: 9px;
    grid-template-columns: 46px minmax(90px, 1fr) minmax(70px, 22%) repeat(3, 42px) 44px 32px;
    left: 50%;
    max-width: min(920px, calc(100vw - 24px));
    padding: 8px;
    position: fixed;
    transform: translateX(-50%);
    width: 920px;
    z-index: 99999;
}

.khp-podcast.is-sitewide {
    height: 0;
    margin: 0;
    min-height: 0;
    overflow: visible;
    padding: 0;
    position: static;
    width: 0;
}

.khp-podcast.is-sitewide > :not(.khp-podcast-mini, .screen-reader-text, [data-khp-podcast-data], .khp-podcast__media) {
    display: none !important;
}

.khp-podcast.is-sitewide .khp-podcast-mini {
    animation: khp-podcast-mini-arrive 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes khp-podcast-mini-arrive {
    from {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
        transform: translate(-50%, 18px);
    }

    to {
        box-shadow: 0 16px 52px rgba(0, 0, 0, 0.46);
        transform: translate(-50%, 0);
    }
}

.khp-podcast-mini > img {
    aspect-ratio: 1;
    border-radius: 9px;
    height: 46px;
    object-fit: cover;
    width: 46px;
}

.khp-podcast-mini__meta {
    min-width: 0;
}

.khp-podcast-mini__meta strong,
.khp-podcast-mini__meta span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.khp-podcast-mini__meta strong {
    font-size: 12px;
}

.khp-podcast-mini__meta span {
    color: var(--khp-audio-muted);
    direction: ltr;
    font-size: 9px;
    text-align: right;
}

.khp-podcast-mini__timeline {
    direction: ltr;
    height: 38px;
    min-width: 70px;
    position: relative;
}

.khp-podcast-mini__track {
    background: rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    height: 5px;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.khp-podcast-mini__track i,
.khp-podcast-mini__track b {
    border-radius: inherit;
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 0;
}

.khp-podcast-mini__track i {
    background: rgba(255, 255, 255, 0.27);
}

.khp-podcast-mini__track b {
    background: var(--khp-primary);
}

.khp-podcast-mini__timeline input {
    appearance: none;
    background: transparent;
    cursor: pointer;
    height: 38px;
    inset: 0;
    margin: 0;
    padding: 0;
    position: absolute;
    touch-action: none;
    width: 100%;
    z-index: 2;
}

.khp-podcast-mini__timeline input:disabled {
    cursor: wait;
    opacity: 0.55;
}

.khp-podcast-mini__timeline input::-webkit-slider-runnable-track {
    background: transparent;
    border: 0;
    height: 5px;
}

.khp-podcast-mini__timeline input::-webkit-slider-thumb {
    appearance: none;
    background: var(--khp-primary);
    border: 3px solid #171411;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72);
    height: 17px;
    margin-top: -6px;
    width: 17px;
}

.khp-podcast-mini__timeline input::-moz-range-track {
    background: transparent;
    border: 0;
    height: 5px;
}

.khp-podcast-mini__timeline input::-moz-range-progress {
    background: transparent;
    height: 5px;
}

.khp-podcast-mini__timeline input::-moz-range-thumb {
    background: var(--khp-primary);
    border: 3px solid #171411;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72);
    height: 11px;
    width: 11px;
}

.khp-podcast-mini__timeline:focus-within .khp-podcast-mini__track {
    box-shadow: 0 0 0 2px #fff;
}

.khp-podcast-mini__timeline output {
    background: #fff;
    border-radius: 6px;
    bottom: 31px;
    color: #171411;
    direction: ltr;
    font-size: 10px;
    font-weight: 700;
    left: clamp(22px, var(--khp-mini-progress), calc(100% - 22px));
    line-height: 1;
    min-width: 44px;
    padding: 6px 7px;
    pointer-events: none;
    position: absolute;
    text-align: center;
    transform: translateX(-50%);
    z-index: 3;
}

.khp-podcast-mini__timeline output[hidden] {
    display: none;
}

.khp-podcast-mini .khp-podcast__button {
    height: 38px;
    width: 38px;
}

.khp-podcast-mini .khp-podcast__button--play {
    height: 42px;
    width: 42px;
}

.khp-podcast-mini .khp-podcast-mini__return {
    height: 44px;
    width: 44px;
}

.khp-podcast-mini > [data-khp-podcast-mini-close] {
    background: transparent;
    border: 0;
    color: var(--khp-audio-muted);
    cursor: pointer;
}

.khp-podcast :focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .khp-podcast__shell {
        gap: 17px;
        grid-template-columns: 104px minmax(0, 1fr);
        min-height: 0;
        padding: 15px;
    }

    .khp-podcast__art {
        align-self: start;
        border-radius: 13px;
    }

    .khp-podcast__badge {
        bottom: 7px;
        font-size: 0;
        padding: 6px;
        right: 7px;
    }

    .khp-podcast__equalizer {
        bottom: 10px;
        left: 9px;
    }

    .khp-podcast__header h2 {
        font-size: 18px;
    }

    .khp-podcast__header p {
        margin-top: 3px;
    }

    .khp-podcast__timeline,
    .khp-podcast__time-row,
    .khp-podcast__transport,
    .khp-podcast__actions {
        grid-column: 1 / -1;
    }

    .khp-podcast__body {
        display: grid;
        grid-column: 2;
        grid-template-columns: subgrid;
    }

    .khp-podcast__timeline {
        margin-right: calc(-104px - 17px);
        margin-top: 21px;
    }

    .khp-podcast__time-row,
    .khp-podcast__transport,
    .khp-podcast__actions {
        margin-right: calc(-104px - 17px);
    }

    .khp-podcast__transport {
        margin-bottom: 13px;
        margin-top: 12px;
    }

    .khp-podcast__actions {
        justify-content: center;
    }

    .khp-podcast__volume input {
        width: 54px;
    }

    .khp-podcast-mini {
        grid-template-columns: 42px minmax(80px, 1fr) repeat(3, 38px) 44px 28px;
    }

    .khp-podcast-mini__timeline {
        grid-column: 1 / -1;
        height: 30px;
        margin: -3px 4px -6px;
    }

    .khp-podcast-mini__timeline input {
        height: 30px;
    }

    .khp-podcast-mini__timeline input::-webkit-slider-thumb {
        height: 19px;
        margin-top: -7px;
        width: 19px;
    }

    .khp-podcast-mini__timeline input::-moz-range-thumb {
        height: 13px;
        width: 13px;
    }

    .khp-podcast-mini__timeline output {
        bottom: 27px;
    }
}

@media (max-width: 520px) {
    .khp-podcast__shell {
        border-radius: 17px;
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .khp-podcast__header h2 {
        font-size: 15px;
        line-height: 1.65;
    }

    .khp-podcast__program {
        font-size: 11px;
    }

    .khp-podcast__episode {
        display: none;
    }

    .khp-podcast__timeline,
    .khp-podcast__time-row,
    .khp-podcast__transport,
    .khp-podcast__actions {
        margin-right: calc(-82px - 17px);
    }

    .khp-podcast__actions {
        direction: ltr;
        gap: 6px;
    }

    .khp-podcast__volume input {
        display: none;
    }

    .khp-podcast__button {
        height: 40px;
        width: 40px;
    }

    .khp-podcast__button--play {
        height: 56px;
        width: 56px;
    }

    .khp-podcast-transcript__line {
        gap: 7px;
        grid-template-columns: 45px 1fr;
        padding-inline: 8px;
    }

    .khp-podcast-item {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .khp-podcast-item img,
    .khp-podcast-item__placeholder {
        height: 54px;
        width: 54px;
    }

    .khp-podcast-item > b {
        display: none;
    }

    .khp-podcast-mini {
        bottom: 8px;
        grid-template-columns: 38px minmax(64px, 1fr) 36px 40px 44px 26px;
        padding: 7px;
    }

    .khp-podcast-queue__settings {
        align-items: stretch;
        flex-direction: column;
        gap: 7px;
    }

    .khp-podcast-queue__reset {
        justify-content: center;
        width: 100%;
    }

    .khp-podcast-queue__item {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .khp-podcast-queue__item .khp-podcast-item {
        grid-template-columns: 50px minmax(0, 1fr) 28px;
    }

    .khp-podcast-queue__item .khp-podcast-item img,
    .khp-podcast-queue__item .khp-podcast-item__placeholder {
        height: 50px;
        width: 50px;
    }

    .khp-podcast-mini > img {
        height: 38px;
        width: 38px;
    }

    .khp-podcast-mini [data-khp-podcast-mini-back] {
        display: none;
    }

    .khp-podcast-mini [data-khp-podcast-mini-forward] {
        display: none;
    }
}

/* Speaker turns — integrated into the native video and podcast timelines */
.khp-speaker-track {
    contain: layout paint;
    direction: ltr;
    border-radius: 999px;
    height: 8px;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 17px;
    z-index: 4;
}

.khp-speaker-track[hidden] {
    display: none !important;
}

.khp-speaker-segment {
    background: rgba(194, 194, 194, 0.58);
    border-inline-end: 1px solid rgba(8, 8, 8, 0.48);
    display: block;
    height: 100%;
    margin: 0;
    min-width: 1px;
    opacity: 1;
    pointer-events: none;
    position: absolute;
    top: 0;
    transition: opacity 150ms ease-out;
}

.khp-speaker-segment[hidden] {
    display: none;
}

.khp-speaker-segment--active {
    background: var(--khp-speaker-color);
    box-shadow:
        inset 0 0 0 1px rgba(255, 250, 245, 0.96),
        0 3px 10px color-mix(in srgb, var(--khp-speaker-color) 35%, transparent);
    opacity: 1;
    z-index: 2;
}

.khp-player.has-speaker-data .khp-timeline::before {
    background: rgba(255, 255, 255, 0.11);
    height: 8px;
    top: 17px;
}

.khp-player.has-speaker-data .khp-buffered,
.khp-player.has-speaker-data .khp-played {
    height: 2px;
    top: 20px;
    z-index: 5;
}

.khp-player.has-speaker-data .khp-timeline > input {
    z-index: 6;
}

.khp-podcast.has-speaker-data .khp-speaker-track {
    height: 8px;
    top: 11px;
}

.khp-podcast.has-speaker-data .khp-podcast__timeline-track {
    background: rgba(255, 255, 255, 0.08);
    height: 2px;
    top: 14px;
    z-index: 5;
}

.khp-podcast.has-speaker-data .khp-podcast__timeline input,
.khp-podcast.has-speaker-data .khp-podcast__timeline output {
    z-index: 6;
}

.khp-time-preview__speaker {
    color: #fffaf5;
    direction: rtl;
    display: block;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.5;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.khp-time-preview.has-speaker-data {
    align-items: center;
    border-color: color-mix(in srgb, var(--khp-preview-speaker-color) 72%, rgba(255, 255, 255, 0.22));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    direction: rtl;
    display: flex;
    gap: 8px;
    min-width: 132px;
    padding: 8px 10px;
    text-align: right;
}

.khp-time-preview.has-speaker-data::before {
    background: var(--khp-preview-speaker-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--khp-preview-speaker-color) 18%, transparent);
    content: "";
    flex: 0 0 8px;
    height: 8px;
    width: 8px;
}

.khp-time-preview.has-speaker-data > b {
    color: color-mix(in srgb, var(--khp-preview-speaker-color) 70%, #fffaf5);
    direction: ltr;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.khp-podcast__timeline output.has-speaker-data {
    border-color: color-mix(in srgb, var(--khp-preview-speaker-color) 62%, var(--khp-audio-border));
    color: #fffaf5;
    direction: rtl;
    font-size: 11px;
    font-weight: 800;
    max-width: min(220px, 72vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.khp-subtitles {
    align-items: baseline;
    bottom: 112px;
    direction: rtl;
    display: flex;
    flex-wrap: wrap;
    font-size: clamp(13px, 1.45vw, 18px);
    gap: 6px;
    justify-content: center;
    left: 50%;
    line-height: 1.85;
    max-width: min(88%, 920px);
    pointer-events: none;
    position: absolute;
    text-align: center;
    text-shadow: 0 2px 5px #000, 0 0 18px #000;
    transform: translateX(-50%);
    transition: bottom 190ms ease-out;
    width: max-content;
    z-index: 7;
}

.khp-player.is-playing.is-controls-hidden .khp-subtitles {
    bottom: 22px;
}

.khp-subtitles strong {
    background: color-mix(in srgb, var(--khp-subtitle-speaker-color) 30%, rgba(4, 4, 4, 0.82));
    border-radius: 7px;
    color: #fffaf5;
    font-size: 0.76em;
    font-weight: 900;
    padding: 3px 8px;
}

.khp-subtitles span {
    background: rgba(3, 3, 3, 0.74);
    border-radius: 8px;
    box-decoration-break: clone;
    color: #fff;
    font-weight: 700;
    padding: 3px 8px;
    -webkit-box-decoration-break: clone;
}

.khp-control[data-khp-subtitle-toggle][aria-pressed="true"] {
    background: var(--khp-primary);
    border-color: var(--khp-primary);
    color: #190d04;
}

@media (max-width: 560px) {
    .khp-player.has-speaker-data .khp-speaker-track,
    .khp-player.has-speaker-data .khp-timeline::before {
        top: 13px;
    }

    .khp-player.has-speaker-data .khp-buffered,
    .khp-player.has-speaker-data .khp-played {
        top: 16px;
    }

    .khp-subtitles {
        bottom: 106px;
        font-size: 13px;
        max-width: calc(100% - 24px);
    }

}

@media (forced-colors: active) {
    .khp-speaker-segment,
    .khp-subtitles strong,
    .khp-subtitles span {
        border: 1px solid CanvasText;
    }
}

@media (prefers-reduced-motion: reduce) {
    .khp-podcast *,
    .khp-podcast *::before,
    .khp-podcast *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}

@media (forced-colors: active) {
    .khp-podcast__shell,
    .khp-podcast__button,
    .khp-podcast-panel,
    .khp-podcast-mini {
        border: 1px solid CanvasText;
    }
}
