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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --youtube-red: #FF0000;
    --tiktok-cyan: #00f2ea;
    --tiktok-pink: #ff0050;
    --twitch-purple: #9146FF;
    --discord-blurple: #5865F2;
    --border: #2a2a2a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    scroll-margin-top: 0;
    background:
        radial-gradient(ellipse at 15% 30%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 70%, rgba(0, 242, 234, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 30%, rgba(145, 70, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 85%, rgba(88, 101, 242, 0.08) 0%, transparent 50%);
}

.hero-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border);
    box-shadow: 0 0 0 4px rgba(145, 70, 255, 0.3), 0 0 40px rgba(88, 101, 242, 0.3);
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #c0c0c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-socials {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-youtube { background: var(--youtube-red); color: #fff; }
.btn-youtube:hover { background: #cc0000; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3); }

.btn-tiktok { background: linear-gradient(135deg, var(--tiktok-cyan), var(--tiktok-pink)); color: #fff; }
.btn-tiktok:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 242, 234, 0.3); }

.btn-twitch { background: var(--twitch-purple); color: #fff; }
.btn-twitch:hover { background: #7a38d6; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(145, 70, 255, 0.3); }

.btn-discord { background: var(--discord-blurple); color: #fff; }
.btn-discord:hover { background: #4752c4; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3); }

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

.btn-youtube-outline:hover { border-color: var(--youtube-red); color: var(--youtube-red); background: rgba(255, 0, 0, 0.05); }
.btn-tiktok-outline:hover { border-color: var(--tiktok-cyan); color: var(--tiktok-cyan); background: rgba(0, 242, 234, 0.05); }
.btn-twitch-outline:hover { border-color: var(--twitch-purple); color: var(--twitch-purple); background: rgba(145, 70, 255, 0.05); }
.btn-discord-outline:hover { border-color: var(--discord-blurple); color: var(--discord-blurple); background: rgba(88, 101, 242, 0.05); }

.btn-lg { padding: 18px 36px; font-size: 1.1rem; }

/* Sticky Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.sticky-nav.visible {
    transform: translateY(0);
}

.nav-inner {
    width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-brand {
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, #c0c0c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.2s ease, width 0.2s ease;
    overflow: hidden;
    white-space: nowrap;
}

.nav-brand:hover {
    opacity: 0;
    width: 0;
    padding: 0;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Back-to-Top Button */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--twitch-purple);
    border-color: var(--twitch-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(145, 70, 255, 0.4);
}

/* Sections */
.section { padding: 90px 0; scroll-margin-top: 64px; }
.section-alt { background: var(--bg-secondary); }

.channel-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.channel-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.section-subtitle { color: var(--text-secondary); font-size: 1.05rem; }

.section-cta { text-align: center; margin-top: 40px; }

/* YouTube Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s, border-color 0.3s;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--youtube-red);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
}

.video-meta p {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0;
}

.video-views {
    color: var(--text-secondary);
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Loading & Error */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.loading.error {
    color: var(--tiktok-pink);
}

.loading code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 6px;
    color: var(--tiktok-cyan);
}

/* TikTok Embed */
.tiktok-embed-wrap {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 28px;
    display: flex;
    justify-content: center;
    transition: border-color 0.3s;
}

.tiktok-embed-wrap:hover { border-color: var(--tiktok-cyan); }

.tiktok-embed-wrap .tiktok-embed {
    margin: 0 auto;
}

/* Twitch Embed */
.twitch-embed-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #0f0e11;
    transition: border-color 0.3s;
}

.twitch-embed-wrap:hover { border-color: var(--twitch-purple); }

.twitch-embed-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}

.twitch-status {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 20px;
    font-size: 1rem;
}

/* Discord Card */
.discord-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 40px;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    transition: border-color 0.3s;
}

.discord-card:hover { border-color: var(--discord-blurple); }

.discord-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    justify-content: center;
    margin-bottom: 24px;
}

.discord-info h3 {
    font-size: 1.6rem;
    margin-bottom: 6px;
    color: var(--discord-blurple);
}

.discord-info p { color: var(--text-secondary); font-size: 1rem; }

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--text-primary); }

/* Responsive */
@media (max-width: 768px) {
    .section { padding: 60px 0; }

    .channel-head { flex-direction: column; text-align: center; }

    .section-title { font-size: 1.7rem; justify-content: center; }
    .section-subtitle { text-align: center; }

    .video-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

    .discord-card { padding: 28px 20px; }
    .discord-profile { flex-direction: column; text-align: center; }

    .nav-links { gap: 0; }
    .nav-link { padding: 8px 8px; font-size: 0.75rem; }
    .nav-link svg { display: none; }

    .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
    .hero-socials { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; justify-content: center; }
    .hero-avatar { width: 110px; height: 110px; }
}
