.stream-page-container {
    padding: 0;
    margin: 0.75rem auto 0;
}

/* Chat Ayarları Modal Fixleri - Her zaman en üstte ve her boyutta geçerli */
.chat-settings-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    /* display: flex !important; <--- BU SATIR KALDIRILDI, inline display:none'ı bozuyordu */
}

/* Modal görünür olduğunda flex yapısını aktif et */
.chat-settings-modal[style*="display: block"],
.chat-settings-modal[style*="display: flex"],
.chat-settings-modal.active {
    display: flex !important;
}

.chat-settings-nirvana-panel {
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: var(--nirvana-card-background-color, #111) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

#stream-chat-settings-form {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
}

.chat-settings-nirvana-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    min-height: 0 !important;
    padding: 1.5rem !important;
    max-height: calc(90vh - 140px) !important;
    /* Header + Footer payı */
}

.chat-settings-nirvana-footer {
    flex-shrink: 0 !important;
    padding: 1rem 1.5rem !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.chat-settings-emotes-table-wrap {
    max-height: 250px !important;
    overflow-y: auto !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    margin-top: 10px !important;
}


body.stream-page .stream-page-main-wrapper {
    padding: 0 0.5rem;
    margin: 0.75rem auto 0;
    max-width: 1920px;
    padding-bottom: 2rem;
}

/* Chat açıkken container kaymasını engelle */
body.stream-page.chat-open .stream-page-main-wrapper {
    transform: none !important;
}

.stream-layout {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 0.5rem;
    padding-bottom: 2rem;
    align-items: flex-start;
    position: relative;
}

.stream-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}


@media (min-width: 769px) {
    .stream-page-container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 0 !important;
    }

    .stream-page-main-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 0 !important;
    }

    body.stream-page .stream-page-main-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 0 !important;
    }

    .stream-layout {
        gap: 0 !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .stream-main {
        gap: 0 !important;
    }

    .stream-player-container {
        border-radius: 0 !important;
        border: none !important;
        max-width: none !important;
        margin: 0 !important;
        margin-bottom: 1rem !important;
    }

    .stream-info-section {
        border: none !important;
        border-radius: 0 !important;
        border-top: 1px solid var(--nirvana-border-color, rgba(33, 33, 33, 0.8)) !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        margin-bottom: 2rem !important;
    }

    .stream-mobile-info {
        display: none !important;
    }

    .stream-chat-container {
        display: flex !important;
    }
}

.stream-player-container {
    width: 100%;
    max-width: none;
    margin: 0;
    margin-bottom: 0rem;
    position: relative;
    background: var(--overlay-dark-90, rgba(0, 0, 0, 0.9));
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--nirvana-border-color, rgba(33, 33, 33, 0.8));
}

.stream-player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
}

/* Yatay mobil: padding-bottom yüksekliği taşırıyor — vh ile sınırla */
@media (max-width: 1024px) and (orientation: landscape) {
    .stream-player-wrapper {
        padding-bottom: 0;
        height: 100svh;
        /* tam ekran yüksekliği */
        max-height: 100svh;
    }

    .stream-player-container {
        max-height: 100svh;
    }
}

.stream-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Ambient SVG Arka Plan ── */
.stream-player-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.stream-player-bg-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ── Offline Overlay ── */
.stream-offline-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nirvana-card-background-color, #111);
}

.stream-offline-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ── HLS Shell ── */
.stream-hls-shell {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: #000;
}

.stream-hls-player-wrap {
    position: absolute;
    inset: 0;
}

.stream-hls-video-viewport {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #000;
    overflow: hidden;
}

.stream-hls-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
    /* cover kırpıyordu, contain tam video gösterir */
    object-position: center;
    background: #000;
}

.stream-hls-video::-webkit-media-controls {
    display: none !important;
}

/* ── Özel Kontroller ── */
.stream-player-controls {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 0.85rem 1rem 1rem;
    padding-top: 2.75rem;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.32) 48%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.stream-player-controls.is-visible {
    opacity: 1;
    pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
    .stream-hls-player-wrap:hover .stream-player-controls {
        opacity: 1;
        pointer-events: auto;
    }
}

.stream-ctrl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 0.35rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}

.stream-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Play/Pause icon via CSS */
.stream-play-btn::before,
.stream-play-btn::after {
    content: '';
    display: block;
    position: absolute;
}

.stream-play-btn::before {
    border-style: solid;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.85);
    border-width: 7px 0 7px 12px;
}

.stream-play-btn.is-paused::before {
    border: none;
    width: 3px;
    height: 14px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 5px 0 0 rgba(255, 255, 255, 0.85);
}

/* Mute icon */
.stream-mute-btn::before {
    content: '🔊';
    font-size: 0.9rem;
    line-height: 1;
}

.stream-mute-btn.is-muted::before {
    content: '🔇';
}

.stream-ctrl-svg {
    display: block;
    width: 1.1rem;
    height: 1.1rem;
}

/* Progress bar */
.stream-progress-track {
    flex: 1;
    min-width: 2rem;
    height: 0.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
    overflow: hidden;
    touch-action: none;
}

.stream-progress-bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: rgba(var(--primary-rgb, 59, 130, 246), 0.72);
    pointer-events: none;
    transition: width 0.2s linear;
}

.stream-time {
    font-size: 0.65rem;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
    white-space: nowrap;
}

/* Quality select */
.stream-quality-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.stream-quality-select {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.35rem;
    border-radius: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.72);
    max-width: 5rem;
    cursor: pointer;
}

/* Screen reader only */
.stream-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Loading Spinner ── */
.stream-player-loading {
    position: absolute;
    inset: 0;
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
}

.stream-player-loading-spin {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: rgba(var(--primary-rgb, 59, 130, 246), 0.7);
    animation: stream-spin 0.75s linear infinite;
}

@keyframes stream-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Sesi Aç Banner'ı ── */
#streamUnmuteBar {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(8px);
    white-space: nowrap;
    animation: stream-unmute-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: background 0.2s, border-color 0.2s;
    pointer-events: auto;
}

#streamUnmuteBar:hover {
    background: rgba(var(--primary-rgb, 59, 130, 246), 0.28);
    border-color: rgba(var(--primary-rgb, 59, 130, 246), 0.45);
}

#streamUnmuteBar b {
    color: rgba(255, 255, 255, 1);
}

@keyframes stream-unmute-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}



.stream-live-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(var(--theme-danger-rgb, 220, 38, 38), 0.9);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--overlay-light-95, rgba(255, 255, 255, 0.95));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.stream-live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--overlay-light-100, rgba(255, 255, 255, 1));
    animation: pulse 2s ease-in-out infinite;
}

/* Simplified base info styles - will be overridden by premium block */
.stream-info-section {
    width: 100%;
    margin-bottom: 2rem;
}


.stream-meta-right {
    display: flex;
    align-items: center;
}

.stream-category {
    padding: 0.375rem 0.75rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(var(--primary-rgb, 59, 130, 246), 0.9);
}

.stream-viewers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--overlay-light-70, rgba(255, 255, 255, 0.7));
}

.stream-viewers svg {
    width: 1rem;
    height: 1rem;
}

.stream-follow-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(139, 92, 246, 0.8));
    border: none;
    border-radius: 0.5rem;
    color: var(--overlay-light-95, rgba(255, 255, 255, 0.95));
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
}

.stream-follow-button:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(139, 92, 246, 1));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.stream-follow-button svg {
    width: 1rem;
    height: 1rem;
}

.stream-prediction-button-container {
    display: none;
    align-items: center;
    flex-shrink: 0;
}

/* Premium Mobile Stream Info Section */
/* Mobile overrides cleaned up - handled by premium responsive block */
.stream-info-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .stream-info-right {
        width: 100% !important;
        justify-content: flex-start !important;
        gap: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--nirvana-border-color, rgba(33, 33, 33, 0.6));
    }

    .stream-info-live-pill,
    .stream-info-offline-pill {
        font-size: 0.65rem !important;
        padding: 0.25rem 0.5rem !important;
    }

    .stream-prediction-button {
        padding: 0.625rem 1.25rem !important;
        font-size: 0.875rem !important;
        border-radius: 0.5rem !important;
        background: linear-gradient(135deg, rgba(83, 252, 24, 0.9), rgba(59, 130, 246, 0.9)) !important;
        box-shadow: 0 4px 15px rgba(83, 252, 24, 0.25) !important;
    }
}



.stream-prediction-button {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(139, 92, 246, 0.9));
    border: none;
    border-radius: 0.5rem;
    color: var(--overlay-light-95, rgba(255, 255, 255, 0.95));
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
}

.stream-prediction-button:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(139, 92, 246, 1));
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.5);
}

.stream-prediction-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.stream-prediction-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.stream-prediction-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark-80, rgba(0, 0, 0, 0.8));
    backdrop-filter: blur(4px);
}

.stream-prediction-modal-content {
    position: relative;
    background: var(--nirvana-card-background-color, rgb(17, 17, 17));
    border: 1px solid var(--nirvana-border-color, rgba(33, 33, 33, 0.8));
    border-radius: 0.75rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 10000;
}

.stream-prediction-modal.active .stream-prediction-modal-content {
    transform: scale(1);
}

.stream-prediction-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--overlay-light-10, rgba(255, 255, 255, 0.1));
}

.stream-prediction-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--overlay-light-95, rgba(255, 255, 255, 0.95));
    margin: 0;
}

.stream-prediction-modal-close {
    background: transparent;
    border: none;
    color: var(--overlay-light-70, rgba(255, 255, 255, 0.7));
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.stream-prediction-modal-close:hover {
    background: var(--overlay-light-10, rgba(255, 255, 255, 0.1));
    color: var(--overlay-light-95, rgba(255, 255, 255, 0.95));
}

.stream-prediction-modal-body {
    padding: 1.5rem;
    color: var(--nirvana-normal-text-color);
}

.stream-prediction-rulet-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.stream-prediction-track-container {
    position: relative;
    width: 100%;
    height: 8rem;
    margin: 0 auto;
}

.stream-prediction-track-wrapper {
    position: absolute;
    margin: 0 auto;
    display: flex;
    height: 9rem;
    width: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--overlay-light-20, rgba(185, 185, 185, 0.2));
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
}

.stream-prediction-track-inner {
    position: relative;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.5rem 0;
    gap: 6px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
}

.stream-prediction-track-line {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 10;
    height: 90%;
    width: 4px;
    transform: translate(-50%, -50%);
    border-radius: 9999px;
    background-color: rgba(var(--theme-accent-rgb, 139, 92, 246), 0.8);
}

.stream-prediction-track {
    display: flex;
    gap: 6px;
    will-change: transform;
}

.stream-prediction-card {
    flex-shrink: 0;
    border-radius: 0.5rem;
    border: 2px solid var(--overlay-light-50, rgba(185, 185, 185, 0.5));
    width: 80px;
    height: 80px;
    transform: scale(1);
    z-index: 0;
    opacity: 0.7;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--nirvana-card-background-color, rgb(17, 17, 17));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.stream-prediction-card.centered {
    transform: scale(1.3);
    z-index: 10;
    opacity: 1;
    filter: brightness(1.3);
    box-shadow: var(--overlay-light-90, rgba(185, 185, 185, 0.9)) 0px 0px 0px 5px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.stream-prediction-card.predicted {
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    opacity: 1;
    filter: brightness(1.2);
}

@keyframes pulse-prediction {
    /* box-shadow keyframe kaldırıldı (paint maliyeti) — transform + opacity ile pulse */
    0% {
        transform: scale(1);
        opacity: 0.85;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.85;
    }
}

.stream-prediction-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.stream-prediction-user-prediction {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(var(--primary-rgb, 59, 130, 246), 0.1);
    border: 1px solid rgba(var(--primary-rgb, 59, 130, 246), 0.3);
    border-radius: 0.5rem;
}

.stream-prediction-selected-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--overlay-light-90, rgba(255, 255, 255, 0.9));
}

.stream-prediction-selected-info span:first-child {
    font-weight: 600;
}

.stream-prediction-winners-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(var(--theme-success-2-rgb, 34, 197, 94), 0.1);
    border: 1px solid rgba(var(--theme-success-2-rgb, 34, 197, 94), 0.3);
    border-radius: 0.5rem;
}

.stream-prediction-winners-header {
    margin-bottom: 1.5rem;
}

.stream-prediction-winners-header h4 {
    margin: 0;
    color: var(--overlay-light-95, rgba(255, 255, 255, 0.95));
    font-size: 1.25rem;
}

.stream-prediction-winners-header h4 span {
    color: rgba(var(--theme-success-2-rgb, 34, 197, 94), 0.9);
    font-weight: 700;
}

.stream-prediction-winners-list {
    width: 100%;
}

.stream-prediction-winners-table {
    width: 100%;
}

.stream-prediction-winners-table table {
    width: 100%;
    background: var(--overlay-dark-90-card, rgba(17, 17, 17, 0.5));
    border-collapse: collapse;
}

.stream-prediction-winners-table th {
    background: rgba(var(--theme-success-2-rgb, 34, 197, 94), 0.2);
    color: var(--overlay-light-90, rgba(255, 255, 255, 0.9));
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    border: 1px solid rgba(var(--theme-success-2-rgb, 34, 197, 94), 0.3);
}

.stream-prediction-winners-table td {
    padding: 0.75rem;
    color: var(--nirvana-normal-text-color);
    border: 1px solid var(--overlay-light-10, rgba(255, 255, 255, 0.1));
}

.stream-prediction-winners-table tr:nth-child(even) {
    background: rgba(var(--theme-success-2-rgb, 34, 197, 94), 0.05);
}

@media (max-width: 768px) {
    .stream-prediction-winners-section {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .stream-prediction-winners-header h4 {
        font-size: 1.125rem;
    }

    .stream-prediction-winners-table th,
    .stream-prediction-winners-table td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

.stream-prediction-game-select-container {
    position: relative;
}

.stream-prediction-game-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--nirvana-card-background-color, rgb(17, 17, 17));
    border: 1px solid var(--overlay-light-10, rgba(255, 255, 255, 0.1));
    border-radius: 0.5rem;
    padding: 0.75rem 2.5rem 0.75rem 4rem;
    color: var(--overlay-light-90, rgba(255, 255, 255, 0.9));
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    min-width: 200px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
}

.stream-prediction-game-select:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background-color: var(--social-button-hover-bg, rgb(23, 23, 23));
}

.stream-prediction-game-select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.stream-prediction-game-select option {
    background: var(--nirvana-card-background-color, rgb(17, 17, 17));
    color: var(--overlay-light-90, rgba(255, 255, 255, 0.9));
    padding: 0.5rem;
}

.stream-prediction-game-select-icon {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0.375rem;
    border: 1px solid var(--overlay-light-10, rgba(255, 255, 255, 0.1));
    pointer-events: none;
    z-index: 1;
    object-fit: cover;
}

.stream-prediction-spin-button {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(139, 92, 246, 0.9));
    border: none;
    border-radius: 0.5rem;
    color: var(--overlay-light-95, rgba(255, 255, 255, 0.95));
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
}

.stream-prediction-spin-button:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(139, 92, 246, 1));
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.5);
}

.stream-prediction-spin-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.stream-prediction-result-button {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(16, 185, 129, 0.9));
    border: none;
    border-radius: 0.5rem;
    color: var(--overlay-light-95, rgba(255, 255, 255, 0.95));
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
    animation: stream-prediction-pulse 2s ease-in-out infinite;
}

@keyframes stream-prediction-pulse {
    /* box-shadow keyframe kaldırıldı — sadece scale + opacity */
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.stream-prediction-result-button:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 1), rgba(16, 185, 129, 1));
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.5);
    animation: none;
}

.stream-prediction-result-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .stream-prediction-button {
        padding: 0.75rem 1.5rem;
        font-size: 11px;
    }

    .stream-prediction-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .stream-prediction-modal-header {
        padding: 1.25rem;
    }

    .stream-prediction-modal-title {
        font-size: 1.25rem;
    }

    .stream-prediction-modal-body {
        padding: 1.25rem;
    }

    .stream-prediction-track-container {
        height: 6rem;
    }

    .stream-prediction-track-wrapper {
        height: 7rem;
    }

    .stream-prediction-card {
        width: 60px;
        height: 60px;
    }

    .stream-prediction-controls {
        flex-direction: column;
        gap: 0.75rem;
    }

    .stream-prediction-game-select {
        min-width: 100%;
        padding: 0.625rem 2rem 0.625rem 2.75rem;
        font-size: 0.875rem;
    }

    .stream-prediction-game-select-icon {
        width: 28px;
        height: 28px;
        left: 0.5rem;
    }

    .stream-prediction-spin-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
    }

    .stream-prediction-result-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
        margin-top: 0.75rem;
    }
}

.streamer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--overlay-light-10, rgba(255, 255, 255, 0.1));
    border-bottom: 1px solid var(--overlay-light-10, rgba(255, 255, 255, 0.1));
    margin-bottom: 1rem;
}

.streamer-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.streamer-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.streamer-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));
    border: 2px solid rgba(59, 130, 246, 0.4);
    color: var(--overlay-light-90, rgba(255, 255, 255, 0.9));
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.streamer-details {
    flex: 1;
}

.streamer-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--overlay-light-95, rgba(255, 255, 255, 0.95));
    margin-bottom: 0.25rem;
}

.streamer-followers {
    font-size: 0.875rem;
    color: var(--overlay-light-60, rgba(255, 255, 255, 0.6));
}

.stream-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stream-tag {
    padding: 0.375rem 0.75rem;
    background: var(--social-button-bg, rgba(33, 33, 33, 0.5));
    border: 1px solid var(--overlay-light-10, rgba(255, 255, 255, 0.1));
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--overlay-light-70, rgba(255, 255, 255, 0.7));
}

.stream-mobile-info {
    display: none;
}

/* Chat Container */
.stream-chat-container {
    width: 410px;
    display: flex;
    flex-direction: column;
    background: var(--nirvana-card-background-color, rgb(17, 17, 17));
    border: 1px solid var(--nirvana-border-color, rgba(33, 33, 33, 0.8));
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
    height: 844px;
}

.stream-chat-header {
    padding: 0.5rem 1.25rem;
    border-bottom: 1px solid var(--overlay-light-10, rgba(255, 255, 255, 0.1));
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--social-button-bg, rgba(33, 33, 33, 0.5));
    flex-shrink: 0;
}

.stream-chat-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--overlay-light-95, rgba(255, 255, 255, 0.95));
    margin: 0;
}

.stream-chat-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stream-chat-viewers {
    font-size: 0.75rem;
    color: var(--overlay-light-60, rgba(255, 255, 255, 0.6));
}

.stream-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
}

.stream-chat-embed-wrapper {
    flex: 1;
    overflow: hidden;
    min-height: 0;
    position: relative;
}

.stream-chat-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.stream-chat-message {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stream-chat-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.stream-chat-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stream-chat-username {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--overlay-light-90, rgba(255, 255, 255, 0.9));
}

.stream-chat-badge {
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stream-chat-badge-mod {
    background: rgba(var(--theme-success-2-rgb, 34, 197, 94), 0.2);
    color: rgba(var(--theme-success-2-rgb, 34, 197, 94), 0.9);
    border: 1px solid rgba(var(--theme-success-2-rgb, 34, 197, 94), 0.3);
}

.stream-chat-badge-sub {
    background: rgba(139, 92, 246, 0.2);
    color: rgba(var(--theme-accent-rgb, 139, 92, 246), 0.9);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.stream-chat-badge-number {
    font-size: 0.75rem;
    color: var(--overlay-light-50, rgba(255, 255, 255, 0.5));
    font-weight: 500;
}

.stream-chat-time {
    font-size: 0.75rem;
    color: var(--overlay-light-40, rgba(255, 255, 255, 0.4));
}

.stream-chat-message-text {
    font-size: 0.875rem;
    color: var(--nirvana-normal-text-color);
    line-height: 1.4;
    word-wrap: break-word;
}

.stream-chat-message-text .stream-chat-emote {
    height: 1.2em;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    margin: 0 2px;
}

.stream-chat-message-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stream-chat-message-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.stream-chat-message:hover .stream-chat-message-actions {
    opacity: 1;
}

.stream-chat-action-btn {
    background: var(--overlay-light-10, rgba(255, 255, 255, 0.1));
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--overlay-light-70, rgba(255, 255, 255, 0.7));
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    min-width: 24px;
    height: 24px;
}

.stream-chat-action-btn:hover {
    background: var(--overlay-light-20, rgba(255, 255, 255, 0.2));
    color: var(--overlay-light-100, rgba(255, 255, 255, 1));
    transform: scale(1.1);
}

.stream-chat-action-btn:active {
    transform: scale(0.95);
}

.stream-chat-action-delete:hover {
    background: rgba(239, 68, 68, 0.3);
    color: var(--theme-danger, #ef4444);
}

.stream-chat-action-ban:hover {
    background: rgba(239, 68, 68, 0.3);
    color: var(--theme-danger, #ef4444);
}

.stream-chat-action-pin:hover,
.stream-chat-action-unpin:hover {
    background: rgba(59, 130, 246, 0.3);
    color: var(--primary-color, #3b82f6);
}

@media (max-width: 768px) {
    .stream-chat-message-actions {
        opacity: 1;
    }
}

.stream-chat-input-container {
    border-top: 1px solid var(--overlay-light-10, rgba(255, 255, 255, 0.1));
    background: var(--social-button-bg, rgba(33, 33, 33, 0.5));
    flex-shrink: 0;
    padding: 0.75rem;
    position: relative;
}

.stream-chat-emotes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid var(--overlay-light-10, rgba(255, 255, 255, 0.1));
    border-radius: 0.5rem;
    max-height: 150px;
    overflow-y: auto;
    position: relative;
    z-index: 1000;
}

.stream-chat-emote-item {
    width: 32px;
    height: 32px;
    padding: 4px;
    border: none;
    background: var(--overlay-light-05, rgba(255, 255, 255, 0.05));
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stream-chat-emote-item:hover {
    background: var(--overlay-light-10, rgba(255, 255, 255, 0.1));
    transform: scale(1.1);
}

.stream-chat-emote-item:hover::after {
    content: attr(title);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 0.375rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    margin-top: 0.5rem;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.stream-chat-emote-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stream-chat-emote-button {
    padding: 0.75rem;
    background: rgba(227, 146, 20, 0.2);
    border: 1px solid rgba(227, 146, 20, 0.3);
    border-radius: 0.375rem;
    color: rgba(var(--primary-rgb, 227, 146, 20), 0.9);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stream-chat-emote-button:hover {
    background: rgba(227, 146, 20, 0.3);
    border-color: rgba(227, 146, 20, 0.5);
}

.stream-chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.stream-chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--social-button-bg, rgba(33, 33, 33, 0.5));
    border: 1px solid var(--overlay-light-10, rgba(255, 255, 255, 0.1));
    border-radius: 0.375rem;
    color: var(--overlay-light-90, rgba(255, 255, 255, 0.9));
    font-size: 0.875rem;
    font-family: inherit;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.stream-chat-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: var(--overlay-dark-30, rgba(33, 33, 33, 0.7));
}

.stream-chat-input::placeholder {
    color: var(--overlay-light-40, rgba(255, 255, 255, 0.4));
}

.stream-chat-send-button {
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.375rem;
    color: rgba(var(--primary-rgb, 59, 130, 246), 0.9);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stream-chat-send-button:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
    color: rgba(var(--primary-rgb, 59, 130, 246), 1);
}

.stream-chat-send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.stream-chat-send-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Mobil uyumluluk */
@media (max-width: 1024px) {
    .stream-layout {
        flex-direction: column;
    }

    .stream-chat-container {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
    }
}

@media (max-width: 768px) {
    .stream-page-container {
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }

    .stream-layout {
        padding: 0;
        gap: 0;
    }

    .stream-main {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .stream-player-container {
        display: block !important;
        width: 100% !important;
        border-radius: 0;
        border-left: none;
        border-right: none;
        position: relative !important;
    }

    .stream-player-wrapper {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        padding-bottom: 56.25% !important;
        height: 0 !important;
    }

    .stream-iframe {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .stream-info-section {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        margin-bottom: 0.5rem !important;
        padding: 1rem !important;
    }

    .stream-mobile-info {
        display: none !important;
    }

    .stream-title {
        font-size: 1.25rem;
    }

    .stream-info-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .stream-info-left {
        flex: 1;
        min-width: 0;
    }

    .stream-prediction-button-container {
        flex-shrink: 0;
        margin-left: auto;
    }

    .stream-meta {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
    }

    .stream-meta-left {
        flex: 1;
        min-width: 0;
    }

    .stream-meta-right {
        flex-shrink: 0;
        margin-left: auto;
    }

    .stream-follow-button {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        white-space: nowrap;
        margin-left: auto;
    }

    .stream-follow-button span {
        display: inline;
    }

    /* Desktop'taki streamer-info ve stream-tags'i mobilde gizle */
    .stream-info-section .streamer-info,
    .stream-info-section .stream-tags {
        display: none;
    }

    .stream-mobile-info {
        display: block;
        width: 100%;
        padding: 1rem;
        background: var(--nirvana-card-background-color, rgb(17, 17, 17));
        border-top: 1px solid var(--nirvana-border-color, rgba(33, 33, 33, 0.8));
    }

    .streamer-info-mobile {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--overlay-light-10, rgba(255, 255, 255, 0.1));
        margin-bottom: 1rem;
    }

    .stream-tags-mobile {
        margin-top: 0;
    }

    .streamer-avatar {
        width: 3rem;
        height: 3rem;
    }

    .streamer-avatar-placeholder {
        font-size: 1.25rem;
    }

    .stream-chat-container {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 350px !important;
    }
}

\n
/* PREMIUM STREAM INFO SECTION & BADGES      */
/* ========================================= */

.stream-info-premium {
    background: linear-gradient(165deg, rgba(26, 26, 30, 0.95) 0%, rgba(18, 18, 22, 0.95) 100%);
    border: 1px solid var(--overlay-light-10, rgba(255, 255, 255, 0.1));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px 24px;
}

.stream-info-header-premium .stream-info-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stream-info-pp-wrapper {
    position: relative;
    flex-shrink: 0;
}

.stream-kick-pp {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(83, 252, 24, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 15px rgba(83, 252, 24, 0.15);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px;
}

.stream-pp-live-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    border: 2px solid #1a1a1e;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

.stream-info-titles h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.stream-meta-premium {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stream-social-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 12px;
}

.stream-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.stream-social-link:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* Chat Viewer Badge */
.stream-viewer-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
}

.stream-viewer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    /* box-shadow keyframe kaldırıldı — scale + opacity ile pulse */
    0% {
        transform: scale(0.95);
        opacity: 1;
    }

    70% {
        transform: scale(1.1);
        opacity: 0.6;
    }

    100% {
        transform: scale(0.95);
        opacity: 1;
    }
}

.stream-viewer-count {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
}

.stream-viewer-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Past Videos Section in yayin.php */
.stream-past-videos-section {
    margin-top: 32px;
}

.stream-past-header {
    margin-bottom: 16px;
}

.stream-past-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
}

.stream-past-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

@media (max-width: 768px) {
    .stream-info-header-premium .stream-info-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;

        .stream-meta-premium {
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
        }

        .stream-social-links {
            margin-left: 0;
            border-left: none;
            padding-left: 0;
        }
    }

    /* ========================================= */
    /* PREMIUM STREAM INFO SECTION V2            */
    /* ========================================= */

    .stream-info-premium-v2 {
        position: relative;
        border-radius: 12px;
        padding: 24px 32px;
        margin-bottom: 24px;
        background: var(--nirvana-card-background-color, rgb(17, 17, 17));
        border: 1px solid var(--nirvana-border-color, rgba(33, 33, 33, 0.8));
        overflow: hidden;
        z-index: 1;
    }

    .stream-info-premium-v2__bg {
        position: absolute;
        inset: 0;
        z-index: -1;
        overflow: hidden;
        opacity: 0.8;
    }

    .stream-info-premium-v2__bg-svg {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .stream-info-header-premium-v2 {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 20px;
    }

    .stream-info-header-premium-v2 .stream-info-left {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .stream-info-pp-wrapper {
        position: relative;
        flex-shrink: 0;
    }

    .stream-kick-pp {
        width: 76px;
        height: 76px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid rgba(83, 252, 24, 0.5);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 25px rgba(83, 252, 24, 0.2);
        background: rgba(0, 0, 0, 0.8);
        padding: 3px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .stream-kick-pp:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6), 0 0 35px rgba(83, 252, 24, 0.3);
    }

    .stream-pp-live-badge-v2 {
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--theme-danger-color, #ef4444);
        color: #fff;
        font-size: 11px;
        font-weight: 800;
        padding: 3px 10px;
        border-radius: 6px;
        border: 2px solid var(--nirvana-card-background-color, #111);
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
        gap: 4px;
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
        z-index: 2;
    }

    .stream-pp-live-badge-pulse {
        width: 6px;
        height: 6px;
        background: #fff;
        border-radius: 50%;
        animation: pulse-red 2s infinite;
    }

    .stream-info-titles h1 {
        font-size: 1.6rem;
        font-weight: 800;
        margin: 0 0 8px 0;
        color: var(--section-title-color, #fff);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
        letter-spacing: -0.01em;
    }

    .stream-meta-premium-v2 {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .stream-social-links-v2 {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-left: 12px;
        border-left: 1px solid var(--overlay-light-15, rgba(255, 255, 255, 0.15));
        padding-left: 16px;
    }

    .stream-social-link-v2 {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: var(--overlay-light-5, rgba(255, 255, 255, 0.05));
        border: 1px solid var(--overlay-light-10, rgba(255, 255, 255, 0.1));
        color: var(--overlay-light-70, rgba(255, 255, 255, 0.7));
        transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .stream-social-link-v2 svg {
        width: 16px;
        height: 16px;
    }

    .stream-social-link-v2:hover {
        transform: translateY(-3px) scale(1.05);
        background: var(--overlay-light-10, rgba(255, 255, 255, 0.1));
        border-color: var(--overlay-light-20, rgba(255, 255, 255, 0.2));
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .stream-social-link-v2.kick-color:hover {
        color: #53fc18;
        border-color: rgba(83, 252, 24, 0.3);
        background: rgba(83, 252, 24, 0.1);
        box-shadow: 0 4px 12px rgba(83, 252, 24, 0.2);
    }

    .stream-social-link-v2.tele-color:hover {
        color: #0088CC;
        border-color: rgba(0, 136, 204, 0.3);
        background: rgba(0, 136, 204, 0.1);
        box-shadow: 0 4px 12px rgba(0, 136, 204, 0.2);
    }

    .stream-social-link-v2.yt-color:hover {
        color: #FF0000;
        border-color: rgba(255, 0, 0, 0.3);
        background: rgba(255, 0, 0, 0.1);
        box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
    }

    .stream-social-link-v2.twitch-color:hover {
        color: #9146FF;
        border-color: rgba(145, 70, 255, 0.3);
        background: rgba(145, 70, 255, 0.1);
        box-shadow: 0 4px 12px rgba(145, 70, 255, 0.2);
    }


    @media (max-width: 768px) {
        .stream-info-premium-v2 {
            padding: 20px 16px;
        }

        .stream-info-header-premium-v2 .stream-info-left {
            flex-direction: column;
            align-items: flex-start;
            gap: 16px;
        }

        .stream-meta-premium-v2 {
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
        }

        .stream-social-links-v2 {
            margin-left: 0;
            border-left: none;
            padding-left: 0;
        }
    }

    \n .past-stream-item {
        min-width: 0;
        flex-shrink: 0;
        flex-grow: 0;
        padding-left: 1rem;
        flex-basis: auto;
    }


    .past-stream-card {
        cursor: pointer;
    }


    .past-stream-image-wrapper {
        position: relative;
        margin: 0.125rem 0;
        aspect-ratio: 16 / 9;
        height: 7rem;
        width: auto;
        border-radius: 0.375rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
        background-color: var(--nirvana-card-background-color, rgb(17, 17, 17));
        border: 1px solid var(--live-section-border, rgba(49, 49, 49, 0.8));
        overflow: hidden;
        transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s, opacity 0.3s;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }


    .past-stream-image-wrapper {
        height: 9rem;
    }


    .past-stream-image-wrapper:hover {
        border-color: var(--nirvana-border-color, rgb(33, 33, 33));
        transform: scale(1.02);
    }


    .past-stream-image {
        position: relative;
        height: 100%;
        width: 100%;
        border-radius: 3px;
        object-fit: cover;
    }


    .past-stream-overlay {
        position: absolute;
        inset: 0;
        height: 100%;
        width: 100%;
        background-color: var(--overlay-dark-40, rgba(0, 0, 0, 0.4));
        padding: 0.5rem;
        opacity: 0;
        backdrop-filter: blur(4px);
        transition: opacity 0.3s;
        transition-delay: 100ms;
    }


    .past-stream-image-wrapper:hover .past-stream-overlay {
        opacity: 1;
    }


    .past-stream-title {
        word-break: break-word;
        font-size: 0.875rem;
        font-weight: 600;
        line-height: 1.25;
        color: var(--nirvana-normal-text-color, #ffffff);
    }


    .past-stream-date {
        position: absolute;
        bottom: 0.5rem;
        left: 0.625rem;
        font-size: 0.625rem;
        font-weight: 600;
        color: var(--overlay-light-70, rgba(255, 255, 255, 0.7));
    }


    .past-stream-duration {
        display: none;
    }


    .past-stream-views {
        position: absolute;
        bottom: 0.5rem;
        left: 0.5rem;
        border-radius: 0.25rem;
        background-color: var(--overlay-dark-75, rgba(0, 0, 0, 0.75));
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        color: var(--nirvana-normal-text-color, #ffffff);
        display: flex;
        align-items: center;
        gap: 0.25rem;
        transition: opacity 0.3s;
    }


    .past-stream-image-wrapper:hover .past-stream-views {
        opacity: 0;
    }


    .stream-chat-pinned-message {
        position: sticky;
        top: 0;
        z-index: 10;
        margin: 0;
        padding: 0;
        background: var(--stream-pinned-bg, rgba(20, 22, 24, 0.95));
        border: 1px solid var(--overlay-light-10, rgba(255, 255, 255, 0.1));
        border-left: 3px solid var(--primary-color, rgb(227, 146, 20));
        border-radius: 0.5rem;
        backdrop-filter: blur(10px);
    }


    .stream-chat-pinned-content {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem;
        flex-wrap: wrap;
    }


    .stream-chat-pinned-label {
        background: var(--primary-color, rgb(227, 146, 20));
        color: var(--nirvana-normal-text-color, #fff);
        padding: 0.25rem 0.5rem;
        border-radius: 0.25rem;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
    }


    .stream-chat-pinned-username {
        color: var(--primary-color, rgb(227, 146, 20));
        font-weight: 600;
        font-size: 0.875rem;
    }


    .stream-chat-pinned-text {
        flex: 1;
        color: var(--nirvana-normal-text-color);
        font-size: 0.875rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    .stream-chat-pinned-text .stream-chat-emote {
        height: 1.2em;
        width: auto;
        vertical-align: middle;
        display: inline-block;
        margin: 0 2px;
        white-space: nowrap;
    }


    .stream-chat-pinned-close {
        background: rgba(var(--theme-danger-soft-rgb, 239, 68, 68), 0.2);
        border: none;
        color: var(--theme-danger-soft, rgb(239, 68, 68));
        width: 24px;
        height: 24px;
        border-radius: 0.25rem;
        cursor: pointer;
        font-size: 1.25rem;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, opacity 0.2s;
    }


    .stream-chat-pinned-close:hover {
        background: rgba(var(--theme-danger-soft-rgb, 239, 68, 68), 0.3);
        transform: scale(1.1);
    }

    /* Moved from stream-chat.css */
    .stream-chat-widget {
        position: fixed;
        bottom: 1rem;
        right: 1rem;
        width: 380px;
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
        display: flex;
        flex-direction: column;
        background-color: rgb(17, 17, 17);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0.75rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        overflow: hidden;
    }

    .stream-chat-widget-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.875rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        flex-shrink: 0;
        background-color: rgba(30, 30, 30, 0.8);
    }

    .stream-chat-widget-title {
        font-size: 0.9375rem;
        font-weight: 600;
        color: rgb(255, 255, 255);
        margin: 0;
    }

    .stream-chat-widget-viewers {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.6);
    }

    .stream-chat-widget-pinned {
        padding: 0.625rem 0.75rem;
        margin: 0.5rem;
        border-radius: 0.375rem;
        background-color: rgba(227, 146, 20, 0.1);
        border: 1px solid rgba(227, 146, 20, 0.3);
        border-left: 3px solid rgb(227, 146, 20);
        flex-shrink: 0;
    }

    .stream-chat-widget-messages {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        min-height: 200px;
        max-height: 400px;
    }

    .stream-chat-loading {
        text-align: center;
        padding: 2rem;
        color: rgba(255, 255, 255, 0.5);
    }

    .stream-chat-message {
        position: relative;
        margin-bottom: 0.1rem;
        display: flex !important;
        align-items: flex-start;
        gap: 0.5rem;
        animation: streamChatMessageFadeIn 0.5s ease-out;
        background: var(--chat-message-bg, #1c1c1c);
        border-radius: 6px;
    }

    .stream-chat-message.stream-chat-message-own {
        display: flex !important;
        justify-content: flex-end !important;
        flex-direction: row !important;
    }

    @keyframes streamChatMessageFadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .stream-chat-message:hover .stream-chat-message-actions {
        opacity: 1;
    }

    .stream-chat-message-card {
        margin-right: 0.5rem;
        margin-left: 0;
        flex: 1;
        max-width: 75%;
        overflow: hidden;
        border-radius: 0.375rem;
        background-color: var(--chat-modal-bg, rgb(30, 30, 30));
        padding: 0.5rem;
        padding-bottom: 1.5rem;
        position: relative;
    }

    .stream-chat-message.stream-chat-message-own .stream-chat-message-card {
        margin-right: 0 !important;
        margin-left: 0.5rem !important;
        background: linear-gradient(135deg, rgba(var(--primary-rgb, 227, 146, 20), 0.2) 0%, rgba(var(--primary-rgb, 227, 146, 20), 0.1) 100%) !important;
        border: 1px solid rgba(var(--primary-rgb, 227, 146, 20), 0.3) !important;
    }

    .stream-chat-message-user {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        position: relative;
        z-index: 1;
    }

    .stream-chat-reply {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.625rem;
        margin-bottom: 0.625rem;
        border-left: 4px solid rgb(227, 146, 20);
        background: linear-gradient(90deg, rgba(227, 146, 20, 0.15) 0%, rgba(227, 146, 20, 0.05) 100%);
        border-radius: 0.375rem;
        font-size: 0.75rem;
        cursor: pointer;
        transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
        position: relative;
    }

    .stream-chat-reply::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, rgb(227, 146, 20) 0%, rgba(227, 146, 20, 0.5) 100%);
        border-radius: 4px 0 0 4px;
    }

    .stream-chat-reply:hover {
        background: linear-gradient(90deg, rgba(227, 146, 20, 0.2) 0%, rgba(227, 146, 20, 0.08) 100%);
        transform: translateX(2px);
    }

    .stream-chat-reply-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        color: rgb(227, 146, 20);
    }

    .stream-chat-reply-content {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.125rem;
    }

    .stream-chat-reply-username {
        color: rgb(227, 146, 20);
        font-weight: 700;
        font-size: 0.75rem;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .stream-chat-reply-username::before {
        content: 'â†©';
        font-size: 0.875rem;
        opacity: 0.8;
    }

    .stream-chat-reply-message {
        color: rgba(255, 255, 255, 0.7);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.8125rem;
        font-style: italic;
    }

    .stream-chat-message-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.5rem;
        margin-left: 8px;
    }

    .stream-chat-username {
        cursor: pointer;
        font-size: 0.75rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.8);
        transition: color 0.2s ease;
    }

    .stream-chat-username:hover {
        color: rgb(227, 146, 20);
    }

    .stream-chat-message-badges {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .stream-chat-message-badge {
        display: flex;
        height: 1.5rem;
        align-items: center;
        border-radius: 0.125rem;
        background-color: rgb(17, 17, 17);
        padding: 0 0.5rem;
        text-align: center;
        font-size: 0.75rem;
        font-weight: bold;
        color: rgb(160, 160, 160);
    }

    .stream-chat-message-badge-mod {
        background-color: rgba(34, 197, 94, 0.8);
        color: rgba(255, 255, 255, 0.9);
    }

    .stream-chat-message-badge-sub {
        background-color: rgba(139, 92, 246, 0.8);
        color: rgba(255, 255, 255, 0.9);
    }

    .stream-chat-message-badge-friend {
        background-color: rgba(34, 211, 238, 0.8);
        color: rgba(255, 255, 255, 0.9);
    }

    .stream-chat-badge-icon {
        width: 16px;
        height: 16px;
        object-fit: contain;
        vertical-align: middle;
    }

    .stream-chat-badge-label {
        display: inline-flex;
        align-items: center;
        padding: 0.125rem 0.375rem;
        border-radius: 0.25rem;
        background-color: rgba(227, 146, 20, 0.2);
        color: rgb(227, 146, 20);
        font-size: 0.625rem;
        font-weight: 600;
        vertical-align: middle;
    }

    .stream-chat-message-time {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.4);
    }

    .stream-chat-message-text {
        position: relative;
        margin-top: 0.5rem;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: pre-wrap;
        font-size: 0.875rem;
        color: rgb(240, 240, 240);
        line-height: 1.5;
        left: 8px;
        margin-bottom: 8px;
    }

    .stream-chat-emote {
        height: 1.2em;
        vertical-align: middle;
        display: inline-block;
    }

    .stream-chat-message-actions {
        position: absolute;
        bottom: 0.25rem;
        right: 0.75rem;
        display: flex;
        align-items: center;
        gap: 0.25rem;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .stream-chat-reply-btn,
    .stream-chat-delete-btn,
    .stream-chat-pin-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        padding: 0;
        border: none;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        color: rgba(255, 255, 255, 0.7);
        cursor: pointer;
        transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    }

    .stream-chat-reply-btn:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 1);
        transform: scale(1.1);
    }

    .stream-chat-delete-btn:hover {
        background-color: rgba(239, 68, 68, 0.3);
        color: rgb(239, 68, 68);
        transform: scale(1.1);
    }

    .stream-chat-pin-btn:hover {
        background-color: rgba(245, 158, 11, 0.3);
        color: rgb(245, 158, 11);
        transform: scale(1.1);
    }

    .stream-chat-widget-input {
        position: relative;
        display: flex;
        flex-direction: column;
        padding: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: var(--social-button-bg, rgba(33, 33, 33, 0.5));
        flex-shrink: 0;
    }

    .stream-chat-widget-emotes {
        display: none;
        flex-wrap: wrap;
        gap: 0.25rem;
        padding: 0.5rem;
        background-color: rgb(30, 30, 30);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0.375rem;
        margin-bottom: 0.5rem;
        max-height: 120px;
        overflow-y: auto;
    }

    .stream-chat-emote-item {
        width: 16px;
        height: 16px;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        transition: transform 0.2s ease;
        position: relative;
    }

    .stream-chat-emote-item img {
        width: 16px;
        height: 16px;
        display: block;
        object-fit: contain;
    }

    .stream-chat-emote-item:hover {
        transform: scale(1.3);
        z-index: 10;
    }

    .stream-chat-emote-item:hover::after {
        content: attr(title);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(0, 0, 0, 0.9);
        color: white;
        padding: 0.25rem 0.5rem;
        border-radius: 0.25rem;
        font-size: 0.75rem;
        white-space: nowrap;
        margin-bottom: 0.25rem;
        pointer-events: none;
        z-index: 1000;
    }

    .stream-chat-widget-input-wrapper {
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }

    .stream-chat-widget-input-container {
        position: relative;
        flex: 1;
        width: 100%;
    }

    .stream-chat-widget-input-field {
        width: 100%;
        min-height: 2.5rem;
        max-height: 8rem;
        padding: 0.5rem;
        padding-right: 3rem;
        border-radius: 0.375rem;
        background-color: rgb(30, 30, 30);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgb(255, 255, 255);
        font-size: 0.875rem;
        box-sizing: border-box;
        overflow-y: auto;
        word-wrap: break-word;
        white-space: pre-wrap;
        font-family: inherit;
    }

    .stream-chat-widget-input-field:empty::before {
        content: attr(data-placeholder);
        color: rgba(255, 255, 255, 0.5);
        pointer-events: none;
    }

    .stream-chat-widget-input-field:focus {
        outline: none;
        border-color: rgb(227, 146, 20);
    }

    .stream-chat-widget-input-field[aria-disabled="true"] {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .stream-chat-widget-emoji {
        position: absolute;
        right: 1.75rem;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        font-size: 1.25rem;
        color: rgba(255, 255, 255, 0.6);
        transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .stream-chat-widget-emoji:hover {
        transform: translateY(-50%) scale(1.05);
        color: rgb(234, 179, 8);
    }

    .stream-chat-widget-send {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        align-self: flex-end;
    }

    .stream-chat-widget-send-btn {
        border-radius: 0.375rem;
        background-color: rgb(227, 146, 20);
        padding: 0.5rem 1rem;
        color: rgb(255, 255, 255);
        cursor: not-allowed;
        opacity: 0.2;
        border: none;
        font-size: 0.875rem;
        font-weight: 600;
        transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    }

    .stream-chat-widget-send-btn:not(:disabled) {
        cursor: pointer;
        opacity: 1;
    }

    .stream-chat-widget-send-btn:not(:disabled):hover {
        background-color: rgb(200, 130, 18);
    }

    .stream-chat-widget,
    .stream-chat-widget-header,
    .stream-chat-widget-title,
    .stream-chat-widget-viewers,
    .stream-chat-widget-pinned,
    .stream-chat-widget-messages,
    .stream-chat-widget-input,
    .stream-chat-widget-emotes,
    .stream-chat-widget-input-wrapper,
    .stream-chat-widget-input-container,
    .stream-chat-widget-input-field,
    .stream-chat-widget-emoji,
    .stream-chat-widget-send,
    .stream-chat-widget-send-btn {
        display: none !important;
    }

    .stream-chat-message-avatar {
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
    }

    @media (max-width: 768px) {
        .stream-chat-widget {
            width: calc(100vw - 1rem);
            right: 0.5rem;
            bottom: 0.5rem;
            max-height: calc(100vh - 1rem);
        }

        .stream-chat-widget-messages {
            max-height: 300px;
            padding: 0.5rem;
        }

        .stream-chat-widget-input {
            padding: 0.5rem;
        }
    }

    .stream-page-container~* .navbar-chat,
    .stream-page-container~* #mobile-chat-btn {
        display: none !important;
    }

    .mac-yayin-shell~* .navbar-chat,
    .mac-yayin-shell~* #mobile-chat-btn {
        display: none !important;
    }

    body.stream-page .navbar-chat,
    body.stream-page #mobile-chat-btn {
        display: none !important;
    }

    body.mac-yayin-page .navbar-chat,
    body.mac-yayin-page #mobile-chat-btn {
        display: none !important;
    }

    /* Stream Offline Overlay */
    .stream-offline-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #000;
        z-index: 10;
    }

    .stream-offline-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* ============================================================
   STREAM INFO CARD — Premium Redesign
   ============================================================ */
    .stream-info-section {
        padding: 0;
    }

    .stream-info-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 14px 18px;
        background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.04) 0%,
                rgba(255, 255, 255, 0.02) 100%);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        margin-top: 10px;
        backdrop-filter: blur(8px);
        position: relative;
        overflow: hidden;
    }

    .stream-info-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 0% 50%, var(--primary-color, #e3921440) 0%, transparent 65%);
        opacity: 0.08;
        pointer-events: none;
    }

    /* Profil Sol Blok */
    .stream-info-profile {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
        flex: 1;
    }

    .stream-info-avatar-wrap {
        position: relative;
        flex-shrink: 0;
    }

    .stream-info-avatar {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(var(--primary-rgb, 227, 146, 20), 0.3) 0%, rgba(var(--primary-rgb, 227, 146, 20), 0.1) 100%);
        border: 2px solid rgba(var(--primary-rgb, 227, 146, 20), 0.4);
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 227, 146, 20), 0.12);
        transition: box-shadow 0.3s ease;
    }

    .stream-info-avatar-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .stream-info-avatar-initial {
        font-size: 22px;
        font-weight: 700;
        color: var(--primary-color, #e39214);
        text-transform: uppercase;
        line-height: 1;
        font-family: 'Poppins', sans-serif;
    }

    /* Live Ring Pulse */
    .stream-info-live-ring {
        position: absolute;
        bottom: -2px;
        right: -2px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #ef4444;
        border: 2.5px solid var(--nirvana-card-background-color, #111);
        animation: liveRingPulse 2s ease-in-out infinite;
    }

    @keyframes liveRingPulse {
        /* box-shadow keyframe kaldırıldı — scale + opacity ile pulse */
        0%,
        100% {
            transform: scale(1);
            opacity: 1;
        }

        50% {
            transform: scale(1.2);
            opacity: 0.5;
        }
    }

    /* Profile Text */
    .stream-info-profile-text {
        min-width: 0;
    }

    .stream-info-username-row {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 5px;
    }

    .stream-info-username {
        font-size: 17px;
        font-weight: 700;
        color: var(--text-white, #fff);
        font-family: 'Poppins', sans-serif;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: -0.01em;
    }

    .stream-info-live-pill {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 2px 9px;
        border-radius: 999px;
        background: rgba(239, 68, 68, 0.15);
        border: 1px solid rgba(239, 68, 68, 0.4);
        color: #f87171;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        font-family: 'Poppins', sans-serif;
        flex-shrink: 0;
    }

    .stream-info-live-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #ef4444;
        animation: liveDotBlink 1.2s ease-in-out infinite;
        flex-shrink: 0;
    }

    @keyframes liveDotBlink {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0.3;
        }
    }

    .stream-info-offline-pill {
        display: inline-flex;
        align-items: center;
        padding: 2px 9px;
        border-radius: 999px;
        background: rgba(100, 116, 139, 0.15);
        border: 1px solid rgba(100, 116, 139, 0.3);
        color: #94a3b8;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.06em;
        font-family: 'Poppins', sans-serif;
        flex-shrink: 0;
    }

    .stream-info-meta-row {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .stream-info-category {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.55);
        font-family: 'Poppins', sans-serif;
        font-weight: 500;
    }

    .stream-info-viewers-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 3px 10px;
        border-radius: 999px;
        background: rgba(var(--primary-rgb, 227, 146, 20), 0.12);
        border: 1px solid rgba(var(--primary-rgb, 227, 146, 20), 0.25);
        color: var(--primary-color, #e39214);
        font-size: 12px;
        font-weight: 600;
        font-family: 'Poppins', sans-serif;
    }

    /* Right Block */
    .stream-info-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        flex-shrink: 0;
    }

    /* Social Links */
    .stream-info-social {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .stream-info-social-btn {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 5px 11px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.75);
        font-size: 12px;
        font-weight: 500;
        font-family: 'Poppins', sans-serif;
        text-decoration: none;
        transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
        white-space: nowrap;
    }

    .stream-info-social-btn:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.22);
        color: #fff;
        transform: translateY(-1px);
    }

    .stream-info-social-btn--kick:hover {
        background: rgba(83, 252, 24, 0.12);
        border-color: rgba(83, 252, 24, 0.3);
        color: #53fc18;
    }

    .stream-info-social-btn--telegram:hover {
        background: rgba(0, 136, 204, 0.12);
        border-color: rgba(0, 136, 204, 0.3);
        color: #29b6f6;
    }

    .stream-info-social-btn--youtube:hover {
        background: rgba(255, 0, 0, 0.12);
        border-color: rgba(255, 0, 0, 0.3);
        color: #ff4444;
    }

    .stream-info-social-btn--twitch:hover {
        background: rgba(145, 70, 255, 0.12);
        border-color: rgba(145, 70, 255, 0.3);
        color: #9146ff;
    }

    .stream-info-social-btn--discord:hover {
        background: rgba(88, 101, 242, 0.12);
        border-color: rgba(88, 101, 242, 0.3);
        color: #7289da;
    }

    .stream-info-social-btn--instagram:hover {
        background: rgba(225, 48, 108, 0.12);
        border-color: rgba(225, 48, 108, 0.3);
        color: #e1306c;
    }

    .stream-info-social-name {
        display: inline;
    }



    /* ============================================================
   RESPONSIVE
   ============================================================ */
    @media (max-width: 768px) {
        .stream-info-card {
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
            padding: 12px 14px;
        }

        .stream-info-right {
            align-items: flex-start;
            width: 100%;
        }

        .stream-info-social {
            justify-content: flex-start;
        }

        .stream-info-social-name {
            display: none;
        }

        .stream-info-social-btn {
            padding: 6px 8px;
        }
    }

    @media (max-width: 480px) {
        .stream-info-username {
            font-size: 15px;
        }

        /* (stream-past-title removed) */
    }

}

/* 
================================================================
PREMIUM STREAM INFO SECTION - ELITE DESIGN (FINAL OVERRIDE)
================================================================
*/
/* Avatar Initial removed as per request */
.stream-page-main-wrapper .stream-info-avatar-initial {
    display: none !important;
}


/* 
================================================================
PREMIUM STREAM INFO SECTION - SOLID ELITE DESIGN
================================================================
*/
.stream-page-main-wrapper .stream-info-section {
    background: var(--nirvana-card-background-color, #111) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem !important;
    padding: 1.25rem 2rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.02) !important;
    display: block !important;
    width: 100% !important;
    position: relative !important;
}

.stream-page-main-wrapper .stream-info-card {
    display: grid !important;
    grid-template-columns: auto 1fr auto auto !important;
    align-items: center !important;
    gap: 2rem !important;
    width: 100% !important;
}

.stream-page-main-wrapper .stream-info-profile {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
    min-width: 0 !important;
}

.stream-page-main-wrapper .stream-info-avatar-wrap {
    position: relative !important;
    flex-shrink: 0 !important;
}

.stream-page-main-wrapper .stream-info-avatar {
    width: 4.25rem !important;
    height: 4.25rem !important;
    border-radius: 50% !important;
    border: 2px solid var(--primary-color, #e39214) !important;
    padding: 2px !important;
    background: var(--nirvana-card-background-color) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-shadow: 0 0 20px rgba(var(--primary-rgb, 227, 146, 20), 0.15) !important;
}

.stream-page-main-wrapper .stream-info-avatar-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.stream-page-main-wrapper .stream-info-title {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 0.2rem 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* LIVE Badge on Avatar */
.stream-page-main-wrapper .stream-info-live-badge {
    position: absolute !important;
    bottom: -3px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #ef4444 !important;
    color: #fff !important;
    font-size: 0.65rem !important;
    font-weight: 900 !important;
    padding: 0.15rem 0.5rem !important;
    border-radius: 4px !important;
    z-index: 5 !important;
    border: 1px solid var(--nirvana-card-background-color) !important;
    animation: live-pulse-badge 2s infinite !important;
}

@keyframes live-pulse-badge {
    0% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.stream-page-main-wrapper .stream-info-profile-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 0.15rem !important;
    min-width: 0 !important;
    flex: 1 !important;
}

.stream-page-main-wrapper .stream-info-username {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    display: inline-block !important;
}

.stream-page-main-wrapper .stream-info-username:hover {
    color: var(--primary-color, #e39214) !important;
}

.stream-page-main-wrapper .stream-info-meta-row {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.stream-page-main-wrapper .stream-info-category,
.stream-page-main-wrapper .stream-info-viewers-badge {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--nirvana-border-color) !important;
    padding: 0.35rem 0.65rem !important;
    border-radius: 6px !important;
    font-size: 0.7rem !important;
    height: 1.85rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    color: #ccc !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

.stream-page-main-wrapper .stream-info-viewers-badge {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
}

.stream-page-main-wrapper .stream-info-viewers-badge::before {
    content: '' !important;
    width: 6px !important;
    height: 6px !important;
    background: #ef4444 !important;
    border-radius: 50% !important;
    box-shadow: 0 0 8px #ef4444 !important;
    animation: live-dot-pulse-glow 1.5s infinite !important;
}

@keyframes live-dot-pulse-glow {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.6;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.stream-page-main-wrapper .stream-info-right {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.stream-page-main-wrapper .stream-info-social {
    display: flex !important;
    gap: 0.35rem !important;
}

.stream-page-main-wrapper .stream-info-social-btn {
    width: 2.1rem !important;
    height: 2.1rem !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--nirvana-border-color) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #888 !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease !important;
}

.stream-page-main-wrapper .stream-info-social-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

.stream-page-main-wrapper .stream-info-social-btn--kick:hover {
    color: #53fc18 !important;
}

.stream-page-main-wrapper .stream-info-social-btn--telegram:hover {
    color: #29b6f6 !important;
}

.stream-page-main-wrapper .stream-info-social-btn--youtube:hover {
    color: #ff0000 !important;
}

.stream-page-main-wrapper .stream-info-social-btn--twitch:hover {
    color: #9146ff !important;
}

.stream-page-main-wrapper .stream-info-social-btn--discord:hover {
    color: #5865f2 !important;
}

.stream-page-main-wrapper .stream-info-social-name {
    display: none !important;
}

.stream-page-main-wrapper .stream-prediction-button {
    background: var(--primary-color, #e39214) !important;
    color: #000 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    border: none !important;
    font-size: 0.75rem !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease !important;
}

.stream-page-main-wrapper .stream-prediction-button:hover {
    filter: brightness(1.1) !important;
}

@media (max-width: 1280px) {
    .stream-page-main-wrapper .stream-info-card {
        gap: 0.75rem !important;
    }
}

@media (max-width: 1024px) {
    .stream-page-main-wrapper .stream-info-section {
        padding: 0.5rem 0.75rem !important;
    }

    .stream-page-main-wrapper .stream-info-card {
        grid-template-columns: auto 1fr auto auto !important;
    }
}

@media (max-width: 768px) {
    .stream-page-main-wrapper .stream-info-section {
        padding: 0rem 0rem 1rem !important;
        margin: 0rem 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }

    .stream-page-main-wrapper .stream-info-avatar {
        width: 3.5rem !important;
        height: 3.5rem !important;
    }

    .stream-page-main-wrapper .stream-info-live-badge {
        bottom: -6px !important;
        font-size: 0.65rem !important;
        padding: 0.15rem 0.5rem !important;
    }

    .stream-page-main-wrapper .stream-info-title {
        font-size: 0.95rem !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.3 !important;
    }

    .stream-page-main-wrapper .stream-info-username-row {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    .stream-page-main-wrapper .stream-info-username {
        font-size: 0.75rem !important;
    }

    .stream-page-main-wrapper .stream-info-category {
        display: none !important;
    }

    .stream-page-main-wrapper .stream-info-social {
        display: none !important;
    }

    .stream-page-main-wrapper .stream-info-viewers-badge {
        height: 1.5rem !important;
        padding: 0.1rem 0.5rem !important;
        font-size: 0.65rem !important;
        border-radius: 4px !important;
    }

    .stream-page-main-wrapper .stream-prediction-button {
        padding: 0.45rem 0.75rem !important;
        font-size: 0.7rem !important;
    }
}

.stream-page-main-wrapper .stream-chat-viewers {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    padding: 0.15rem 0.4rem !important;
    border-radius: 4px !important;
    font-size: 0.6rem !important;
    font-weight: 800 !important;
    margin-top: 0.1rem !important;
    width: fit-content !important;
    line-height: 1 !important;
}

.stream-page-main-wrapper .stream-chat-viewers::before {
    content: '' !important;
    width: 5px !important;
    height: 5px !important;
    background: #ef4444 !important;
    border-radius: 50% !important;
    box-shadow: 0 0 6px #ef4444 !important;
    animation: live-dot-pulse-glow 1.5s infinite !important;
}

.stream-page-main-wrapper .stream-chat-viewers svg {
    display: none !important;
}

@media (max-width: 480px) {
    .stream-page-main-wrapper .stream-info-section {
        padding: 0rem 0rem 1rem !important;
        margin: 0rem 0 !important;
    }

    .stream-page-main-wrapper .stream-info-avatar {
        width: 3.25rem !important;
        height: 3.25rem !important;
    }

    .stream-page-main-wrapper .stream-info-live-badge {
        bottom: -8px !important;
    }

    .stream-page-main-wrapper .stream-info-title {
        font-size: 0.85rem !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.2 !important;
    }

    .stream-page-main-wrapper .stream-info-viewers-badge {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.6rem !important;
        height: 1.4rem !important;
    }
}

/* Geçmiş Yayınlar (VODs) */
/* Geçmiş Yayınlar (VODs) */
/* Desktop & Mobile Toggles */
.mobile-vods {
    display: none !important;
}

.desktop-vods {
    display: flex !important;
}

@media (max-width: 768px) {
    .mobile-vods {
        display: flex !important;
        margin: 1rem 0;
        /* Chat altında boşluk bırak */
    }

    .desktop-vods {
        display: none !important;
    }
}

.stream-vods-section {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--nirvana-card-background-color, rgb(17, 17, 17));
    border-radius: 12px;
    border: 1px solid var(--nirvana-border-color, rgba(33, 33, 33, 0.8));
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stream-vods-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stream-vods-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stream-vods-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(var(--primary-rgb, 227, 146, 20), 0.15);
    color: var(--primary-color, rgb(227, 146, 20));
    border-radius: 0.5rem;
}

.stream-vods-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.stream-vods-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--theme-text-color, #fff);
    margin: 0;
}

.stream-vods-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.stream-vods-grid .past-stream-item {
    padding-left: 0;
    width: 100%;
}


/* Dynamic Grid Overrides for past-streams-items */
.stream-page-past-streams-grid .past-stream-card {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stream-page-past-streams-grid .past-stream-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.stream-page-past-streams-grid .past-stream-image-wrapper {
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    height: auto;
    aspect-ratio: 16 / 9;
    position: relative;
    padding-bottom: 0;
    /* Remove if there was padding-bottom trick */
}

.stream-page-past-streams-grid .section-card-inner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
}

.stream-page-past-streams-grid .past-stream-image-wrapper:hover {
    transform: none;
    /* Scale is handled by the parent card hover */
}

.stream-page-past-streams-grid .past-stream-card:hover .past-stream-image {
    transform: scale(1.05);
}

.stream-page-past-streams-grid .past-stream-image {
    transition: transform 0.3s ease;
}

.stream-page-past-streams-grid .past-stream-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 0;
    /* Remove default padding to ensure absolute centering */
}

.stream-page-past-streams-grid .past-stream-card:hover .past-stream-overlay {
    opacity: 1;
}

/* Hide internal overlay text since we display it below */
.stream-page-past-streams-grid .past-stream-overlay .past-stream-title,
.stream-page-past-streams-grid .past-stream-overlay .past-stream-date {
    display: none;
}

.stream-page-past-streams-grid .past-stream-duration {
    display: block !important;
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
}

/* Add play button icon on hover */
.stream-page-past-streams-grid .past-stream-overlay::after {
    content: '';
    width: 48px;
    height: 48px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="white" xmlns="http://www.w3.org/2000/svg"><path d="M8 5v14l11-7z"/></svg>') no-repeat center center;
    background-size: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.stream-page-past-streams-grid .past-stream-info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stream-page-past-streams-grid .past-stream-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--theme-text-color, #fff);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    position: static;
    word-break: normal;
}

.stream-page-past-streams-grid .past-stream-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.stream-page-past-streams-grid .past-stream-date {
    position: static;
    font-size: inherit;
    color: inherit;
    font-weight: normal;
}

.stream-page-past-streams-grid .meta-dot {
    display: none !important;
}

.stream-page-past-streams-grid .past-stream-meta-views {
    display: none !important;
}

.stream-page-past-streams-grid .past-stream-views {
    display: none !important;
}

/* Responsive VODs Grid */
@media (min-width: 1600px) {
    .stream-vods-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 1599px) {
    .stream-vods-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .stream-vods-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .stream-vods-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stream-vods-section {
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 1rem 0.5rem;
    }

    .stream-page-past-streams-grid .past-stream-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .stream-vods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stream-page-past-streams-grid .past-stream-title {
        font-size: 0.75rem;
    }
}

/* -------------------------------------
   Sinema Modu (Cinema Mode) - Animasyonlu 
   ------------------------------------- */

/* Geçiş efekti eklenecek ana hatlar - Sadece boyut ve boşlukları anime et (sonsuz döngüyü önler) */
.stream-chat-container {
    transition: width 0.4s ease, min-width 0.4s ease, max-width 0.4s ease, opacity 0.3s ease, margin 0.4s ease, padding 0.4s ease !important;
    overflow: hidden;
    /* İçeriğin taşmasını engeller */
}

/* Mobilde sinema butonunu gizle */
@media (max-width: 768px) {
    .stream-cinema-btn {
        display: none !important;
    }
}

body.cinema-mode .stream-chat-container {
    /* Chat kapanma animasyonu için */
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    opacity: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
    border: none !important;
}

/* Center the stream info and VODs beneath the cinema player */
body.cinema-mode .stream-info-section,
body.cinema-mode .stream-vods-section {
    max-width: 1600px !important;
    margin: 1.5rem auto !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    border-top: none !important;
    transition: max-width 0.4s ease, padding 0.4s ease;
}

/* Yayın kapalıyken tüm izleyici bilgilerini kesin olarak gizle */
.is-stream-offline .stream-viewers,
.is-stream-offline .stream-chat-viewers,
.is-stream-offline .stream-info-viewers-badge {
    display: none !important;
}