* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body.stream-page {
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 65%),
        radial-gradient(900px 500px at 100% 0%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 60%),
        linear-gradient(180deg, var(--bg-0), var(--bg-1) 35%, var(--bg-2));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.stream-app {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.main-wrapper {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 16px 22px 26px;
    flex: 1 1 auto;
}

/* Negatif z-index kullanma: body'nin opak arka plani onu ortuyor. */
.pageskin {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.section-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(12, 20, 37, 0.85);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.75);
        opacity: 0.6;
    }
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    background: color-mix(in srgb, var(--bg-1) 84%, transparent);
}

.topbar__inner {
    max-width: 1560px;
    height: 72px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar__brand {
    flex-shrink: 0;
}

.topbar__logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.topbar__logo-image {
    width: auto;
    max-height: 40px;
    max-width: 160px;
    object-fit: contain;
}

.topbar__logo-text {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text-strong);
}

.topbar__brand-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
}

.topbar__brand-meta strong {
    color: var(--text-strong);
    font-size: 0.86rem;
    font-weight: 700;
}

.topbar__brand-meta small {
    color: var(--muted-2);
    font-size: 0.7rem;
    font-weight: 500;
}

.topbar__nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.topbar__nav::-webkit-scrollbar {
    display: none;
}

.topbar__nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    height: 40px;
    padding: 0 15px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--muted);
    transition: 0.2s ease;
}

.topbar__nav-link i,
.topbar__nav-emoji {
    font-size: 0.9rem;
    color: var(--muted-2);
}

.topbar__nav-link:hover {
    color: var(--text);
    border-color: var(--border);
    background: rgba(20, 33, 56, 0.8);
}

.topbar__nav-link:hover i,
.topbar__nav-link:hover .topbar__nav-emoji {
    color: var(--accent);
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.topbar__live-pill {
    height: 40px;
    border: 0;
    border-radius: 12px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(140deg, var(--live), #e4395b);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    box-shadow: 0 10px 24px -12px rgba(255, 77, 109, 0.9);
    transition: filter 0.2s ease;
    cursor: pointer;
}

.topbar__live-pill:hover {
    filter: brightness(1.1);
}

.topbar__social {
    display: inline-flex;
    gap: 6px;
}

.topbar__social a {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: 0.2s ease;
}

.topbar__social a:hover {
    color: var(--accent);
    border-color: var(--border-strong);
    background: var(--surface-2);
    transform: translateY(-1px);
}

.topbar__hamburger {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    cursor: pointer;
}

.topbar__hamburger-line {
    width: 18px;
    height: 2px;
    border-radius: 8px;
    background: currentColor;
}

.topbar-drawer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border-bottom: 1px solid transparent;
    background: var(--bg-2);
    transition: max-height 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
}

.topbar-drawer.is-open {
    max-height: 420px;
    opacity: 1;
    border-color: var(--border);
}

.topbar-drawer__nav {
    padding: 12px 14px 8px;
    display: grid;
    gap: 6px;
}

.topbar-drawer__nav a {
    height: 42px;
    border-radius: 11px;
    border: 1px solid var(--border);
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 600;
    background: rgba(19, 29, 47, 0.75);
}

.topbar-drawer__social {
    padding: 4px 14px 14px;
    display: flex;
    gap: 7px;
}

.topbar-drawer__social a {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.drawer-open {
    overflow: hidden;
}

.banner-strip {
    margin-top: 2px;
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: #0c1423;
}

.banner-strip img {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
}

.channel-glider {
    position: relative;
    margin-top: 16px;
}

.channel-glider__track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 1px 0 3px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
    scroll-behavior: smooth;
    touch-action: pan-x;
}

/* Fare ile suruklenirken: yumusak kaydirmayi ve snap'i kapat, imleci degistir */
.channel-glider__track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
    user-select: none;
}

/* Hayalet resim suruklemesini engelle (drag deneyimini bozar) */
.channel-glider__track img,
.stream-card__channel-art img,
.stream-card__channel-logo img {
    -webkit-user-drag: none;
    user-select: none;
}

.channel-glider__track::-webkit-scrollbar {
    display: none;
}

.channel-glider__track > .stream-card {
    flex: 0 0 140px;
    margin-bottom: 0;
    scroll-snap-align: start;
}

.channel-glider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-0) 75%, transparent);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    transition: 0.2s ease;
    cursor: pointer;
}

.channel-glider__btn:hover {
    background: var(--surface-2);
}

.channel-glider__btn[disabled] {
    opacity: 0.35;
    pointer-events: none;
}

.channel-glider__btn--prev {
    left: -8px;
}

.channel-glider__btn--next {
    right: -8px;
}

.stream-grid {
    margin-top: 16px;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1100px) {
    .stream-grid {
        grid-template-columns: minmax(0, 1fr) 382px;
        align-items: stretch;
    }
}

.stream-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.player-top-banner {
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: #0f1b31;
}

.player-top-banner img {
    width: 100%;
    max-height: 96px;
    object-fit: cover;
}

.player-wrap {
    width: 100%;
    min-height: 0;
}

.player-aspect {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: min(69vh, 740px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    background: #000;
    box-shadow: 0 24px 44px -26px rgba(0, 0, 0, 0.95);
}

.player-aspect video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-play-overlay {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(5, 9, 16, 0.12), rgba(5, 9, 16, 0.58));
    cursor: pointer;
    transition: opacity 0.22s ease;
}

.player-play-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.player-play-overlay__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.player-play-overlay__btn {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, #fff 30%, transparent);
    background: linear-gradient(130deg, color-mix(in srgb, var(--accent) 85%, #1f3d84), color-mix(in srgb, var(--accent-2) 85%, #1f3d84));
    color: #fff;
    font-size: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 30px -18px rgba(0, 0, 0, 0.95);
    transition: transform 0.2s ease;
}

.player-play-overlay:hover .player-play-overlay__btn {
    transform: scale(1.04);
}

.player-play-overlay__text {
    color: #dbe8ff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.player-watermark {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;
    max-width: 112px;
    max-height: 54px;
    opacity: 0.82;
    object-fit: contain;
    pointer-events: none;
}

.player-ad {
    position: absolute;
    left: 10px;
    bottom: 62px;
    z-index: 7;
    width: min(305px, calc(100% - 24px));
    border-radius: 11px;
    border: 1px solid var(--border-strong);
    background: color-mix(in srgb, var(--bg-1) 78%, transparent);
    overflow: hidden;
    box-shadow: 0 14px 24px -18px rgba(0, 0, 0, 0.95);
}

.player-ad img {
    width: 100%;
}

.player-ad-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 8px;
    background: rgba(3, 5, 9, 0.65);
    color: #fff;
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Video ilk kareyi basana kadar duran katman; watermark ve oynat
   overlay'inin (3 ve 4) altinda, video'nun ustunde durur. */
.player-standby {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--bg-2) 92%, transparent), #05070c 78%);
    pointer-events: none;
}

.player-standby.is-hidden {
    display: none;
}

.player-standby__brand {
    max-width: min(58%, 280px);
    max-height: 84px;
    margin: 0 auto;
    object-fit: contain;
}

.player-standby__hint {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: clamp(0.85rem, 2.2vw, 1rem);
}

.player-standby__versus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 6vw, 64px);
}

.player-standby__logo {
    width: clamp(64px, 14vw, 148px);
    height: clamp(64px, 14vw, 148px);
    object-fit: contain;
}

.player-standby__logo--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-2);
    font-size: clamp(1.8rem, 5vw, 3.4rem);
}

.player-standby__vs {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-strong);
}

.player-standby__single .player-standby__logo {
    width: clamp(96px, 22vw, 220px);
    height: clamp(96px, 22vw, 220px);
}

.player-overlay-message {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
    background: rgba(8, 13, 24, 0.72);
    color: #d7e3f7;
    font-size: 0.9rem;
}

.player-overlay-message i {
    margin-right: 6px;
    color: var(--warning);
}

.player-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9;
    height: 50px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, rgba(10, 15, 27, 0.3), rgba(10, 15, 27, 0.9));
    border-top: 1px solid color-mix(in srgb, var(--border-strong) 70%, transparent);
}

.player-controls__live {
    height: 28px;
    border-radius: 999px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(130deg, var(--live), #e4395b);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.player-controls__live[data-state="off"] {
    background: rgba(255, 255, 255, 0.15);
    color: #c9d4ec;
}

.player-controls__live[data-state="off"] .live-dot {
    background: #bcc9e4;
    box-shadow: none;
    animation: none;
}

.player-ctrl-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background: rgba(12, 19, 34, 0.86);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.player-ctrl-btn:hover {
    background: rgba(19, 30, 49, 0.96);
}

.player-volume {
    -webkit-appearance: none;
    appearance: none;
    width: 88px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    outline: none;
}

.player-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 999px;
    border: 0;
    background: #fff;
}

.player-volume::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    border: 0;
    background: #fff;
}

.player-controls__spacer {
    flex: 1 1 auto;
}

.match-col {
    min-width: 0;
}

.match-card {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(16, 25, 41, 0.97), rgba(11, 19, 34, 0.96));
    overflow: hidden;
}

.match-card__head {
    padding: 12px 12px 10px;
    border-bottom: 1px solid var(--border);
    display: grid;
    gap: 10px;
}

.match-tabs {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(10, 16, 29, 0.75);
    padding: 3px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
}

.match-tab {
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.match-tab__dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #ff5b7a;
}

.match-tab__count {
    min-width: 18px;
    height: 16px;
    border-radius: 999px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #c6d2eb;
    font-size: 0.65rem;
    font-weight: 700;
}

.match-tab.is-active {
    background: rgba(34, 49, 74, 0.85);
    color: #fff;
}

.match-tab.is-active .match-tab__count {
    background: linear-gradient(130deg, var(--accent), var(--accent-2));
    color: #fff;
}

.match-filter {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.match-filter::-webkit-scrollbar {
    display: none;
}

.match-chip {
    height: 29px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(18, 28, 45, 0.72);
    color: var(--muted);
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}

.match-chip.is-active {
    border-color: transparent;
    background: linear-gradient(130deg, color-mix(in srgb, var(--accent) 85%, #24448b), color-mix(in srgb, var(--accent-2) 85%, #2f4493));
    color: #fff;
}

.match-card__body {
    padding: 10px;
}

.match-pane {
    display: none;
}

.match-pane.is-active {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(63vh, 680px);
    overflow-y: auto;
    padding-right: 2px;
}

.match-pane.is-active::-webkit-scrollbar {
    width: 6px;
}

.match-pane.is-active::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #2d4161;
}

.stream-card {
    border-radius: 13px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(22, 34, 56, 0.88), rgba(18, 30, 49, 0.83));
    padding: 10px 11px;
    cursor: pointer;
    transition: 0.2s ease;
}

.stream-card:hover {
    border-color: var(--border-strong);
    background: linear-gradient(180deg, rgba(28, 42, 66, 0.93), rgba(20, 32, 53, 0.9));
    transform: translateY(-1px);
}

.stream-card.active {
    border-color: color-mix(in srgb, var(--accent) 80%, var(--border-strong));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 16px 24px -18px rgba(0, 0, 0, 0.85);
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, #253a58), #1c2d47);
}

.stream-card.is-no-source {
    opacity: 0.72;
}

.stream-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
}

.stream-chip {
    height: 24px;
    border-radius: 999px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--border);
    background: rgba(12, 20, 35, 0.7);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.stream-chip--cat {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
    color: #dcefff;
    background: color-mix(in srgb, var(--accent) 20%, rgba(12, 20, 35, 0.55));
}

.stream-chip--live {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(130deg, var(--live), #e4395b);
}

.stream-chip--time,
.stream-chip--247 {
    color: #d4e0f5;
}

.stream-chip--live .live-dot {
    width: 6px;
    height: 6px;
}

.stream-card__body {
    min-height: 48px;
}

.stream-card__teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.team {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.team--home {
    justify-content: flex-start;
}

.team--away {
    justify-content: flex-end;
}

.team__logo {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px;
    flex-shrink: 0;
}

.team__logo--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-2);
}

.team__name {
    color: #f2f7ff;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-vs {
    color: #d8e6ff;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 2px 7px;
    background: rgba(9, 15, 27, 0.65);
}

.stream-card__title-only {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 0.83rem;
}

.stream-card__title-only strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stream-card__title-only i {
    color: var(--accent);
}

.stream-card__bottom {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.stream-card__bottom-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stream-card__channel {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #d8e6ff;
    font-size: 0.73rem;
    font-weight: 600;
    white-space: nowrap;
}

.stream-card__channel i {
    color: var(--info);
}

.stream-card__time-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 0.68rem;
    white-space: nowrap;
}

.stream-card__source-warn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffd66f;
    font-size: 0.69rem;
    font-weight: 700;
    white-space: nowrap;
}

.stream-card__status {
    position: absolute;
    left: 7px;
    top: 7px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    line-height: 1;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2;
}

.stream-card__status--live {
    background: linear-gradient(135deg, var(--live, #ef4444), #e4395b);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18), 0 4px 14px -4px rgba(239, 68, 68, 0.6);
    animation: stream-card-status-pulse 2.4s ease-in-out infinite;
}

.stream-card__status--prep {
    background: rgba(30, 41, 59, 0.78);
    color: #ffd66f;
}

.stream-card__status--dot {
    position: absolute;
    left: auto;
    right: -4px;
    bottom: -4px;
    top: auto;
    width: 12px;
    height: 12px;
    border: 2px solid var(--surface, #0e1726);
    box-shadow: none;
    animation: none;
}

.stream-card__status--dot.stream-card__status--live {
    background: var(--live, #ef4444);
}

.stream-card__status--dot.stream-card__status--prep {
    background: #ffd66f;
}

.stream-card__status--dot > i { display: none; }

@keyframes stream-card-status-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18), 0 4px 14px -4px rgba(239, 68, 68, 0.55); }
    50%      { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.06), 0 6px 18px -4px rgba(239, 68, 68, 0.75); }
}

.stream-card__channel-logo { position: relative; }

.stream-card__cta-arrow {
    color: #a9bbd9;
    font-size: 0.88rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.stream-card:hover .stream-card__cta-arrow {
    color: #fff;
    transform: translate(2px, -2px);
}

.stream-card__channel-art {
    position: relative;
    width: 100%;
    height: 96px;
    border-radius: 11px;
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    background: rgba(18, 29, 47, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.stream-card__channel-art img {
    width: 84%;
    height: 84%;
    object-fit: contain;
}

.stream-card__rail-247 {
    position: absolute;
    right: 7px;
    top: 7px;
    height: 19px;
    border-radius: 999px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: color-mix(in srgb, var(--accent-2) 35%, transparent);
    color: #fff;
}

.stream-card__channel-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.stream-card__channel-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: rgba(19, 28, 45, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.stream-card__channel-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.stream-card__channel-fallback {
    color: var(--muted-2);
}

.stream-card--channel-list .stream-card__channel-meta {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stream-card--channel-list .stream-card__channel-name {
    color: #f3f8ff;
    font-size: 0.79rem;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty-state {
    border-radius: 11px;
    border: 1px dashed var(--border);
    padding: 18px 10px;
    color: var(--muted);
    text-align: center;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    background: rgba(16, 24, 40, 0.5);
}

.empty-state i {
    color: var(--muted-2);
    font-size: 1.3rem;
}

.bottombar {
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-1) 88%, transparent);
    margin-top: auto;
}

.bottombar__inner {
    max-width: 1560px;
    min-height: 62px;
    margin: 0 auto;
    padding: 11px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.bottombar__menu {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.bottombar__menu a {
    height: 30px;
    border-radius: 9px;
    border: 1px solid transparent;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.bottombar__menu a:hover {
    color: var(--text);
    border-color: var(--border);
    background: rgba(18, 28, 45, 0.85);
}

.bottombar__social {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bottombar__social a {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.bottombar__copy {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 500;
}

@media (max-width: 1366px) {
    .main-wrapper,
    .topbar__inner,
    .bottombar__inner {
        max-width: 1320px;
    }

    .match-pane.is-active {
        max-height: min(60vh, 640px);
    }
}

@media (max-width: 1280px) {
    .topbar__inner,
    .main-wrapper,
    .bottombar__inner {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 1099.98px) {
    .topbar__inner {
        height: 64px;
    }

    .topbar__nav,
    .topbar__social {
        display: none;
    }

    .topbar__hamburger {
        display: inline-flex;
    }

    .main-wrapper {
        padding-top: 12px;
    }

    .channel-glider__btn {
        display: none;
    }

    .stream-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .match-col {
        position: static;
    }

    .match-pane.is-active {
        max-height: 430px;
    }
}

@media (max-width: 767.98px) {
    .banner-strip {
        border-radius: 12px;
    }

    .banner-strip img {
        max-height: 106px;
    }

    .channel-glider__track > .stream-card {
        flex-basis: 124px;
    }

    .player-aspect {
        border-radius: 13px;
        max-height: unset;
    }

    .player-controls {
        height: 46px;
        padding: 0 8px;
    }

    .player-volume {
        width: 64px;
    }

    .player-ad {
        bottom: 56px;
        left: 8px;
    }

    .match-card {
        border-radius: 14px;
    }

    .match-pane.is-active {
        max-height: 360px;
    }

    .bottombar__inner {
        padding: 10px 14px;
        justify-content: center;
    }

    .bottombar__copy {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 430px) {
    .topbar__inner,
    .main-wrapper {
        padding-left: 12px;
        padding-right: 12px;
    }

    .topbar__brand-meta {
        display: none;
    }

    .topbar__logo-image {
        max-height: 34px;
        max-width: 130px;
    }

    .topbar__live-pill {
        height: 34px;
        padding: 0 10px;
        font-size: 0.67rem;
    }

    .channel-glider__track > .stream-card {
        flex-basis: 112px;
    }

    .team__name {
        font-size: 0.76rem;
    }
}
        * { box-sizing: border-box; }

        html, body {
            margin: 0;
            padding: 0;
            min-height: 100dvh;
            font-family: var(--font-ui);
            font-size: 15px;
            line-height: 1.5;
            color: var(--text);
            font-feature-settings: "tnum" 1, "ss01" 1;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            background: var(--bg-1);
        }

        .main-wrapper {
            display: block;
            width: 100%;
            max-width: 1600px;
            margin: 0 auto;
            padding-top: 12px;
        }

        a { color: inherit; text-decoration: none; }
        a:hover { color: var(--accent); }
        img { max-width: 100%; }

        /* ----- Topbar ----- */
                .topbar {
            position: sticky;
            top: 0;
            z-index: 50;
            display: flex;
            align-items: center;
            gap: 14px;
            height: 56px;
            padding: 0 24px;
            background: color-mix(in srgb, var(--bg-1) 65%, transparent);
            backdrop-filter: blur(20px) saturate(160%);
            -webkit-backdrop-filter: blur(20px) saturate(160%);
            border-bottom: 1px solid var(--border);
        }
        .topbar__logo { display: flex; align-items: center; flex-shrink: 0; }
        .topbar__logo a { display: flex; align-items: center; text-decoration: none; }
        .topbar__logo img {
            display: block;
            max-height: 32px;
            max-width: 160px;
            object-fit: contain;
        }
        .topbar__logo-text {
            font-family: var(--font-display);
            font-weight: 700;
            font-size: 1.05rem;
            background: linear-gradient(135deg, var(--accent), var(--accent-2));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            white-space: nowrap;
        }

        .topbar__nav {
            display: flex;
            align-items: center;
            gap: 2px;
            flex: 1 1 auto;
            min-width: 0;
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
            margin-left: 8px;
        }
        .topbar__nav::-webkit-scrollbar { display: none; }
        .topbar__nav a {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 7px 14px;
            border-radius: 999px;
            font-family: var(--font-ui);
            font-size: 0.84rem;
            font-weight: 500;
            color: var(--muted);
            white-space: nowrap;
            text-decoration: none;
            transition: color 0.15s ease, background 0.15s ease;
        }
        .topbar__nav a:hover {
            color: var(--text);
            background: var(--surface);
        }

        .topbar__actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }

                .topbar__live-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 14px;
            border-radius: 999px;
            border: 0;
            background: linear-gradient(135deg, #FF3D5A, #E11A33);
            color: #fff;
            font-family: var(--font-display);
            font-size: 0.74rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            cursor: pointer;
            box-shadow: 0 0 0 3px rgba(255, 61, 90, 0.2), 0 4px 12px -4px rgba(255, 61, 90, 0.4);
            transition: filter 0.15s ease, box-shadow 0.15s ease;
            white-space: nowrap;
        }
        .topbar__live-pill:hover {
            filter: brightness(1.12);
            box-shadow: 0 0 0 4px rgba(255, 61, 90, 0.3), 0 6px 16px -4px rgba(255, 61, 90, 0.5);
        }
        .topbar__live-pill .live-dot {
            width: 7px;
            height: 7px;
            border-radius: 2px;
            background: #fff;
            box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
            animation: livepulse 1.4s infinite;
        }

        .topbar__social {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .topbar__social a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            border-radius: 10px;
            background: var(--surface);
            border: 1px solid var(--border);
            color: var(--muted);
            font-size: 1rem;
            text-decoration: none;
            transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
        }
        .topbar__social a:hover {
            border-color: var(--border-strong);
            background: var(--surface-2);
            color: var(--accent);
            transform: translateY(-1px);
        }

        /* Hamburger (mobile only) */
        .topbar__hamburger {
            display: none;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: var(--surface);
            border: 1px solid var(--border);
            cursor: pointer;
            flex-direction: column;
            gap: 4px;
            padding: 0;
        }
        .topbar__hamburger-line {
            display: block;
            width: 18px;
            height: 2px;
            border-radius: 2px;
            background: var(--text);
            transition: transform 0.2s ease, opacity 0.2s ease;
        }

        /* Drawer */
        .topbar-drawer {
            position: sticky;
            top: 56px;
            z-index: 49;
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            background: var(--bg-2);
            border-bottom: 1px solid var(--border);
            transition: max-height 0.25s ease, opacity 0.2s ease;
        }
        .topbar-drawer.is-open {
            max-height: 400px;
            opacity: 1;
        }
        .topbar-drawer__nav {
            display: flex;
            flex-direction: column;
            padding: 14px;
            gap: 2px;
        }
        .topbar-drawer__nav a {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            border-radius: 2px;
            font-family: var(--font-ui);
            font-size: 0.88rem;
            font-weight: 500;
            color: var(--muted);
            text-decoration: none;
            transition: color 0.15s ease, background 0.15s ease;
        }
        .topbar-drawer__nav a:hover {
            color: var(--text);
            background: var(--surface);
        }
        .topbar-drawer__social {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 0 14px 14px;
        }
        .topbar-drawer__social a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: var(--surface);
            border: 1px solid var(--border);
            color: var(--muted);
            font-size: 1rem;
            text-decoration: none;
        }
        .topbar-drawer__social a:hover {
            border-color: var(--border-strong);
            color: var(--accent);
        }

        body.drawer-open { overflow: hidden; }

        /* ----- Banner strip (slim) ----- */
        .banner-strip {
            display: block;
            margin: 24px 24px 0;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border);
            background: var(--surface);
            flex-shrink: 0;
        }
        .banner-strip img {
            display: block;
            width: 100%;
            max-height: 110px;
            object-fit: cover;
        }

        /* ----- Main grid ----- */
        .stream-grid {
            display: grid;
            gap: 24px;
            padding: 24px;
            grid-template-columns: 1fr;
        }
        @media (min-width: 992px) {
            .stream-grid {
                grid-template-columns: minmax(0, 8fr) minmax(280px, 2fr);
            }
        }

        .stream-main { 
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .stream-side { min-width: 0; }
        @media (min-width: 992px) {
            .stream-side {
                align-self: start;
                position: relative;
                top: 0;
                padding-right: 0;
            }
        }

        /* ----- Player top banner ----- */
        .player-top-banner {
            display: block;
            margin-bottom: 12px;
            border-radius: 2px;
            overflow: hidden;
            border: 1px solid var(--border);
            background: var(--surface);
        }
        .player-top-banner img {
            display: block;
            width: 100%;
            max-height: 90px;
            object-fit: cover;
        }

        /* ----- Player wrap (kompakt clamp) ----- */
        .player-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
        }
        .player-aspect {
            position: relative;
            width: 100%;
            max-width: 100%;
            aspect-ratio: 16 / 9;
            /* Player viewport'un 4/5'inden buyuk olmasin -> aspect-ratio korunarak width kuculur. */
            max-height: 75vh;

            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border-strong);
            background: #000;
            box-shadow: 0 18px 40px -10px rgba(0,0,0,0.5);
        }
        @media (max-width: 991.98px) {
            .player-aspect {
                max-height: none;
            }
        }
        .player-aspect video {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            background: #000;
            display: block;
            object-fit: contain;
        }
        .player-play-overlay {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.4) 100%);
            cursor: pointer;
            transition: opacity 0.25s ease;
            z-index: 4;
        }
        .player-play-overlay.is-hidden { opacity: 0; pointer-events: none; }
        .player-play-overlay__btn {
            width: 84px;
            height: 84px;
            border-radius: 2px;
            background: color-mix(in srgb, var(--accent) 85%, transparent);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.2rem;
            box-shadow: 0 12px 40px color-mix(in srgb, var(--accent) 55%, transparent);
            transition: transform 0.2s ease;
        }
        .player-play-overlay:hover .player-play-overlay__btn { transform: scale(1.06); }

        .player-watermark {
            position: absolute;
            top: 10px;
            right: 12px;
            max-height: 48px;
            max-width: 100px;
            object-fit: contain;
            opacity: 0.78;
            pointer-events: none;
            z-index: 3;
        }

        .player-ad {
            position: absolute;
            left: 12px;
            bottom: 12px;
            max-width: 320px;
            padding: 10px 36px 10px 12px;
            border-radius: 2px;
            background: color-mix(in srgb, var(--bg-1) 65%, transparent);
            border: 1px solid var(--border-strong);
            
            z-index: 5;
            font-size: 0.82rem;
            color: var(--text);
        }
        .player-ad img {
            display: block;
            max-width: 100%;
            border-radius: 2px;
        }
        .player-ad-close {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 24px;
            height: 24px;
            border: none;
            border-radius: 2px;
            background: rgba(0,0,0,0.45);
            color: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
        }
        .player-ad-close:hover { background: rgba(0,0,0,0.75); }

        .player-overlay-message {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            text-align: center;
            background: color-mix(in srgb, var(--bg-1) 75%, transparent);
            
            font-size: 0.95rem;
            color: var(--muted);
            z-index: 6;
        }
        .player-overlay-message i {
            margin-right: 6px;
            color: var(--accent);
        }

        /* ----- Custom live-only player controls ----- */
                .player-controls {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 8;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            background: var(--bg-1);
            border-top: 2px solid var(--accent);
            opacity: 0;
            transform: translateY(6px);
            transition: opacity 0.1s ease, transform 0.1s ease;
            pointer-events: none;
        }
        .player-wrap:hover .player-controls,
        .player-wrap.is-controls-pinned .player-controls {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }
                .player-controls__live {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 14px;
            border-radius: 0;
            font-family: var(--font-display);
            font-size: 0.8rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: #fff;
            background: var(--live);
            border: none;
            box-shadow: none;
            user-select: none;
            clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
        }
        .player-controls__live[data-state="off"] {
            background: rgba(255,255,255,0.12);
            border-color: rgba(255,255,255,0.18);
            box-shadow: none;
            opacity: 0.7;
        }
        .player-controls__live[data-state="off"] .live-dot {
            background: rgba(255,255,255,0.6);
            box-shadow: none;
            animation: none;
        }
        .player-controls__live .live-dot {
            width: 7px;
            height: 7px;
            border-radius: 2px;
            background: #fff;
            box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
            animation: livepulse 1.4s infinite;
        }
                .player-ctrl-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 0;
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.12);
            color: #fff;
            font-size: 1rem;
            cursor: pointer;
            transition: background 0.1s ease, transform 0.1s ease;
        }
        .player-ctrl-btn:hover { background: rgba(255,255,255,0.16); }
        .player-ctrl-btn:active { transform: scale(0.96); }
        .player-volume {
            -webkit-appearance: none;
            appearance: none;
            width: 90px;
            height: 4px;
            border-radius: 2px;
            background: rgba(255,255,255,0.18);
            cursor: pointer;
            outline: none;
        }
        .player-volume::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 14px;
            height: 14px;
            border-radius: 2px;
            background: #fff;
            border: 0;
            cursor: pointer;
            box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
        }
        .player-volume::-moz-range-thumb {
            width: 14px;
            height: 14px;
            border-radius: 2px;
            background: #fff;
            border: 0;
            cursor: pointer;
        }
        .player-controls__spacer { flex: 1 1 auto; }

        @media (max-width: 575.98px) {
            .player-volume { width: 64px; }
                    .player-ctrl-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 0;
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.12);
            color: #fff;
            font-size: 1rem;
            cursor: pointer;
            transition: background 0.1s ease, transform 0.1s ease;
        }
                    .player-controls {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 8;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            background: var(--bg-1);
            border-top: 2px solid var(--accent);
            opacity: 0;
            transform: translateY(6px);
            transition: opacity 0.1s ease, transform 0.1s ease;
            pointer-events: none;
        }
        }

        /* ----- Side panel sections ----- */
        .side-section {
            margin-bottom: 22px;
        }
        .side-section__head {
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: var(--font-display);
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            color: var(--muted);
            margin: 0 4px 12px;
        }
        .side-section__head i { color: var(--accent); font-size: 0.85rem; }
        .side-section__count {
            margin-left: auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 22px;
            height: 20px;
            padding: 0 7px;
            border-radius: 2px;
            background: var(--surface-2);
            border: 1px solid var(--border);
            font-size: 0.68rem;
            font-weight: 600;
            letter-spacing: 0;
            color: var(--text);
            font-family: var(--font-ui);
        }

        /* ----- Channel glider (horizontal TV channels) ----- */
        /* ----- Channel glider (kompakt) ----- */
        .channel-glider {
            position: relative;
            margin: 16px 0 0;
            padding: 0 24px;
        }
        .channel-glider__track {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scroll-padding: 44px;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .channel-glider__track::-webkit-scrollbar { display: none; }
        .channel-glider__track > .stream-card.stream-card--channel {
            flex: 0 0 200px;
            scroll-snap-align: start;
            margin-bottom: 0;
            padding: 8px 10px;
        }
        .channel-glider__btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 30px;
            height: 30px;
            border-radius: 8px;
            border: 1px solid var(--border-strong);
            background: color-mix(in srgb, var(--bg-1) 80%, transparent);
            backdrop-filter: blur(8px);
            color: var(--text);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 2;
            font-size: 0.85rem;
            transition: background 0.15s ease, transform 0.15s ease;
        }
        .channel-glider__btn:hover { background: var(--surface-elev); }
        .channel-glider__btn[disabled] { opacity: 0.3; pointer-events: none; }
        .channel-glider__btn--prev { left: 4px; }
        .channel-glider__btn--next { right: 4px; }

        /* ----- Match column (single card) ----- */
        .match-col {
            min-width: 0;
            display: block;
        }
        @media (min-width: 992px) {
            .match-col {
                position: relative;
                top: 0;
                align-self: start;
                padding-right: 0;
            }
        }

        .match-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 14px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .match-card__head {
            padding: 10px 10px 8px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            border-bottom: 1px solid var(--border);
            background: linear-gradient(180deg,
                color-mix(in srgb, var(--surface-elev) 60%, transparent) 0%,
                transparent 100%);
        }
        .match-tabs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            background: var(--bg-1);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 3px;
            gap: 3px;
        }
        .match-tab {
            background: transparent;
            border: 0;
            padding: 6px 8px;
            border-radius: 7px;
            color: var(--muted);
            font-family: var(--font-display);
            font-weight: 600;
            font-size: 0.78rem;
            letter-spacing: 0.01em;
            text-transform: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: background 0.15s ease, color 0.15s ease;
        }
        .match-tab:hover { color: var(--text); }
        .match-tab.is-active {
            background: var(--surface-elev);
            color: var(--text-strong);
            box-shadow: inset 0 0 0 1px var(--border-strong);
        }
        .match-tab__dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #ef4444;
            box-shadow: 0 0 0 2px color-mix(in srgb, #ef4444 35%, transparent);
            flex-shrink: 0;
        }
        .match-tab__icon { font-size: 0.78rem; }
        .match-tab__label { white-space: nowrap; }
        .match-tab__count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 18px;
            height: 16px;
            padding: 0 5px;
            border-radius: 999px;
            background: rgba(255,255,255,0.08);
            color: var(--muted);
            font-size: 0.65rem;
            font-weight: 700;
        }
        .match-tab.is-active .match-tab__count {
            background: linear-gradient(135deg, var(--accent), var(--accent-2));
            color: #fff;
        }

        /* Horizontal chip filter */
        .match-filter {
            display: flex;
            gap: 5px;
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
            padding: 2px 0;
        }
        .match-filter::-webkit-scrollbar { display: none; }
        .match-chip {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--muted);
            padding: 4px 10px 4px 8px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-family: var(--font-body);
            font-weight: 500;
            font-size: 0.72rem;
            cursor: pointer;
            white-space: nowrap;
            flex-shrink: 0;
            transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
        }
        .match-chip i { font-size: 0.78rem; }
        .match-chip:hover {
            color: var(--text);
            border-color: var(--border-strong);
        }
        .match-chip.is-active {
            background: linear-gradient(135deg, var(--accent), var(--accent-2));
            border-color: transparent;
            color: #fff;
            box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--accent) 60%, transparent);
        }

        .match-card__body {
            padding: 8px;
            overflow: hidden;
        }
        .match-pane {
            display: none;
        }
        .match-pane.is-active {
            display: flex;
            flex-direction: column;
            gap: 6px;
            overflow-y: auto;
            padding-right: 2px;
            max-height: 56vh;
        }
        .match-pane.is-active::-webkit-scrollbar { width: 4px; }
        .match-pane.is-active::-webkit-scrollbar-thumb {
            background: var(--surface-2);
            border-radius: 4px;
        }

        /* ----- Stream cards (match + channel shared) ----- */
        .stream-card {
            position: relative;
            display: block;
            padding: 14px;
            margin-bottom: 12px;
            border-radius: 8px;
            background: var(--surface);
            border: 1px solid var(--border);
            cursor: pointer;
            transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
        }
        .stream-card::before {
            display: none;
        }
        .stream-card:hover {
            border-color: var(--border-strong);
            background: var(--surface-2);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px -8px rgba(0,0,0,0.4);
            z-index: 10;
        }
        .stream-card.active {
            border-color: color-mix(in srgb, var(--accent) 80%, transparent);
            background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
            box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent),
                        0 8px 24px -12px color-mix(in srgb, var(--accent) 60%, transparent);
        }
        .stream-card.is-no-source { opacity: 0.6; }
        .stream-card.is-no-source:hover { opacity: 0.85; }

        .stream-card__top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            margin-bottom: 12px;
        }

        .stream-chip {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 9px;
            border-radius: 6px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            background: var(--surface-2);
            border: 1px solid var(--border);
            color: var(--muted);
            font-feature-settings: "tnum" 1;
        }
        .stream-chip i { font-size: 0.78rem; }
        .stream-chip--cat {
            color: var(--text);
            background: color-mix(in srgb, var(--accent) 14%, transparent);
            border-color: color-mix(in srgb, var(--accent) 36%, transparent);
        }
        .stream-chip--live {
            color: #fff;
            background: linear-gradient(135deg, #FF3D5A, #E11A33);
            border: none;
            box-shadow: 0 4px 12px -4px rgba(255, 61, 90, 0.4);
            padding: 4px 12px;
            font-family: var(--font-ui);
            font-weight: 700;
            letter-spacing: 0.05em;
            border-radius: 999px;
        }
        .stream-chip--live .live-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
            animation: livepulse 1.4s infinite;
        }
        .stream-chip--time { color: var(--text); }
        .stream-chip--247 {
            background: color-mix(in srgb, var(--accent-2) 18%, transparent);
            border-color: color-mix(in srgb, var(--accent-2) 45%, transparent);
            color: var(--text);
        }

                .stream-card__teams {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 10px;
            font-size: 1.1rem;
            text-transform: uppercase;
        }
                .team { display: flex; align-items: center; gap: 8px; min-width: 0; }
        
        .team__logo {
            width: 32px;
            height: 32px;
            object-fit: contain;
            border-radius: 2px;
            background: rgba(255,255,255,0.06);
            padding: 3px;
            flex-shrink: 0;
        }
        .team__logo--placeholder {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--muted);
            font-size: 1rem;
        }
                .team__name {
            font-family: var(--font-display);
            font-weight: 800;
            font-size: 1.05rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            letter-spacing: 0.05em;
        }
                .team-vs {
            font-family: var(--font-display);
            font-size: 0.85rem;
            color: var(--accent);
            font-weight: 800;
            padding: 4px 8px;
            background: var(--surface-2);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .stream-card__title-only {
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: var(--font-display);
            font-size: 1rem;
            font-weight: 600;
        }
        .stream-card__title-only i { color: var(--accent); }

        .stream-card__bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid var(--border);
            font-size: 0.75rem;
            color: var(--muted);
        }
        .stream-card__channel {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-weight: 500;
        }
        .stream-card__channel i { color: var(--accent); font-size: 0.85rem; }
        .stream-card__source-warn {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            color: #FBBF24;
            font-weight: 500;
        }
        .stream-card__cta-arrow {
            color: var(--muted-2);
            font-size: 0.95rem;
            transition: transform 0.18s ease, color 0.18s ease;
        }
        .stream-card:hover .stream-card__cta-arrow {
            color: var(--accent);
            transform: translate(2px, -2px);
        }

        /* ----- Channel card row (compact) ----- */
        .stream-card--channel { padding: 8px 10px; }
        .stream-card__channel-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }
                .stream-card__channel-logo {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            background: var(--surface-2);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
            border: 1px solid var(--border-strong);
        }
        .stream-card__channel-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 2px;
        }
        .stream-card__channel-fallback {
            color: var(--muted);
            font-size: 0.95rem;
        }
        .stream-card__channel-meta {
            flex: 1 1 auto;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 1px;
        }
        .stream-card__channel-name {
            font-family: var(--font-display);
            font-weight: 600;
            font-size: 0.85rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            letter-spacing: -0.01em;
        }
        .stream-card__channel-row .stream-chip--247 {
            padding: 1px 6px;
            font-size: 0.62rem;
        }
        .stream-card__channel-row .stream-card__cta-arrow {
            font-size: 0.78rem;
        }

        /* ----- Empty state ----- */
        .empty-state {
            padding: 24px 12px;
            text-align: center;
            font-size: 0.82rem;
            color: var(--muted);
            background: transparent;
            border: 1px dashed var(--border);
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }
        .empty-state i { font-size: 1.4rem; color: var(--muted-2); }

        /* ----- Footer ----- */
        .bottombar {
            margin-top: 0;
            padding: 8px 20px;
            background: color-mix(in srgb, var(--bg-1) 75%, transparent);
            border-top: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-shrink: 0;
            min-height: 44px;
        }
        .bottombar__menu {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            font-size: 0.78rem;
            flex: 1 1 auto;
            min-width: 0;
        }
        .bottombar__menu a { color: var(--muted); white-space: nowrap; }
        .bottombar__menu a:hover { color: var(--accent); }
        .bottombar__social {
            display: flex;
            gap: 6px;
            justify-content: center;
            flex-shrink: 0;
        }
        .bottombar__social a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border-radius: 8px;
            background: var(--surface);
            border: 1px solid var(--border);
            color: var(--text);
            font-size: 0.85rem;
            transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
        }
        .bottombar__social a:hover { color: var(--accent); border-color: var(--border-strong); transform: translateY(-1px); }
        .bottombar__copy {
            text-align: right;
            font-size: 0.72rem;
            color: var(--muted);
            flex-shrink: 0;
        }

        /* ----- Mobile tweaks ----- */
        @media (max-width: 991.98px) {
            .topbar { height: 52px; padding: 0 14px; gap: 10px; }
            .topbar__nav { display: none; }
            .topbar__social { display: none; }
            .topbar__hamburger { display: inline-flex; }
            .topbar-drawer { top: 52px; }
            
            .stream-grid { 
                padding: 14px; 
                display: flex;
                flex-direction: column;
            }
            .banner-strip { margin: 12px 14px 0; }

            .channel-glider { padding: 0 14px; }
            .channel-glider__btn { display: none; }

            .stream-main { display: flex; flex-direction: column; gap: 16px; }
            .match-col {
                display: block;
                position: relative;
                max-height: none;
            }
            .match-card {
                border-radius: 12px;
            }

            .bottombar {
                flex-direction: column;
                gap: 8px;
                padding: 10px 14px;
            }
            .bottombar__menu { justify-content: center; }
            .bottombar__copy { text-align: center; }
        }

                .team--home { justify-content: flex-end; text-align: right; }
                .team--away { justify-content: flex-start; text-align: left; }
        .team--away         .team__name {
            font-family: var(--font-display);
            font-weight: 800;
            font-size: 1.05rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            letter-spacing: 0.05em;
        }

        /* ----- Final layout balance tuning ----- */
        @media (min-width: 1100px) {
            .banner-strip {
                margin: 18px 20px 0;
            }

            .channel-glider {
                margin: 12px 0 0;
                padding: 0 20px;
            }

            .stream-grid {
                gap: 18px;
                padding: 18px 20px 14px;
                /* Mac listesi %30; 320px alt siniri kartlar sikismasin diye. */
                grid-template-columns: minmax(0, 1fr) minmax(320px, 30%);
                grid-template-rows: clamp(420px, 60vh, 720px);
                align-items: stretch;
            }

            .stream-main {
                gap: 12px;
                height: 100%;
                min-height: 0;
            }

            .player-wrap {
                flex: 1 1 auto;
                min-height: 0;
            }

            /* Player fills the explicit row height; video inside stays 16:9 via object-fit. */
            .player-aspect {
                aspect-ratio: auto;
                height: 100%;
                max-height: none;
                min-height: 0;
            }

            .match-col {
                display: flex;
                min-height: 0;
            }

            .match-card {
                flex: 1 1 auto;
                min-height: 0;
                display: flex;
                flex-direction: column;
                width: 100%;
            }

            .match-card__body {
                padding: 7px;
                flex: 1 1 auto;
                min-height: 0;
                overflow: hidden;
            }

            .match-pane.is-active {
                max-height: none;
                flex: 1 1 auto;
                min-height: 0;
                overflow-y: auto;
            }
        }

        @media (min-width: 992px) and (max-width: 1099.98px) {
            .banner-strip {
                margin: 16px 16px 0;
            }

            .channel-glider {
                margin: 10px 0 0;
                padding: 0 16px;
            }

            .stream-grid {
                gap: 16px;
                padding: 16px;
                grid-template-columns: minmax(0, 1fr) minmax(280px, 30%);
                grid-template-rows: clamp(380px, 62vh, 660px);
                align-items: stretch;
            }

            .stream-main {
                gap: 12px;
                height: 100%;
                min-height: 0;
            }

            .player-wrap {
                flex: 1 1 auto;
                min-height: 0;
            }

            .player-aspect {
                aspect-ratio: auto;
                height: 100%;
                max-height: none;
                min-height: 0;
            }

            .match-col {
                display: flex;
                min-height: 0;
            }

            .match-card {
                flex: 1 1 auto;
                min-height: 0;
                display: flex;
                flex-direction: column;
                width: 100%;
            }

            .match-card__body {
                flex: 1 1 auto;
                min-height: 0;
                overflow: hidden;
            }

            .match-pane.is-active {
                max-height: none;
                flex: 1 1 auto;
                min-height: 0;
                overflow-y: auto;
            }
        }

        @media (max-width: 991.98px) {
            .stream-grid {
                padding: 12px;
                gap: 12px;
            }

            .banner-strip {
                margin: 10px 12px 0;
            }

            .channel-glider {
                margin: 10px 0 0;
                padding: 0 12px;
            }

            .stream-main {
                gap: 12px;
            }

            .match-card__head {
                padding: 8px 8px 7px;
                gap: 7px;
            }

            .match-card__body {
                padding: 6px;
            }
        }

        @media (max-width: 430px) {
            .stream-grid {
                padding: 10px;
                gap: 10px;
            }

            .channel-glider__track > .stream-card.stream-card--channel {
                flex-basis: 164px;
            }
        }

        /* =================================================================
           Match list scroll behaviour — final overrides
           -----------------------------------------------------------------
           At >=992px the match column is height-capped by .stream-grid's
           grid-template-rows clamp() (matches player height). The card head
           (tabs + filter chips) stays pinned, the inner pane scrolls.
           At <992px (mobile) the panel flows naturally with the page; we do
           NOT force a tiny internal scroller.
           These rules sit at end-of-file so they win source order over the
           several historic .match-pane.is-active definitions earlier.
           ================================================================= */
        @media (min-width: 992px) {
            .match-card {
                height: 100%;
                min-height: 0;
                display: flex;
                flex-direction: column;
            }

            .match-card__head {
                flex: 0 0 auto;
            }

            .match-card__body {
                display: flex;
                flex-direction: column;
                flex: 1 1 auto;
                min-height: 0;
                overflow: hidden;
            }

            .match-pane.is-active {
                flex: 1 1 auto;
                min-height: 0;
                max-height: none;
                overflow-y: auto;
                overscroll-behavior: contain;
                padding-right: 6px;
                scrollbar-width: thin;
                scrollbar-color: #2d4161 transparent;
            }

            .match-pane.is-active::-webkit-scrollbar {
                width: 6px;
            }

            .match-pane.is-active::-webkit-scrollbar-track {
                background: transparent;
            }

            .match-pane.is-active::-webkit-scrollbar-thumb {
                background: #2d4161;
                border-radius: 999px;
            }

            .match-pane.is-active::-webkit-scrollbar-thumb:hover {
                background: #3a527d;
            }
        }

        @media (max-width: 991.98px) {
            .match-card,
            .match-card__body {
                overflow: visible;
            }

            .match-pane.is-active {
                max-height: none;
                overflow: visible;
                padding-right: 0;
            }
        }

/* =================================================================
   Match list final overrides (scroll + compact)
   ----------------------------------------------------------------
   body.stream-page prefix specificity'yi 0,1,1'e cikararak daha
   onceki .match-card / .stream-card / .team* / .stream-chip
   tanimlarini source-order'dan bagimsiz ezer. Yalnizca public
   streaming front'a (body.stream-page) uygulanir.
   ================================================================= */

@media (min-width: 992px) {
    body.stream-page .match-card {
        max-height: clamp(420px, 60vh, 720px);
        height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    body.stream-page .match-card__head { flex: 0 0 auto; }

    body.stream-page .match-card__body {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    body.stream-page .match-pane.is-active {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 6px;
        scrollbar-width: thin;
        scrollbar-color: #2d4161 transparent;
        gap: 6px;
    }

    body.stream-page .match-pane.is-active::-webkit-scrollbar { width: 6px; }
    body.stream-page .match-pane.is-active::-webkit-scrollbar-track { background: transparent; }
    body.stream-page .match-pane.is-active::-webkit-scrollbar-thumb {
        background: #2d4161;
        border-radius: 999px;
    }
    body.stream-page .match-pane.is-active::-webkit-scrollbar-thumb:hover { background: #3a527d; }
}

@media (max-width: 991.98px) {
    body.stream-page .match-card,
    body.stream-page .match-card__body,
    body.stream-page .match-pane.is-active {
        max-height: none;
        overflow: visible;
    }
}

/* ----- Compact match card item ----- */
body.stream-page .stream-card--match {
    padding: 7px 9px;
    border-radius: 10px;
}

body.stream-page .stream-card--match .stream-card__top {
    margin-bottom: 6px;
    gap: 5px;
}

body.stream-page .stream-card--match .stream-chip {
    padding: 2px 7px;
    font-size: 0.62rem;
    letter-spacing: 0.05em;
}
body.stream-page .stream-card--match .stream-chip i { font-size: 0.7rem; }
body.stream-page .stream-card--match .stream-chip--live { padding: 2px 9px; }
body.stream-page .stream-card--match .stream-chip--live .live-dot { width: 6px; height: 6px; }

body.stream-page .stream-card--match .stream-card__body {
    min-height: 0;
}

body.stream-page .stream-card--match .stream-card__teams {
    gap: 6px;
    font-size: 0.95rem;
}

body.stream-page .stream-card--match .team { gap: 6px; }

body.stream-page .stream-card--match .team__logo {
    width: 22px;
    height: 22px;
    padding: 2px;
    border-radius: 6px;
}

body.stream-page .stream-card--match .team__name {
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

body.stream-page .stream-card--match .team-vs {
    font-size: 0.66rem;
    padding: 2px 6px;
    letter-spacing: 0.06em;
}

body.stream-page .stream-card--match .stream-card__title-only {
    min-height: 0;
    font-size: 0.85rem;
    gap: 6px;
}

body.stream-page .stream-card--match .stream-card__bottom {
    margin-top: 6px;
    padding-top: 6px;
    font-size: 0.68rem;
    gap: 6px;
}

body.stream-page .stream-card--match .stream-card__bottom-left { gap: 1px; }
body.stream-page .stream-card--match .stream-card__channel { gap: 4px; }
body.stream-page .stream-card--match .stream-card__channel i { font-size: 0.78rem; }
body.stream-page .stream-card--match .stream-card__time-meta { gap: 4px; font-size: 0.66rem; }
body.stream-page .stream-card--match .stream-card__source-warn { gap: 4px; font-size: 0.66rem; }
body.stream-page .stream-card--match .stream-card__cta-arrow { font-size: 0.82rem; }
