:root {
    --primary-color: #ff3b30; /* Red accent */
    --bg-color: #0f1115; /* Dark background */
    --card-bg: #1a1c24; /* Card background */
    --text-color: #ffffff;
    --text-muted: #8e9297;
    --border-color: #2a2c35;
    --radius: 8px;
    --font-family: 'Rubik', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* Smooth scrolling for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--card-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #0d0f12;
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

/* Main Layout */
.main-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    display: grid;
    gap: 20px;
}

/* Top Section (Player + Sidebar) */
.top-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Player Area */
.player-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.player-header {
    padding: 10px 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(0,0,0,0.2);
}

.player-header-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 10;
}

.live-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
    position: relative;
    padding-left: 24px;
}

.live-badge::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.match-info-text {
    font-size: 12px;
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder iframe {
    width: 100%;
    height: 100%;
}

.player-overlay {
    position: absolute;
    bottom: -77px;
    left: 0;
    width: 100%;
    padding: 9px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
    pointer-events: none; /* Let clicks pass through to video controls if needed, but buttons need pointer-events auto */
}

.player-overlay > div:first-child {
    flex: 1;
    min-width: 0;
}

.player-overlay > div:first-child > div:first-child {
    margin-left: 15px;
}

.player-overlay > div:last-child {
    flex-shrink: 0;
}

.match-score-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 0;
}

.match-score-display .team-display {
    width: 85px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.match-score-display .team-display > div:last-child {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

.match-score-display .score-board {
    flex: 0 0 auto;
}

.team-display {
    text-align: center;
}

.team-logo-circle {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    color: #000;
    font-weight: bold;
    font-size: 20px;
    overflow: hidden;
}

.team-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-logo-circle span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-board {
    font-size: 23px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 5px;
}

.player-actions {
    display: flex;
    gap: 10px;
    pointer-events: auto;
    flex-wrap: wrap;
}

.player-actions .btn {
    white-space: nowrap;
    font-size: 14px;
    font-weight: bold;
    padding: 12px 20px;
}

.player-actions .btn i {
    font-size: 16px;
}

.player-actions .btn-primary {
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.4);
}

.player-actions .btn-outline i {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.player-actions .btn-outline i::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

.player-actions .btn-outline i.fa-plus {
    font-size: 0;
}

.player-actions .btn-outline i.fa-plus::after {
    content: '\2b';
    position: absolute;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    opacity: 1;
    z-index: 1;
    color: currentColor;
}

/* Sidebar */
.sidebar-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 505px;
    display: flex;
    flex-direction: column;
}

.sidebar-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-tab {
    flex: 1;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-tab:not(.active) {
    opacity: 0.6;
}

.sidebar-tab:hover:not(.active) {
    opacity: 0.8;
    background: rgba(255,255,255,0.03);
}

.sidebar-tab.active {
    color: var(--primary-color);
    opacity: 1;
}

.sidebar-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 460px;
    min-height: 400px;
}

/* Custom scrollbar for sidebar */
.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #e63529;
}

/* Search input styling */
.sidebar-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 6px;
    font-size: 14px;
    margin: 10px 0;
}

.sidebar-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255,59,48,0.2);
}

.match-list-item {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.match-list-item:hover {
    background-color: rgba(255,255,255,0.05);
}

.match-list-item.active-match {
    background: rgba(255,59,48,0.1);
    border-left: 3px solid var(--primary-color);
}

.match-teams {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.match-scores {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.match-time {
    font-size: 10px;
    color: var(--text-muted);
    text-align: right;
}

/* Channel List Styling */
.channel-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--card-bg);
}

.channel-list-item:hover {
    background: rgba(255,255,255,0.05);
    transform: translateX(5px);
}

.channel-list-item.active-channel {
    background: rgba(255,59,48,0.1);
    border-left: 3px solid var(--primary-color);
}

.channel-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    padding: 5px;
    border: 1px solid var(--border-color);
}

.channel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.channel-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.channel-quality {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.quality-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.channel-play-icon {
    color: var(--primary-color);
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.channel-list-item:hover .channel-play-icon,
.channel-list-item.active-channel .channel-play-icon {
    opacity: 1;
}

/* Additional Utility Classes */
.color-red { color: #ff3b30; }
.color-green { color: #4cd964; }
.color-blue { color: #007aff; }

#match-category-info {
    display: none;
}

/* Quick Links */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.quick-link-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.quick-link-icon {
    font-size: 24px;
    color: #00FFEA;
}

.quick-link-text {
    font-size: 12px;
    font-weight: 500;
}

/* Live Matches Table */
.live-matches-section {
    margin-top: 20px;
}

.live-matches-section .section-header {
    margin-bottom: 20px;
}

.matches-table-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
}

.filter-tabs {
    display: flex;
    gap: 5px;
}

.filter-tab {
    padding: 5px 15px;
    border-radius: 4px;
    background: #252830;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-muted);
}

.filter-tab.active {
    background: var(--text-color);
    color: #000;
}

.matches-table {
    width: 100%;
    border-collapse: collapse;
}

.matches-table th {
    text-align: left;
    color: var(--text-muted);
    font-size: 11px;
    padding: 10px;
    text-transform: uppercase;
}

.matches-table td {
    padding: 10px;
    border-top: 1px solid var(--border-color);
    vertical-align: middle;
}

.match-row:hover {
    background-color: rgba(255,255,255,0.02);
}

.match-detail-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.match-time-badge {
    color: var(--primary-color); /* Green in some contexts, cyan in image */
    font-size: 12px;
    width: 40px;
}

.teams-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-name {
    font-size: 13px;
    font-weight: 500;
}

.score-badge {
    background-color: #121418;
    padding: 8px 25px;
    border-radius: 4px;
    color: var(--primary-color);
    font-weight: bold;
    border: 1px solid var(--border-color);
    min-width: 130px;
    display: inline-block;
    text-align: center;
}

.odds-cell {
    text-align: center;
}

.odd-box {
    background-color: #121418;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0px 15px;
    text-align: center;
    min-width: 120px;
    width: 90px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.odd-val {
    display: block;
    color: #fff;
    font-weight: bold;
    font-size: 11px;
}

.odd-trend {
    font-size: 10px;
}
.trend-up { color: #00ff00; }
.trend-down { color: #ff0000; }

.view-all-matches {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.view-all-matches a {
    font-size: 13px;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
}

.view-all-matches a:hover {
    color: var(--primary-color);
}

/* Popular Casino Games */
.casino-section {
    margin-top: 20px;
}

.casino-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.game-card {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
    cursor: pointer;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover img {
    transform: scale(1.1);
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.game-title {
    font-size: 14px;
    font-weight: bold;
    display: block;
}

.game-provider {
    font-size: 11px;
    color: var(--text-muted);
}

/* Footer Banners */
.footer-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.banner-card {
    background-color: #1a1c24; /* Fallback color */
    background-image: linear-gradient(135deg, #1a1c24 0%, #2a2c35 100%);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.banner-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.banner-text {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    z-index: 1001;
}

.mobile-nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-nav-overlay.active {
    transform: translateX(0);
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav-menu li {
    margin: 20px 0;
}

.mobile-nav-menu a {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 30px;
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-nav-menu a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 59, 48, 0.1);
}

.mobile-nav-menu i {
    font-size: 20px;
}

.mobile-auth-buttons {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.mobile-auth-buttons .btn {
    min-width: 200px;
    padding: 15px 30px;
    font-size: 16px;
}

/* Tablet Responsiveness */
@media (max-width: 1024px) {
    .main-container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .casino-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 900px) {
    .top-section {
        grid-template-columns: 1fr;
    }
    
    .header-left {
        gap: 20px;
    }
    
    .main-nav ul {
        gap: 15px;
    }
    
    .main-nav a {
        font-size: 13px;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-header {
        padding: 12px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        width: 100%;
    }
    
    .header-left {
        display: flex;
        align-items: center;
        gap: 15px;
        width: auto;
        justify-content: flex-start;
    }
    
    .logo {
        text-align: left;
    }
    
    .logo-img {
        max-height: 35px;
    }
    
    .main-nav {
        display: none;
    }
    
    .header-right {
        position: static;
        display: flex;
        align-items: center;
        gap: 10px;
        transform: none;
        right: auto;
        top: auto;
    }
    
    .header-right .btn-outline {
        display: none;
    }
    
    .header-right .btn-primary {
        display: inline-flex;
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .main-container {
        padding: 0 15px;
        margin: 15px auto;
        max-width: 100%;
    }
    
    .top-section {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    /* Video player fix - remove aspect ratio */
    .video-placeholder {
        aspect-ratio: auto;
        height: 280px;
        min-height: 280px;
    }
    
    .video-placeholder iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    /* Player overlay mobile adjustments */
    .player-overlay {
        padding: 12px;
        bottom: 0;
    }
    
    .player-header-overlay {
        top: 0;
        padding: 10px;
    }
    
    .match-score-display {
        flex-direction: row;
        justify-content: space-around;
        gap: 8px;
        align-items: center;
    }
    
    .team-display {
        gap: 5px;
        flex: 1;
        max-width: 35%;
    }
    
    .team-logo-circle {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
    
    #home-team-name,
    #away-team-name {
        font-size: 11px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .score-board,
    #match-vs {
        font-size: 13px;
        padding: 6px 10px;
        flex: 0 0 auto;
    }
    
    .live-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
    
    #match-category-info {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    /* Sidebar adjustments */
    .sidebar-card {
        min-height: auto;
    }
    
    .sidebar-tabs {
        flex-wrap: wrap;
    }
    
    .sidebar-tab {
        padding: 12px 10px;
        font-size: 12px;
        gap: 4px;
    }
    
    .sidebar-tab i {
        font-size: 14px;
    }
    
    .sidebar-content {
        max-height: 350px;
        min-height: 300px;
    }
    
    .sidebar-search input {
        font-size: 13px;
        padding: 8px;
    }
    
    /* Match & Channel list items */
    .match-list-item {
        padding: 10px;
    }
    
    .match-teams span {
        font-size: 12px;
    }
    
    .match-time {
        font-size: 11px;
    }
    
    .channel-list-item {
        padding: 10px;
        gap: 10px;
    }
    
    .channel-logo {
        width: 40px;
        height: 40px;
    }
    
    .channel-name {
        font-size: 13px;
    }
    
    .channel-quality {
        font-size: 10px;
    }
    
    .channel-play-icon {
        opacity: 1;
        font-size: 16px;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .quick-link-card {
        padding: 15px 10px;
    }
    
    .quick-link-icon {
        font-size: 20px;
    }
    
    .quick-link-text {
        font-size: 11px;
    }
    
    .casino-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .footer-banners {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .banner-card {
        padding: 20px;
    }
    
    .banner-title {
        font-size: 20px;
    }
    
    /* Player responsive */
    .player-overlay {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .match-score-display {
        gap: 10px;
    }
    
    .team-logo-circle {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .score-board {
        font-size: 24px;
    }
    
    .player-actions {
        justify-content: center;
        width: 100%;
    }
    
    .player-actions .btn {
        flex: 1;
        min-width: 0;
        padding: 10px 15px;
        font-size: 12px;
    }
    
    /* Table responsive */
    .matches-table-container {
        padding: 15px;
        overflow-x: auto;
    }
    
    .matches-table {
        min-width: 600px;
    }
    
    .odd-box {
        min-width: 80px;
        width: 80px;
        height: 35px;
    }
    
    .odd-val {
        font-size: 10px;
    }
    
    /* Section headers */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .filter-tabs {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .filter-tab {
        flex: 1;
        text-align: center;
        padding: 8px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 10px 12px;
    }
    
    .logo-img {
        max-height: 32px;
    }
    
    .header-right .btn-primary {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .main-container {
        padding: 0 12px;
        margin: 10px auto;
    }
    
    /* Video player fix for small screens */
    .video-placeholder {
        aspect-ratio: auto;
        height: 240px;
        min-height: 240px;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .quick-link-card {
        padding: 12px 8px;
    }
    
    .quick-link-icon {
        font-size: 18px;
    }
    
    .quick-link-text {
        font-size: 10px;
    }
    
    .casino-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .game-title {
        font-size: 12px;
    }
    
    .game-provider {
        font-size: 10px;
    }
    
    .banner-card {
        padding: 15px;
    }
    
    .banner-title {
        font-size: 18px;
    }
    
    .banner-text {
        font-size: 14px;
    }
    
    /* Match list items - better touch targets */
    .match-list-item {
        padding: 12px 15px;
    }
    
    /* Sidebar for smaller screens */
    .sidebar-content {
        max-height: 350px;
    }
    
    .sidebar-tab {
        padding: 12px;
        font-size: 11px;
    }
    
    /* Player header overlay adjustments */
    .player-header-overlay {
        top: 10px;
        left: 10px;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .live-badge {
        font-size: 11px;
        padding: 5px 10px;
        padding-left: 22px;
    }
    
    .match-info-text {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* Score badge mobile */
    .score-badge {
        padding: 6px 15px;
        font-size: 13px;
        min-width: 100px;
    }
    
    /* Team display in match score */
    .match-score-display .team-display {
        width: 80px;
    }
    
    .match-score-display .team-display > div:last-child {
        font-size: 11px;
    }
    
    /* Small screen adjustments */
    .team-logo-circle {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    #home-team-name,
    #away-team-name {
        font-size: 10px;
    }
    
    .sidebar-tab {
        padding: 10px 8px;
        font-size: 11px;
    }
    
    .sidebar-content {
        max-height: 300px;
        min-height: 250px;
    }
    
    .channel-logo {
        width: 35px;
        height: 35px;
    }
    
    .channel-name {
        font-size: 12px;
    }
    
    .quality-badge {
        font-size: 9px;
        padding: 2px 4px;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .logo-img {
        max-height: 30px;
    }
    
    .header-right .btn-primary {
        padding: 5px 8px;
        font-size: 10px;
    }
    
    .main-container {
        padding: 0 10px;
    }
    
    /* Video player fix for extra small screens */
    .video-placeholder {
        aspect-ratio: auto;
        height: 220px;
        min-height: 220px;
    }
    
    .quick-link-text {
        font-size: 9px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .filter-tab {
        padding: 6px 8px;
        font-size: 10px;
    }
    
    .player-actions .btn {
        font-size: 11px;
        padding: 8px 12px;
    }
    
    .match-score-display .team-display {
        width: 70px;
    }
    
    .team-logo-circle {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .score-board {
        font-size: 20px;
        letter-spacing: 3px;
    }
}

/* Landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .top-section {
        display: flex;
        flex-direction: column;
    }
    
    .sidebar-content {
        max-height: 250px;
    }
    
    /* Video player fix for landscape */
    .video-placeholder {
        aspect-ratio: auto;
        height: 320px;
        min-height: 320px;
    }
    
    .player-overlay {
        padding: 10px;
    }
    
    .match-score-display {
        gap: 8px;
    }
    
    .team-logo-circle {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }
    
    .score-board {
        font-size: 20px;
    }
    
    .team-logo-circle {
        width: 50px;
        height: 50px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
    }
    
    .match-list-item,
    .channel-list-item {
        min-height: 60px;
    }
    
    .quick-link-card {
        min-height: 100px;
    }
    
    .match-list-item:hover,
    .channel-list-item:hover {
        transform: none;
    }
    
    .channel-play-icon {
        opacity: 1;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .sidebar-tab {
        font-size: 10px;
        padding: 8px 5px;
    }
    
    .section-title {
        font-size: 1.2em;
    }
    
    .quick-links-grid {
        gap: 8px;
    }
}


