* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0f0f0f;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: white;
}

/* Header */
.header {
    background: #1a1a1a;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #333;
}

.header h1 {
    font-size: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: #ddd;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover {
    color: white;
}

.nav-links a i {
    font-size: 18px;
}

/* Channel Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.channel-card {
    background: #1f1f1f;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.channel-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.thumbnail {
    height: 160px;
    background: #000;
    position: relative;
}

.thumbnail::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    opacity: 0.7;
    color: white;
}

.channel-info {
    padding: 15px;
}

.channel-name {
    font-size: 18px;
    margin-bottom: 5px;
}

.live-badge {
    display: inline-block;
    background: red;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    padding: 15px 20px;
    background: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}

.close-btn:hover {
    color: white;
}

video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    background: black;
}

/* Responsive */
@media (max-width: 768px) {
    .grid {
        padding: 15px;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .header {
        padding: 12px 15px;
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-links {
        gap: 15px;
    }
}

/* Footer */
.footer {
    background: #1a1a1a;
    padding: 30px 20px;
    border-top: 1px solid #333;
    margin-top: 50px;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content p {
    margin: 8px 0;
    color: #aaa;
    font-size: 15px;
}

.developed-by {
    color: #0d9eff;
    font-size: 14px;
    margin: 10px 0;
}

.footer-links {
    margin: 15px 0;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

/* Role Badge */
.role-badge {
    background: #0d9eff;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Responsive Menu */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .role-badge {
        margin-left: 0;
    }
}
/* Register Page - Icon Inside Fields */
.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
    padding: 40px 20px;
    background: #0f0f0f;
}

.register-box {
    background: #1f1f1f;
    padding: 40px 35px;
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.register-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #0d9eff;
}

.input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 18px;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 14px 14px 14px 50px;
    border: none;
    border-radius: 6px;
    background: #2a2a2a;
    color: white;
    font-size: 16px;
}

.input-group input:focus {
    background: #333;
    outline: 2px solid #0d9eff;
}

.btn-register {
    width: 100%;
    padding: 14px;
    background: #0d9eff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
}

.btn-register:hover {
    background: #0b7ed6;
}

.alert {
    padding: 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 15px;
}

.error { background: #ff3333; color: white; }
.success { background: #00cc66; color: white; }

.login-link {
    text-align: center;
    margin-top: 20px;
    color: #bbb;
}

.login-link a {
    color: #0d9eff;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #0d9eff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
}

.btn-login:hover {
    background: #0b7ed6;
}

/* Make button more prominent like in screenshot */
.btn-login {
    background: #00aaff;
}
.dashboard-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-header {
    text-align: center;
    margin-bottom: 50px;
}

.welcome-header h1 {
    font-size: 36px;
    color: #0d9eff;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.dashboard-card {
    background: #1f1f1f;
    padding: 35px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.4);
}

.dashboard-card i {
    color: #0d9eff;
    margin-bottom: 15px;
}

.dashboard-card h3 {
    margin: 15px 0 8px 0;
}

.btn-card {
    display: inline-block;
    background: #0d9eff;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 10px;
}

.btn-card:hover {
    background: #0b7ed6;
}

/* Header Layout */
.header {
    background: #1a1a1a;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #333;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

/* User Dropdown */
.user-menu {
    margin-left: auto;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: #0d9eff;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropbtn:hover {
    background: #0b7ed6;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: #1f1f1f;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
    border-radius: 6px;
    z-index: 100;
    margin-top: 5px;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-content a:hover {
    background: #0d9eff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }
}

/* Profile Page */
.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 40px 20px;
    background: #0f0f0f;
}

.profile-box {
    background: #1f1f1f;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.profile-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #0d9eff;
}

.profile-info {
    margin-bottom: 30px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row label {
    color: #aaa;
    font-weight: 500;
}

.info-row p {
    color: white;
    margin: 0;
}

.role-badge {
    background: #0d9eff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.profile-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn-edit, .btn-back {
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

.btn-edit {
    background: #0d9eff;
    color: white;
}

.btn-back {
    background: #333;
    color: white;
}

.btn-edit:hover { background: #0b7ed6; }
.btn-back:hover { background: #444; }

/* Admin Dashboard */
.admin-dashboard {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70vh;
    background: #0f0f0f;
}

.admin-header {
    text-align: center;
    margin-bottom: 50px;
    color: white;
}

.admin-header h1 {
    color: #0d9eff;
    font-size: 36px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.admin-card {
    background: #1f1f1f;
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.admin-card:hover {
    transform: translateY(-10px);
    background: #252525;
}

.admin-card i {
    font-size: 48px;
    color: #0d9eff;
    margin-bottom: 15px;
}

.admin-card h3 {
    margin: 15px 0 10px 0;
    color: white;
}

.admin-btn {
    display: inline-block;
    background: #0d9eff;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 15px;
    font-weight: bold;
}

.admin-btn:hover {
    background: #0b7ed6;
}