/* Islamic Channels Page — scoped under .yt-page */
.yt-page {
    --yt-bg: #0f0f0f;
    --yt-card: #1a1a1a;
    --yt-card-hover: #252525;
    --yt-input: #2a2a2a;
    --yt-accent: #c9a961;
    --yt-accent-glow: rgba(201, 169, 97, 0.35);
    --yt-text: #ffffff;
    --yt-text-2: #aaaaaa;
    --yt-muted: #666666;
    --yt-border: #333333;
    --yt-radius: 12px;
    --yt-radius-sm: 6px;
    background: var(--yt-bg);
    color: var(--yt-text);
    padding: 30px 0 60px;
}

.yt-page * { box-sizing: border-box; }

.yt-page .yt-intro {
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 0 24px;
    text-align: center;
}
.yt-page .yt-intro h1 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}
.yt-page .yt-intro h1 span { color: var(--yt-accent); }
.yt-page .yt-intro p {
    color: var(--yt-text-2);
    font-size: 15px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.yt-error-banner {
    background: #c0392b;
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    max-width: 900px;
    margin: 0 auto 14px;
    border-radius: var(--yt-radius-sm);
}

.yt-dashboard {
    display: block;
    padding: 0 24px;
    max-width: 900px;
    margin: 0 auto;
}

.yt-player-section { width: 100%; }

.yt-player-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: var(--yt-radius) var(--yt-radius) 0 0;
    overflow: hidden;
}
.yt-player-wrap iframe,
.yt-player-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.yt-mute-btn {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.70);
    border: none;
    border-radius: 6px;
    padding: 7px 11px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.85;
    font-family: inherit;
    transition: background .2s, opacity .2s;
}
.yt-mute-btn:hover { background: rgba(0,0,0,0.9); opacity: 1; }
.yt-mute-btn:not(.muted) { background: rgba(201,169,97,0.85); color: #1a1a1a; }

.yt-player-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 16px;
    color: #555;
    font-size: 0.95rem;
}

.yt-player-meta {
    display: flex;
    gap: 12px;
    padding: 16px 18px 0;
    background: #fff;
    color: #111;
}
.yt-player-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.yt-player-meta-text { flex: 1; min-width: 0; }
.yt-player-channel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.yt-player-channel-row h2 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0;
}
.yt-live-badge {
    background: #c0392b;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: yt-pulse 2s infinite;
}
.yt-viewers-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #555;
}
.yt-viewers-badge::before {
    content: '●';
    color: #c0392b;
    font-size: 0.55rem;
}
@keyframes yt-pulse {
    0%,100% { opacity: 1; }
    50% { opacity: 0.55; }
}
.yt-hidden { display: none !important; }

.yt-description-box {
    background: #fff;
    color: #444;
    padding: 12px 18px 22px;
    border-radius: 0 0 var(--yt-radius) var(--yt-radius);
    font-size: 0.88rem;
    line-height: 1.55;
    min-height: 60px;
    word-wrap: break-word;
}
.yt-description-box p { margin: 0; }

.yt-disclaimer {
    text-align: center;
    font-size: 0.72rem;
    color: var(--yt-muted);
    margin-top: 10px;
    padding: 0 8px;
    line-height: 1.5;
}

.yt-carousels {
    max-width: 900px;
    margin: 0 auto;
    padding: 18px 24px 0;
}
.yt-section-group { margin-bottom: 28px; }
.yt-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--yt-border);
}
.yt-carousel { position: relative; }
.yt-carousel-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 6px 0;
}
.yt-carousel-track::-webkit-scrollbar { display: none; }

.yt-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(30,30,30,0.85);
    border: 1px solid var(--yt-border);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 5;
}
.yt-carousel-arrow:hover { background: rgba(60,60,60,0.95); }
.yt-carousel-arrow-left  { left: -6px; }
.yt-carousel-arrow-right { right: -6px; }

.yt-channel-card {
    flex: 0 0 170px;
    scroll-snap-align: start;
    background: transparent;
    border: 2px solid transparent;
    border-radius: var(--yt-radius);
    cursor: pointer;
    transition: all .2s;
    overflow: hidden;
}
.yt-channel-card:hover {
    border-color: var(--yt-border);
    background: var(--yt-card);
}
.yt-channel-card.active {
    border-color: var(--yt-accent);
    box-shadow: 0 0 14px var(--yt-accent-glow);
    background: var(--yt-card);
}
.yt-card-thumb {
    width: 100%;
    height: 96px;
    border-radius: var(--yt-radius-sm) var(--yt-radius-sm) 0 0;
    overflow: hidden;
    position: relative;
    background: #000;
}
.yt-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .3s ease;
}
.yt-card-thumb img.loaded { opacity: 1; }
.yt-card-thumb .yt-thumb-live {
    position: absolute;
    bottom: 4px; left: 4px;
    background: #c0392b;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.yt-card-info { padding: 8px 8px 10px; }
.yt-card-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.yt-card-title {
    font-size: 0.72rem;
    color: var(--yt-text-2);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.yt-card-viewers {
    font-size: 0.65rem;
    color: var(--yt-text-2);
    margin-top: 3px;
}
.yt-card-viewers::before {
    content: '● ';
    color: #c0392b;
    font-size: 0.5rem;
}

.yt-skeleton-card {
    flex: 0 0 170px;
    border-radius: var(--yt-radius);
    overflow: hidden;
}
.yt-skeleton-thumb {
    width: 100%; height: 96px;
    background: linear-gradient(90deg, #222 25%, #2a2a2a 50%, #222 75%);
    background-size: 200% 100%;
    animation: yt-shimmer 1.5s infinite;
}
.yt-skeleton-lines { padding: 8px; }
.yt-skeleton-line {
    height: 10px;
    background: linear-gradient(90deg, #222 25%, #2a2a2a 50%, #222 75%);
    background-size: 200% 100%;
    animation: yt-shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}
.yt-skeleton-line:last-child { width: 60%; margin-bottom: 0; }
@keyframes yt-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.yt-empty {
    color: var(--yt-text-2);
    padding: 30px 20px;
    text-align: center;
    background: var(--yt-card);
    border-radius: var(--yt-radius);
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .yt-page .yt-intro h1 { font-size: 24px; }
    .yt-channel-card { flex: 0 0 150px; }
    .yt-card-thumb { height: 84px; }
    .yt-carousel-arrow { width: 30px; height: 30px; font-size: 1.1rem; }
    .yt-section-title { font-size: 1.05rem; }
}
