/* =======================================================
   YouTube Module Styles — prefixed with .yt-
   ======================================================= */

/* --- Player Container --- */
.yt-player-container {
    max-width: 960px;
    margin-inline: auto;
}

.yt-player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.yt-player-iframe {
    width: 100%;
    height: 100%;
}

.yt-player-iframe iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Subtitle Overlay --- */
.yt-subtitles-overlay {
    position: absolute;
    bottom: 10%;
    left: 0;
    right: 0;
    text-align: center;
    pointer-events: none;
    z-index: 10;
    padding-inline: 1rem;
}

.yt-subtitles-overlay.is-hidden {
    display: none;
}

.yt-sub-line {
    display: inline-block;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
    padding: 0.3rem 0.9rem;
    border-radius: 6px;
    margin-block: 0.15rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    word-wrap: break-word;
    white-space: pre-wrap;
    direction: rtl;
    text-align: center;
}

/* --- Controls --- */
.yt-player-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-block-start: 0.75rem;
}

.yt-sub-btn {
    padding: 0.45rem 1.1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-muted);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.yt-sub-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

.yt-sub-btn.is-active {
    background: var(--color-gold-bright, #c9a84c);
    color: #000;
    border-color: var(--color-gold-bright, #c9a84c);
}

/* --- Mobile Responsive --- */
@media (max-width: 600px) {
    .yt-sub-line {
        font-size: 0.9rem;
        padding: 0.2rem 0.6rem;
    }

    .yt-sub-btn {
        font-size: 0.78rem;
        padding: 0.35rem 0.85rem;
    }
}

/* --- Admin search bar --- */
.yt-admin-search input,
.yt-admin-search select {
    font: inherit;
}
