.yl-sayfa { padding-top: 18px; padding-bottom: 8px; }
.yl-sayfa [hidden] { display: none !important; }

.yl-ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 16px;
}
.yl-baslik {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: var(--biger-font-size);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}
.yl-baslik > i { color: var(--primary-color); }
.yl-toplam {
    padding: 2px 10px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: var(--mini-font-size);
    font-weight: var(--font-weight-semibold);
}
.yl-canli-ozet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(var(--danger-rgb), .1);
    color: var(--danger-color);
    font-size: var(--mini-font-size);
    font-weight: var(--font-weight-semibold);
}
.yl-nabiz {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger-color);
    animation: yl-nabiz 1.6s ease-out infinite;
}
@keyframes yl-nabiz {
    0% { box-shadow: 0 0 0 0 rgba(var(--danger-rgb), .55); }
    70% { box-shadow: 0 0 0 7px rgba(var(--danger-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--danger-rgb), 0); }
}

.yl-arac {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 26px;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}
.yl-ara {
    position: relative;
    display: block;
    flex: 1 1 240px;
    max-width: 340px;
    margin: 0;
}
.yl-ara > i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}
.yl-ara input {
    width: 100%;
    height: 40px;
    padding: 0 12px 0 36px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: var(--base-font-size);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.yl-ara input::placeholder { color: var(--text-muted); }
.yl-ara input:focus {
    border-color: var(--primary-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15);
}

.yl-cipler { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.yl-cip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 13px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: var(--mini-font-size);
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.yl-cip:hover { border-color: rgba(var(--primary-rgb), .5); color: var(--text-primary); }
.yl-cip[aria-pressed="true"] {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), .12);
    color: var(--primary-color);
}
.yl-cip-canli .yl-nabiz { width: 7px; height: 7px; }
.yl-cip-canli[aria-pressed="true"] {
    border-color: var(--danger-color);
    background: rgba(var(--danger-rgb), .12);
    color: var(--danger-color);
}
.yl-cip-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 11px;
}
.yl-cip-partner > i { color: var(--warning-color); }
.yl-cip-partner[aria-pressed="true"] {
    border-color: var(--warning-color);
    background: rgba(var(--warning-rgb), .14);
    color: var(--text-primary);
}
.yl-cip-plat[aria-pressed="true"] { color: var(--text-primary); }
.yl-p-twitch > i { color: #9146ff; }
.yl-p-kick > i { color: #2fb800; }
.yl-p-youtube > i { color: #ff0000; }
.yl-p-twitch[aria-pressed="true"] { border-color: #9146ff; background: rgba(145, 70, 255, .12); }
.yl-p-kick[aria-pressed="true"] { border-color: #2fb800; background: rgba(83, 252, 24, .14); }
.yl-p-youtube[aria-pressed="true"] { border-color: #ff0000; background: rgba(255, 0, 0, .1); }
.yl-ayrac { width: 1px; height: 22px; margin: 0 2px; background: var(--border-color); }

.yl-secimler { display: flex; gap: 8px; margin-left: auto; }
.yl-secim {
    max-width: 230px;
    height: 36px;
    padding: 0 32px 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center / 11px 8px;
    color: var(--text-primary);
    font-size: var(--mini-font-size);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.yl-secim:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15); }
.yl-secim option { background: var(--bg-primary); color: var(--text-primary); }

.yl-bolum { margin-bottom: 30px; }
.yl-bolum-baslik {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: var(--xlarge-font-size);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}
.yl-bolum-baslik .yp-live-badge { position: static; box-shadow: none; }
.yl-sonuc-n {
    color: var(--text-muted);
    font-size: var(--mini-font-size);
    font-weight: var(--font-weight-semibold);
}

.yl-canli-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}
.yl-canli-kart {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.yl-canli-kart:hover {
    color: inherit;
    transform: translateY(-3px);
    border-color: rgba(var(--danger-rgb), .55);
    box-shadow: var(--shadow-lg);
}
.yl-canli-kart.is-partner { border-color: rgba(var(--warning-rgb), .5); }
.yl-onizleme {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-tertiary);
}
.yl-onizleme-bos {
    position: absolute;
    inset: -24px;
    background-position: center;
    background-size: cover;
    filter: blur(22px) saturate(1.3);
    opacity: .6;
}
.yl-onizleme-av {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 68px;
    border: 3px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.yl-onizleme-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.yl-canli-kart:hover .yl-onizleme-img { transform: scale(1.04); }
.yl-onizleme .yp-live-badge { top: 10px; left: 10px; }
.yl-izleyici,
.yl-sure {
    position: absolute;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: 11.5px;
    font-weight: var(--font-weight-semibold);
}
.yl-izleyici { left: 8px; }
.yl-izleyici > i { font-size: 10px; color: #fca5a5; }
.yl-sure { right: 8px; }
.yl-sure:empty { display: none; }
.yl-canli-bilgi { display: flex; gap: 11px; min-width: 0; padding: 12px 13px 13px; }
.yl-canli-bilgi .yl-av { width: 42px; height: 42px; }
.yl-yayin-baslik {
    display: -webkit-box;
    margin: 1px 0 3px;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: var(--mini-font-size);
    line-height: 1.38;
    word-break: break-word;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.yl-yayin-baslik:empty { display: none; }

.yl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 12px;
}
.yl-kart {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px;
    color: inherit;
    text-decoration: none;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.yl-kart:hover {
    color: inherit;
    transform: translateY(-2px);
    border-color: rgba(var(--primary-rgb), .55);
    box-shadow: var(--shadow-md);
}
.yl-kart.is-partner {
    border-color: rgba(var(--warning-rgb), .45);
    background: linear-gradient(135deg, rgba(var(--warning-rgb), .08), transparent 60%), var(--bg-primary);
}
.yl-kart.is-canli { border-color: rgba(var(--danger-rgb), .5); }

.yl-av {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
}
.yl-av img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-tertiary);
}
.yl-kart.is-canli .yl-av::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--danger-color);
    border-radius: 50%;
}
.yl-govde { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.yl-ad-satir { display: flex; align-items: center; gap: 7px; min-width: 0; }
.yl-ad {
    overflow: hidden;
    color: var(--text-primary);
    font-size: var(--midi-font-size);
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
    text-overflow: ellipsis;
}
.yl-partner {
    flex-shrink: 0;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(var(--warning-rgb), .16);
    color: #b45309;
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    letter-spacing: .05em;
}
.yl-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--text-secondary);
    font-size: var(--small-font-size);
}
.yl-platlar { display: inline-flex; flex-shrink: 0; gap: 7px; font-size: 13px; }
.yl-ikon-twitch { color: #9146ff; }
.yl-ikon-kick { color: #2fb800; }
.yl-ikon-youtube { color: #ff0000; }
.yl-oyun { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.yl-oyun:empty { display: none; }
.yl-platlar + .yl-oyun { padding-left: 9px; border-left: 1px solid var(--border-color); }
.yl-alt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 18px;
}
.yl-durum {
    overflow: hidden;
    color: var(--text-muted);
    font-size: var(--small-font-size);
    white-space: nowrap;
    text-overflow: ellipsis;
}
.yl-canli-yazi { color: var(--danger-color); font-weight: var(--font-weight-semibold); }
.yl-canli-yazi > i { margin-left: 2px; font-size: 10px; }
.yl-ritim { display: inline-flex; flex-shrink: 0; align-items: flex-end; gap: 3px; height: 18px; }
.yl-ritim i {
    position: relative;
    width: 5px;
    height: 100%;
    overflow: hidden;
    border-radius: 2px;
    background: var(--bg-tertiary);
}
.yl-ritim i.var::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--h);
    border-radius: 2px;
    background: var(--primary-color);
}

.yl-bos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 38px 16px;
    color: var(--text-secondary);
    text-align: center;
    background: var(--bg-primary);
    border: 1px dashed var(--border-color);
    border-radius: 14px;
}
.yl-bos > i { color: var(--text-muted); font-size: 26px; }
.yl-temizle {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
}
.yl-temizle:hover { border-color: var(--primary-color); color: var(--primary-color); }

.yl-daha { margin-top: 22px; text-align: center; }
.yl-daha-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.yl-daha-btn:hover { border-color: var(--primary-color); box-shadow: var(--shadow-md); }
.yl-daha-n { color: var(--text-muted); font-weight: var(--font-weight-normal); }

.yl-kart:focus-visible,
.yl-canli-kart:focus-visible,
.yl-cip:focus-visible,
.yl-daha-btn:focus-visible,
.yl-temizle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

[data-theme="dark"] .yl-partner { color: #fbbf24; }
[data-theme="dark"] .yl-ikon-twitch,
[data-theme="dark"] .yl-p-twitch > i { color: #bf94ff; }
[data-theme="dark"] .yl-ikon-kick,
[data-theme="dark"] .yl-p-kick > i { color: #53fc18; }
[data-theme="dark"] .yl-p-kick[aria-pressed="true"] { border-color: #53fc18; }
[data-theme="dark"] .yl-onizleme-bos { opacity: .45; }

@media (max-width: 991px) {
    .yl-ara { flex-basis: 100%; max-width: none; }
    .yl-secimler { width: 100%; margin-left: 0; }
    .yl-secim { flex: 1; min-width: 0; max-width: none; }
}

@media (max-width: 576px) {
    .yl-sayfa { padding-top: 12px; }
    .yl-baslik { font-size: var(--xlarge-font-size); }
    .yl-arac { gap: 10px; margin-bottom: 20px; padding: 10px; border-radius: 14px; }
    .yl-cipler {
        flex-wrap: nowrap;
        width: calc(100% + 20px);
        margin: 0 -10px;
        padding: 0 10px 2px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .yl-cipler::-webkit-scrollbar { display: none; }
    .yl-cip { height: 34px; padding: 0 12px; }
    .yl-bolum { margin-bottom: 24px; }
    .yl-bolum-baslik { margin-bottom: 12px; font-size: var(--large-font-size); }
    .yl-canli-grid {
        grid-template-columns: none;
        grid-auto-columns: 84%;
        grid-auto-flow: column;
        gap: 12px;
        margin: 0 -12px;
        padding: 0 12px 6px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 12px;
        scrollbar-width: none;
    }
    .yl-canli-grid::-webkit-scrollbar { display: none; }
    .yl-canli-kart { scroll-snap-align: start; }
    .yl-canli-kart:hover,
    .yl-kart:hover { transform: none; }
    .yl-grid { grid-template-columns: 1fr; gap: 8px; }
    .yl-kart { gap: 12px; padding: 11px 12px; border-radius: 12px; }
    .yl-av { width: 50px; height: 50px; }
    .yl-ad { font-size: var(--base-font-size); }
}

@media (prefers-reduced-motion: reduce) {
    .yl-nabiz { animation: none; }
    .yl-kart,
    .yl-canli-kart,
    .yl-onizleme-img { transition: none; }
}
