* {
box-sizing: border-box;
}

html, body {
margin: 0;
overflow-x: hidden; /* Prevent horizontal scroll */
background: #0e0e10;
color: white;
font-family: Arial, sans-serif;
}

/* TOP BAR */
.topbar {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 64px;

display: grid;
grid-template-columns: auto 1fr auto;
gap: 20px;
align-items: center;

padding: 0 20px;
background: #18181b;
z-index: 1000;
}

.logo {
font-size: 28px;
font-weight: bold;
}

.logo a {
color: white;
text-decoration: none;
}

.search {
width: 100%;
max-width: 500px;
padding: 10px;
border-radius: 6px;
border: none;
}

/* PROFILE */
.profile {
position: relative;
cursor: pointer;
}

.profile img {
width: 36px;
height: 36px;
border-radius: 50%;
}

.dropdown {
display: none;
position: absolute;
right: 0;
top: 48px;
background: #1f1f23;
border-radius: 6px;
min-width: 140px;
padding: 6px 0;
}

.dropdown button,
.dropdown a {
display: block;
width: 100%;
padding: 10px 14px;
background: none;
border: none;
color: white;
text-align: left;
cursor: pointer;
text-decoration: none;
}

.dropdown button:hover,
.dropdown a:hover {
background: #333;
}

.dropdown.open {
display: block;
}

/* PAGE LAYOUT */
.page {
padding-top: 84px;
display: grid;
grid-template-columns: 320px 1fr 220px;
gap: 24px;
padding-left: 20px;
padding-right: 20px;
}

/* FEATURED */
.featured-grid {
display: grid;
gap: 20px;
}

.featured-card {
background: #1f1f23;
padding: 12px;
border-radius: 6px;
}

.featured-card img {
width: 100%;
border-radius: 6px;
}

/* STREAMS */
.streams-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
}

.stream-card {
background: #1f1f23;
padding: 8px;
border-radius: 6px;
cursor: pointer;
transition: transform 0.1s ease;
}

.stream-card:hover {
transform: scale(1.02);
}

.stream-card img {
width: 100%;
border-radius: 6px;
}

/* CATEGORIES */
.categories {
background: #18181b;
padding: 14px;
border-radius: 6px;
}

.categories ul {
list-style: none;
padding: 0;
margin: 0;
}

.categories li {
padding: 8px 0;
cursor: pointer;
}

.categories li:hover {
color: #a970ff;
}

/* AUTH PAGES */
.auth-container {
max-width: 400px;
margin: 120px auto;
background: #1f1f23;
padding: 30px;
border-radius: 8px;
}

.auth-container input {
width: 100%;
padding: 10px;
margin-bottom: 12px;
border-radius: 6px;
border: none;
}

.auth-container button {
width: 100%;
padding: 10px;
background: #a970ff;
border: none;
border-radius: 6px;
color: white;
cursor: pointer;
}

.auth-container button:hover {
opacity: 0.9;
}

/* WATCH PAGE */
.video-wrapper {
margin-top: 20px;
}