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

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --highlight-color: #e94560;
    --text-color: #ffffff;
    --text-secondary: #b8b8b8;
    --card-bg: #1e1e3f;
    --card-hover: #252550;
    --border-color: #2d2d5a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
}

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

/* Header */
header {
    background: var(--secondary-color);
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--highlight-color);
}

.header-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
}

.header-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 0 0 calc(50% - 7.5px);
    box-sizing: border-box;
}

header h1 {
    font-size: 1.4em;
    margin: 0;
    background: linear-gradient(45deg, var(--highlight-color), #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    line-height: 1.2;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.85em;
    margin: 0;
    white-space: nowrap;
    line-height: 1.2;
}

/* Navigation */
.categories-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.search-bar-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 5px;
}

.search-bar-inline input {
    padding: 8px 15px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-color);
    font-size: 0.9em;
    outline: none;
    transition: all 0.3s ease;
    width: 200px;
}

.search-bar-inline input:focus {
    border-color: var(--highlight-color);
    box-shadow: 0 0 8px rgba(233, 69, 96, 0.3);
    width: 250px;
}

.search-bar-inline button {
    padding: 8px 15px;
    background: var(--highlight-color);
    border: none;
    border-radius: 20px;
    color: var(--text-color);
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar-inline button:hover {
    background: #ff6b9d;
    transform: scale(1.05);
}

.category-btn {
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-btn:hover {
    background: var(--card-hover);
    border-color: var(--highlight-color);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--highlight-color);
    border-color: var(--highlight-color);
    box-shadow: 0 4px 8px rgba(233, 69, 96, 0.3);
}

.category-btn,
a.category-btn {
    text-decoration: none;
    display: inline-block;
}

a.category-btn:hover {
    text-decoration: none;
}

/* Main Container */
.main-container {
    padding: 30px 20px;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.welcome-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--border-color);
    max-width: 600px;
}

.welcome-card i {
    font-size: 5em;
    color: var(--highlight-color);
    margin-bottom: 20px;
    display: block;
}

.welcome-card h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--text-color);
}

.welcome-card p {
    font-size: 1.2em;
    color: var(--text-secondary);
}

/* Channels Section */
.channels-section {
    margin-top: 40px;
}

.channels-section h2 {
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
    color: var(--highlight-color);
}

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

.channel-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.channel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.1), transparent);
    transition: left 0.5s ease;
}

.channel-card:hover::before {
    left: 100%;
}

.channel-card:hover {
    transform: translateY(-5px);
    border-color: var(--highlight-color);
    box-shadow: 0 8px 16px rgba(233, 69, 96, 0.3);
    background: var(--card-hover);
}

.channel-card.active {
    border-color: var(--highlight-color);
    background: var(--card-hover);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

.channel-logo {
    margin-bottom: 10px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-logo-img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

.channel-logo-icon,
.channel-logo-fallback {
    font-size: 3em;
    color: var(--highlight-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-name {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.channel-category {
    font-size: 0.85em;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.channel-card.hidden {
    display: none;
}

/* Footer */
footer {
    background: var(--secondary-color);
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
    border-top: 2px solid var(--border-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.footer-links a:hover {
    color: var(--highlight-color);
    transform: translateY(-2px);
}

footer p a {
    color: var(--highlight-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer p a:hover {
    color: #ff6b9d;
    text-decoration: underline;
}

footer p {
    color: var(--text-secondary);
    margin: 5px 0;
}

.disclaimer {
    font-size: 0.9em;
    color: var(--text-secondary);
    opacity: 0.7;
}

.disclaimer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.disclaimer a:hover {
    color: var(--highlight-color);
    opacity: 1;
}

/* Legal Pages Styles */
.legal-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    color: var(--highlight-color);
    margin-bottom: 30px;
}

.legal-content h2 {
    color: var(--text-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.contact-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--border-color);
    max-width: 700px;
    margin: 0 auto;
}

.contact-content h1 {
    color: var(--highlight-color);
    margin-bottom: 30px;
}

.contact-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.contact-info {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--accent-color);
    border-radius: 10px;
}

.contact-item i {
    font-size: 1.5em;
    color: var(--highlight-color);
    width: 30px;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    color: var(--text-color);
    display: block;
    margin-bottom: 5px;
}

.contact-item span {
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-title {
        flex: 1 1 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }

    header h1 {
        font-size: 1.3em;
    }

    .subtitle {
        font-size: 0.8em;
    }

    .categories-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .category-btn {
        font-size: 0.85em;
        padding: 8px 15px;
        white-space: nowrap;
    }

    .search-bar-inline {
        margin-left: 0;
        width: 100%;
        margin-top: 10px;
    }

    .search-bar-inline input {
        width: 100%;
        max-width: none;
    }

    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .channel-card {
        padding: 15px;
    }

    .channel-logo {
        font-size: 2.5em;
    }

    .legal-content,
    .contact-content {
        padding: 20px;
    }

    .welcome-card {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    header {
        padding: 10px 0;
    }

    .header-title {
        align-items: center;
    }

    header h1 {
        font-size: 1.2em;
    }

    .subtitle {
        font-size: 0.75em;
    }

    .channels-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .channel-card {
        padding: 10px;
    }

    .search-bar-inline input {
        font-size: 0.85em;
        padding: 6px 12px;
    }

    .search-bar-inline button {
        padding: 6px 12px;
        font-size: 0.85em;
    }

    .legal-content,
    .contact-content {
        padding: 15px;
    }

    .legal-content h1,
    .contact-content h1 {
        font-size: 1.5em;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

