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

:root {
    --primary-gold: #FFD700;
    --aztec-bronze: #CD7F32;
    --deep-purple: #4A148C;
    --royal-blue: #1565C0;
    --dark-bg: #0F0F0F;
    --sidebar-bg: #1A1A1A;
    --card-bg: #262626;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --accent-glow: #00FFFF;
    --live-red: #FF0000;
    --twitch-purple: #9146FF;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 2px solid var(--primary-gold);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1920px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.aztec-emblem {
    width: 40px;
    height: 40px;
    background: conic-gradient(from 0deg, var(--primary-gold), var(--aztec-bronze), var(--primary-gold));
    border-radius: 50%;
    position: relative;
    animation: rotate 10s linear infinite;
}

.aztec-emblem::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: var(--dark-bg);
    border-radius: 50%;
}

.brand-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-gold), var(--aztec-bronze));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-center {
    display: flex;
    align-items: center;
}

.live-status {
    display: none; /* Hidden by default */
    align-items: center;
    gap: 10px;
    background: rgba(255, 0, 0, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--live-red);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--live-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.follow-btn {
    background: linear-gradient(45deg, var(--twitch-purple), #6441a5);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(145, 70, 255, 0.3);
}

.home-btn {
    color: var(--text-secondary);
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
}

.home-btn:hover {
    color: var(--primary-gold);
    background: rgba(255, 215, 0, 0.1);
}

/* Main Container */
.main-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    min-height: 100vh;
    padding-top: 80px;
}

/* Sidebar */
.sidebar {
    background: var(--sidebar-bg);
    border-right: 2px solid var(--primary-gold);
    overflow-y: auto;
    height: calc(100vh - 80px);
    position: sticky;
    top: 80px;
}

.team-banner {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--deep-purple), var(--royal-blue), var(--primary-gold));
    opacity: 0.8;
}

.banner-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="aztec" patternUnits="userSpaceOnUse" width="20" height="20"><path d="M0 0h20v20H0z" fill="none"/><path d="M10 0L20 10L10 20L0 10z" fill="rgba(255,215,0,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23aztec)"/></svg>');
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-content h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.team-stats {
    display: flex;
    flex-direction: column;
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Streamers List */
.streamers-list {
    padding: 1.5rem;
}

.streamers-list h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.streamer-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.streamer-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.streamer-item:hover::before {
    left: 100%;
}

.streamer-item.featured {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(205, 127, 50, 0.1));
    border: 1px solid var(--primary-gold);
}

.streamer-item.live {
    background: rgba(255, 0, 0, 0.05);
    border-left: 3px solid var(--live-red);
}

.streamer-item.offline {
    opacity: 0.6;
}

.streamer-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
}

.streamer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin-right: 12px;
    border: 2px solid var(--primary-gold);
}

.streamer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: var(--live-red);
    border: 2px solid var(--sidebar-bg);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.streamer-info {
    flex: 1;
    min-width: 0;
}

.streamer-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.viewer-count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.last-seen {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.game-category {
    font-size: 0.75rem;
    color: var(--accent-glow);
    background: rgba(0, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
}

.streamer-item.owner {
    border: 2px solid var(--primary-gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(205, 127, 50, 0.1));
    position: relative;
}

.owner-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-gold);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid var(--dark-bg);
}

.owner-label {
    font-size: 0.7rem;
    color: var(--primary-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.streamer-name {
    font-weight: 600;
    color: var(--text-primary);
}

.streamer-item.owner .streamer-name {
    color: var(--primary-gold);
    font-weight: 700;
}

/* Team Info */
.team-info {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    margin-top: 1rem;
}

.team-info h4 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.team-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-gold);
    transform: translateX(5px);
}

/* Main Stream Area */
.stream-main {
    padding: 2rem;
    overflow-y: auto;
    height: calc(100vh - 80px);
}

.featured-stream {
    margin-bottom: 3rem;
}

.stream-player {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.player-container {
    position: relative;
    aspect-ratio: 16/9;
}

.stream-video {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

#twitch-embed {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
}

.stream-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--live-red);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: none; /* Hidden by default */
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
    z-index: 2;
}

.viewer-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: none; /* Hidden by default */
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.stream-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-container:hover .stream-overlay {
    opacity: 1;
}

.stream-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    position: relative;
}

.volume-bar {
    width: 70%;
    height: 100%;
    background: var(--primary-gold);
    border-radius: 2px;
}

.stream-time {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.spacer {
    flex: 1;
}

/* Stream Info Panel */
.stream-info-panel {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.streamer-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.streamer-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid var(--primary-gold);
}

.streamer-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crown-icon {
    position: absolute;
    top: -10px;
    right: -5px;
    color: var(--primary-gold);
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.streamer-details {
    flex: 1;
}

.streamer-details h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.stream-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.stream-meta {
    display: flex;
    gap: 1rem;
}

.game-tag,
.category-tag,
.language-tag {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.game-tag {
    background: rgba(0, 255, 255, 0.2);
    color: var(--accent-glow);
}

.category-tag {
    background: rgba(255, 215, 0, 0.2);
    color: var(--primary-gold);
}

.language-tag {
    background: rgba(145, 70, 255, 0.2);
    color: var(--twitch-purple);
}

.stream-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.action-btn.follow {
    background: linear-gradient(45deg, var(--live-red), #cc0000);
    color: white;
}

.action-btn.subscribe {
    background: linear-gradient(45deg, var(--twitch-purple), #6441a5);
    color: white;
}

.action-btn.share {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stream-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Other Streams */
.other-streams h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 2rem;
}

.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.stream-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stream-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
}

.stream-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.stream-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.stream-card:hover .stream-thumbnail img {
    transform: scale(1.05);
}

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

.stream-viewers {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stream-card-info {
    padding: 1rem;
    display: flex;
    gap: 12px;
}

.streamer-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-gold);
    flex-shrink: 0;
}

.streamer-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stream-details {
    flex: 1;
    min-width: 0;
}

.stream-details h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-gold);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.stream-details p {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-name {
    color: var(--accent-glow);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Animations */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 300px 1fr;
    }
    
    .stream-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: relative;
        height: auto;
    }
    
    .streamer-header {
        flex-direction: column;
        text-align: center;
    }
    
    .stream-actions {
        flex-direction: row;
    }
    
    .streams-grid {
        grid-template-columns: 1fr;
    }
}

.offline-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    text-align: center;
}

.offline-message i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.offline-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Team Bio Section */
.team-bio {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.team-bio h2 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-gold);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.bio-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.team-highlights {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 8px;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.highlight-item i {
    font-size: 2rem;
    color: var(--primary-gold);
}

.highlight-item span {
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
}

.join-team {
    background: linear-gradient(135deg, var(--deep-purple), var(--royal-blue));
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}

.join-team h3 {
    color: var(--primary-gold);
    font-family: 'Orbitron', monospace;
    margin-bottom: 1rem;
}

.apply-btn {
    background: var(--primary-gold);
    color: var(--dark-bg);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

/* Team Bio in Main Area */
.team-bio-main {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.team-bio-main h2 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-gold);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.team-bio-main .bio-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.team-bio-main .team-highlights {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 8px;
}

.team-bio-main .highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.team-bio-main .highlight-item i {
    font-size: 2rem;
    color: var(--primary-gold);
}

.team-bio-main .highlight-item span {
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
}

.team-bio-main .join-team {
    background: linear-gradient(135deg, var(--deep-purple), var(--royal-blue));
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}

.team-bio-main .join-team h3 {
    color: var(--primary-gold);
    font-family: 'Orbitron', monospace;
    margin-bottom: 1rem;
}

.team-bio-main .apply-btn {
    background: var(--primary-gold);
    color: var(--dark-bg);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
}

.team-bio-main .apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}





