.haram-live { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 100%; }
.haram-live > * { min-width: 0; }

.hl-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 22px 22px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 20%, rgba(212, 175, 55, .28), transparent 45%),
        linear-gradient(135deg, #0f3d2e 0%, #14604a 55%, #0b2b4a 100%);
    box-shadow: 0 10px 28px rgba(15, 61, 46, .25);
}
.hl-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 16px);
    pointer-events: none;
}
.hl-hero-text { position: relative; z-index: 1; }
.hl-title { margin: 10px 0 6px; font-size: 1.55rem; font-weight: 800; line-height: 1.5; color: #fff; }
.hl-sub { margin: 0; color: rgba(255,255,255,.82); font-size: .95rem; line-height: 1.9; }

.hl-badge, .hl-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e11d48;
    color: #fff;
    font-weight: 800;
    font-size: .78rem;
    padding: 4px 11px;
    border-radius: 999px;
}
.hl-badge i, .hl-live-pill i {
    width: 8px; height: 8px; border-radius: 50%; background: #fff;
    animation: hlPulse 1.4s ease-in-out infinite;
}
@keyframes hlPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

.hl-player-card {
    background: #fff;
    border: 1px solid #d9e2ee;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(20, 33, 63, .08);
}
.hl-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #05080d;
    border-radius: 12px;
    overflow: hidden;
}
.hl-player video { width: 100%; height: 100%; display: block; background: #05080d; object-fit: contain; }
.hl-live-pill { position: absolute; top: 12px; left: 12px; z-index: 3; font-size: .72rem; pointer-events: none; }

.hl-overlay {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: rgba(5, 8, 13, .72);
    color: #fff; text-align: center; padding: 16px;
    transition: opacity .25s ease;
}
.hl-overlay.is-hidden { opacity: 0; pointer-events: none; }
.hl-overlay p { margin: 0; font-size: .95rem; }
.hl-spinner {
    width: 44px; height: 44px; border-radius: 50%;
    border: 4px solid rgba(255,255,255,.2); border-top-color: #fff;
    animation: hlSpin .9s linear infinite;
}
.hl-overlay.is-error .hl-spinner { display: none; }
@keyframes hlSpin { to { transform: rotate(360deg); } }
.hl-retry {
    border: 0; cursor: pointer; background: #fff; color: #14604a; font-weight: 800;
    padding: 9px 18px; border-radius: 10px; font-family: inherit;
}

.hl-now { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 6px 4px; }
.hl-now-label { font-size: .78rem; color: #67758f; }
.hl-now-title { margin: 2px 0 0; font-size: 1.1rem; color: #14213f; font-weight: 800; }
.hl-tools { display: flex; gap: 8px; }
.hl-tool {
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid #d9e2ee; background: #f6f8fc;
    color: #26426f; cursor: pointer; transition: background .2s, transform .15s;
}
.hl-tool:hover { background: #e9eff9; }
.hl-tool:active { transform: scale(.94); }

.hl-channels-card, .hl-videos {
    background: #fff;
    border: 1px solid #d9e2ee;
    border-radius: 18px;
    padding: 14px;
}
.hl-section-title { margin: 0 0 12px; font-size: 1.05rem; color: #14213f; display: flex; align-items: center; gap: 8px; }
.hl-section-title i { color: #14604a; }

.hl-channels {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.hl-ch {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 12px 6px; cursor: pointer; font-family: inherit;
    background: #f6f8fc; border: 2px solid transparent; border-radius: 16px;
    color: #26426f; transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
}
.hl-ch:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(20, 33, 63, .12); }
.hl-ch-img {
    width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: block;
    background: linear-gradient(135deg, #14604a, #0b2b4a);
    filter: grayscale(.85); transition: filter .25s;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px #d9e2ee;
}
.hl-ch-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-ch-name { font-size: .85rem; font-weight: 700; line-height: 1.6; text-align: center; }
.hl-ch.is-active { background: #ecf7f2; border-color: #14604a; color: #0f3d2e; }
.hl-ch.is-active .hl-ch-img { filter: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #14604a; }
.hl-ch:focus-visible, .hl-tool:focus-visible, .hl-retry:focus-visible { outline: 3px solid #8b5cf6; outline-offset: 2px; }

.hl-credit { margin: 12px 0 0; font-size: .8rem; color: #67758f; }
.hl-credit a { color: #1f4f94; font-weight: 700; }

@media (max-width: 900px) {
    .hl-channels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 640px) {
    .haram-live { gap: 10px; }
    .hl-hero { padding: 16px 14px; border-radius: 14px; }
    .hl-title { font-size: 1.15rem; margin: 8px 0 4px; }
    .hl-sub { font-size: .82rem; line-height: 1.8; }
    .hl-player-card { padding: 6px; border-radius: 14px; }
    .hl-player { border-radius: 10px; }
    .hl-overlay p { font-size: .85rem; }
    .hl-now { padding: 10px 4px 4px; }
    .hl-now-title { font-size: .98rem; }
    .hl-channels-card, .hl-videos { padding: 12px; border-radius: 14px; }
    .hl-section-title { font-size: .98rem; margin-bottom: 10px; }

    .hl-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .hl-ch {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 8px 10px;
        border-radius: 14px;
        text-align: right;
    }
    .hl-ch:hover { transform: none; box-shadow: none; }
    .hl-ch:last-child { grid-column: 1 / -1; }
    .hl-ch-img { flex: none; width: 44px; height: 44px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #d9e2ee; }
    .hl-ch.is-active .hl-ch-img { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #14604a; }
    .hl-ch-name { font-size: .8rem; line-height: 1.5; text-align: right; flex: 1; min-width: 0; }
    .hl-credit { font-size: .75rem; margin-top: 10px; }
    .hl-videos .tv-masonry { column-count: 2; column-gap: 6px; }
}