/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    height: 100%;
    line-height: 1.6;
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-box h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-box h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: #cccccc;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: #888888;
}

.input-group input:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.login-btn {
    background: linear-gradient(45deg, #ffffff, #cccccc);
    color: #000000;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #111111;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-left-color: #ffffff;
}

.nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    background: #0a0a0a;
}

.topbar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-details {
    text-align: right;
}

.username {
    font-weight: 600;
    color: #ffffff;
}

.expiry-date {
    font-size: 12px;
    color: #888888;
}

.logout-btn {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.card-content {
    color: #cccccc;
    line-height: 1.6;
}

.card-link {
    display: inline-block;
    margin-top: 15px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: #cccccc;
}

/* Content Sections */
.content-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        background: #0a0a0a;
        backdrop-filter: blur(10px);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 10px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dashboard-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .dashboard-card h3 {
        font-size: 1.2rem;
    }
    
    .topbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 10px;
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .user-details {
        text-align: center;
    }
    
    .menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        padding: 12px;
        cursor: pointer;
        backdrop-filter: blur(10px);
        color: #ffffff;
        font-size: 18px;
    }
    
    .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .nav-menu {
        padding-top: 80px;
        padding-bottom: 20px;
    }
    
    .nav-item {
        padding: 20px;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-item i {
        margin-right: 15px;
        font-size: 20px;
        width: 25px;
        text-align: center;
    }
    
    .nav-link {
        padding: 15px 20px;
        font-size: 16px;
        font-weight: 500;
    }
    
    .sidebar-header {
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 0;
    }
    
    .sidebar-header h1 {
        font-size: 2rem;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .dashboard-card {
        padding: 15px;
    }
    
    .dashboard-card h3 {
        font-size: 1.1rem;
    }
    
    .topbar {
        padding: 10px;
    }
    
    .user-details h2 {
        font-size: 1.3rem;
    }
    
    .user-details p {
        font-size: 14px;
    }
    
    .nav-item {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .nav-item i {
        margin-right: 12px;
        font-size: 16px;
    }
}

/* Subscription Grid */
.subscription-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.subscription-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.subscription-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.info-item {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-item strong {
    color: #ffffff;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.status-inactive {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.api-info {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 20px;
}

.user-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

/* Pricing Styles */
.pricing-content {
    max-width: 800px;
}

.pricing-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.pricing-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-section h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-section h3 i {
    color: #cccccc;
    font-size: 1.1rem;
}

.pricing-section p {
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

.pricing-list {
    list-style: none;
    padding: 0;
}

.pricing-list li {
    color: #cccccc;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.5;
}

.pricing-list li:last-child {
    border-bottom: none;
}

.pricing-list li strong {
    color: #ffffff;
    font-weight: 600;
}

.pricing-list li.warning {
    color: #ff6b6b;
    font-weight: 600;
}

.pricing-list li.uppercase {
    text-transform: uppercase;
}

.pricing-note {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-top: 30px;
}

.pricing-note p {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0;
}

/* Guide Section Overrides */
.guide-container .container {
    display: flex;
    min-height: calc(100vh - 200px);
}

.guide-container .sidebar {
    width: 300px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}

.guide-container .sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-container .sidebar li {
    margin-bottom: 5px;
}

.guide-container .sidebar a {
    display: block;
    padding: 10px 15px;
    color: #cccccc;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.guide-container .sidebar a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.guide-container .page-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    min-height: 500px;
}

.guide-container .overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.guide-container .loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.guide-container .message {
    color: #cccccc;
    font-size: 1.1rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.loading {
    text-align: center;
    color: #cccccc;
    font-size: 1.1rem;
    padding: 40px;
}

.error {
    text-align: center;
    color: #ff6b6b;
    font-size: 1.1rem;
    padding: 40px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

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

/* Fixtures Grid Styles */
.fixtures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.fixture-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fixture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.fixture-image {
    margin-bottom: 15px;
}

.fixture-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fixture-image .no-image {
    width: 100%;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #cccccc;
}

.fixture-image .no-image i {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #888888;
}

.fixture-image .no-image span {
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.2;
}

.fixture-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

/* Back Button */
.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.back-btn i {
    font-size: 14px;
}

/* Fixture Content Styling */
#fixtureContent .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#fixtureBody {
    color: #ffffff;
    line-height: 1.6;
}

#fixtureBody table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

#fixtureBody table th,
#fixtureBody table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#fixtureBody table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: #ffffff;
}

#fixtureBody table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

#fixtureBody h1, #fixtureBody h2, #fixtureBody h3 {
    color: #ffffff;
    margin: 20px 0 10px 0;
}

#fixtureBody p {
    margin: 10px 0;
    color: #cccccc;
}

#fixtureBody ul, #fixtureBody ol {
    margin: 10px 0;
    padding-left: 20px;
    color: #cccccc;
}

#fixtureBody li {
    margin: 5px 0;
}

/* Fixture Modal Overrides for Dashboard Integration */
#fixtureBody .fixture-modal,
.fixture-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 10px;
}

#fixtureBody .fixture-modal .modal-content,
.fixture-modal .modal-content {
    background-color: #1f1f1f;
    margin: 10% auto;
    padding: 25px;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    color: #e0e0e0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#fixtureBody .fixture-modal .close,
.fixture-modal .close {
    color: #bbb;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

#fixtureBody .fixture-modal .close:hover,
.fixture-modal .close:hover {
    color: #fff;
}

#fixtureBody .event-item,
.event-item {
    cursor: pointer;
    margin-bottom: 10px;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #ffffff;
}

#fixtureBody .event-item:hover,
.event-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

#fixtureBody h2,
h2 {
    margin-top: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    color: #ffffff;
    font-size: 1.3rem;
}

/* Event Details Page Styles */
.event-details {
    color: #ffffff;
    line-height: 1.6;
}

.event-details h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.event-details h4 {
    color: #ffffff;
    font-size: 1.3rem;
    margin: 25px 0 15px 0;
}

.event-details p {
    margin: 10px 0;
    color: #cccccc;
    font-size: 1.1rem;
}

.event-details p strong {
    color: #ffffff;
    font-weight: 600;
}

.channels-section {
    margin-top: 25px;
}

.channels-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.channel-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.channel-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.channel-item strong {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 150px;
}

.channel-category {
    color: #cccccc;
    font-size: 1rem;
    flex: 1;
}

.channel-sources {
    color: #888888;
    font-size: 0.9rem;
    font-style: italic;
}

/* Page Header Styles */
.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-header p {
    color: #cccccc;
    font-size: 1rem;
}

/* Channel List Page Styles */
.channel-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.channel-section {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .channel-section {
        background: rgba(255, 255, 255, 0.15);
    }
}

.channel-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.category-header {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .category-header {
        background: rgba(255, 255, 255, 0.2);
    }
}

.category-header:hover {
    background: rgba(255, 255, 255, 0.12);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
}

.category-icon {
    transition: transform 0.3s ease;
    font-size: 1rem;
    color: #cccccc;
}

.channel-count {
    color: #ffffff;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.1);
}

.channels-grid .channel-item {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 15px 18px;
    color: #cccccc;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: default;
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .channels-grid .channel-item {
        background: rgba(255, 255, 255, 0.15);
    }
}

.channels-grid .channel-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile responsiveness for channel list */
@media (max-width: 768px) {
    .channel-categories {
        gap: 15px;
    }
    
    .channel-section {
        border-radius: 12px;
    }
    
    .channel-section:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .category-header {
        padding: 15px;
        background: rgba(255, 255, 255, 0.08);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    
    .category-header:hover {
        background: rgba(255, 255, 255, 0.12);
    }
    
    .category-title {
        font-size: 1.1rem;
        gap: 12px;
    }
    
    .category-icon {
        font-size: 0.9rem;
    }
    
    .channel-count {
        padding: 6px 10px;
        font-size: 0.8rem;
        background: rgba(255, 255, 255, 0.1);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .channels-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
        background: rgba(0, 0, 0, 0.1);
    }
    
    .channels-grid .channel-item {
        padding: 12px 15px;
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.05);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 8px;
    }
    
    .channels-grid .channel-item:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.15);
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }
}
