/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', Arial, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
/* Header Styles */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 20px;
}

.logo-img {
    height: 30px;
    margin-right: 10px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #ff0000;
}

/* Adjust search bar */
.search-bar {
    width: 40%;
    margin-right: auto;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff0000;
}

.search-bar {
    display: flex;
    width: 50%;
}

.search-bar input {
    width: 100%;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px 0 0 20px;
    outline: none;
}

.search-bar button {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 20px 20px 0;
    background-color: #f8f8f8;
    cursor: pointer;
}

.user-actions .btn {
    padding: 8px 15px;
    margin-left: 10px;
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
}

.user-actions .admin-btn {
    background-color: #333;
}

/* Navigation */
.category-nav ul {
    display: flex;
    list-style: none;
    padding: 15px 0;
    overflow-x: auto;
    white-space: nowrap;
}

.category-nav li {
    margin-right: 15px;
}

.category-nav a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    border-radius: 15px;
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
}

.category-nav a i {
    margin-right: 5px;
}

.category-nav li.active a {
    background-color: #333;
    color: white;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.video-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
}

.video-info {
    display: flex;
    padding: 10px;
}

.channel-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 10px;
}

.video-details h3 {
    font-size: 14px;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-details p {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

/* Admin Dashboard */
.admin-container {
    display: flex;
    min-height: calc(100vh - 120px);
}

.admin-sidebar {
    width: 250px;
    background-color: #333;
    color: white;
    padding: 20px 0;
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar li {
    padding: 10px 20px;
}

.admin-sidebar a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.admin-sidebar a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-sidebar li.active {
    background-color: #ff0000;
}

.admin-main {
    flex: 1;
    padding: 20px;
    background-color: #f9f9f9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #666;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* User Dashboard */
.user-container {
    display: flex;
    min-height: calc(100vh - 120px);
}

.user-sidebar {
    width: 250px;
    background-color: white;
    padding: 20px;
    box-shadow: 1px 0 3px rgba(0,0,0,0.1);
}

.user-profile {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.user-profile img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
}

.user-sidebar ul {
    list-style: none;
}

.user-sidebar li {
    padding: 10px 0;
}

.user-sidebar a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.user-sidebar a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.user-sidebar li.active a {
    color: #ff0000;
}

.creator-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.user-main {
    flex: 1;
    padding: 20px;
    background-color: #f9f9f9;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    background-color: white;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background-color: white;
    z-index: 999;
    box-shadow: 1px 0 3px rgba(0,0,0,0.1);
    transition: left 0.3s;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 20px;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
}

.mobile-menu a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .search-bar {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .user-actions {
        display: flex;
        justify-content: center;
    }
    
    .admin-sidebar, .user-sidebar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .admin-main, .user-main {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .video-info {
        flex-direction: column;
    }
    
    .channel-icon {
        margin-bottom: 10px;
    }
}
/* Sidebar Styles */
.sidebar {
    width: 240px;
    background-color: #fff;
    position: fixed;
    top: 56px;
    bottom: 0;
    left: -240px;
    padding: 12px 0;
    overflow-y: auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 90;
    transition: left 0.3s ease;
}

.main-content.sidebar-active {
    margin-left: 240px;
    transition: margin-left 0.3s ease;
}

.mobile-menu-btn {
    z-index: 1000;
}

.sidebar-section {
    margin-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 12px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    padding: 8px 24px;
    cursor: pointer;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.sidebar-btn:hover {
    background-color: #f2f2f2;
}

.sidebar-btn i {
    margin-right: 24px;
    width: 24px;
    text-align: center;
}

.sidebar-btn .arrow {
    margin-left: auto;
    transition: transform 0.2s;
}

.sidebar-btn.active .arrow {
    transform: rotate(90deg);
}

.dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.dropdown-menu.active {
    max-height: 500px;
}

.dropdown-item {
    padding: 8px 24px 8px 72px;
    cursor: pointer;
    color: #606060;
    display: block;
    text-decoration: none;
}

.dropdown-item:hover {
    background-color: #f2f2f2;
    color: #333;
}

/* Adjust main content when sidebar is present */
.main-content {
    margin-left: 240px;
    padding: 20px;
}

/* Mobile sidebar */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}
/* Tab Navigation */
.content-tabs {
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.tab-nav {
    display: flex;
    gap: 0;
}

.tab-btn {
    padding: 12px 24px;
    text-decoration: none;
    color: #606060;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: #000;
    background-color: #f2f2f2;
}

.tab-btn.active {
    color: #ff0000;
    border-bottom-color: #ff0000;
}

.tab-btn i {
    font-size: 18px;
}

/* Featured Content */
.featured-section {
    margin-top: 30px;
}

.featured-section h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.featured-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    min-width: 180px;
}

@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

.featured-card:hover {
    transform: translateY(-5px);
}

.featured-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.featured-card h3 {
    padding: 15px 15px 5px;
    font-size: 18px;
}

.featured-card p {
    padding: 0 15px 15px;
    color: #606060;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tab-nav {
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .tab-btn {
        padding: 12px 16px;
        white-space: nowrap;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
}
/* Sidebar Animation */
.sidebar {
    width: 240px;
    background-color: #fff;
    position: fixed;
    top: 56px;
    bottom: 0;
    left: -240px; /* Start hidden */
    padding: 12px 0;
    overflow-y: auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 90;
    transition: left 0.3s ease;
}

.sidebar.active {
    left: 0; /* Show sidebar */
}

/* Adjust main content when sidebar is active */
.main-content {
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

.main-content.sidebar-active {
    margin-left: 240px;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: block;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    background-color: white;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    cursor: pointer;
}
/* Footer Styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

.main-footer {
    background-color: #f9f9f9;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-links a {
    color: #606060;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ff0000;
}

.copyright {
    text-align: center;
    color: #909090;
    font-size: 13px;
}
/* News Content Styles */
.news-content {
    padding: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-details {
    padding: 15px;
}

.news-details h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.news-details p {
    color: #606060;
    margin-bottom: 10px;
    font-size: 14px;
}

.news-date {
    color: #909090;
    font-size: 12px;
}

/* Video Content Styles */
.video-content {
    padding: 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}


/* Radio Content Styles */
.radio-content {
    padding: 20px;
}

.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.radio-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.radio-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.radio-details {
    padding: 15px;
}

.radio-details h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.radio-details p {
    color: #606060;
    margin-bottom: 15px;
    font-size: 14px;
}

.play-btn {
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.play-btn:hover {
    background-color: #cc0000;
}
/* Active tab icon color */
.tab-btn.active i {
    color: #ff0000;
}

/* Optional: Keep text color normal */
.tab-btn.active {
    color: inherit; /* or your default text color */
}
/* Content Sections */
.content-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 10px;
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.view-all {
    color: #ff0000;
    text-decoration: none;
    font-weight: 500;
}

/* Horizontal Scroll */
.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ff0000 #f0f0f0;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background-color: #ff0000;
    border-radius: 10px;
}

/* Content Cards */
.content-card {
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.content-card:hover {
    transform: translateY(-5px);
}

.content-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.content-card h3 {
    margin: 60px;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-card p {
    margin: 0 10px 10px;
    color: #606060;
    font-size: 0.8rem;
}
/* Creator Pages Common Styles */
.creator-content {
    padding: 20px;
    background-color: #f5f5f5;
    min-height: calc(100vh - 120px);
}

.creator-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.creator-container h1 {
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="url"]:focus,
.form-group textarea:focus {
    border-color: #ff0000;
    outline: none;
}

.file-upload {
    position: relative;
    margin-top: 10px;
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: inline-block;
    padding: 12px 20px;
    background: #f0f0f0;
    color: #555;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-label:hover {
    background: #e0e0e0;
}

.file-name {
    margin-left: 15px;
    color: #777;
    font-size: 14px;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #cc0000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .creator-container {
        padding: 20px;
    }
    
    .creator-container h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }
}
/* Create Button Styles */
.header-create-btn {
    position: relative;
    margin-left: 15px;
}

.create-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.create-btn:hover {
    background: #ff5252;
    transform: scale(1.05);
}

.create-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.create-dropdown.active {
    display: block;
}

.create-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.create-dropdown-item:hover {
    background: #f5f5f5;
    color: #ff6b6b;
}

.create-dropdown-item i {
    width: 25px;
    font-size: 16px;
    color: #ff6b6b;
    margin-right: 10px;
}
/* Create Page Styles */
.create-page {
    padding: 30px 0;
}

.create-page h1 {
    margin-bottom: 30px;
    color: #333;
}

.create-form {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="url"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #ff6b6b;
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #ff5252;
}