/* streamer Detail Page Styles */
.streamer-detail-container {
    max-width: 1200px; /* Primary max-width */
    width: 95%; /* Ensure it takes 95% width on smaller screens */
    margin: 0 auto;
    padding: 20px;
}
@media (max-width: 1200px) {
    .streamer-detail-container {
        width: 98%; /* Slightly more width on medium screens */
        padding: 15px;
    }
}
@media (max-width: 992px) {
    .streamer-detail-container {
        width: 100%; /* Full width on smaller screens */
        padding: 10px;
    }
}
@media (max-width: 768px) {
    .streamer-detail-container {
    width: 100%;
    padding: 5px;
    }
}

/* Broadcast Detail Page Specific Container */
.broadcast-detail-page-container {
   max-width: 100%; /* Max width for the content area */
    margin: 0 auto; /* Center the container */
    padding: 20px; /* Existing padding, can be adjusted if needed */
}

/* streamer Header */
.streamer-header {
    display: flex;
    background-color: var(--kick-light-gray);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.streamer-avatar {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    margin-right: 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent; /* Default border */
    box-shadow: 0 0 15px rgba(83, 252, 24, 0.3); /* Default green shadow */
    padding: 0;
    position: relative;
    background: transparent;
    margin-right: 0; /* Remove margin, will be handled by wrapper */
}

/* New wrapper for avatar and status */
.streamer-avatar-area {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center avatar and status horizontally */
    margin-right: 25px; /* Apply original avatar margin here */
    flex-shrink: 0; /* Prevent shrinking */
}

/* Container for the status indicator below avatar */
.streamer-status-container {
    width: 100%; /* Take full width of the avatar area */
    display: flex;
    justify-content: center; /* Center the status indicator */
    margin-top: 10px; /* Space between avatar and status */
}

/* Removed .with-label styles */

.streamer-avatar.live,
.streamer-avatar.offline {
    border-width: 3px;
    border-style: solid;
}

.streamer-avatar.live {
    border-color: var(--kick-green);
    /* Green shadow is default */
}

.streamer-avatar.offline {
    border-color: #dc3545 !important; /* Red border for offline */
    box-shadow: none !important; /* Remove green shadow when offline */
}

/* Removed ::after styles for thick border */
/* Removed styles for label inside border */
/* Removed styles for hiding old label */

.streamer-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.streamer-avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--kick-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    font-weight: bold;
    color: var(--kick-green);
}

.streamer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.streamer-name {
    font-size: 30px;
    margin: 0 0 10px 0;
    color: var(--kick-green);
}

.streamer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.streamer-meta-item {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #ADADB8;
}

.streamer-meta-item i {
    color: var(--kick-green);
    margin-right: 8px;
}

.streamer-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.streamer-action-btn {
    padding: 10px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.streamer-action-btn:first-child {
    background-color: var(--kick-green);
    color: #000;
    border: none;
}

.streamer-action-btn:first-child:hover {
    background-color: #3EE900;
    transform: translateY(-2px);
}

.streamer-action-btn:last-child {
    background-color: transparent;
    color: var(--kick-text);
    border: 2px solid var(--kick-green);
}

.streamer-action-btn:last-child:hover {
    background-color: rgba(83, 252, 24, 0.1);
    transform: translateY(-2px);
}

/* Broadcast Page Header */
.broadcast-page-header {
    display: flex; /* Added for layout with back button */
    align-items: center; /* Vertically align items */
    gap: 15px; /* Space between button and titles */
    background-color: var(--kick-light-gray); /* Added background */
    padding: 15px 20px; /* Added padding */
    border-radius: 8px; /* Added border-radius */
    margin-bottom: 20px; /* Reduced Space below the header block */
    /* Removed padding-bottom and border-bottom as background provides separation */
    text-align: left; 
}

.back-to-streamer-btn {
    color: var(--kick-green);
    font-size: 22px; /* Adjust size as needed */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px; /* Small padding for click area */
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.back-to-streamer-btn:hover {
    background-color: rgba(83, 252, 24, 0.1); /* Subtle hover */
}

.back-to-streamer-btn i {
    display: block; /* Ensures icon is centered if padding is uneven */
}

.broadcast-header-titles {
    flex-grow: 1; /* Titles take remaining space */
    text-align: left; /* Ensure titles remain left-aligned */
}

.broadcast-page-header h1 {
    font-size: 26px; /* Prominent size for the main broadcast title */
    color: var(--kick-text); /* Changed from --kick-green to --kick-text */
    margin: 0 0 4px 0; /* Reduced bottom margin from 8px to 4px */
    font-weight: 600;
    line-height: 1.3;
}

.streamer-stats-header { /* Styles for the new h2 element */
    font-size: 17px; /* Slightly smaller than h1 */
    color: var(--kick-text-secondary);
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

.streamer-stats-header a {
    color: var(--kick-green);
    text-decoration: none;
    font-weight: 500;
}

.streamer-stats-header a:hover {
    text-decoration: underline;
}

/* Stats Card Specific Styles */
.stats-card-value {
    /* Existing styles */
    display: flex; /* Use flexbox for alignment */
    flex-direction: column; /* Stack number and link vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    min-height: 50px; /* Ensure card has some height even with link */
}

.obfuscated-stat {
    /* Inherits .stats-card-value font styles */
    display: block; /* Ensure it takes its own line */
}

.stat-card-upgrade-prompt {
    display: block; /* Ensure it takes its own line */
    font-size: 10px; /* Smaller font size */
    font-weight: bold;
    color: var(--kick-green); /* Use Kick green */
    text-decoration: none;
    text-transform: uppercase;
    margin-top: 4px; /* Space above the link */
    padding: 2px 5px;
    border: 1px solid var(--kick-green);
    border-radius: 3px;
    transition: all 0.2s ease;
}

.stat-card-upgrade-prompt:hover {
    background-color: rgba(83, 252, 24, 0.15);
    color: #FFF;
}


/* Stats Container */
.streamer-stats-container {
    margin-bottom: 30px;
}

.stats-section-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--kick-text);
    position: relative;
    padding-left: 15px;
}

.stats-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 22px;
    background-color: var(--kick-green);
    border-radius: 3px;
}

/* Recent Messages */
.recent-messages {
    background-color: var(--kick-light-gray);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.chat-messages {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 20px;
    background-color: var(--kick-gray);
    border-radius: 5px;
    padding: 10px;
}

.view-more-container {
    text-align: center;
}

.view-more-btn {
    padding: 10px 20px;
    background-color: var(--kick-green);
    color: black;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
}

.view-more-btn:hover {
    background-color: #3EE900;
    transform: translateY(-1px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .streamer-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .streamer-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .streamer-meta {
        justify-content: center;
    }

    .streamer-actions {
        margin-top: 20px;
        justify-content: center;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .stats-charts {
        grid-template-columns: 1fr;
    }
}

/* Hide specific elements for non-PRO users */
/* body.user-guest #subscribers-count {
    display: none;
} */ /* Commented out to allow showing obfuscated count for non-PRO */

/* Detailed Stats Section */
.streamer-detailed-stats {
    margin-bottom: 30px;
}

.stats-detail-section {
    width: 100%;
    background-color: var(--kick-light-gray);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden; /* Reverted to hidden, to match streamer-detail.css behavior */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.stats-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--kick-border);
}

.stats-detail-title {
    margin: 0;
    font-size: 18px;
    color: var(--kick-text);
    display: flex;
    align-items: center;
}

.stats-detail-title i {
    color: var(--kick-green);
    margin-right: 10px;
}

.stats-detail-count {
    font-weight: 500;
    color: var(--kick-green);
}

.stats-detail-content {
    padding: 0;
}

/* Tables */
.stats-table-container {
    overflow-x: auto;
    max-height: 300px;
    overflow-y: auto;
}

/* Constrain width of table containers specifically within tab content */
.tab-content .stats-table-container {
   
    font-size: 14px;
}
.stats-table {
    width: 100%;
}
.stats-table th {
    padding: 12px 15px;
    text-align: left;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--kick-green);
    position: sticky;
    top: 0;
    z-index: 10;
}

.stats-table td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--kick-border);
}

.stats-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.stats-table .loading-cell {
    text-align: center;
    padding: 30px;
    color: #ADADB8;
}

/* Badge styles */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background-color: rgba(83, 252, 24, 0.2);
    color: var(--kick-green);
}

.status-badge.expired {
    background-color: rgba(255, 85, 85, 0.2);
    color: #FF5555;
}

.status-badge.permanent {
    background-color: rgba(255, 0, 0, 0.2);
    color: #FF5555;
}

.status-badge.unbanned {
    background-color: rgba(0, 170, 255, 0.2);
    color: #00AAFF;
}

/* Tooltip for longer content */
.truncate-with-tooltip {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
    position: relative;
}

.truncate-with-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    top: 100%;
    background-color: var(--kick-gray);
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 100;
    white-space: normal;
    max-width: 300px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stats-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-detail-count {
        margin-top: 5px;
    }

    .stats-table th,
    .stats-table td {
        padding: 8px 10px;
    }

    .truncate-with-tooltip {
        max-width: 150px;
    }
}
/* Anket Detay Stilleri */
.poll-option-progress {
    height: 20px;
    background-color: var(--kick-gray);
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.poll-option-progress-bar {
    height: 100%;
    background-color: var(--kick-green);
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

.poll-option-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.poll-option-name {
    font-weight: 500;
}

.poll-option-percent {
    color: var(--kick-green);
}

/* Anket Durum Göstergeleri */
.poll-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.poll-status.active {
    background-color: rgba(83, 252, 24, 0.2);
    color: var(--kick-green);
}

.poll-status.completed {
    background-color: rgba(0, 170, 255, 0.2);
    color: #00AAFF;
}

.poll-status.expired {
    background-color: rgba(255, 85, 85, 0.2);
    color: #FF5555;
}

/* Anket Modal */
.poll-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.poll-modal-content {
    background-color: var(--kick-light-gray);
    margin: 5% auto;
    padding: 25px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #ADADB8;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--kick-text);
}

.poll-modal-title {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--kick-border);
    color: var(--kick-green);
}

.poll-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.poll-info {
    grid-column: 1 / 3;
    background-color: var(--kick-gray);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.poll-info h4 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--kick-green);
}

.poll-info p {
    margin: 8px 0;
}

.poll-results {
    grid-column: 1 / 2;
    background-color: var(--kick-gray);
    padding: 15px;
    border-radius: 8px;
}

.poll-results h4 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--kick-text);
}

.poll-chart-container {
    grid-column: 2 / 3;
    background-color: var(--kick-gray);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Anket sonuç görselleştirmeleri */
.poll-option-item {
    margin-bottom: 15px;
}

/* Görsel İyileştirmeler */
.stats-table .poll-title {
    font-weight: 500;
    cursor: pointer;
    color: var(--kick-green);
    transition: color 0.2s ease;
}

.stats-table .poll-title:hover {
    text-decoration: underline;
}

/* Styling for prediction titles in the table to make them look clickable */
.stats-table .prediction-title {
    font-weight: bold; /* Make the text bold */
    color: var(--kick-green); /* Use the kick-green color */
    cursor: pointer; /* Change cursor to pointer to indicate clickability */
    transition: color 0.2s ease, text-decoration 0.2s ease; /* Smooth transition for hover effects */
}

.stats-table .prediction-title:hover {
    color: #3EE900; /* Slightly brighter green on hover */
    text-decoration: underline; /* Underline on hover */
}

.subscription-tabs {
    width: 100%;
}

.tab-buttons {
    display: flex;
    /* flex-wrap: wrap; REMOVED */
    overflow-x: auto;    /* ADDED for general horizontal scrolling */
    white-space: nowrap; /* ADDED to keep buttons in a single line for scrolling */
    border-bottom: 1px solid var(--kick-border);
    margin-bottom: 15px;
    gap: 5px;
    padding: 0 15px;
    padding-bottom: 5px; /* Added to prevent scrollbar from obscuring button bottoms */
}

.tab-button {
    padding: 10px 15px;
    background-color: transparent;
    border: none;
    color: var(--kick-text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: all 0.2s ease;
}

.tab-button:hover {
    color: var(--kick-green);
}

.tab-button.active {
    color: var(--kick-green);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background-color: var(--kick-green);
}

.tab-content {
    display: none;
    padding: 15px;
    width: 100%; /* Ensure it takes full width of parent */
    max-width: 100%; /* Ensure it doesn't exceed parent's width */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.tab-content.active {
    display: block;
}

/* Hediye Abonelik Stilleri */
.gift-badge {
    padding: 3px 8px;
    background-color: rgba(255, 100, 255, 0.2);
    color: #FF9EFF;
    border-radius: 10px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Reward Stats - Top Redeemer Styling */


.top-redeemer-container {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between elements */
    margin-bottom: 15px; /* Space before the table */
    font-size: 14px; /* Base font size */
    padding-left: 5px; /* Shift content slightly right */
}

.top-redeemer-icon {
    color: #FFD700; /* Gold color for the trophy */
    font-size: 1.1em; /* Slightly larger icon */
    margin-right: 4px; /* Small space after icon */
}

.top-redeemer-container strong {
    color: var(--kick-text); /* Standard text color for the label */
}

.top-redeemer-username {
    font-weight: 500;
    color: var(--kick-green); /* Highlight username */
}

.top-redeemer-count {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    background-color: rgba(83, 252, 24, 0.2); /* Use Kick green background */
    color: var(--kick-green); /* Use Kick green text */
    margin-left: auto; /* Push count to the far right */
}

/* Chart Upgrade Prompt */
.chart-upgrade-prompt {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Try to fill the container height */
    min-height: 100px; /* Ensure it has some minimum height */
    text-align: center;
    padding: 20px;
}

.chart-upgrade-prompt a {
    color: var(--kick-green);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 14px; /* Match table prompt size */
}

.chart-upgrade-prompt a:hover {
    color: #FFF;
    text-decoration: underline;
}

.chart-upgrade-prompt a i {
    margin-left: 5px;
    font-size: 0.9em;
}

/* Table Upgrade Prompt Row */
.upgrade-prompt-row {
    background-color: rgba(83, 252, 24, 0.05); /* Subtle green background */
}

.upgrade-prompt-row:hover {
    background-color: rgba(83, 252, 24, 0.1); /* Slightly darker on hover */
}

.upgrade-prompt-cell {
    text-align: center;
    padding: 12px 15px !important; /* Ensure padding overrides default td padding */
    border-bottom: none !important; /* Remove bottom border for this row */
}

.upgrade-prompt-cell a {
    color: var(--kick-green);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.upgrade-prompt-cell a:hover {
    color: #FFF;
    text-decoration: underline;
}

.upgrade-prompt-cell a i {
    margin-left: 5px;
    font-size: 0.9em;
}


/* PRO Banner Styles */
.pro-banner {
    background-color: #2C2C34; /* Dark background similar to image */
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px; /* Space before detailed stats */
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--kick-border); /* Subtle border */
}

.pro-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1; /* Allow content to take available space */
    margin-right: 20px; /* Space between content and actions */
}

.pro-banner-icon {
    font-size: 20px;
    color: #ADADB8; /* Light gray icon color */
}

.pro-banner-text {
    font-size: 14px;
    color: var(--kick-text);
    line-height: 1.4;
}

.pro-banner-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0; /* Prevent actions from shrinking */
}

.pro-banner-button {
    padding: 8px 18px;
    border: 2px solid #67C8FF; /* Light blue border like image */
    color: #EFEFF1; /* White text */
    background-color: transparent;
    border-radius: 5px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pro-banner-button:hover {
    background-color: rgba(103, 200, 255, 0.1); /* Subtle hover effect */
    color: #FFF;
}

.pro-banner-link {
    color: #ADADB8; /* Light gray link color */
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.pro-banner-link:hover {
    color: #FFF; /* White on hover */
}

/* Responsive adjustments for PRO banner */
@media (max-width: 768px) {
    .pro-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .pro-banner-content {
        margin-right: 0;
        margin-bottom: 10px; /* Space below content on mobile */
    }

    .pro-banner-actions {
        width: 100%;
        justify-content: flex-start; /* Align actions to start */
        gap: 15px;
    }
}

.gift-badge i {
    font-size: 12px;
}

.gifter-name {
    color: #FFC800;
    font-weight: 500;
}

/* En Çok Hediye Verenler Tablosu */
.top-gifter-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    font-weight: bold;
    font-size: 12px;
}

.top-gifter-rank-1 {
    background-color: rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

.top-gifter-rank-2 {
    background-color: rgba(192, 192, 192, 0.3);
    color: #C0C0C0;
}

.top-gifter-rank-3 {
    background-color: rgba(205, 127, 50, 0.3);
    color: #CD7F32;
}

.gift-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 10px;
    background-color: rgba(255, 100, 255, 0.2);
    color: #FF9EFF;
    font-weight: 500;
}

/* Abonelik türlerini gösteren sayaçlar */
.subscription-counters {
    display: flex;
    gap: 15px;
    padding: 10px 15px;
    margin-bottom: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 14px;
}

.subscription-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-label {
    font-size: 12px;
    color: #ADADB8;
    margin-bottom: 5px;
}

.counter-value {
    font-size: 16px;
    font-weight: 500;
}

.normal-subs .counter-value {
    color: var(--kick-green);
}

.gifted-subs .counter-value {
    color: #FF9EFF;
}

.total-subs .counter-value {
    color: #FFC800;
}

/* Mobil uyumluluğu */
@media (max-width: 768px) {
    .tab-buttons {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }

    .tab-button {
        padding: 8px 12px;
        font-size: 13px;
    }

    .subscription-counters {
        flex-direction: column;
        gap: 10px;
    }

    .subscription-counter {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    .poll-modal-content {
        width: 95%;
        padding: 15px;
    }

    .poll-detail-container {
        grid-template-columns: 1fr;
    }

    .poll-info,
    .poll-results,
    .poll-chart-container {
        grid-column: 1;
    }
}
.status-badge.expired {
    background-color: rgba(255, 85, 85, 0.2);
    color: #FF5555;
}

.status-badge.renew-status {
    background-color: rgba(0, 170, 255, 0.2);
    color: #00AAFF;
}

.status-badge.new-status {
    background-color: rgba(83, 252, 24, 0.2);
    color: var(--kick-green);
}

.renewal-badge {
    font-size: 10px;
    margin-left: 5px;
    background-color: rgba(255, 255, 0, 0.2);
    color: #FFD700;
    padding: 2px 5px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.renewal-badge i {
    font-size: 10px;
}

.subscriber-username {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Keyframes for pulsing animation */
@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.03);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Styles for the new Live/Offline indicator inside streamer-info */
.streamer-status {
    display: inline-flex; /* Use inline-flex to keep it on the same line potentially */
    align-items: center;
    gap: 6px; /* Space between icon and text */
    font-size: 14px; /* Match meta item font size */
    font-weight: 500;
    margin-top: 0; /* Remove top margin, handled by container */
    margin-bottom: 0; /* Remove bottom margin */
    padding: 3px 8px; /* Small padding */
    border-radius: 12px; /* Rounded corners */
    /* Ensure it doesn't push other elements */
    line-height: 1;
}

.streamer-status i {
    font-size: 10px; /* Smaller icon */
}

.streamer-status.live {
    color: var(--kick-green);
    background-color: rgba(83, 252, 24, 0.15); /* Light green background */
    animation: pulse 1.5s infinite ease-in-out; /* Apply pulsing animation */
}

.streamer-status.live i {
    color: var(--kick-green);
}

.streamer-status.offline {
    color: #FF5555; /* Red color */
    background-color: rgba(255, 85, 85, 0.15); /* Light red background */
    /* No animation for offline */
}

.streamer-status.offline i {
    color: #FF5555;
}

/* Prediction Modal Specific Styles */
.poll-modal-content .prediction-modal-section {
    margin-bottom: 15px;
    padding: 10px;
    background-color: var(--kick-gray); /* Consistent background for sections */
    border-radius: 6px;
}

.poll-modal-content .prediction-modal-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--kick-green);
    font-size: 16px;
}

#prediction-modal-info-section h4 { /* Main title for prediction */
    font-size: 18px;
    color: var(--kick-text); /* Or keep it green if preferred */
}


.scrollable-history {
    max-height: 250px; /* Adjust as needed */
    overflow-y: auto;
    padding: 10px;
    background-color: rgba(0,0,0,0.1); /* Slightly different background for the list */
    border-radius: 4px;
    border: 1px solid var(--kick-border);
}

.prediction-event-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.prediction-event-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--kick-border);
    font-size: 13px;
    line-height: 1.5;
}

.prediction-event-item:last-child {
    border-bottom: none;
}

.prediction-event-item strong {
    color: var(--kick-green);
}

.event-outcomes-snapshot {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 5px;
    font-size: 12px;
    color: #ADADB8;
}
.event-outcomes-snapshot li {
    margin-bottom: 3px;
}


/* Ensure modal content stacks vertically on small screens */
@media (max-width: 768px) {
    .poll-modal-content.two-pane .prediction-modal-body { /* If two-pane class was used */
        flex-direction: column;
    }
    .poll-modal-content .prediction-modal-left-pane,
    .poll-modal-content .prediction-modal-right-pane {
        width: 100%;
        margin-bottom: 15px;
    }
    .scrollable-history {
        max-height: 200px; /* Adjust for smaller screens */
    }
}

/* Style for the smaller chart in the event history */
#prediction-modal-event-history #prediction-result-chart {
    width: 200px;
    height: 200px;
    margin: 10px auto; /* Center the chart */
}

/* Prediction outcome item specific styling if different from poll */
.prediction-option-item {
    margin-bottom: 12px;
}
.prediction-option-item .prediction-option-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.prediction-option-item .prediction-option-name {
    font-weight: 500;
}
.prediction-option-item .prediction-option-details {
    font-size: 0.9em;
    color: #b0b0b0;
}
.prediction-option-item .prediction-option-percent {
    color: var(--kick-green);
    font-weight: 500;
}
.prediction-option-item .prediction-option-progress {
    height: 18px;
    background-color: var(--kick-gray);
    border-radius: 9px;
    overflow: hidden;
}
.prediction-option-item .prediction-option-progress-bar {
    height: 100%;
    background-color: var(--kick-green);
    border-radius: 9px;
    transition: width 0.3s ease;
}
.prediction-option-item .prediction-top-users {
    font-size: 0.85em;
    color: #999;
    margin-top: 4px;
}
.prediction-option-item.winning-outcome .prediction-option-name {
    color: var(--kick-green);
    font-weight: bold;
}
.prediction-option-item.winning-outcome .prediction-option-progress-bar {
    background-color: #ffd700; /* Gold for winning */
}

/* New Prediction Modal Layout (Info top, then 2 columns) */
.prediction-modal-header-info {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--kick-border);
}

.prediction-modal-header-info #prediction-modal-title { /* The actual title of the prediction */
    font-size: 1.3em;
    color: var(--kick-text); /* Or var(--kick-green) if preferred */
    margin-bottom: 10px;
}

.prediction-modal-header-info p {
    font-size: 0.9em;
    margin: 5px 0;
    color: #ADADB8;
}
.prediction-modal-header-info p strong {
    color: var(--kick-text-secondary);
}

/* Styles for the new layout within prediction-modal-general-info */
#prediction-modal-general-info {
    display: flex;
    justify-content: space-between; /* Puts space between text and chart */
    align-items: flex-start; /* Aligns items to the top */
    gap: 20px; /* Adds some space between the two sections */
    padding: 10px; /* Optional: add some padding if needed */
    /* background-color: #f9f9f9; /* Optional: for visual distinction */
    /* border-radius: 4px; /* Optional: for rounded corners */
}

.general-info-text {
    flex: 1; /* Allows text block to take available space */
    /* Add any specific styling for the text block if needed */
}

.general-info-chart {
    flex-shrink: 0; /* Prevents chart block from shrinking */
    /* Styles for the chart container within general-info */
}

.general-info-chart .poll-chart-container {
    padding: 0; /* Reset padding if inherited and not desired */
    background-color: transparent; /* Ensure no conflicting background */
    /* Ensure canvas itself is responsive or sized correctly if needed */
}

.general-info-chart #prediction-result-chart {
    /* The canvas already has inline styles for w/h, so specific CSS might not be needed here unless overriding */
    display: block; /* Ensure it behaves as a block element */
}


.prediction-modal-columns {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for mobile */
    gap: 20px;
}

.prediction-modal-column {
    background-color: var(--kick-gray); /* Background for columns */
    padding: 15px;
    border-radius: 6px;
}

.prediction-modal-column h4 { /* Titles for "Event History" and "Outcomes & Results" */
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--kick-green);
    font-size: 1em; /* Slightly smaller than main modal title */
    border-bottom: 1px solid var(--kick-border);
    padding-bottom: 8px;
}

.left-column {
    flex: 1; /* Adjust flex basis as needed, e.g., flex-basis: 40%; */
    min-width: 300px; /* Minimum width before wrapping */
}

.right-column {
    flex: 1; /* Adjust flex basis as needed, e.g., flex-basis: 58%; */
    min-width: 300px; /* Minimum width before wrapping */
    display: flex;
    flex-direction: column; /* Stack options list and chart vertically */
}

.right-column .poll-chart-container {
    margin-top: 15px; /* Space above the chart */
    flex-grow: 1; /* Allow chart container to take available space */
    max-height: 300px; /* Max height for the chart container */
}

.right-column #prediction-result-chart {
    max-height: 100%; /* Ensure chart respects container height */
    width: auto !important; /* Override potential fixed width from Chart.js if needed */
}


/* Responsive stacking for the two columns */
@media (max-width: 768px) {
    .prediction-modal-columns {
        flex-direction: column; /* Stack columns vertically */
    }
    .left-column, .right-column {
        flex-basis: auto; /* Reset flex-basis */
        width: 100%;
    }
    .right-column .poll-chart-container {
        max-height: 250px; /* Slightly smaller chart on mobile */
    }
}

/* Accordion Styles */
.stats-detail-header.accordion-toggle {
    cursor: pointer;
    transition: background-color 0.2s ease;
    /* justify-content: space-between; is already on .stats-detail-header */
}

.stats-detail-header.accordion-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Slight hover effect */
}

.accordion-header-controls {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between count and icon */
}

.stats-detail-header.accordion-toggle .accordion-icon {
    /* margin-left: auto; Removed as positioning is handled by flex parent */
    transition: transform 0.3s ease;
    color: var(--kick-text);
}

.stats-detail-header.accordion-toggle.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--kick-green);
}

.accordion-content {
    /* display: none; is handled by inline style and JS */
    padding: 0; /* Remove padding if content inside already has it */
    border-top: 1px solid var(--kick-border); /* Separator line when open */
}

/* Pagination Controls Specific to User Feedback */
.items-per-page-controls {
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 0; /* Rely on parent's gap for spacing */
    /* background-color and border-top removed as it's now part of pagination-controls block */
}

.items-per-page-controls label {
    margin-right: 8px;
    font-size: 14px;
    color: var(--kick-text-secondary);
}

.items-per-page-controls select {
    padding: 6px 10px;
    border-radius: 4px;
    background-color: var(--kick-gray);
    color: var(--kick-text);
    border: 1px solid var(--kick-border);
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    flex-direction: column; /* Stack buttons div and page info span */
    align-items: center; /* Center items horizontally */
    gap: 10px; /* Space between buttons div and page info */
    width: 100%; /* Changed */
    /* margin-left: -15px; REMOVED */
    /* margin-right: -15px; REMOVED */
    /* max-width: 800px; /* Optional: constrain width */
    /* margin: 0 auto; /* Center if max-width is used */
    padding: 10px 15px; /* Internal padding remains the same */
    background-color: rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--kick-border);
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    box-sizing: border-box;
}

.pagination-controls-buttons {
    display: flex;
    justify-content: center; /* Center the buttons as a group */
    gap: 10px; /* Space between the Previous and Next buttons */
}

.pagination-controls button {
    padding: 6px 12px;
    border-radius: 4px;
    background-color: var(--kick-green);
    color: #000;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex; 
    align-items: center;
    gap: 5px; 
    flex-shrink: 0; /* Prevent buttons from shrinking initially */
}

.pagination-controls button:disabled {
    background-color: var(--kick-gray);
    color: var(--kick-text-secondary);
    cursor: not-allowed;
}

.pagination-controls button:not(:disabled):hover {
    background-color: #3EE900;
}

.pagination-controls #page-info-normal {
    font-size: 14px;
    color: var(--kick-text);
    text-align: center; 
    white-space: normal; /* Changed from nowrap to normal */
}

/* Responsive adjustments for the new pagination layout */
@media (max-width: 480px) {
    .items-per-page-controls {
        justify-content: center;
    }
    /* .pagination-controls-buttons might not need changes if they naturally stack or if width:100% is okay */
    /* .pagination-controls button might need width: 48%; or similar if they are side-by-side and need to wrap */
}

.pagination-meta-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* Adjust as needed */
}

/* Underline count on header hover for better click affordance */
.stats-detail-header.accordion-toggle:hover .stats-detail-count {
    text-decoration: underline;
}

/* New Tab Styles */
.streamer-tabs-nav {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--kick-border);
}

.streamer-tabs-nav .tab-link {
    padding: 10px 20px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: var(--kick-text-secondary);
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}

.streamer-tabs-nav .tab-link:hover {
    color: var(--kick-green);
}

.streamer-tabs-nav .tab-link.active {
    color: var(--kick-green);
    border-bottom: 2px solid var(--kick-green);
    margin-bottom: -2px; /* Align with the main border */
}

.streamer-tabs-content .tab-pane {
    display: none;
}

.streamer-tabs-content .tab-pane.active {
    display: block;
}

/* Styles for Broadcast List */
#broadcast-list-container {
    margin-bottom: 20px;
}

.broadcast-list-item {
    background-color: var(--kick-light-gray);
    border: 1px solid var(--kick-border);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.broadcast-list-item:hover {
    background-color: var(--kick-gray);
    border-color: var(--kick-green);
}

.broadcast-list-item h4 {
    margin: 0 0 5px 0;
    color: var(--kick-green);
    font-size: 16px;
}

.broadcast-list-item p {
    margin: 0;
    font-size: 14px;
    color: #E0E0E0; /* Light gray for plain text, similar to stat card values */
    text-decoration: none !important; /* Ensure no underline from parent link */
}

/* Ensure the link itself doesn't add underlines to its children if not desired */
.broadcast-list-item-link {
    text-decoration: none;
}

/* Styles for Broadcast Detail Container */
#broadcast-detail-container {
    background-color: var(--kick-light-gray);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#broadcast-detail-container h3 {
    color: var(--kick-green);
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--kick-border);
    padding-bottom: 10px;
}

#broadcast-detail-container .detail-item {
    margin-bottom: 10px;
    font-size: 15px;
}

#broadcast-detail-container .detail-item strong {
    color: var(--kick-text);
    margin-right: 8px;
}

#broadcast-detail-container .detail-item span {
    color: var(--kick-text-secondary);
}

.loading-cell { /* General loading cell style */
    text-align: center;
    padding: 20px;
    color: #ADADB8;
    font-style: italic;
}

/* Broadcast Search and Pagination Controls */
.broadcast-search-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

#broadcast-search-input {
    flex-grow: 1;
    padding: 10px 15px;
    border-radius: 50px; /* Pill shape */
    border: 1px solid var(--kick-border);
    background-color: var(--kick-gray);
    color: var(--kick-text);
    font-size: 14px;
}

#broadcast-search-input:focus {
    outline: none;
    border-color: var(--kick-green);
    box-shadow: 0 0 0 2px rgba(83, 252, 24, 0.3);
}

#broadcast-search-button {
    /* Reusing streamer-action-btn style but ensuring specific overrides if needed */
    /* padding: 10px 15px; Done by streamer-action-btn */
    /* background-color: var(--kick-green); Done by streamer-action-btn */
    /* color: #000; Done by streamer-action-btn */
    /* border: none; Done by streamer-action-btn */
    /* border-radius: 50px; Done by streamer-action-btn */
    /* font-weight: 500; Done by streamer-action-btn */
    /* cursor: pointer; Done by streamer-action-btn */
    /* transition: all 0.2s ease; Done by streamer-action-btn */
    /* display: inline-flex; Done by streamer-action-btn */
    /* align-items: center; Done by streamer-action-btn */
    /* gap: 8px; Done by streamer-action-btn */
    font-size: 14px; /* Ensure consistency */
}
/* Ensure the search button uses the primary action style */
#broadcast-search-button {
    background-color: var(--kick-green);
    color: #000;
    border: none;
}
#broadcast-search-button:hover {
    background-color: #3EE900; /* Brighter green on hover */
}


#broadcasts-pagination-controls {
    display: flex;
    flex-direction: column; /* Stack buttons and page info */
    align-items: center;
    gap: 10px; /* Space between button group and page info */
    padding: 15px 0;
    margin-top: 15px;
    border-top: 1px solid var(--kick-border);
}

#broadcasts-pagination-controls .pagination-controls-buttons {
    display: flex;
    gap: 10px;
}

#broadcasts-pagination-controls button {
    padding: 8px 15px;
    border-radius: 4px;
    background-color: var(--kick-green);
    color: #000;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

#broadcasts-pagination-controls button:disabled {
    background-color: var(--kick-gray);
    color: var(--kick-text-secondary);
    cursor: not-allowed;
}

#broadcasts-pagination-controls button:not(:disabled):hover {
    background-color: #3EE900;
}

#broadcasts-pagination-controls .page-info {
    font-size: 14px;
    color: var(--kick-text-secondary);
}

/* Styles for Broadcast Detail View Charts */
.broadcast-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.broadcast-detail-header h3 {
    margin: 0;
    color: var(--kick-green);
}

.broadcast-general-stats {
    display: grid;
    /* Adjust minmax to allow more items per row, e.g., min 150px or 180px */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 8px; /* Reduced gap */
    margin-bottom: 15px; /* Reduced margin */
    padding: 12px; /* Reduced padding */
    background-color: var(--kick-gray);
    border-radius: 6px;
}

.broadcast-general-stats .detail-item {
    background-color: var(--kick-light-gray);
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}
.broadcast-general-stats .detail-item strong {
    color: var(--kick-text);
}
.broadcast-general-stats .detail-item span {
    color: var(--kick-green);
    font-weight: 500;
}


.broadcast-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for smaller charts */
    gap: 15px; /* Reduced gap */
    margin-bottom: 15px; /* Reduced margin */
}

.broadcast-charts-grid .chart-container {
    background-color: var(--kick-gray);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.broadcast-charts-grid .chart-container.small-chart {
    /* Default, takes one column */
    min-height: 250px; /* Ensure small charts have some height */
}

.broadcast-charts-grid .chart-container.full-width-chart {
    grid-column: 1 / -1; /* Span across all columns */
    min-height: 300px;
}

.broadcast-charts-grid .chart-title {
    font-size: 16px;
    color: var(--kick-text-secondary);
    margin: 0 0 10px 0;
    text-align: center;
}

.broadcast-charts-grid .chart {
    position: relative; /* For Chart.js responsiveness */
    width: 100% !important; 
    max-width: 100%; 
    height: auto !important; 
    min-height: 180px; /* Default min-height for charts */
    display: block; /* Ensure canvas behaves as a block */
}

.broadcast-charts-grid .full-width-chart .chart {
    min-height: 220px; /* Taller for full-width chart */
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    display: block;
}

.chart-error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--kick-text-secondary);
    font-style: italic;
}

@media (max-width: 768px) {
     .broadcast-charts-grid {
        grid-template-columns: 1fr; /* Stack charts on smaller screens */
        width: 100%;
        box-sizing: border-box;
        padding: 0 5px; /* Add slight horizontal padding to the grid itself if needed */
    }
     .broadcast-charts-grid .chart-container {
        padding: 10px; /* Reduce padding on mobile */
        width: 100%;
        box-sizing: border-box;
        overflow: hidden; /* Prevent content from spilling out of container */
    }
    .broadcast-charts-grid .chart,
    .broadcast-charts-grid .full-width-chart .chart {
        min-height: 150px; /* Further reduced min-height for mobile charts */
        height: auto !important; /* Ensure height is responsive */
        max-width: 100%;
        display: block;
    }
    .broadcast-general-stats {
        grid-template-columns: 1fr;
    }
    .report-cards-grid {
    grid-template-columns: 1fr; /* Stack cards */
    }
    .report-columns-container {
        flex-direction: column; /* Stack columns */
    }
    /* Adjust general stats for mobile if they become too crowded */
    .broadcast-general-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Smaller min for mobile */
    }

    /* Mobile specific for Bans table - hide columns and make rows clickable */
    #bd-broadcast-bans-table th.col-banned-by,
    #bd-broadcast-bans-table td.col-banned-by,
    #bd-broadcast-bans-table th.col-ban-date,
    #bd-broadcast-bans-table td.col-ban-date {
        display: none;
    }
    #bd-broadcast-bans-table tbody tr {
        cursor: pointer; 
    }
    #bd-broadcast-bans-table tbody tr:hover {
        background-color: var(--kick-gray); 
    }
}

/* Additional Reports Section */
.broadcast-additional-reports-container {
    margin-top: 20px; /* Reduced margin */
    background-color: var(--kick-gray); /* Slightly different background for the section */
    padding: 15px; /* Reduced padding */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.broadcast-additional-reports-container .section-title {
    font-size: 20px;
    color: var(--kick-green);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--kick-border);
}

.report-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

/* .report-card styles can be removed if .report-cards-grid is empty and removed from HTML */
/*
.report-card {
    background-color: var(--kick-light-gray);
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.report-card-title {
    font-size: 14px;
    color: var(--kick-text-secondary);
    margin: 0 0 8px 0;
    font-weight: 500;
}

.report-card-value {
    font-size: 22px;
    color: var(--kick-green);
    font-weight: 600;
    margin: 0;
}
*/

.report-columns-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.report-column {
    flex: 1;
    background-color: var(--kick-light-gray);
    padding: 15px;
    border-radius: 6px;
}

.report-column-title {
    font-size: 16px;
    color: var(--kick-text-secondary);
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--kick-border-light);
}

.report-column p { /* For Poll/Prediction counts */
    font-size: 14px;
    color: var(--kick-text-secondary);
    margin-bottom: 8px;
}
.report-column p span {
    color: var(--kick-green);
    font-weight: 500;
}

.report-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    font-size: 14px;
    color: var(--kick-text);
}

.report-list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--kick-border-very-light);
}

.report-list li:last-child {
    border-bottom: none;
}

.report-list .no-data-cell,
.report-list .loading-cell { /* Shared style for loading/no data in lists */
    color: var(--kick-text-secondary);
    font-style: italic;
    text-align: center;
    padding: 10px 0;
    border-bottom: none;
}

/* Accordion Row for 2-column layout in broadcast details */
.broadcast-additional-reports-container .accordion-row {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 15px; /* Reduced Space between the two accordions in a row */
    margin-bottom: 0; /* Remove bottom margin if .stats-detail-section has it */
}

.broadcast-additional-reports-container .accordion-row .stats-detail-section {
    flex: 1 1 calc(50% - 7.5px); /* Adjusted for 15px gap */
    min-width: 280px; /* Slightly reduced min-width */
    margin-bottom: 15px; /* Reduced bottom margin for spacing between rows */
}

/* Responsive adjustments for accordion rows */
@media (max-width: 992px) { /* Adjust breakpoint as needed */
    .broadcast-additional-reports-container .accordion-row {
        flex-direction: column;
        gap: 0; /* Remove gap when stacked, rely on .stats-detail-section margin */
    }
    .broadcast-additional-reports-container .accordion-row .stats-detail-section {
        flex-basis: 100%; /* Full width when stacked */
        /* margin-bottom is already 20px, which is fine for stacked items */
    }
}
/* Full-width chart styling */
.chart-container.full-width-chart {
    grid-column: 1 / -1; /* Span across all columns in the grid */
    height: 400px; /* Taller height for main charts */
}

/* Ensure chart canvas fills its container */
.chart-container .chart {
    height: 100%;
    width: 100%;
    position: relative;
}

/* Small chart styling */
.chart-container.small-chart {
    height: 250px; /* Maintain a smaller height for the segment charts */
}

/* Responsive adjustments for the grid */
@media (max-width: 768px) {
    .broadcast-charts-grid {
        grid-template-columns: 1fr; /* Stack all charts on top of each other on mobile */
    }

    .chart-container.full-width-chart {
        height: 300px; /* Adjust height for mobile */
    }
}
/* Popular Categories Container Styling */
.popular-categories-container {
    background-color: #2a2a2e; /* Dark background for the container */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    grid-column: 1 / -1; /* Ensure it spans full width if inside a grid */
}

.popular-categories-container .chart-title {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2em;
    color: #efeff1;
}

.popular-categories-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
}

.popular-categories-content .chart {
    flex: 1;
    max-width: 250px; /* Limit the size of the doughnut chart */
    height: 250px;
    position: relative;
}

.popular-categories-details {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #333337;
    border-radius: 5px;
    font-size: 0.9em;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-color-box {
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

.category-name {
    color: #efeff1;
}

.category-duration {
    color: #a0a0a0;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .popular-categories-content {
        flex-direction: column;
    }

    .popular-categories-details {
        width: 100%;
    }
}
.category-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.category-viewers {
    font-size: 0.8em;
    color: #b0b0b0;
}

