:root {
    --bg-color: #0e0e10;
    --card-bg: rgba(24, 24, 27, 0.8);
    --text-primary: #efeff1;
    --text-secondary: #adadb8;
    --accent: #bf94ff;
    --accent-hover: #a970ff;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    flex: 1;
}

footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.status-offline { background: #444; color: #ccc; }
.status-banned { background: #ff4b4b; color: #fff; }

/* Tabs System */
.tabs { display: flex; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 2rem; overflow-x: auto; }
.tab-btn { background: transparent; color: var(--text-secondary); border: none; padding: 0.5rem 1rem; font-size: 1rem; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; white-space: nowrap; }
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.btn-primary {
    background-color: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

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

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent);
}

.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: #1f1f23;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 5;
}

.pulse {
    animation: pulse-red 2s infinite;
    box-shadow: 0 0 0 0 rgba(111, 66, 251, 0.7);
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(111, 66, 251, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(111, 66, 251, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(111, 66, 251, 0); }
}

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

.card-image img {
    transition: transform 0.3s ease;
}

.card-content {
    padding: 1rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

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

/* Authentication Forms */
.auth-container {
    max-width: 400px;
    margin: 100px auto;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: #050505;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Player Styles */
#video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: black;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.stream-info {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Chat Sidebar */
.chat-sidebar {
    width: 320px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    /* Ensure it has a fixed height that pushes the input to bottom */
    height: 600px; 
    align-self: flex-start;
}

.chat-header {
    padding: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid var(--glass-border);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.chat-messages {
    flex: 1; /* This will take all available space */
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.chat-message {
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}

.chat-time {
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin-right: 6px;
}

.chat-user {
    font-weight: 700;
    color: var(--accent);
    margin-right: 6px;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.2);
}

.chat-input-wrapper {
    display: flex;
    gap: 8px;
}

.chat-input-area input {
    flex: 1;
    background: #050505;
    border: 1px solid var(--glass-border);
    padding: 0.6rem;
    border-radius: 6px;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
}

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

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}
/* --- NSFW / Mature Content Shield --- */
.nsfw-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.nsfw-blur {
    filter: blur(40px);
    pointer-events: none;
    user-select: none;
}

.nsfw-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    color: white;
    text-align: center;
    padding: 1rem;
    transition: opacity 0.3s ease;
}

.nsfw-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.nsfw-text {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-nsfw {
    background: white;
    color: black;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-nsfw:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
}

/* --- Admin Panel Styles --- */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.admin-table th, .admin-table td {
    padding: 1.2rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.admin-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-live {
    background: rgba(255, 75, 75, 0.15);
    color: #ff4b4b;
    border: 1px solid rgba(255, 75, 75, 0.2);
}

.status-offline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-banned {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.2);
}
/* --- Watch Page Grid --- */
.watch-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: flex-start;
}

@media (max-width: 1100px) {
    .watch-grid {
        grid-template-columns: 1fr;
    }
}

.player-column {
    min-width: 0;
}
