/* ============================================================
   YouPowerTV Player — Stylesheet v2.0
   ============================================================ */

:root {
    --c-bg:     #07070b;
    --c-card:   #0d0f16;
    --c-cyan:   #24b9c6;
    --c-purple: #691e79;
    --c-text:   #e9edf6;
    --c-muted:  #a6b0c3;
    --radius:   18px;
    --shadow:   0 0 24px rgba(36,185,198,.18), 0 0 34px rgba(105,30,121,.14);
}

.yptv-wrap * { box-sizing: border-box; }

.yptv-wrap {
    color: var(--c-text);
    background:#00000000;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
                 "Apple Color Emoji", "Segoe UI Emoji";
    padding: 24px 12px;
    border-radius: 4px;
}

.yptv-shell {
    width: min(1320px, 100%);
    margin: 0 auto;
}

.yptv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}
@media (max-width: 980px) {
    .yptv-grid { grid-template-columns: 1fr; }
}

.yptv-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.yptv-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
    user-select: none;
}
.yptv-brand .yptv-name {
    font-size: 22px;
    letter-spacing: .3px;
    font-weight: 800;
    line-height: 1.1;
}
.yptv-brand .yptv-name .a { color: var(--c-cyan); }
.yptv-brand .yptv-name .b { color: var(--c-purple); }
.yptv-brand .yptv-sub {
    color: var(--c-muted);
    font-size: 13px;
}

.yptv-card {
    position: relative;
    border-radius: calc(var(--radius) + 2px);
    padding: 2px;
    background: linear-gradient(135deg, rgba(36,185,198,.95), rgba(105,30,121,.95));
    box-shadow: var(--shadow);
}
.yptv-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius) + 4px);
    background:
        radial-gradient(600px 140px at 50% 0%,   rgba(36,185,198,.35), transparent 65%),
        radial-gradient(600px 140px at 50% 100%,  rgba(105,30,121,.28), transparent 65%);
    filter: blur(14px);
    opacity: .9;
    z-index: -1;
}
.yptv-inner {
    background: linear-gradient(180deg, rgba(16,18,26,.92), rgba(10,10,16,.92));
    border-radius: var(--radius);
    overflow: hidden;
}

.yptv-playerWrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
.yptv-playerWrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.yptv-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 12px;
    border-top: 1px solid rgba(255,255,255,.06);
    background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
}
.yptv-modeBadge {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
}
.yptv-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--c-cyan);
    box-shadow: 0 0 12px rgba(36,185,198,.85);
    animation: yptv-pulse 1.35s ease-in-out infinite;
    flex-shrink: 0;
}
.yptv-dot.dvr {
    background: var(--c-purple);
    box-shadow: 0 0 12px rgba(105,30,121,.85);
}
@keyframes yptv-pulse {
    0%,100% { transform: scale(.9);   opacity: .75; }
    50%      { transform: scale(1.25); opacity: 1;   }
}
.yptv-badgeText { display: flex; flex-direction: column; gap: 2px; }
.yptv-badgeText .t { font-weight: 800; letter-spacing: .2px; font-size: 14px; font-family: 'Audiowide'; color: #ffffff; }
.yptv-badgeText .s { color: var(--c-muted); font-size: 12px; margin: 0; }

.yptv-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.yptv-btn {
    appearance: none;
    font-family: 'Audiowide';
    -webkit-appearance: none;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.03);
    color: var(--c-text);
    padding: 10px 12px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: .2px;
    cursor: pointer;
    transition: transform .12s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
    min-height: 40px;
    line-height: 1;
}
.yptv-btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.22); box-shadow: 0 0 0 3px rgba(255,255,255,.04); }
.yptv-btn:active  { transform: translateY(0); }
.yptv-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.yptv-btn.primary     { border-color: rgba(36,185,198,.55); box-shadow: 0 0 18px rgba(36,185,198,.18); }
.yptv-btn.primary.dvr { border-color: rgba(105,30,121,.55); box-shadow: 0 0 18px rgba(105,30,121,.18); }
.yptv-btn.active {
    background: linear-gradient(135deg, rgba(36,185,198,.22), rgba(105,30,121,.20));
    border-color: rgba(255,255,255,.22);
}

.yptv-note {
    margin-top: 10px;
    color: rgba(255,255,255);
    font-family: 'Titillium Web';
    font-size: 14px;
    text-align: center;
}

/* Loading state */
.yptv-playerWrap.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 560px) {
    .yptv-topbar  { flex-direction: column; align-items: flex-start; }
    .yptv-hud     { flex-direction: column; align-items: stretch; }
    .yptv-buttons { justify-content: stretch; }
    .yptv-btn     { width: 100%; }
}
