/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #0b0f14 0%, #0e131a 100%);
    color: #fff;
    overflow-x: hidden;
}

/* ================= HEADER ================= */

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11,15,20,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,255,170,0.08);
    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: 800;
}

.logo span {
    color: #00ffaa;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    margin-left: 28px;
    text-decoration: none;
    color: #cfd8e3;
    transition: 0.3s;
}

nav a:hover {
    color: #00ffaa;
}

.register-btn {
    padding: 8px 18px;
    border: 1px solid #00ffaa;
    border-radius: 8px;
    color: #00ffaa;
}

.register-btn:hover {
    background: #00ffaa;
    color: #0b0f14;
}

/* HAMBURGER */

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* ================= HERO ================= */

.hero {
    margin-top: 110px;
    padding: 140px 8% 120px;
    text-align: center;
    background: radial-gradient(
        circle at center,
        rgba(0,255,170,0.2) 0%,
        rgba(0,255,170,0.08) 35%,
        transparent 70%
    );
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
}

.hero-title span {
    color: #00ffaa;
}

.hero p {
    margin-top: 15px;
    color: #9aa7bb;
}

.cta-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 28px;
    border: 1px solid #00ffaa;
    border-radius: 8px;
    color: #00ffaa;
    text-decoration: none;
    transition: 0.3s;
}

.cta-btn:hover {
    background: #00ffaa;
    color: #0b0f14;
}

/* ================= SEARCH ================= */

.search-box {
    margin-top: 30px;
}

.search-box input {
    width: 350px;
    max-width: 90%;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid rgba(0,255,170,0.4);
    background: #111820;
    color: white;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.search-box input:focus {
    border-color: #00ffaa;
    box-shadow: 0 0 15px rgba(0,255,170,0.3);
}

/* ================= SECTION ================= */

.live-section {
    padding: 90px 8%;
}

.live-section h2 {
    margin-bottom: 40px;
}

/* ================= GRID ================= */

.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ================= CARD ================= */

.card {
    background: linear-gradient(145deg, #151c24, #111720);
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(0,255,170,0.08);
    position: relative;
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 30px rgba(0,255,170,0.2);
}

/* TOP 1 special */

.grid .card:first-child {
    border: 3px solid gold;
    box-shadow: 0 0 60px rgba(255,215,0,0.6);
    transform: scale(1.05);
    z-index: 2;
}

/* ================= RANK ================= */

.top-rank {
    position: absolute;
    top: 12px;
    left: 14px;
    font-weight: 700;
    color: #00ffaa;
}

/* ================= LIVE ================= */

.live-badge {
    position: absolute;
    top: 12px;
    right: 14px;
    background: #ff2d55;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,45,85,0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255,45,85,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,45,85,0); }
}

/* ================= PREVIEW ================= */

.preview {
    width: 100%;
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #1a222b;
}

.preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offline {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #777;
    font-weight: 600;
}

/* ================= TEXT ================= */

.nickname {
    font-size: 16px;
    font-weight: 700;
}

.game {
    color: #00ffaa;
    font-size: 13px;
    margin: 6px 0;
}

.stats {
    font-size: 13px;
    color: #9aa7bb;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.hype {
    color: #ffb300;
    font-weight: 700;
}

.viewers {
    font-size: 13px;
    color: #9aa7bb;
}

/* ================= ROLE / PROFILE ================= */

.role-section {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 8%;
}

.role-container {
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.setup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.setup-form input,
.setup-form textarea,
.setup-form select {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(0,255,170,0.3);
    background: #111820;
    color: white;
}

.setup-form textarea {
    min-height: 100px;
    resize: vertical;
}

.error-box {
    background: #ff2d55;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.success-box {
    background: #00ffaa;
    color: #000;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* ================= FOOTER ================= */

footer {
    text-align: center;
    padding: 60px;
    border-top: 1px solid rgba(0,255,170,0.05);
    margin-top: 80px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: #0b0f14;
        flex-direction: column;
        display: none;
        padding: 20px 0;
        border-top: 1px solid rgba(0,255,170,0.1);
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 12px 0;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 32px;
    }
}
/* ===== ROLE PAGE PREMIUM STYLE ===== */

.role-sub {
    color: #9aa7bb;
    margin-bottom: 50px;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.role-card {
    background: linear-gradient(145deg, #151c24, #111720);
    border: 1px solid rgba(0,255,170,0.1);
    border-radius: 22px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.role-card:hover {
    transform: translateY(-10px);
    border: 1px solid rgba(0,255,170,0.6);
    box-shadow: 0 0 50px rgba(0,255,170,0.25);
}

.role-card::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,255,170,0.25), transparent 70%);
    top: -120px;
    right: -120px;
    opacity: 0;
    transition: 0.3s;
}

.role-card:hover::before {
    opacity: 1;
}

.role-icon {
    font-size: 55px;
    margin-bottom: 25px;
}

.role-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.role-card p {
    font-size: 14px;
    color: #9aa7bb;
}

/* Mobile */

@media (max-width: 768px) {
    .role-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== STREAM PAGE ===== */

.stream-page {
    padding: 120px 6% 60px;
}

.stream-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.video-wrapper iframe {
    width: 100%;
    height: 600px;
    border-radius: 18px;
    border: none;
}

.chat-wrapper iframe {
    width: 100%;
    height: 600px;
    border-radius: 18px;
    border: none;
}

/* Mobile */

@media (max-width: 1024px) {
    .stream-container {
        grid-template-columns: 1fr;
    }

    .video-wrapper iframe,
    .chat-wrapper iframe {
        height: 400px;
    }
}