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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #141414;
    color: #fff;
    line-height: 1.6;
}

.navbar {
    background: #000;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.menu-toggle:hover {
    background: #333;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6b35;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff6b35;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 73px;
    width: 240px;
    height: calc(100vh - 73px);
    background: #0f0f0f;
    overflow-y: auto;
    padding: 0.75rem 0;
    z-index: 900;
    transition: transform 0.3s ease;
    transform: translateX(0);
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    transform: translateX(-240px);
}

.sidebar-section {
    padding: 0.5rem 0;
}

.sidebar-divider {
    height: 1px;
    background: #333;
    margin: 0.75rem 0;
}

.sidebar-label {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.65rem 1.5rem;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.sidebar-item:hover {
    background: #272727;
}

.sidebar-item.active {
    background: #333;
    border-left: 3px solid #ff6b35;
}

.sidebar-icon {
    width: 24px;
    height: 24px;
    color: #fff;
}

.container.with-sidebar {
    margin-left: 240px;
    max-width: calc(100% - 240px);
    transition: margin-left 0.3s ease, max-width 0.3s ease;
}

.sidebar.collapsed + .container.with-sidebar {
    margin-left: 0;
    max-width: 100%;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-240px);
        width: 100%;
    }
    
    .sidebar:not(.collapsed) {
        transform: translateX(0);
    }
    
    .container.with-sidebar {
        margin-left: 0;
        max-width: 100%;
    }
}

/* Force sidebar closed on mobile by default */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 73px;
        z-index: 999;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }
}

.signin-btn {
    background: #ff6b35;
    color: #fff !important;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}

.signin-btn:hover {
    background: #e55a24;
    transform: translateY(-2px);
}

.create-btn {
    background: #ff6b35;
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.create-btn:hover {
    background: #ff8c42 !important;
    transform: scale(1.05);
}

.plus-icon {
    font-size: 1.3rem;
    font-weight: bold;
}

.icon-btn {
    font-size: 1.5rem;
    padding: 0.3rem 0.5rem;
    transition: transform 0.3s ease;
}

.icon-btn:hover {
    transform: scale(1.2);
}

.bell-icon {
    filter: grayscale(20%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, #000 0%, #141414 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ff6b35;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #999;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #ff8c42;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: #1f1f1f;
    padding: 2rem;
    border-radius: 8px;
}

.feature-card h3 {
    color: #ff6b35;
    margin-bottom: 1rem;
}

.feature-card ul {
    list-style: none;
}

.feature-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
}

.feature-card li:last-child {
    border-bottom: none;
}

.auth-container {
    max-width: 500px;
    margin: 4rem auto;
    padding: 2rem;
    background: #1f1f1f;
    border-radius: 8px;
    text-align: center;
}

.auth-form {
    margin: 2rem 0;
}

.auth-form input {
    width: 100%;
    padding: 1rem;
    margin: 0.5rem 0;
    background: #333;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
    font-size: 1rem;
}

.note {
    color: #999;
    font-size: 0.9rem;
}

.library-header {
    margin-bottom: 1.5rem;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #1f1f1f;
    border-radius: 8px;
    overflow-x: auto;
}

.filter-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #2a2a2a;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.filter-chip:hover {
    background: #333;
    border-color: #ff6b35;
}

.filter-chip.active {
    background: #ff6b35;
    color: #fff;
    border-color: #ff6b35;
}

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

.video-card {
    background: #1f1f1f;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

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

.video-card a {
    text-decoration: none;
    color: #fff;
}

.thumbnail {
    aspect-ratio: 16/9;
    background: #333;
    position: relative;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35 0%, #cc5529 100%);
    font-size: 3rem;
    font-weight: bold;
}

.video-info {
    padding: 1rem;
}

.video-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.video-info .creator {
    color: #999;
    font-size: 0.9rem;
}

.video-info .tags {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.watch-container {
    max-width: 1200px;
    margin: 0 auto;
}

.video-player {
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.video-details h1 {
    margin-bottom: 1rem;
}

.creator-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
}

.creator-info a {
    color: #ff6b35;
    text-decoration: none;
}

.coaching-link {
    background: #ff6b35;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.video-actions {
    margin: 1rem 0;
}

.like-button {
    background: #1f1f1f;
    color: #fff;
    border: 1px solid #444;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.like-button.liked {
    color: #ff6b35;
}

.video-description {
    margin: 2rem 0;
    padding: 1rem;
    background: #1f1f1f;
    border-radius: 8px;
}

.video-tags {
    color: #999;
    margin: 1rem 0;
}

.comments-section {
    margin-top: 3rem;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    background: #1f1f1f;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
    min-height: 100px;
    font-family: inherit;
    font-size: 1rem;
}

.comment-form button {
    margin-top: 1rem;
    background: #ff6b35;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.comments-list {
    margin-top: 2rem;
}

.comment {
    background: #1f1f1f;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.comment strong {
    color: #ff6b35;
}

.comment small {
    color: #999;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #1f1f1f;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-card h3 {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b35;
}

.upload-area {
    border: 2px dashed #333;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: #1f1f1f;
    cursor: pointer;
    transition: border-color 0.3s;
}

.upload-area:hover {
    border-color: #ff6b35;
}

.upload-area.drag-over {
    border-color: #ff6b35;
    background: #2a2a2a;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #fff;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: #1f1f1f;
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #333;
    color: #ff6b35;
    font-weight: 600;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #333;
}

.table tr:hover {
    background: #1a1a1a;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
    justify-content: center;
}

.pagination a,
.pagination button {
    padding: 0.5rem 0.75rem;
    background: #1f1f1f;
    color: #fff;
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a:hover,
.pagination button:hover {
    background: #2a2a2a;
    border-color: #ff6b35;
}

.pagination .active {
    background: #ff6b35;
    border-color: #ff6b35;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert.success {
    background: #1a4d2e;
    color: #90ee90;
    border-left: 4px solid #4caf50;
}

.alert.error {
    background: #4d1a1a;
    color: #ff6b6b;
    border-left: 4px solid #f44336;
}

.alert.warning {
    background: #4d3d1a;
    color: #ffb74d;
    border-left: 4px solid #ff9800;
}

.alert.info {
    background: #1a3a4d;
    color: #4db8ff;
    border-left: 4px solid #2196f3;
}

footer {
    background: #000;
    border-top: 1px solid #333;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #ff6b35;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #999;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section a {
    display: block;
    color: #999;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ff6b35;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #666;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: #1f1f1f;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #333;
}

.modal-header h2 {
    color: #ff6b35;
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #333;
}

.modal-body {
    padding: 1.5rem;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 20px;
    transition: background 0.3s;
}

.profile-btn:hover {
    background: #333;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ff6b35;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

.profile-name {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
}

.profile-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.profile-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.profile-menu a:hover {
    background: #2a2a2a;
}

.profile-menu .divider {
    height: 1px;
    background: #333;
    margin: 0.5rem 0;
}

.profile-menu svg {
    flex-shrink: 0;
}
