.theme-player {
    --player-accent: var(--primaryColor, #d82b38);
    --player-ink: var(--secondaryColor, #1a1a1a);
    isolation: isolate;
    background: #0b0b0d;
}

.theme-player iframe,
.theme-player video,
.theme-player__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.theme-player__play {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.theme-player__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 999px;
    background: var(--player-accent);
    color: #fff;
    box-shadow: 0 12px 32px rgba(216, 43, 56, 0.42);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
}

.theme-player__btn::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    border: 2px solid rgba(255, 255, 255, 0.28);
}

.theme-player:hover .theme-player__btn,
.theme-player__play:focus-visible .theme-player__btn {
    transform: scale(1.08);
    box-shadow: 0 16px 36px rgba(216, 43, 56, 0.55);
}

.theme-player__play:focus-visible {
    outline: none;
}

.theme-player__play:focus-visible .theme-player__btn {
    outline: 2px solid #fff;
    outline-offset: 10px;
}

.theme-player__icon {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
    transform: translateX(-2px);
}

[dir="rtl"] .theme-player__icon {
    transform: translateX(2px);
}

.theme-player--short .theme-player__btn {
    width: 3.75rem;
    height: 3.75rem;
}

.theme-player--detail .theme-player__btn {
    width: 5.25rem;
    height: 5.25rem;
}

.theme-player__badge {
    position: absolute;
    top: 0.75rem;
    inset-inline-end: 0.75rem;
    z-index: 21;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    border-radius: 0.45rem;
    background: var(--player-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.theme-player__badge--youtube {
    background: var(--player-ink);
}

.theme-player__scrim {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    z-index: 12;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
}

.theme-player__bar {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 22;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 1.35rem 0.85rem 0.7rem;
    background: linear-gradient(to top, rgba(10, 10, 12, 0.92), transparent);
}

.theme-player__ctrl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 0.4rem;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.theme-player__ctrl:hover,
.theme-player__ctrl:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.theme-player__track {
    position: relative;
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
}

.theme-player__progress {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--player-accent);
}

.theme-lightbox {
    max-width: min(92vw, 1080px);
    width: min(92vw, 1080px);
    background: #0b0b0d;
    border: 0;
    border-radius: 1.15rem;
    padding: 0;
}

.theme-lightbox::backdrop {
    background: rgba(10, 10, 12, 0.78);
}

.theme-lightbox__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48vh;
}

.theme-lightbox img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 1.15rem;
}

.theme-lightbox__nav,
.theme-lightbox__close {
    position: absolute;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #1a1a1a;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.theme-lightbox__close {
    top: 0.85rem;
    inset-inline-start: 0.85rem;
}

.theme-lightbox__nav--prev {
    inset-inline-start: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
}

.theme-lightbox__nav--next {
    inset-inline-end: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
}

[dir="rtl"] .dir-mirror {
    transform: scaleX(-1);
}

.theme-lightbox__caption {
    margin: 0;
    padding: 0.85rem 1.15rem 1.1rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.theme-lightbox__count {
    display: block;
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.75rem;
    font-weight: 500;
}

html[dir="ltr"] body,
html[dir="ltr"] body.font-sans {
    font-family: "IBM Plex Sans", "IBM Plex Sans Arabic", ui-sans-serif, system-ui, sans-serif;
}

.theme-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 16rem;
    padding: 3.5rem 1.75rem;
    letter-spacing: 0;
}

.theme-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.35rem;
    border-radius: 999px;
    background: #f8fafc;
    color: #94a3b8;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.theme-empty__icon svg {
    width: 1.55rem;
    height: 1.55rem;
}

.theme-empty__title,
.theme-empty__text {
    margin: 0;
    max-width: 28rem;
    letter-spacing: 0;
    line-height: 1.85;
}

.theme-empty__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.theme-empty__text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

html[dir="rtl"] .theme-empty,
html[dir="rtl"] .theme-empty__title,
html[dir="rtl"] .theme-empty__text {
    letter-spacing: 0;
    word-spacing: 0.35em;
}

#mobile-drawer-body {
    inset-inline-end: 0;
}

[dir="ltr"] #mobile-drawer-body {
    inset-inline-end: auto;
    inset-inline-start: 0;
}

[dir="ltr"] #mobile-drawer-body.translate-x-full {
    --tw-translate-x: -100%;
    transform: translate3d(-100%, 0, 0);
}
