/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background-color: #2d2d2d;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #404040;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
}

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

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #404040;
}

.header-center {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.search-container {
    position: relative;
}

.search-form {
    display: flex;
    background-color: #404040;
    border-radius: 25px;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: #ffffff;
    outline: none;
}

.search-form input::placeholder {
    color: #cccccc;
}

.search-form button {
    background: none;
    border: none;
    color: #ffffff;
    padding: 0.75rem 1rem;
    cursor: pointer;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 8px;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #404040;
    text-decoration: none;
    color: #ffffff;
    transition: background-color 0.3s;
}

.search-result-item:hover {
    background-color: #404040;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-thumbnail {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 0.75rem;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.search-result-meta {
    font-size: 0.8rem;
    color: #cccccc;
}

/* Series and Episode Styles */
.series-info {
    margin-bottom: 0.5rem;
}

.series-title {
    font-size: 0.85rem;
    color: #ff6b35;
    font-weight: 500;
    margin-right: 0.5rem;
}

.episode-number {
    font-size: 0.8rem;
    color: #cccccc;
    background-color: #404040;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

/* Video Page Series Section */
.series-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #2d2d2d;
    border-radius: 8px;
    border: 1px solid #404040;
}

.series-info h3 {
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.series-meta {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.episodes-list h4 {
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

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

.episode-item {
    background-color: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.episode-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.episode-item.current {
    border: 2px solid #ff6b35;
}

.episode-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.episode-thumbnail {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

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

.episode-number {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
}

.current-indicator {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    background-color: #ff6b35;
    color: #ffffff;
    padding: 0.3rem;
    border-radius: 3px;
    font-size: 0.8rem;
    text-align: center;
    font-weight: 500;
}

.episode-info {
    padding: 0.75rem;
}

.episode-info h5 {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #cccccc;
}

/* Blacklist tag button styles */
.blacklist-tag-btn {
    background-color: #404040;
    color: #ffffff;
    border: 1px solid #555555;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.blacklist-tag-btn:hover {
    background-color: #555555;
}

.blacklist-tag-btn.selected {
    background-color: #ff6b35;
    border-color: #ff6b35;
    color: #ffffff;
}

/* Contact Page Styles */
.contact-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h2 {
    color: #ff6b35;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    background-color: #2d2d2d;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #404040;
}

.contact-method i {
    color: #ff6b35;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-method h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.contact-method p {
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.contact-method a {
    color: #ff6b35;
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

.contact-method span {
    color: #ff6b35;
    font-weight: 500;
}

.contact-form-section h2 {
    color: #ff6b35;
    margin-bottom: 1.5rem;
}

.contact-form {
    background-color: #2d2d2d;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #404040;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
}

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

.contact-btn {
    background-color: #ff6b35;
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: #e55a2b;
}

/* Admin Panel Styles */
.admin-panel {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-section {
    background-color: #2d2d2d;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.admin-section h2 {
    color: #ff6b35;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #404040;
    padding-bottom: 0.5rem;
}

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

.admin-table {
    overflow-x: auto;
    margin-top: 1rem;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #404040;
}

.admin-table th {
    background-color: #404040;
    color: #ffffff;
    font-weight: 600;
}

.admin-table td {
    color: #cccccc;
}

.admin-table tr:hover {
    background-color: #333333;
}

.admin-table select {
    background-color: #404040;
    color: #ffffff;
    border: 1px solid #555555;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.admin-table select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.text-muted {
    color: #888888;
    font-style: italic;
}

.category-management {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.add-category-form {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
}

.add-category-form h3 {
    color: #ff6b35;
    margin-bottom: 1rem;
}

.recent-activity {
    margin-top: 2rem;
}

.recent-activity h3 {
    color: #ff6b35;
    margin-bottom: 1rem;
}

.activity-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.activity-section {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
}

.activity-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    border-bottom: 1px solid #404040;
    padding-bottom: 0.5rem;
}

.activity-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-section li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333333;
}

.activity-section li:last-child {
    border-bottom: none;
}

.activity-section a {
    color: #ff6b35;
    text-decoration: none;
}

.activity-section a:hover {
    text-decoration: underline;
}

.activity-time {
    color: #888888;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-page {
        padding: 1rem;
    }
    
    .admin-panel {
        padding: 1rem;
    }
    
    .category-management {
        grid-template-columns: 1fr;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .activity-list {
        grid-template-columns: 1fr;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sign-in-btn {
    background-color: #ff6b35;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.sign-in-btn:hover {
    background-color: #e55a2b;
}

.user-menu {
    position: relative;
}

.username {
    color: #ffffff;
    cursor: pointer;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 4px;
    min-width: 150px;
    display: none;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.user-dropdown a:hover {
    background-color: #404040;
}

/* Main Layout */
.main-layout {
    display: flex;
    flex: 1;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: #2d2d2d;
    border-right: 1px solid #404040;
    padding: 1rem 0;
    transition: transform 0.3s;
}

.sidebar-nav {
    padding: 0 1rem;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section h3 {
    color: #ff6b35;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.nav-section ul {
    list-style: none;
}

.nav-section li {
    margin-bottom: 0.25rem;
}

.nav-section a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #cccccc;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-section a:hover,
.nav-section a.active {
    background-color: #404040;
    color: #ffffff;
}

.nav-section i {
    width: 16px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    background-color: #1a1a1a;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    flex: 1;
    z-index: 2;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-text p {
    font-size: 1.1rem;
    color: #cccccc;
    max-width: 500px;
}

.highlight {
    color: #ff6b35;
    font-weight: bold;
}

.hero-images {
    display: flex;
    gap: 2rem;
    z-index: 1;
}

.hero-character {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.8;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
}

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

.section-header h2 {
    color: #ffffff;
    font-size: 1.5rem;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upload-time {
    color: #cccccc;
    font-size: 0.9rem;
}

.nav-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
}

.nav-btn {
    background-color: #404040;
    border: none;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-btn:hover,
.nav-btn.active {
    background-color: #ff6b35;
}

.nav-btn.disabled,
.nav-btn:disabled {
    background-color: #2a2a2a;
    color: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.nav-btn.disabled:hover,
.nav-btn:disabled:hover {
    background-color: #2a2a2a;
}

.page-btn {
    min-width: 2rem;
    padding: 0.5rem 0.75rem;
}

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

.video-card {
    background-color: #2d2d2d;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.video-link {
    text-decoration: none;
    color: inherit;
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 50%, rgba(0,0,0,0.7) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.video-duration {
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.play-button {
    background-color: #ff6b35;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.video-info {
    padding: 1rem;
}

.video-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #cccccc;
}

/* Page Headers */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.page-header p {
    color: #cccccc;
}

/* Video Page */
.video-page {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-bottom: 2rem;
}

.video-player-section {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.video-player {
    margin-bottom: 0;
    position: relative;
    background-color: #000000;
    width: 100%;
    aspect-ratio: 16/9;
}

.video-player video {
    width: 100%;
    height: 100%;
    border-radius: 0;
    display: block;
    object-fit: contain;
}

.video-preview {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 120px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10;
}

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

.preview-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 4px 8px;
    font-size: 0.8rem;
    text-align: center;
}

.video-details {
    padding: 1.5rem;
}

.video-details h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.3;
    font-weight: 600;
}

.video-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cccccc;
    font-size: 0.9rem;
}

.stat-item i {
    color: #ff6b35;
}

.video-description {
    margin-bottom: 1rem;
    color: #cccccc;
    line-height: 1.6;
}

.video-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: #404040;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Video Sidebar */
.video-sidebar {
    background-color: #2d2d2d;
    border-radius: 8px;
    padding: 1rem;
    height: fit-content;
}

.related-videos h3 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    background-color: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
}

.related-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s;
}

.related-link:hover {
    background-color: #404040;
}

.related-thumbnail {
    position: relative;
    width: 120px;
    height: 80px;
    flex-shrink: 0;
}

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

.related-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 2px 4px;
    border-radius: 2px;
    font-size: 0.7rem;
}

.related-info {
    padding: 0.5rem;
    flex: 1;
}

.related-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #ffffff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    font-size: 0.7rem;
    color: #cccccc;
    display: flex;
    gap: 0.5rem;
}

/* Comments Section */
.comments-section {
    background-color: #2d2d2d;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.comments-section h3 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.comment-form {
    margin-bottom: 2rem;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #404040;
    border-radius: 6px;
    background-color: #1a1a1a;
    color: #ffffff;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 1rem;
}

.comment-form button {
    background-color: #ff6b35;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.comment-form button:hover {
    background-color: #e55a2b;
}

.login-prompt {
    background-color: #404040;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    text-align: center;
}

.login-prompt a {
    color: #ff6b35;
    text-decoration: none;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: #1a1a1a;
    border-radius: 6px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background-color: #404040;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: bold;
    color: #ffffff;
}

.comment-time {
    color: #cccccc;
    font-size: 0.8rem;
}

.comment-text {
    color: #cccccc;
    line-height: 1.5;
}

/* Auth Pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
}

.auth-container {
    background-color: #2d2d2d;
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #cccccc;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group input {
    padding: 0.75rem;
    border: 1px solid #404040;
    border-radius: 6px;
    background-color: #1a1a1a;
    color: #ffffff;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #ff6b35;
}

.auth-btn {
    background-color: #ff6b35;
    color: #ffffff;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.auth-btn:hover {
    background-color: #e55a2b;
}

.auth-footer {
    text-align: center;
    margin-top: 1rem;
}

.auth-footer a {
    color: #ff6b35;
    text-decoration: none;
}

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

.alert-error {
    background-color: rgba(255, 107, 53, 0.1);
    border: 1px solid #ff6b35;
    color: #ff6b35;
}

.alert-warning {
    background-color: rgba(255, 152, 0, 0.1);
    border: 1px solid #ff9800;
    color: #ff9800;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
}

/* Search Page */
.search-form-large {
    display: flex;
    max-width: 600px;
    margin: 1rem auto;
}

.search-form-large input {
    flex: 1;
    padding: 1rem;
    border: 1px solid #404040;
    border-radius: 6px 0 0 6px;
    background-color: #2d2d2d;
    color: #ffffff;
    outline: none;
}

.search-form-large button {
    background-color: #ff6b35;
    color: #ffffff;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

.search-results h2 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.search-results p {
    color: #cccccc;
    margin-bottom: 2rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #cccccc;
}

.search-suggestions h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.suggestion-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.suggestion-tag {
    background-color: #404040;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.suggestion-tag:hover {
    background-color: #ff6b35;
}

/* Browse Page */
.browse-page {
    padding-top: 0;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2d2d2d;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.filter-section {
    display: flex;
    gap: 0.5rem;
}

.sort-section {
    display: flex;
    gap: 0.5rem;
}

.sort-dropdown-wrapper {
    position: relative;
}

.sort-dropdown {
    background-color: #404040;
    border: 1px solid #555;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 120px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.sort-dropdown:hover {
    background-color: #555;
    border-color: #666;
}

.sort-dropdown:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.sort-dropdown option {
    background-color: #2d2d2d;
    color: #ffffff;
    padding: 0.5rem;
}

/* Custom dropdown arrow for better browser compatibility */
.sort-dropdown::-ms-expand {
    display: none;
}

.filter-btn-wrapper {
    position: relative;
    display: inline-block;
}

.filter-btn {
    background-color: #404040;
    border: none;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background-color: #555;
}

.filter-btn.reset-btn {
    background-color: #666;
}

.filter-btn.reset-btn:hover {
    background-color: #777;
}

/* Pagination Bar */
.pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    background-color: #404040;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.pagination-btn:hover {
    background-color: #555;
}

.pagination-number {
    background-color: #404040;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.pagination-number:hover {
    background-color: #555;
}

.pagination-number.active {
    background-color: #ffd700;
    color: #000000;
}

.pagination-ellipsis {
    color: #cccccc;
    padding: 0.5rem;
}

/* Categories and Tags Section */
.categories-tags-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.categories-column h2,
.tags-column h2 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.category-item {
    background-color: #404040;
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.category-item:hover {
    background-color: #555;
}

.category-item.active {
    background-color: #ff6b35;
}

.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag-item {
    background-color: #404040;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s;
    font-size: 0.8rem;
}

.tag-item:hover {
    background-color: #555;
}

.tags-note {
    background-color: #1a1a1a;
    padding: 1rem;
    border-radius: 4px;
    border-left: 3px solid #ff6b35;
}

.tags-note p {
    color: #cccccc;
    margin: 0;
    font-size: 0.9rem;
}

.tags-note a {
    color: #ff6b35;
    text-decoration: none;
}

.tags-note a:hover {
    text-decoration: underline;
}

/* Filter Dropdowns */
.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 300px;
    margin-top: 0.5rem;
}

.dropdown-content {
    padding: 1rem;
}

.dropdown-content h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.tag-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tag-link {
    color: #cccccc;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.tag-link:hover {
    background-color: #404040;
    color: #ffffff;
}

.sort-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sort-link {
    color: #cccccc;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.sort-link:hover {
    background-color: #404040;
    color: #ffffff;
}

.sort-link.active {
    background-color: #ff6b35;
    color: #ffffff;
}

/* Blacklist Styles */
.tag-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.tag-item-wrapper:hover {
    background-color: #404040;
}

.blacklist-btn {
    background: none;
    border: none;
    color: #ff6b35;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.8rem;
}

.blacklist-btn:hover {
    background-color: #ff6b35;
    color: #ffffff;
}

.blacklist-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blacklist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background-color: #1a1a1a;
    border-radius: 4px;
    border-left: 3px solid #ff6b35;
}

.blacklist-item span {
    color: #ffffff;
    font-size: 0.9rem;
}

.remove-blacklist-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.8rem;
}

.remove-blacklist-btn:hover {
    background-color: #dc3545;
    color: #ffffff;
}

.empty-blacklist {
    color: #cccccc;
    font-style: italic;
    text-align: center;
    padding: 1rem;
    margin: 0;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background-color: #1a1a1a;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

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

.modal-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-btn {
    background-color: #404040;
    border: none;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-btn:hover {
    background-color: #555;
}

.reset-modal-btn {
    background-color: #ff6b35;
}

.reset-modal-btn:hover {
    background-color: #e55a2b;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #cccccc;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.modal-close-btn:hover {
    background-color: #404040;
    color: #ffffff;
}

.modal-body {
    padding: 1.5rem;
}

.filter-section-modal h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.filter-description {
    color: #cccccc;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.tags-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tag-btn-modal {
    background-color: #2d2d2d;
    border: 1px solid #404040;
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    text-align: center;
}

.tag-btn-modal:hover {
    background-color: #404040;
    border-color: #555;
}

.tag-btn-modal.selected {
    background-color: #ff6b35;
    border-color: #ff6b35;
    color: #ffffff;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #404040;
}

.cancel-btn {
    background-color: #666;
}

.cancel-btn:hover {
    background-color: #777;
}

.apply-btn {
    background-color: #ff6b35;
}

.apply-btn:hover {
    background-color: #e55a2b;
}

/* Sort Options Modal */
.sort-options-modal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sort-btn-modal {
    background-color: #2d2d2d;
    border: 1px solid #404040;
    color: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.sort-btn-modal:hover {
    background-color: #404040;
    border-color: #555;
}

.sort-btn-modal.selected {
    background-color: #ff6b35;
    border-color: #ff6b35;
    color: #ffffff;
}

.sort-btn-modal i {
    font-size: 1.2rem;
}

/* Real-time Updates */
.loading-comments {
    text-align: center;
    color: #cccccc;
    padding: 2rem;
    font-style: italic;
}

.no-comments {
    text-align: center;
    color: #cccccc;
    padding: 2rem;
    font-style: italic;
}

.error {
    text-align: center;
    color: #f44336;
    padding: 2rem;
}

.comment-item {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.comment-item.updating {
    opacity: 0.7;
}

.action-btn {
    transition: all 0.3s ease;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-btn.loading {
    position: relative;
}

.action-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Real-time notification */
.realtime-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4caf50;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    max-width: 300px;
}

.realtime-notification.show {
    transform: translateX(0);
}

.realtime-notification.error {
    background-color: #f44336;
}

/* Additional styling fixes */
.video-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
}

.video-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cccccc;
    font-size: 0.9rem;
    padding: 0.5rem;
    background-color: #2d2d2d;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.video-stats .stat-item:hover {
    background-color: #404040;
    transform: translateY(-2px);
}

.video-stats .stat-item i {
    color: #ff6b35;
    font-size: 1rem;
}

.video-stats .stat-item span {
    font-weight: 500;
}

.video-description {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #cccccc;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.video-tags .tag {
    background-color: #404040;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background-color 0.3s;
    display: inline-block;
    cursor: pointer;
}

.video-tags .tag:hover {
    background-color: #ff6b35;
    transform: translateY(-2px);
}

.video-tags .tag-empty {
    opacity: 0.6;
    font-style: italic;
    cursor: default;
}

.video-tags .tag-empty:hover {
    background-color: #404040;
    transform: none;
}

/* Comment styling improvements */
.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: bold;
    color: #ffffff;
}

.comment-time {
    color: #888;
    font-size: 0.8rem;
}

.comment-edited {
    color: #888;
    font-size: 0.8rem;
    font-style: italic;
}

.comment-text {
    color: #cccccc;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* Form improvements */
.form-group small {
    color: #888;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

/* Button improvements */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Better focus states */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* Improved hover states */
.video-card {
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Better spacing */
.page-header {
    margin-bottom: 2rem;
}

.section {
    margin-bottom: 2rem;
}

/* Improved text contrast */
.text-muted {
    color: #888;
}

.text-primary {
    color: #ff6b35;
}

.text-success {
    color: #4caf50;
}

.text-danger {
    color: #f44336;
}

.text-warning {
    color: #ff9800;
}

/* Images Page */
.images-page {
    margin-top: 2rem;
}

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

.image-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

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

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 50%, rgba(0,0,0,0.7) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.image-card:hover .image-overlay {
    opacity: 1;
}

.image-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background-color: #ff6b35;
}

/* Video Actions */
.video-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.action-btn {
    background-color: #2d2d2d;
    border: 1px solid #404040;
    color: #ffffff;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
    min-width: fit-content;
    height: auto;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.action-btn span {
    pointer-events: none;
    display: inline-block;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    flex-shrink: 0;
}

.action-btn:hover {
    background-color: #404040;
    border-color: #555;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-btn.active {
    background-color: #ff6b35;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.like-btn.active {
    background-color: #4caf50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.dislike-btn.active {
    background-color: #f44336;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.favorite-btn.active {
    background-color: #e91e63;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.action-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.action-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

.rating-section > span {
    color: #cccccc;
    font-size: 0.875rem;
    white-space: nowrap;
}

.star-rating {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.star {
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    padding: 0.1rem;
    border-radius: 3px;
}

.star:hover {
    color: #ffd700;
    transform: scale(1.1);
}

.star.active {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.star-rating.loading .star {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Comment Actions */
.comment-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.comment-actions button {
    background: none;
    border: none;
    color: #cccccc;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.comment-actions button:hover {
    background-color: #404040;
    color: #ffffff;
}

.comment-edit-form {
    margin-top: 1rem;
}

.edit-comment-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #404040;
    border-radius: 6px;
    background-color: #1a1a1a;
    color: #ffffff;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 0.5rem;
}

.edit-form-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-form-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.save-edit-btn {
    background-color: #4caf50;
    color: #ffffff;
}

.save-edit-btn:hover {
    background-color: #45a049;
}

.cancel-edit-btn {
    background-color: #666;
    color: #ffffff;
}

.cancel-edit-btn:hover {
    background-color: #777;
}

.comment-edited {
    color: #999;
    font-size: 0.8rem;
    font-style: italic;
}

/* Search Filters */
.search-filters {
    background-color: #2d2d2d;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid #404040;
    border-radius: 4px;
    background-color: #1a1a1a;
    color: #ffffff;
    min-width: 150px;
}

.filter-form button {
    background-color: #ff6b35;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-form button:hover {
    background-color: #e55a2b;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-btn {
    background-color: #404040;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover {
    background-color: #ff6b35;
}

.pagination-info {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Profile Sections */
.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-section {
    background-color: #2d2d2d;
    padding: 1.5rem;
    border-radius: 8px;
}

.profile-section h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    background-color: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
}

.history-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s;
}

.history-link:hover {
    background-color: #404040;
}

.history-thumbnail {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
}

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

.history-info {
    padding: 1rem;
    flex: 1;
}

.history-info h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.history-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #cccccc;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #2d2d2d;
    border-radius: 8px;
    margin: 2rem 0;
}

.empty-icon {
    font-size: 4rem;
    color: #666;
    margin-bottom: 1rem;
}

.empty-state h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #cccccc;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background-color: #ff6b35;
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: background-color 0.3s;
    display: inline-block;
}

.cta-btn:hover {
    background-color: #e55a2b;
}

.history-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 2px 4px;
    border-radius: 2px;
    font-size: 0.7rem;
}

/* Admin Panel */

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cccccc;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

.admin-btn {
    background-color: #ff6b35;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.admin-btn:hover {
    background-color: #e55a2b;
}

.admin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.upload-progress {
    margin: 1rem 0;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #404040;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: #ff6b35;
    width: 0%;
    transition: width 0.3s ease;
}

#progress-text {
    color: #ffffff;
    font-weight: 500;
}

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

.admin-stats .stat-card {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
}

.admin-stats .stat-card h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.admin-stats .stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b35;
}

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

.admin-video-card {
    background-color: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s;
}

.admin-video-card:hover {
    transform: translateY(-2px);
}

.admin-video-thumbnail {
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.admin-video-info {
    padding: 1rem;
}

.admin-video-info h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

.admin-video-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #cccccc;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-video-actions {
    display: flex;
    gap: 0.5rem;
}

.action-link {
    background-color: #404040;
    color: #ffffff !important;
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.action-link:hover {
    background-color: #555;
    color: #ffffff !important;
}

.action-link.danger {
    background-color: #dc3545;
    color: #ffffff !important;
}

.action-link.danger:hover {
    background-color: #c82333;
    color: #ffffff !important;
}

/* Profile Page */
.profile-page {
    margin: 0 auto;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: #2d2d2d;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.profile-avatar {
    font-size: 4rem;
    color: #ff6b35;
}

.profile-details h2 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.profile-details p {
    color: #cccccc;
    margin-bottom: 0.25rem;
}

.profile-stats {
    margin-bottom: 2rem;
}

.stat-card {
    background-color: #2d2d2d;
    padding: 1.5rem;
    border-radius: 8px;
}

.stat-card h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background-color: #1a1a1a;
    border-radius: 6px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #cccccc;
    font-size: 0.9rem;
}

.profile-actions {
    background-color: #2d2d2d;
    padding: 1.5rem;
    border-radius: 8px;
}

.profile-actions h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-buttons .action-btn {
    background-color: #404040;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
    font-weight: 500;
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
}

.action-buttons .action-btn:hover {
    background-color: #ff6b35;
}

.action-buttons .action-btn.danger {
    background-color: #dc3545;
}

.action-buttons .action-btn.danger:hover {
    background-color: #c82333;
}

/* Footer */
.footer {
    background-color: #2d2d2d;
    border-top: 1px solid #404040;
    margin-top: auto;
}

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

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

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-section i {
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #404040;
    color: #cccccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
    }
    
    .header-center {
        margin: 0 1rem;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        height: 100vh;
        z-index: 1001;
        transform: translateX(0);
    }
    
    .sidebar.open {
        transform: translateX(250px);
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-images {
        justify-content: center;
    }
    
    .hero-character {
        width: 150px;
        height: 200px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .video-page {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .video-player-section {
        padding: 0;
        border-radius: 8px;
    }
    
    .video-details {
        padding: 1rem;
    }
    
    .video-details h1 {
        font-size: 1.25rem;
    }
    
    .video-actions {
        gap: 0.75rem;
        flex-wrap: wrap;
        width: 100%;
        align-items: center;
    }
    
    .action-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
        min-width: fit-content;
        flex: 0 0 auto;
        white-space: nowrap;
        overflow: visible;
        display: inline-flex;
    }
    
    .action-btn span {
        display: inline-block;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .action-btn i {
        flex-shrink: 0;
    }
    
    .rating-section {
        margin-left: 0;
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #404040;
        justify-content: flex-start;
    }
    
    .video-stats {
        font-size: 0.85rem;
    }
    
    .stat-item {
        font-size: 0.8rem;
    }
    
    .video-sidebar {
        order: 2;
    }
    
    .browse-page {
        grid-template-columns: 1fr;
    }
    
    .categories-sidebar {
        order: 2;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
    }
    
    .action-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .action-buttons .action-btn {
        min-width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }
    
    .header-center {
        margin: 0 0.5rem;
    }
    
    .main-content {
        padding: 0.5rem;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .video-player-section {
        border-radius: 0;
        margin: 0 -0.5rem;
        width: calc(100% + 1rem);
    }
    
    .video-player {
        aspect-ratio: 16/9;
    }
    
    .video-details {
        padding: 0.75rem;
    }
    
    .video-details h1 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .video-actions {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .action-btn {
        min-width: fit-content;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        flex: 0 0 auto;
        gap: 0.375rem;
        border-radius: 6px;
        overflow: visible;
        white-space: nowrap;
        display: inline-flex;
    }
    
    .action-btn span {
        display: inline-block;
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .action-btn i {
        flex-shrink: 0;
        display: inline-block;
    }
    
    .rating-section {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid #404040;
    }
    
    .star-rating {
        gap: 0.15rem;
    }
    
    .star {
        font-size: 1rem;
        padding: 0.2rem;
    }
    
    .video-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .stat-item {
        font-size: 0.75rem;
        gap: 0.375rem;
    }
    
    .video-tags {
        gap: 0.375rem;
        margin-bottom: 0.75rem;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .video-sidebar {
        margin-top: 1rem;
    }
    
    .related-thumbnail {
        width: 100px;
        height: 70px;
    }
    
    .auth-container {
        padding: 1rem;
    }
}

/* Playlists Styles */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.playlist-card {
    background-color: #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #404040;
    position: relative;
}

.playlist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: #555;
}

.playlist-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.playlist-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.playlist-card:hover .playlist-actions {
    opacity: 1;
    pointer-events: auto;
}

.delete-playlist-btn {
    background-color: rgba(220, 38, 38, 0.9);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.delete-playlist-btn:hover {
    background-color: #dc2626;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.playlist-thumbnail {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #404040;
}

.playlist-count {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.playlist-icon {
    font-size: 2rem;
    color: #888;
    opacity: 0.8;
}

.playlist-info {
    padding: 1.5rem;
}

.playlist-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.playlist-description {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    min-height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.playlist-meta {
    color: #888;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #cccccc;
}

.empty-icon {
    font-size: 4rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.empty-state h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Tags input container */
.tags-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.tags-input-container input {
    flex: 1;
    cursor: pointer;
}

.tags-btn {
    background-color: #404040;
    border: none;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tags-btn:hover {
    background-color: #505050;
}

.selected-tags {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-chip {
    background-color: #404040;
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tag-chip button {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    margin-left: 0.25rem;
}

.tag-chip button:hover {
    color: #ff6b6b;
}

/* Search container */
.search-container {
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #404040;
    border-radius: 6px;
    background-color: #2d2d2d;
    color: #ffffff;
    font-size: 0.9rem;
}

.search-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.search-input::placeholder {
    color: #888;
}

.modal-content {
    background-color: #2d2d2d;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #404040;
}

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

.modal-header h2 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    color: #ffffff;
    background-color: #404040;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #404040;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn {
    background-color: #404040;
    color: #cccccc;
}

.cancel-btn:hover {
    background-color: #555;
    color: #ffffff;
}

.apply-btn {
    background-color: #ff6b35;
    color: #ffffff;
}

.apply-btn:hover {
    background-color: #e55a2b;
}

.delete-btn {
    background-color: #dc2626;
    color: #ffffff;
}

.delete-btn:hover {
    background-color: #b91c1c;
}

.warning-text {
    color: #fbbf24;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Tag Management Styles */
.tag-management {
    margin-top: 1rem;
}

.tag-list {
    margin-top: 1.5rem;
}

.tag-list h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.action-link {
    background: none;
    border: none;
    color: #ff6b35;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    padding: 0;
}

.action-link:hover {
    color: #e55a2b;
}


/* Danger button styles */
.auth-btn.danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.auth-btn.danger:hover {
    background-color: #c82333;
    border-color: #c82333;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Playlist Selection Modal */
.playlist-selection {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.playlist-item {
    padding: 1rem;
    background-color: #1a1a1a;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #404040;
}

.playlist-item:hover {
    background-color: #2d2d2d;
    border-color: #ff6b35;
}

.playlist-item .playlist-info h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.playlist-item .playlist-info p {
    color: #cccccc;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.playlist-item .playlist-meta {
    color: #888;
    font-size: 0.75rem;
    font-weight: 500;
}

.loading {
    text-align: center;
    color: #888;
    padding: 2rem;
    font-style: italic;
}

.error {
    text-align: center;
    color: #ff4444;
    padding: 2rem;
}

.empty {
    text-align: center;
    color: #888;
    padding: 2rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .playlists-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .playlist-thumbnail {
        height: 150px;
    }
    
    .playlist-count {
        font-size: 2.5rem;
    }
    
    .playlist-icon {
        font-size: 1.5rem;
    }
    
    .playlist-info {
        padding: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
}
