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

:root {
    --primary-color: #e94560;
    --secondary-color: #ff6b6b;
    --bg-dark: #0f0f1a;
    --bg-card: #16162a;
    --text-light: #ffffff;
    --text-muted: #aaaaaa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #0f0f1a 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(233, 69, 96, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    background: rgba(22, 22, 42, 0.8);
    backdrop-filter: blur(20px);
    padding: 25px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.header-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

header h1 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

/* Hero Logo */
.hero-logo {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

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

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-light);
    font-size: 24px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    color: var(--primary-color);
    background: rgba(233, 69, 96, 0.2);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

/* Hero Section */
.hero {
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.hero h2 {
    font-size: 64px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    text-shadow: 0 0 40px rgba(233, 69, 96, 0.3);
}

.hero p {
    font-size: 22px;
    margin-bottom: 40px;
    color: var(--text-muted);
}

.hero-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.social-btn.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.social-btn.discord {
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: white;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(233, 69, 96, 0.6);
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

/* Live Badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
    animation: pulse 2s infinite;
    margin-bottom: 30px;
}

.live-badge::before {
    content: '';
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Sections */
.section {
    padding: 100px 0;
}

.section h2 {
    font-size: 48px;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-align: center;
    font-weight: 800;
}

/* About Section */
.about {
    padding: 100px 0;
    background: rgba(22, 22, 42, 0.5);
}

.about h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.about p {
    font-size: 20px;
    color: var(--text-muted);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Servers Grid */
.servers-section {
    padding: 100px 0;
}

.servers-section h2 {
    font-size: 48px;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-align: center;
    font-weight: 800;
}

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

.server-card {
    background: linear-gradient(135deg, rgba(22, 22, 42, 0.9), rgba(26, 26, 46, 0.9));
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.server-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(233, 69, 96, 0.5);
}

.server-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.2), rgba(255, 107, 107, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 48px;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
    border: 2px solid rgba(233, 69, 96, 0.5);
}

.server-card h3 {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 24px;
}

.server-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.server-card a:hover {
    text-decoration: underline;
}

/* Videos Grid */
.videos-section {
    padding: 100px 0;
    background: rgba(22, 22, 42, 0.5);
}

.videos-section h2 {
    font-size: 48px;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-align: center;
    font-weight: 800;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.video-card {
    background: linear-gradient(135deg, rgba(22, 22, 42, 0.9), rgba(26, 26, 46, 0.9));
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.2), rgba(255, 107, 107, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.video-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Live Section */
.live-section {
    padding: 80px 0;
}

.live-section h2 {
    font-size: 48px;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-align: center;
    font-weight: 800;
}

.video-container {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.live-info {
    margin-top: 30px;
    text-align: center;
}

.status {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    display: inline-block;
}

.status.online {
    background: linear-gradient(135deg, #4caf50, #45a049);
    animation: pulse 2s infinite;
}

.status.offline {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 15px;
}

.admin-tab {
    background: transparent;
    color: var(--text-muted);
    border: 2px solid transparent;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-tab:hover {
    background: rgba(233, 69, 96, 0.1);
    color: var(--primary-color);
}

.admin-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Admin Section */
.admin-section {
    padding: 60px 0;
}

.admin-section h2 {
    font-size: 42px;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-align: center;
    font-weight: 800;
}

.admin-box {
    background: linear-gradient(135deg, rgba(22, 22, 42, 0.95), rgba(26, 26, 46, 0.95));
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo Upload */
.logo-upload {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.logo-preview {
    width: 120px;
    height: 120px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(233, 69, 96, 0.3);
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-box h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 24px;
    border-bottom: 2px solid rgba(233, 69, 96, 0.3);
    padding-bottom: 15px;
}

.stream-key-display {
    margin-bottom: 25px;
}

.stream-key-display label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-light);
}

.key-container {
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.key-container span {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: var(--primary-color);
}

.obs-settings p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.obs-settings code {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 5px;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.social-form,
.server-form,
.video-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.3);
}

.servers-list,
.videos-list {
    margin-top: 25px;
}

.server-item,
.video-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.server-item-info,
.video-item-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.server-item-logo {
    width: 50px;
    height: 50px;
    background: rgba(233, 69, 96, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
}

.server-item-actions,
.video-item-actions {
    display: flex;
    gap: 10px;
}

.btn-delete {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.btn-delete:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
}

/* Footer */
footer {
    background: rgba(22, 22, 42, 0.9);
    padding: 50px 0 30px;
    text-align: center;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-social a {
    color: var(--text-light);
    font-size: 32px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

footer p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 20px;
    }

    .hero h2 {
        font-size: 42px;
    }

    .hero p {
        font-size: 18px;
    }

    .section h2,
    .servers-section h2,
    .videos-section h2 {
        font-size: 36px;
    }

    .hero-social {
        flex-direction: column;
        align-items: center;
    }

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

    nav ul {
        gap: 20px;
    }
}

/* Live Wrapper */
.live-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.video-container-wrapper {
    flex: 1;
    position: relative;
}

.video-container {
    position: relative;
}

.fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.fullscreen-btn:hover {
    background: rgba(233, 69, 96, 0.8);
    transform: scale(1.1);
}

/* Chat Container */
.chat-container {
    width: 350px;
    background: rgba(22, 22, 42, 0.95);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    color: var(--text-light);
    font-size: 18px;
}

.chat-users {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.chat-message {
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.chat-message.system {
    background: transparent;
    text-align: center;
    padding: 5px;
}

.system-message {
    color: var(--text-muted);
    font-size: 13px;
    font-style: italic;
}

.chat-message .username {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 8px;
}

.chat-message .message {
    color: var(--text-light);
}

.chat-input-container {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nickname-container,
.message-input-container {
    display: flex;
    gap: 10px;
}

.nickname-container input,
.message-input-container input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    font-size: 14px;
}

.nickname-container input:focus,
.message-input-container input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Message Overlay */
.message-overlay {
    position: absolute;
    left: 20px;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    z-index: 5;
}

.overlay-message {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.9), rgba(255, 107, 107, 0.9));
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 4.7s forwards;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.overlay-message .username {
    font-weight: 800;
    margin-right: 8px;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

/* Responsive for Live */
@media (max-width: 1024px) {
    .live-wrapper {
        flex-direction: column;
    }
    
    .chat-container {
        width: 100%;
        height: 400px;
    }
}

