/* /assets/css/style.css */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --light: #f7fafc;
    --gray: #718096;
    --success: #48bb78;
    --danger: #f56565;
    --warning: #ecc94b;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--darker);
    color: var(--light);
    line-height: 1.6;
}

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

/* Шапка */
.header {
    background: var(--dark);
    padding: 15px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.logo i {
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--light);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    position: relative;
}

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

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
}

.btn-icon {
    color: var(--light);
    font-size: 1.3rem;
    position: relative;
}

/* Герой */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--dark), var(--darker));
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
}

/* Секции */
.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Категории */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.category-card {
    background: var(--dark);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.2rem;
}

/* Каналы */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.channel-card {
    background: var(--dark);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.channel-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.channel-image {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.channel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-image .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge.free {
    background: var(--success);
    color: white;
}

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

.channel-info {
    padding: 15px;
}

.channel-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-info .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray);
    font-size: 0.9rem;
}

.channel-info .resolution {
    padding: 3px 8px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    color: var(--primary);
}

/* Подвал */
.footer {
    background: var(--dark);
    padding: 60px 0 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--gray);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-section ul li i {
    width: 25px;
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    color: var(--gray);
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}