/* --- GLOBAL RESET & THEME --- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #050505;
    color: #e5e5e5;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Background Animation Layer */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255, 0, 0, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 90% 80%, rgba(139, 0, 0, 0.06) 0%, transparent 60%);
    z-index: -2;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

/* --- NAVIGATION --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 0, 0, 0.2);
}

.logo {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.logo-icon {
    font-size: 1.8rem;
}

.badge {
    font-size: 0.7rem;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
    }
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #aaa;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.btn-subscribe {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 0, 0, 0.5);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 55vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 50%, #0a0a0a 100%);
    margin-bottom: 40px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1462331940025-496dfbfc7564?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.85) 40%, rgba(5, 5, 5, 0.6) 100%),
        linear-gradient(0deg, #050505 0%, transparent 30%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 60px;
    max-width: 650px;
    animation: slideIn 1s ease-out;
}

.hero h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 4rem;
    line-height: 1;
    margin: 15px 0;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 0%, #ff6666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: #bbb;
    margin-bottom: 30px;
    line-height: 1.6;
}

.category-tag {
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

.tag-science {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
    border: 1px solid #48bb78;
}

.tag-gaming {
    background: rgba(0, 255, 255, 0.15);
    color: #0ff;
    border: 1px solid rgba(0, 255, 255, 0.5);
}

.tag-live {
    background: rgba(255, 0, 0, 0.3);
    color: #ff4444;
    border: 1px solid #ff4444;
    animation: pulse-glow 1.5s infinite;
}

.tag-premium {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.2), rgba(0, 229, 255, 0.2));
    color: #ff0080;
    border: 1px solid #ff0080;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn {
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-play {
    background: #fff;
    color: #000;
}

.btn-play:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-subscribe-hero {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
}

.btn-subscribe-hero:hover {
    box-shadow: 0 6px 30px rgba(255, 0, 0, 0.6);
    transform: translateY(-2px);
}

.btn-info {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-info:hover {
    background: rgba(255, 255, 255, 0.25);
}

.channel-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.stat-item:hover {
    color: #ff0000;
}

.stat-item i {
    color: #ff0000;
}

/* --- MAIN CONTAINER & FILTERS --- */
.main-container {
    padding: 0 40px 60px 40px;
    position: relative;
    z-index: 2;
}

.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #aaa;
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

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

.tab-btn.active {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
    border-color: #ff0000;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

/* --- FEATURED SECTION --- */
.featured-section {
    margin-bottom: 60px;
}

.featured-video-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.featured-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 16px;
    padding: 20px;
    overflow: hidden;
}

.featured-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.featured-info h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    margin: 0 0 15px 0;
    color: #fff;
}

.featured-info p {
    color: #888;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-watch {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-watch:hover {
    box-shadow: 0 6px 25px rgba(255, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* --- VIDEO EMBED WRAPPER --- */
.video-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* --- VIDEO SECTIONS --- */
.video-section {
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: #ff0000;
}

.highlight-featured {
    color: #ff0000;
    font-size: 0.9rem;
    opacity: 0.8;
}

.highlight-science {
    color: #48bb78;
    font-size: 0.9rem;
    opacity: 0.8;
}

.highlight-gaming {
    color: #0ff;
    font-size: 0.9rem;
    opacity: 0.8;
}

.highlight-shorts {
    color: #ff0000;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- VIDEO GRID --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* VOD CARDS */
.video-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.15);
}

.video-card-embed {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.video-card-embed:hover {
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.15);
}

.video-card-info {
    padding: 15px;
}

.video-card-info h3 {
    margin: 8px 0 0 0;
    font-size: 1rem;
    color: #fff;
}

.thumbnail {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail i.overlay-icon {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
}

.video-card:hover .thumbnail i.overlay-icon {
    color: #ff0000;
    transform: scale(1.2);
}

.thumb-gaming {
    background: linear-gradient(135deg, #001a1a 0%, #0a0a0a 100%);
}

.video-card:hover .thumb-gaming i.overlay-icon {
    color: #0ff;
}

.thumb-science {
    background: linear-gradient(135deg, #0a1a0a 0%, #0a0a0a 100%);
}

.video-card:hover .thumb-science i.overlay-icon {
    color: #48bb78;
}

.thumb-premium {
    background: linear-gradient(135deg, #1a0a1a 0%, #0a1a1a 100%);
}

.video-card:hover .thumb-premium i.overlay-icon {
    color: #ff0080;
}

/* Live Card Styles */
.live-card {
    border-color: rgba(255, 0, 0, 0.3);
}

.live-card:hover {
    border-color: #ff0000;
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.3);
}

.thumb-live {
    background: linear-gradient(135deg, #2a0a0a 0%, #0a0a0a 100%);
}

.live-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.2) 0%, transparent 70%);
    animation: live-pulse 2s infinite;
}

@keyframes live-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff0000;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    animation: pulse-glow 1.5s infinite;
}

/* Promo Card Styles */
.promo-card .promo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.promo-card .promo-overlay span {
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #fff;
}

.promo-card.premium .thumbnail {
    border: 1px solid rgba(255, 0, 128, 0.3);
}

.promo-card.premium:hover {
    border-color: #ff0080;
    box-shadow: 0 10px 40px rgba(255, 0, 128, 0.2);
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.details {
    padding: 15px;
}

.details h3 {
    font-size: 1rem;
    margin: 0 0 8px 0;
    color: #fff;
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
}

.tag {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* --- CHANNEL SECTION --- */
.channel-section {
    margin-bottom: 60px;
}

.channel-embed-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 16px;
    padding: 25px;
}

.channel-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
}

.channel-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.channel-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.channel-cta h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    margin: 0 0 15px 0;
    color: #fff;
}

.channel-cta p {
    color: #888;
    margin-bottom: 25px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-subscribe-large {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
}

.btn-subscribe-large:hover {
    box-shadow: 0 6px 30px rgba(255, 0, 0, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    justify-content: center;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* --- SHORTS SECTION --- */
.shorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.short-card {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    text-align: center;
}

.short-card:hover {
    transform: translateY(-5px);
}

.short-preview {
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 280px;
    background: linear-gradient(135deg, #1a0a0a 0%, #0a0a0a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.short-card:hover .short-preview {
    border-color: #ff0000;
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.2);
}

.short-preview i {
    font-size: 2.5rem;
    color: rgba(255, 0, 0, 0.5);
    transition: all 0.3s;
}

.short-card:hover .short-preview i {
    color: #ff0000;
    transform: scale(1.2);
}

.shorts-badge {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff0000;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.short-card h3 {
    font-size: 0.95rem;
    margin: 0 0 5px 0;
    color: #fff;
}

.short-meta {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}

.placeholder-card {
    opacity: 0.6;
    cursor: default;
}

.placeholder-card .short-preview i {
    color: rgba(255, 255, 255, 0.2);
}

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

.btn-shorts {
    background: rgba(255, 0, 0, 0.15);
    color: #ff0000;
    border: 1px solid rgba(255, 0, 0, 0.3);
    display: inline-flex;
}

.btn-shorts:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
    border-color: #ff0000;
}

/* --- CHANNEL SHOWCASE --- */
.channel-showcase {
    margin-bottom: 60px;
}

.showcase-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.channel-banner {
    background: linear-gradient(135deg, #1a0505 0%, #0a0a0a 50%, #050a0a 100%);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.05;
}

.banner-icon {
    font-size: 200px;
    color: #ff0000;
}

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

.channel-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
}

.channel-details h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    margin: 0 0 5px 0;
    color: #fff;
}

.channel-details p {
    color: #ff6666;
    margin: 0 0 8px 0;
    font-size: 0.95rem;
}

.channel-tag {
    font-size: 0.8rem;
    color: #888;
}

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

.btn-subscribe-channel {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
    padding: 12px 24px;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
}

.btn-subscribe-channel:hover {
    box-shadow: 0 6px 30px rgba(255, 0, 0, 0.6);
    transform: translateY(-2px);
}

.btn-visit {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
}

.btn-visit:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 25px 15px;
    text-decoration: none;
    color: #888;
    transition: all 0.3s;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}

.quick-link:last-child {
    border-right: none;
}

.quick-link:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

.quick-link.live {
    color: #ff4444;
    animation: pulse-glow 2s infinite;
}

.quick-link.live:hover {
    background: rgba(255, 0, 0, 0.2);
}

.quick-link i {
    font-size: 1.5rem;
}

.quick-link span {
    font-size: 0.85rem;
    font-weight: 600;
}

.main-short {
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.main-short:hover {
    border-color: #ff0000;
}

/* Footer improvements */
.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 15px;
}

.footer-brand .logo-icon {
    font-size: 1.5rem;
}


.subscribe-banner {
    background: linear-gradient(135deg, #1a0a0a 0%, #0a0a0a 50%, #0a1a1a 100%);
    padding: 60px 40px;
    border-top: 1px solid rgba(255, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 0, 0, 0.2);
}

.subscribe-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.subscribe-text h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    margin: 0 0 10px 0;
    color: #fff;
}

.subscribe-text p {
    color: #888;
    margin: 0;
    font-size: 1rem;
}

.btn-subscribe-xl {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
    padding: 18px 40px;
    font-size: 1.1rem;
    box-shadow: 0 6px 30px rgba(255, 0, 0, 0.4);
    white-space: nowrap;
}

.btn-subscribe-xl:hover {
    box-shadow: 0 8px 40px rgba(255, 0, 0, 0.6);
    transform: translateY(-3px);
}

/* --- FOOTER --- */
.stream-footer {
    text-align: center;
    padding: 50px 40px;
    background: rgba(0, 0, 0, 0.5);
    color: #555;
    font-size: 0.85rem;
}

.stream-footer p {
    margin: 0 0 20px 0;
}

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

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff0000;
}

/* --- ANIMATIONS --- */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .featured-main {
        grid-template-columns: 1fr;
    }

    .channel-embed-container {
        grid-template-columns: 1fr;
    }

    .subscribe-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        height: auto;
        min-height: 350px;
        padding: 80px 0 40px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .main-container {
        padding: 0 20px 40px;
    }

    .category-tabs {
        gap: 8px;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .shorts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-main,
    .channel-embed-container {
        padding: 15px;
    }

    .subscribe-banner {
        padding: 40px 20px;
    }

    .subscribe-text h2 {
        font-size: 1.5rem;
    }

    /* Channel showcase responsive */
    .channel-banner {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .channel-info {
        flex-direction: column;
    }

    .channel-actions {
        flex-direction: column;
        width: 100%;
    }

    .channel-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .quick-links {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .badge {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.2rem;
        flex-wrap: wrap;
    }

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

    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-link {
        padding: 18px 10px;
    }

    .quick-link i {
        font-size: 1.2rem;
    }

    .quick-link span {
        font-size: 0.75rem;
    }

    .channel-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .channel-details h3 {
        font-size: 1.4rem;
    }
}