/* Base CSS Variables and Tokens */
:root {
    --bg-dark: #0b0c10;
    --bg-surface: rgba(22, 24, 33, 0.7);
    --bg-card: rgba(30, 32, 44, 0.5);
    --bg-sidebar: rgba(18, 20, 27, 0.95);
    --primary: #7c4dff;
    --primary-glow: rgba(124, 77, 255, 0.4);
    --secondary: #00e5ff;
    --accent-red: #ff3d00;
    --accent-green: #00e676;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(124, 77, 255, 0.3);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(124, 77, 255, 0.1);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(124, 77, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 229, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, #08090d 0%, #040507 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul {
    list-style: none;
}

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

button, input {
    font-family: inherit;
    background: none;
    border: none;
    color: inherit;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* App Container Layout */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* Splash Screen Loader */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #060709;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.logo-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(40px);
    opacity: 0.6;
    animation: pulseGlow 2s infinite ease-in-out;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--primary);
    border-right: 3px solid var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    z-index: 2;
}

.spinner.small {
    width: 30px;
    height: 30px;
    border-width: 2px;
    margin-bottom: 0;
}

.splash-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #b8a2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
}

.splash-status {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
    z-index: 2;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    height: 100%;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform var(--transition-normal);
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
    animation: rotateLogo 6s infinite linear;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #dcd0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-menu-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.category-item.active {
    background: linear-gradient(90deg, rgba(124, 77, 255, 0.15) 0%, rgba(124, 77, 255, 0.02) 100%);
    color: var(--text-primary);
    border-left: 3px solid var(--primary);
    box-shadow: inset 5px 0 10px rgba(124, 77, 255, 0.05);
}

.category-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-count {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    transition: var(--transition-fast);
}

.category-item.active .category-count {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(124, 77, 255, 0.4);
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Top Header */
.main-header {
    height: 80px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(11, 12, 16, 0.4);
    backdrop-filter: blur(10px);
    z-index: 50;
}

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

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.font-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Search Bar */
.search-box {
    position: relative;
    width: 320px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: var(--transition-fast);
}

#search-input {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 23px;
    outline: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

#search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 16px rgba(124, 77, 255, 0.25);
}

#search-input:focus + .search-icon {
    color: var(--primary);
}

/* Channels Grid Container */
.channels-grid-container {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* Channel Card Item */
.channel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.channel-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(124, 77, 255, 0.15);
}

.card-logo-container {
    position: relative;
    aspect-ratio: 16/10;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.channel-logo-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

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

/* Gradient Text Fallback Logo */
.channel-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.8) 0%, rgba(10, 10, 15, 0.9) 100%);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary);
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(124, 77, 255, 0.3);
}

/* Play Icon Overlay */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 12, 16, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 2;
}

.channel-card:hover .play-overlay {
    opacity: 1;
}

.play-icon-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px var(--primary-glow);
    color: #fff;
    transform: scale(0.8);
    transition: transform var(--transition-fast);
}

.channel-card:hover .play-icon-btn {
    transform: scale(1);
}

.play-icon-btn:hover {
    background: #9065ff;
    transform: scale(1.05) !important;
}

/* Favorite Heart Toggle */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.favorite-btn i {
    width: 16px;
    height: 16px;
    color: #fff;
    fill: none;
    transition: var(--transition-fast);
}

.favorite-btn:hover {
    background: rgba(255, 61, 0, 0.2);
    border-color: rgba(255, 61, 0, 0.4);
}

.favorite-btn:hover i {
    color: var(--accent-red);
}

.favorite-btn.favorited {
    background: rgba(255, 61, 0, 0.15);
    border-color: rgba(255, 61, 0, 0.3);
}

.favorite-btn.favorited i {
    color: var(--accent-red);
    fill: var(--accent-red);
    filter: drop-shadow(0 0 4px rgba(255, 61, 0, 0.4));
}

/* Card Metadata Info */
.card-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.channel-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.channel-category-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Empty State & Error Display */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-icon {
    width: 60px;
    height: 60px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #fff;
}

.empty-state p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 320px;
}

.hidden {
    display: none !important;
}

/* General Icons Styling */
.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.icon-btn i {
    width: 20px;
    height: 20px;
}

/* Modern Video Player Modal */
.player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.player-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 7, 9, 0.85);
    backdrop-filter: blur(12px);
}

.player-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    background: #111216;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1010;
    animation: modalEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.player-modal-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.player-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.close-btn {
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.close-btn:hover {
    background: rgba(255, 61, 0, 0.2);
    color: var(--accent-red);
}

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

#video-element {
    width: 100%;
    height: 100%;
    outline: none;
    z-index: 5;
}

.player-loader {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
    color: var(--text-secondary);
}

.player-error {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 20px;
    z-index: 10;
    color: var(--text-secondary);
    max-width: 80%;
}

.player-error i {
    width: 48px;
    height: 48px;
    color: var(--accent-red);
}

.player-modal-footer {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    background: #14151b;
}

.badge {
    background: rgba(124, 77, 255, 0.15);
    color: #cbb8ff;
    border: 1px solid rgba(124, 77, 255, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.footer-actions {
    display: flex;
    gap: 12px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn i {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
    background: #8e62ff;
    box-shadow: 0 6px 16px rgba(124, 77, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: rgba(17, 18, 22, 0.9);
    border: 1px solid var(--border-color);
    padding: 12px 28px;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Keyframes and Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.45; }
}

@keyframes rotateLogo {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

@keyframes modalEnter {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .main-header {
        padding: 0 24px;
    }
    .channels-grid-container {
        padding: 24px;
    }
}

/* Tablet & Mobile Styles */
@media (max-width: 768px) {
    .mobile-only {
        display: flex !important;
    }
    
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
    }
    
    .main-header {
        height: 70px;
        padding: 0 16px;
    }
    
    .search-box {
        width: 160px;
    }
    
    #search-input {
        height: 38px;
        font-size: 0.85rem;
        padding-left: 38px;
    }
    
    .search-icon {
        left: 12px;
        width: 15px;
        height: 15px;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .channels-grid-container {
        padding: 16px;
    }
    
    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .channel-card {
        border-radius: 12px;
    }
    
    .card-info {
        padding: 12px;
        gap: 4px;
    }
    
    .channel-name {
        font-size: 0.85rem;
    }
    
    .channel-category-label {
        font-size: 0.7rem;
    }
    
    .player-modal-content {
        width: 95%;
        border-radius: 16px;
    }
    
    .player-modal-header {
        padding: 14px 16px;
    }
    
    .player-modal-header h3 {
        font-size: 1.05rem;
    }
    
    .player-modal-footer {
        padding: 14px 16px;
        flex-direction: column;
        gap: 14px;
        align-items: stretch;
    }
    
    .footer-actions {
        justify-content: flex-end;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .search-box {
        width: 140px;
    }
    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

/* Category Icons Spacing */
.category-name-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.category-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.category-item:hover .category-icon,
.category-item.active .category-icon {
    color: var(--primary);
    filter: drop-shadow(0 0 4px var(--primary-glow));
}

/* Hero Banner Styling */
.hero-banner {
    background: linear-gradient(135deg, rgba(17, 12, 33, 0.92) 0%, rgba(11, 12, 16, 0.96) 100%), url('https://images.unsplash.com/photo-1593789198777-f29bc259780e?q=80&w=1200&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 40px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(0, 229, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-badge {
    background: rgba(124, 77, 255, 0.2);
    color: #cbb8ff;
    border: 1px solid rgba(124, 77, 255, 0.3);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-badge i {
    width: 14px;
    height: 14px;
    color: var(--secondary);
}

.hero-headline {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.25;
    background: linear-gradient(135deg, #ffffff 0%, #dcd0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.stat-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-item strong {
    color: var(--secondary);
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

/* Mobile adjustments for Hero Banner */
@media (max-width: 768px) {
    .hero-banner {
        padding: 24px;
        min-height: auto;
        margin-bottom: 24px;
    }
    .hero-headline {
        font-size: 1.6rem;
    }
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }
    .hero-stats {
        gap: 20px;
        padding-top: 16px;
    }
    .stat-item strong {
        font-size: 1.1rem;
    }
}

/* Home Horizontal Sliders */
.home-slider-section {
    margin-bottom: 36px;
    width: 100%;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.section-title i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.horizontal-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 6px 6px 16px 6px;
    scroll-behavior: smooth;
    width: 100%;
    scrollbar-width: thin;
}

.horizontal-slider .channel-card {
    width: 180px;
    flex-shrink: 0;
}

.horizontal-slider .channel-card .card-logo-container {
    aspect-ratio: 16/10;
}

/* Hide grid-section-title if not on Home screen */
.section-title.hidden {
    display: none !important;
}

/* Mobile overrides for sliders to render as grids */
@media (max-width: 768px) {
    .horizontal-slider {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 12px !important;
        overflow-x: visible !important;
        padding: 0 !important;
    }
    .horizontal-slider .channel-card {
        width: 100% !important;
        flex-shrink: 1 !important;
    }
}

@media (max-width: 480px) {
    .horizontal-slider {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    }
}
