* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.header-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    width: 250px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    background: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    width: 300px;
}

.search-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 0.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

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

.clear-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 0.5rem;
    padding: 0.3rem 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.clear-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* Main Content */
.main {
    padding: 2rem 0;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
}

.content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

/* Sidebar */
.sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.categories {
    margin-bottom: 0;
    padding-bottom: 0;
}

.categories h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.categories ul {
    list-style: none;
}

.categories li {
    margin-bottom: 0.5rem;
}

.categories a {
    color: #666;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s ease;
}

.categories a:hover,
.categories a.active {
    color: #667eea;
    font-weight: 500;
}

/* Sidebar Separators */
.sidebar-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e9ecef 20%, #e9ecef 80%, transparent 100%);
    margin: 1.5rem 0;
    position: relative;
}

.sidebar-separator::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #667eea;
    border-radius: 2px;
}

/* Widgets */
.widget {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0;
}

.widget h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.widget-content {
    font-size: 0.9rem;
}

/* Weather Widget */
.weather-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.weather-temp {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.weather-icon {
    font-size: 2rem;
}

.weather-location {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.weather-description {
    text-transform: capitalize;
    color: #333;
    font-weight: 500;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

/* Horoscope Widget */
.zodiac-selector {
    margin-bottom: 1rem;
}

.zodiac-selector select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background: white;
    font-size: 0.9rem;
}

.horoscope-content {
    line-height: 1.5;
    color: #333;
}

.select-zodiac {
    color: #666;
    font-style: italic;
    text-align: center;
    margin: 0;
}

.horoscope-text {
    background: white;
    padding: 0.75rem;
    border-radius: 5px;
    border-left: 3px solid #667eea;
    margin: 0;
}

/* Currency Widget */
.currency-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.currency-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.currency-name {
    font-weight: 500;
    color: #333;
    font-size: 0.8rem;
}

.currency-rate {
    font-weight: bold;
    color: #667eea;
    font-size: 0.9rem;
}

.currency-change {
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.currency-change.positive {
    color: #28a745;
}

.currency-change.negative {
    color: #dc3545;
}

/* Loading states */
.weather-loading,
.currency-loading {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 1rem;
}

.weather-loading p,
.currency-loading p {
    margin: 0;
}

/* Main Content Area */
.main-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tabs {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
    gap: 1rem;
}

.tab-buttons {
    display: flex;
    gap: 0;
}

.tab-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: auto;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    margin: 0;
    white-space: nowrap;
}

.country-select,
.language-select {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 140px;
    height: 38px;
}

.tab-button {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    min-width: 80px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-button.active {
    color: #667eea;
    border-bottom: 2px solid #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Channels Grid */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.channel-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.channel-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

.channel-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.channel-country {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.channel-status {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    background: #e8f5e8;
    color: #4caf50;
    display: inline-block;
}

.channel-status.offline {
    background: #ffeaa7;
    color: #e17055;
}

.channel-status.live {
    background: #ff6b6b;
    color: white;
    animation: pulse 2s infinite;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #000;
}

.player-container h3 {
    margin-bottom: 1rem;
    text-align: center;
}

#playerWrapper {
    width: 100%;
    height: 400px;
    background: #000;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Iframe Player */
.iframe-player {
    width: 100%;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.iframe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.channel-logo {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #dee2e6;
}

.channel-details h4 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.channel-status {
    margin: 0.2rem 0 0 0;
    font-size: 0.9rem;
    color: #dc3545;
    font-weight: 500;
    animation: pulse 2s infinite;
}

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

.iframe-controls {
    display: flex;
    gap: 0.5rem;
}

.reload-btn,
.external-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.reload-btn:hover,
.external-btn:hover {
    background: #e9ecef;
    transform: scale(1.05);
}

.iframe-player iframe {
    display: block;
    background: #000;
}

.iframe-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.source-info {
    flex: 1;
}

.source-info a {
    color: #667eea;
    text-decoration: none;
}

.source-info a:hover {
    text-decoration: underline;
}

.channel-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.channel-stats span {
    padding: 0.25rem 0.5rem;
    background: white;
    border-radius: 15px;
    border: 1px solid #dee2e6;
    color: #666;
}

/* Ad Containers */
.ad-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    margin: 0.5rem 0;
}

.top-ad {
    border-bottom: none;
    margin-bottom: 0;
}

.bottom-ad {
    border-top: none;
    margin-top: 0;
}

.ad-placeholder {
    padding: 1rem;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-radius: 5px;
    margin: 0.5rem;
}

.ad-placeholder p {
    margin: 0 0 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.ad-content {
    min-height: 60px;
    background: white;
    border: 2px dashed #dee2e6;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
}

.ad-content::before {
    content: "🎯 Spațiu pentru reclamă";
}

/* Main Advertisement Areas */
.top-main-ad,
.bottom-main-ad {
    margin: 2rem 0;
    max-width: 100%;
}

.top-main-ad {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.bottom-main-ad {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.sidebar-ad {
    margin-top: 0;
}

.sidebar-ad .ad-placeholder {
    min-height: 250px;
}

.top-main-ad .ad-placeholder,
.bottom-main-ad .ad-placeholder {
    min-height: 120px;
}

/* Player content wrapper */
.player-content {
    position: relative;
    background: #000;
}

/* Audio Player */
.audio-player {
    width: 100%;
    background: #333;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.audio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.play-button {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.play-button:hover {
    background: #5a6fd8;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-slider {
    width: 100px;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-controls {
        width: 100%;
        justify-content: center;
    }
    
    .tabs {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .tab-buttons {
        justify-content: center;
    }
    
    .tab-controls {
        justify-content: center;
        flex-wrap: wrap;
        margin-left: 0;
    }
    
    .control-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 2;
        gap: 0;
    }
    
    .sidebar-separator {
        margin: 1rem 0;
    }
    
    .widget {
        padding: 0.75rem;
    }
    
    .widget h3 {
        font-size: 0.9rem;
    }
    
    .weather-temp {
        font-size: 1.2rem;
    }
    
    .weather-icon {
        font-size: 1.5rem;
    }
    
    .control-group {
        min-width: 120px;
    }
    
    .country-select,
    .language-select {
        min-width: 120px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .header-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-controls {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .control-group {
        width: 100%;
    }
    
    .tab-controls select {
        width: 100%;
    }
    
    .channels-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Search Results */
.search-results-header {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.search-results-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.search-result {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-result:hover {
    border-color: #667eea;
}

.channel-category {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-results p {
    font-size: 1.1rem;
    margin: 0;
}

/* Search input enhancements */
.search-input::placeholder {
    color: #999;
}

.search-input:focus::placeholder {
    color: #ccc;
}

/* Responsive search */
@media (max-width: 768px) {
    .search-input {
        width: 200px;
    }
    
    .search-input:focus {
        width: 220px;
    }
    
    .controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-container {
        order: -1;
    }
}

/* Favorites Section */
.favorites-section {
    margin-bottom: 2rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.favorites-section h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.favorites-tabs {
    display: flex;
    margin-bottom: 1rem;
    background: white;
    border-radius: 5px;
    overflow: hidden;
}

.fav-tab {
    flex: 1;
    padding: 0.5rem;
    border: none;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.fav-tab.active {
    background: #667eea;
    color: white;
}

.fav-tab:hover:not(.active) {
    background: #f0f0f0;
}

.favorites-content {
    min-height: 100px;
}

.favorite-list {
    display: none;
}

.favorite-list.active {
    display: block;
}

.favorite-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.favorite-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.favorite-logo {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    width: 30px;
    text-align: center;
}

.favorite-info {
    flex: 1;
}

.favorite-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.2rem;
}

.favorite-country {
    font-size: 0.8rem;
    color: #666;
}

.favorite-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 0.5rem;
}

.favorite-status.online {
    background: #4caf50;
}

.favorite-status.offline {
    background: #ff9800;
}

.remove-favorite {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.favorite-item:hover .remove-favorite {
    opacity: 1;
}

.remove-favorite:hover {
    background: #ff3742;
}

.no-favorites {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 1rem;
}

/* Favorite Button on Channel Cards */
.channel-card {
    position: relative;
}

.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.favorite-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #4caf50;
}

.notification.error {
    background: #f44336;
}

.notification.info {
    background: #2196f3;
}

/* Responsive Favorites */
@media (max-width: 768px) {
    .favorites-section {
        margin-bottom: 1rem;
    }
    
    .favorite-item {
        padding: 0.75rem 0.5rem;
    }
    
    .favorite-name {
        font-size: 0.85rem;
    }
    
    .favorite-country {
        font-size: 0.75rem;
    }
    
    .favorite-btn {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Theme Notification */
.theme-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-notification.show {
    transform: translateX(-50%) translateY(0);
}

/* Dark Theme Styles */
.dark-theme {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.dark-theme .header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.dark-theme .sidebar {
    background: #2c2c2c;
    border: 1px solid #404040;
}

.dark-theme .main-content {
    background: #2c2c2c;
    border: 1px solid #404040;
}

.dark-theme .channel-card {
    background: #363636;
    border: 1px solid #4a4a4a;
    color: #e0e0e0;
}

.dark-theme .channel-card:hover {
    background: #404040;
    border-color: #667eea;
}

.dark-theme .channel-name {
    color: #f0f0f0;
}

.dark-theme .channel-country {
    color: #b0b0b0;
}

.dark-theme .tab-button {
    background: #404040;
    color: #e0e0e0;
    border-bottom: 2px solid #4a4a4a;
}

.dark-theme .tab-button.active {
    background: #667eea;
    color: white;
    border-bottom: 2px solid #667eea;
}

.dark-theme .tab-button:hover:not(.active) {
    background: #4a4a4a;
}

.dark-theme .sidebar-separator {
    background: linear-gradient(90deg, transparent 0%, #4a4a4a 20%, #4a4a4a 80%, transparent 100%);
}

.dark-theme .categories a {
    color: #b0b0b0;
}

.dark-theme .categories a:hover,
.dark-theme .categories a.active {
    color: #667eea;
}

/* Dark theme widgets */
.dark-theme .widget {
    background: #363636;
    border: 1px solid #4a4a4a;
}

.dark-theme .widget h3 {
    color: #f0f0f0;
    border-bottom: 1px solid #4a4a4a;
}

.dark-theme .weather-description {
    color: #e0e0e0;
}

.dark-theme .weather-details {
    color: #b0b0b0;
}

.dark-theme .zodiac-selector select {
    background: #404040;
    border: 1px solid #4a4a4a;
    color: #e0e0e0;
}

.dark-theme .horoscope-content {
    color: #e0e0e0;
}

.dark-theme .select-zodiac {
    color: #b0b0b0;
}

.dark-theme .horoscope-text {
    background: #404040;
    border-left: 3px solid #667eea;
}

.dark-theme .currency-item {
    background: #404040;
    border: 1px solid #4a4a4a;
}

.dark-theme .currency-name {
    color: #e0e0e0;
}

.dark-theme .weather-loading,
.dark-theme .currency-loading {
    color: #b0b0b0;
}

.dark-theme .favorites-section {
    background: #363636;
    border: 1px solid #4a4a4a;
}

.dark-theme .favorites-section h3 {
    color: #f0f0f0;
}

.dark-theme .fav-tab {
    background: #404040;
    color: #e0e0e0;
}

.dark-theme .fav-tab.active {
    background: #667eea;
    color: white;
}

.dark-theme .fav-tab:hover:not(.active) {
    background: #4a4a4a;
}

.dark-theme .favorite-item {
    background: #404040;
    border: 1px solid #4a4a4a;
}

.dark-theme .favorite-item:hover {
    background: #4a4a4a;
}

.dark-theme .favorite-name {
    color: #f0f0f0;
}

.dark-theme .favorite-country {
    color: #b0b0b0;
}

.dark-theme .no-favorites {
    color: #b0b0b0;
}

.dark-theme .search-results-header {
    background: #363636;
    border-left: 4px solid #667eea;
}

.dark-theme .search-results-header h3 {
    color: #f0f0f0;
}

.dark-theme .no-results {
    color: #b0b0b0;
}

.dark-theme .modal-content {
    background: #2c2c2c;
    color: #e0e0e0;
}

.dark-theme .close {
    color: #b0b0b0;
}

.dark-theme .close:hover {
    color: #f0f0f0;
}

.dark-theme .audio-player {
    background: #404040;
}

.dark-theme .iframe-player {
    background: #2c2c2c;
    border: 1px solid #404040;
}

.dark-theme .iframe-header {
    background: #363636;
    border-bottom: 1px solid #404040;
}

.dark-theme .channel-logo {
    background: #404040;
    border: 2px solid #4a4a4a;
}

.dark-theme .channel-details h4 {
    color: #f0f0f0;
}

.dark-theme .channel-status {
    color: #ff6b6b;
}

.dark-theme .reload-btn,
.dark-theme .external-btn {
    background: #404040;
    border: 1px solid #4a4a4a;
    color: #e0e0e0;
}

.dark-theme .reload-btn:hover,
.dark-theme .external-btn:hover {
    background: #4a4a4a;
}

.dark-theme .iframe-footer {
    background: #2c2c2c;
    border-top: 1px solid #404040;
    color: #b0b0b0;
}

.dark-theme .iframe-footer a {
    color: #667eea;
}

.dark-theme .channel-stats span {
    background: #404040;
    border: 1px solid #4a4a4a;
    color: #e0e0e0;
}

.dark-theme .ad-container {
    background: #2c2c2c;
    border: 1px solid #404040;
}

.dark-theme .ad-placeholder {
    background: linear-gradient(45deg, #2c2c2c, #363636);
}

.dark-theme .ad-placeholder p {
    color: #b0b0b0;
}

.dark-theme .ad-content {
    background: #404040;
    border: 2px dashed #4a4a4a;
    color: #888;
}

.dark-theme .redirect-player {
    background: #2c2c2c;
    color: #e0e0e0;
}

.dark-theme .error-message {
    background: #2c2c2c;
    color: #e0e0e0;
}

.dark-theme .footer {
    background: #1a1a1a;
    border-top: 1px solid #404040;
}

/* Search input dark theme */
.dark-theme .search-input {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-theme .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.dark-theme .search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #667eea;
}

.dark-theme .country-select,
.dark-theme .language-select {
    background: #404040;
    color: #e0e0e0;
    border: 1px solid #4a4a4a;
}

.dark-theme .control-label {
    color: #b0b0b0;
}

/* Hero section dark theme */
.dark-theme .hero h2 {
    color: #f0f0f0;
}

.dark-theme .hero p {
    color: #b0b0b0;
}

/* Ads dark theme */
.dark-theme .ad-placeholder {
    background: linear-gradient(45deg, #404040, #363636);
    color: #b0b0b0;
}

.dark-theme .video-ad {
    background: rgba(0, 0, 0, 0.95);
}

/* Responsive dark theme */
@media (max-width: 768px) {
    .dark-theme .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dark-theme .header-controls {
        width: 100%;
        justify-content: center;
    }
    
    .theme-toggle {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Light theme explicit styles (for better contrast when switching) */
.light-theme {
    background-color: #f5f5f5;
    color: #333;
}

.light-theme .sidebar {
    background: white;
}

.light-theme .main-content {
    background: white;
}

.light-theme .channel-card {
    background: white;
    border: 1px solid #eee;
}

.light-theme .modal-content {
    background: white;
    color: #333;
}

/* Player Header */
.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.player-controls {
    display: flex;
    gap: 0.5rem;
}

.share-btn,
.fullscreen-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.share-btn:hover,
.fullscreen-btn:hover {
    background: #667eea;
    color: white;
}

/* Share Menu */
.share-menu {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.share-menu.show {
    opacity: 1;
    transform: translateY(0);
}

.share-menu h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1rem;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.share-button {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.share-button.facebook:hover {
    background: #1877f2;
    color: white;
}

.share-button.twitter:hover {
    background: #1da1f2;
    color: white;
}

.share-button.whatsapp:hover {
    background: #25d366;
    color: white;
}

.share-button.telegram:hover {
    background: #0088cc;
    color: white;
}

.share-button.copy:hover {
    background: #6c757d;
    color: white;
}

/* Channel Share Button */
.channel-share-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 0;
}

.channel-card:hover .channel-share-btn {
    opacity: 1;
}

.channel-share-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* Dark theme share styles */
.dark-theme .player-header {
    border-bottom: 1px solid #404040;
}

.dark-theme .share-btn,
.dark-theme .fullscreen-btn {
    background: #404040;
    border: 1px solid #4a4a4a;
    color: #e0e0e0;
}

.dark-theme .share-btn:hover,
.dark-theme .fullscreen-btn:hover {
    background: #667eea;
    color: white;
}

.dark-theme .share-menu {
    background: #363636;
    border: 1px solid #4a4a4a;
}

.dark-theme .share-menu h4 {
    color: #f0f0f0;
}

.dark-theme .share-button {
    background: #404040;
    border: 1px solid #4a4a4a;
    color: #e0e0e0;
}

.dark-theme .channel-share-btn {
    background: rgba(44, 44, 44, 0.9);
    color: #e0e0e0;
}

/* Responsive share styles */
@media (max-width: 768px) {
    .player-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
    
    .player-controls {
        align-self: flex-end;
    }
}

/* SEO Footer Links */
.seo-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #404040;
}

.seo-links h4 {
    color: #f0f0f0;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.internal-links,
.category-links {
    display: flex;
    flex-direction: column;
}

.internal-links a,
.category-links a {
    color: #b0b0b0;
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.internal-links a:hover,
.category-links a:hover {
    color: #667eea;
}

/* Light theme SEO links */
.light-theme .seo-links {
    border-top: 1px solid #e0e0e0;
}

.light-theme .seo-links h4 {
    color: #333;
}

.light-theme .internal-links a,
.light-theme .category-links a {
    color: #666;
}

.light-theme .internal-links a:hover,
.light-theme .category-links a:hover {
    color: #667eea;
}

/* Mobile SEO links */
@media (max-width: 768px) {
    .seo-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 1.5rem;
    z-index: 1000;
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.cookie-consent.show {
    display: flex;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
}

.cookie-icon {
    font-size: 2.5rem;
}

.cookie-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.cookie-text a {
    color: #667eea;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

.cookie-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-accept {
    background: #667eea;
    color: white;
}

.btn-accept:hover {
    background: #5a6fd8;
}

.btn-manage {
    background: #404040;
    color: white;
}

.btn-manage:hover {
    background: #4a4a4a;
}

.btn-decline {
    background: transparent;
    border: 1px solid #666;
    color: #ccc;
}

.btn-decline:hover {
    background: #666;
    color: white;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.settings-content {
    background: #2c2c2c;
    color: white;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #404040;
    padding-bottom: 1rem;
}

.settings-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-settings {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.5rem;
    cursor: pointer;
}

.settings-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cookie-category {
    background: #363636;
    padding: 1rem;
    border-radius: 8px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.category-header h4 {
    margin: 0;
    font-size: 1rem;
}

.cookie-category p {
    margin: 0;
    font-size: 0.9rem;
    color: #b0b0b0;
}

.settings-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-save,
.btn-accept-all {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-save {
    background: #667eea;
    color: white;
}

.btn-accept-all {
    background: #404040;
    color: white;
}

/* Light theme cookie styles */
.light-theme .cookie-consent {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-top: 1px solid #e0e0e0;
}

.light-theme .cookie-text p {
    color: #666;
}

.light-theme .btn-manage {
    background: #e0e0e0;
    color: #333;
}

.light-theme .btn-decline {
    border: 1px solid #ccc;
    color: #666;
}

.light-theme .cookie-settings-modal {
    background: rgba(0, 0, 0, 0.5);
}

.light-theme .settings-content {
    background: white;
    color: #333;
}

.light-theme .settings-header {
    border-bottom: 1px solid #e0e0e0;
}

.light-theme .close-settings {
    color: #999;
}

.light-theme .cookie-category {
    background: #f8f9fa;
}

.light-theme .cookie-category p {
    color: #666;
}

.light-theme .btn-accept-all {
    background: #e0e0e0;
    color: #333;
}

/* Responsive cookie styles */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-actions {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .settings-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .settings-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .settings-footer button {
        width: 100%;
    }
}

/* Content Sections */
.content-sections {
    margin: 3rem 0;
    padding: 2rem 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.section-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-row:last-child {
    margin-bottom: 0;
}

.section-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #667eea;
}

.section-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-item {
    display: block;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.article-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.article-item p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Content Page Styles */
.content-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.content-page h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.content-page h2 {
    color: #34495e;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.content-page h3 {
    color: #34495e;
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1.2rem;
}

.content-page p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.7;
}

.content-page ul {
    margin: 1rem 0;
    padding-left: 2rem;
    color: #555;
}

.content-page li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.content-page a {
    color: #3498db;
    text-decoration: none;
}

.content-page a:hover {
    text-decoration: underline;
}