/* Clip.Jetzt Web UI Styles - Dark Mode */

:root {
    /* Dark Mode Colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #404040;
    --purple: #8b5cf6;
    --purple-hover: #7c3aed;
    --orange: #ff6b35;
    --green: #10b981;
    --red: #ef4444;
    --yellow: #f59e0b;
    --blue: #3b82f6;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Prevent visited links from changing color */
a, a:visited {
    color: inherit;
}

a:hover {
    color: var(--purple);
}

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

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #6441a5;
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.navbar h1 {
    margin: 0;
    font-size: 1.5rem;
}

.navbar h1 a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-logo {
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    text-decoration: underline;
}

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

.page-header h2 {
    margin-bottom: 1rem;
}

/* Status Tabs */
.status-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.tab {
    padding: 0.75rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-bottom: none;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 4px 4px 0 0;
}

.tab:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.tab.active {
    background: var(--purple);
    color: white;
    border-color: var(--purple);
}

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

.clip-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.clip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    border-color: var(--purple);
}

.clip-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.clip-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clip-thumbnail .no-thumbnail {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
}

.duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.clip-info {
    padding: 1rem;
}

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

.clip-info h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.clip-info h3 a:hover {
    color: var(--purple);
}

.broadcaster {
    color: var(--purple);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

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

.tag {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
}

.clip-card-notes {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border-left: 3px solid var(--orange);
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--orange);
}

.clip-card-notes strong {
    margin-right: 0.25rem;
}

/* Clip Detail */
.clip-detail {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    max-width: 1400px;
    margin: 0 auto;
}

.back-link {
    margin-bottom: 1rem;
}

.back-link a {
    color: var(--purple);
    text-decoration: none;
}

.clip-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.video-player {
    margin: 2rem auto;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-player video {
    width: 100%;
    max-width: 1200px;
    background: #000;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

/* Review Actions */
.review-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

.review-form {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    height: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.review-form h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

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

.tag-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.tag-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

textarea {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
    background: var(--bg-primary);
    color: var(--text-primary);
}

textarea:focus {
    outline: none;
    border-color: var(--purple);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-approve {
    background: var(--green);
    color: white;
}

.btn-approve:hover {
    background: #0d9668;
}

.btn-reject {
    background: var(--red);
    color: white;
}

.btn-reject:hover {
    background: #dc2626;
}

.btn-delete {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-delete:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

.delete-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.delete-section form {
    display: inline-block;
}

.action-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

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

.action-buttons .inline-form {
    display: inline-block;
}

.btn-secondary {
    background: var(--purple);
    color: white;
}

.btn-secondary:hover {
    background: var(--purple-hover);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-new {
    background: var(--blue);
    color: white;
}

.status-approved {
    background: var(--green);
    color: white;
}

.status-rejected {
    background: var(--red);
    color: white;
}

.status-used {
    background: var(--purple);
    color: white;
}

.status-pending {
    background: var(--orange);
    color: white;
}

.status-completed {
    background: var(--green);
    color: white;
}

.status-uploaded {
    background: var(--blue);
    color: white;
}

/* Tables */
.data-table {
    width: 100%;
    background: var(--bg-secondary);
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.data-table th {
    background: var(--purple);
    color: white;
    padding: 1rem;
    text-align: left;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.data-table tr:hover {
    background: var(--bg-tertiary);
}

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

.stat-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
}

.stat-card h3 {
    margin-bottom: 1rem;
    color: var(--purple);
}

.stat-list {
    list-style: none;
}

.stat-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.stat-list li:last-child {
    border-bottom: none;
}

.top-broadcasters {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
}

.top-broadcasters h3 {
    margin-bottom: 1rem;
    color: var(--purple);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Bulk Action Bar - Hidden by default, sticky when active */
.bulk-action-bar {
    display: none !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 2px solid var(--purple);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
}

.bulk-action-bar.active {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.bulk-action-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.bulk-actions {
    display: flex;
    gap: 1rem;
}

/* Clip Checkboxes - Hidden by default */
.clip-checkbox {
    display: none !important;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
}

/* Show checkboxes in selection mode */
.clip-card.selection-mode .clip-checkbox {
    display: block !important;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--purple);
}

.footer-separator {
    color: var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .review-actions {
        grid-template-columns: 1fr;
    }

    .status-tabs {
        flex-wrap: wrap;
    }

    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Login Page */
.login-body {
    background: linear-gradient(135deg, #6441a5 0%, #2a0845 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-box {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    text-align: center;
    border: 1px solid var(--border-color);
}

.login-box h1 {
    color: var(--purple);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.error-message {
    background: var(--bg-tertiary);
    color: var(--red);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 2px solid var(--red);
}

.login-form {
    text-align: left;
}

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

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: var(--bg-primary);
    color: var(--text-primary);
}

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

.btn-login {
    width: 100%;
    padding: 1rem;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-login:hover {
    background: var(--purple-hover);
}

.login-footer {
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Navbar User Info */
.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.nav-user span {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.logout-link {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: white !important;
    text-decoration: none !important;
    transition: background 0.2s;
}

.logout-link:hover {
    background: rgba(255,255,255,0.3);
}

/* Filter Section */
.filter-section {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.filter-section h3 {
    margin-bottom: 1rem;
    color: var(--purple);
    font-size: 1.125rem;
}

.filter-form {
    width: 100%;
}

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

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1 1 200px;
    min-width: 180px;
}

.filter-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.filter-group select,
.filter-group input[type="number"] {
    padding: 0.625rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9375rem;
    transition: border-color 0.2s;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.filter-group select:focus,
.filter-group input[type="number"]:focus {
    outline: none;
    border-color: var(--purple);
}

.filter-group input[type="number"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex: 1 1 100%;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--purple);
    color: white;
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--purple-hover);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.625rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--purple);
}

/* Responsive Filters */
@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
        width: 100%;
    }

    .filter-actions .btn-primary,
    .filter-actions .btn-secondary {
        width: 100%;
    }
}

/* Clip Tags and Notes Display */
.clip-tags-display {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-left: 4px solid var(--blue);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--blue);
}

.clip-tags-display strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--blue);
}

.clip-tags-display .tag {
    display: inline-block;
    background: var(--blue);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: none;
}

.clip-notes-display {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-left: 4px solid var(--orange);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--orange);
}

.clip-notes-display strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--orange);
    font-size: 1rem;
}

.clip-notes-display p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Overwatch Mode */
.overwatch-nav-link {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.overwatch-nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    text-decoration: none !important;
}

.overwatch-banner {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    flex-wrap: wrap;
}

.overwatch-icon {
    font-size: 1.5rem;
}

.overwatch-banner strong {
    font-size: 1.125rem;
    letter-spacing: 0.5px;
}

.overwatch-sort-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.overwatch-sort-control label {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

.overwatch-sort-control select {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
}

.overwatch-sort-control select:hover {
    background: var(--bg-secondary);
    border-color: var(--purple);
}

.overwatch-hint {
    margin-left: auto;
    opacity: 0.9;
    font-size: 0.875rem;
}

/* Helper Vote Status in Card System */
.helper-vote-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(138, 43, 226, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--purple);
}

.helper-vote-status .vote-label {
    color: var(--text-secondary);
}

.helper-vote-status .vote-score {
    font-weight: 700;
    font-size: 1rem;
    min-width: 1.5rem;
    text-align: center;
}

.helper-vote-status .vote-score.positive {
    color: #4ade80;
}

.helper-vote-status .vote-score.negative {
    color: #f87171;
}

.helper-vote-status .vote-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.helper-vote-status .vote-indicator .vote-icon {
    font-size: 0.85rem;
}

.helper-vote-status .vote-indicator .vote-icon.approve {
    color: #4ade80;
}

.helper-vote-status .vote-indicator .vote-icon.reject {
    color: #f87171;
}

.helper-vote-status .votes-needed {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.helper-vote-status.no-votes {
    opacity: 0.6;
}

/* Remaining clips counter */
.remaining-clips {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(59, 130, 246, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--blue);
    color: var(--blue);
}

.remaining-clips .remaining-icon {
    font-size: 1rem;
}

#remaining-count {
    min-width: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .overwatch-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .overwatch-hint {
        margin-left: 0;
    }
}

/* Reviewer Badge */
.reviewer-badge {
    background: var(--purple);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.reviewer-info {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* Video Container with Playback Controls */
.video-player {
    margin: 2rem 0;
}

.playback-controls {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    margin: 1rem 0 2rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.playback-controls > div {
    flex: 1;
    min-width: 250px;
}

.playback-controls h4 {
    margin: 0 0 1rem 0;
    color: var(--purple);
    font-size: 1rem;
}

.speed-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.speed-btn {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
}

.speed-btn:hover {
    background: var(--bg-primary);
    border-color: var(--purple);
}

.speed-btn.active {
    background: var(--purple);
    color: white;
    border-color: var(--purple);
}

/* Volume Controls */
.volume-section {
    /* Removed border-top since it's now side-by-side */
}

.volume-section h4 {
    margin: 0 0 1rem 0;
    color: var(--purple);
    font-size: 1rem;
}

.volume-slider-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.volume-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.volume-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-tertiary);
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--purple);
    cursor: pointer;
    transition: all 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: var(--purple-hover);
    transform: scale(1.1);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--purple);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.volume-slider::-moz-range-thumb:hover {
    background: var(--purple-hover);
    transform: scale(1.1);
}

.volume-value {
    font-weight: 600;
    color: var(--purple);
    min-width: 45px;
    text-align: right;
}

/* Favorite Elements */
.favorite-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 2px solid var(--yellow);
}

.favorite-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--yellow);
}

.favorite-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--yellow);
}

.favorite-star {
    font-size: 1.2rem;
    margin-right: 0.25rem;
}

@media (max-width: 768px) {
    /* Video and playback controls are already responsive with flex-wrap */
    .playback-controls {
        flex-direction: column;
    }

    .playback-controls > div {
        width: 100%;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablets and smaller */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

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

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

/* Mobile devices */
@media (max-width: 768px) {
    /* Container & Spacing */
    .container {
        padding: 0 10px;
    }

    /* Navbar Mobile */
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar h1 {
        font-size: 1.25rem;
    }

    .navbar-logo {
        width: 28px;
        height: 28px;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.875rem;
    }

    .nav-user {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .nav-user span {
        font-size: 0.875rem;
    }

    .logout-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.875rem;
    }

    /* Status Tabs */
    .tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    /* Clip Grid */
    .clip-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Clip Detail */
    .clip-detail {
        padding: 1rem;
    }

    .clip-detail h2 {
        font-size: 1.25rem;
    }

    .clip-meta {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .clip-meta span {
        font-size: 0.875rem;
    }

    /* Review Forms - Stack vertically on mobile */
    .review-actions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .review-form {
        padding: 1rem;
    }

    .review-form h3 {
        font-size: 1.125rem;
    }

    /* Tag selection - Single column on mobile */
    .tag-select {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .tag-checkbox {
        padding: 0.5rem;
        background: var(--bg-primary);
        border-radius: 4px;
        border: 1px solid var(--border-color);
    }

    /* Buttons - Full width on mobile */
    .btn {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 1rem;
        text-align: center;
    }

    .btn-approve,
    .btn-reject,
    .btn-delete,
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    /* External Links */
    .external-links {
        margin-top: 1.5rem;
    }

    .external-links .btn {
        display: block;
        width: 100%;
    }

    /* Tables - Responsive */
    .data-table {
        font-size: 0.875rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    /* Empty State */
    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state p {
        font-size: 1rem;
    }

    /* Delete Section */
    .delete-section {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    /* Edit Section */
    .edit-section {
        margin-top: 1.5rem;
    }

    .edit-form {
        padding: 1rem;
    }

    .status-select {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
        border: 2px solid var(--border-color);
        border-radius: 8px;
        background: var(--bg-primary);
        color: var(--text-primary);
        cursor: pointer;
        margin-bottom: 0.5rem;
    }

    .status-select:focus {
        outline: none;
        border-color: var(--purple);
    }

    .status-select:hover {
        border-color: var(--purple);
    }

    /* Overwatch Banner */
    .overwatch-banner {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .overwatch-icon {
        font-size: 1.25rem;
    }

    .overwatch-banner strong {
        font-size: 1rem;
    }

    .overwatch-sort-control {
        width: 100%;
        justify-content: space-between;
    }

    .overwatch-hint {
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }

    /* Footer */
    footer {
        margin-top: 2rem;
        padding: 1.5rem 0;
        font-size: 0.875rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    /* Even more compact for small phones */
    .container {
        padding: 0 8px;
    }

    /* Navbar - Stack completely */
    .navbar .container {
        gap: 0.75rem;
    }

    .navbar h1 {
        font-size: 1.125rem;
    }

    .navbar-logo {
        width: 24px;
        height: 24px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.8125rem;
        justify-content: center;
    }

    .nav-links li {
        flex: 1 1 auto;
    }

    .nav-links a {
        font-size: 0.8125rem;
    }

    .overwatch-nav-link {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.8125rem !important;
    }

    /* Status Tabs - Scrollable */
    .status-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .tab {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        white-space: nowrap;
    }

    /* Page Header */
    .page-header h2 {
        font-size: 1.25rem;
    }

    /* Clip Cards */
    .clip-card {
        font-size: 0.875rem;
    }

    .clip-info {
        padding: 0.75rem;
    }

    .clip-info h3 {
        font-size: 0.9375rem;
    }

    .meta {
        font-size: 0.8125rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    /* Clip Detail */
    .clip-detail {
        padding: 0.75rem;
    }

    .clip-detail h2 {
        font-size: 1.125rem;
        word-wrap: break-word;
    }

    /* Clip Meta - More compact */
    .clip-meta {
        font-size: 0.8125rem;
        padding: 0.5rem;
    }

    /* Video Player */
    .video-player {
        margin: 1rem 0;
    }

    /* Playback Controls */
    .playback-controls {
        padding: 0.75rem;
    }

    .playback-controls h4 {
        font-size: 0.9375rem;
    }

    .speed-buttons {
        gap: 0.4rem;
    }

    .speed-btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.9375rem;
        flex: 1;
    }

    .volume-slider-container {
        gap: 0.5rem;
    }

    .volume-icon {
        font-size: 1rem;
    }

    .volume-value {
        font-size: 0.875rem;
        min-width: 40px;
    }

    /* Review Forms */
    .review-form {
        padding: 0.75rem;
    }

    .review-form h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

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

    .form-group label {
        font-size: 0.875rem;
        margin-bottom: 0.4rem;
    }

    .tag-checkbox {
        padding: 0.4rem;
        font-size: 0.875rem;
    }

    textarea {
        font-size: 0.9375rem;
        padding: 0.5rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.9375rem;
    }

    /* Filter Section */
    .filter-section {
        padding: 1rem;
    }

    .filter-section h3 {
        font-size: 1rem;
    }

    .filter-group {
        min-width: 100%;
    }

    .filter-group label {
        font-size: 0.8125rem;
    }

    .filter-group select,
    .filter-group input[type="number"] {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    /* Tables - Very compact */
    .data-table {
        font-size: 0.8125rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem 0.4rem;
    }

    /* Stats */
    .stat-card {
        padding: 0.75rem;
    }

    .stat-card h3 {
        font-size: 1rem;
    }

    .stat-list li {
        font-size: 0.875rem;
        padding: 0.4rem 0;
    }

    /* Login Page */
    .login-box {
        padding: 2rem 1.25rem;
    }

    .login-box h1 {
        font-size: 1.5rem;
    }

    .login-subtitle {
        font-size: 0.875rem;
    }

    /* Tags Display */
    .clip-tags-display,
    .clip-notes-display {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .tag {
        font-size: 0.6875rem;
        padding: 0.25rem 0.4rem;
    }

    /* Overwatch Banner - Very compact */
    .overwatch-banner {
        padding: 0.625rem 0.75rem;
    }

    .overwatch-icon {
        font-size: 1.125rem;
    }

    .overwatch-banner strong {
        font-size: 0.9375rem;
    }

    .overwatch-sort-control {
        padding: 0.35rem 0.6rem;
        font-size: 0.8125rem;
    }

    .overwatch-sort-control select {
        padding: 0.35rem 0.5rem;
        font-size: 0.8125rem;
    }

    .overwatch-hint {
        font-size: 0.75rem;
    }

    /* Status Badges */
    .status-badge {
        font-size: 0.8125rem;
        padding: 0.2rem 0.5rem;
    }

    .reviewer-badge {
        font-size: 0.8125rem;
        padding: 0.2rem 0.5rem;
    }

    /* Favorite Checkbox */
    .favorite-checkbox {
        padding: 0.625rem;
    }

    .favorite-label {
        font-size: 0.9375rem;
    }

    /* Edit Section */
    .edit-section h3 {
        font-size: 1rem;
    }

    .status-change-section h4 {
        font-size: 0.9375rem;
    }
}

/* Touch-friendly improvements for all mobile devices */
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
    /* Increase tap target sizes for touch devices */
    .btn,
    .tag-checkbox,
    .speed-btn,
    .tab,
    .nav-links a {
        min-height: 44px; /* iOS recommended minimum */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tag-checkbox {
        padding: 0.75rem;
    }

    input[type="checkbox"] {
        min-width: 24px;
        min-height: 24px;
    }

    /* Better spacing for touch */
    .nav-links {
        gap: 1rem;
    }

    .speed-buttons {
        gap: 0.75rem;
    }

    .tag-select {
        gap: 1rem;
    }
}

/* ============================================================================
   VOTING PAGE STYLES
   ============================================================================ */

.vote-page {
    padding: 2rem 0;
}

.vote-header {
    text-align: center;
    margin-bottom: 3rem;
}

.vote-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--purple);
}

.vote-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Vote Categories */
.vote-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    padding-left: 20px;
}

/* Horizontal Scrolling Container */
.horizontal-scroll-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.horizontal-scroll-wrapper {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 20px 1.5rem 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar */
.horizontal-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 4px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a78bfa;
}

/* Vote Clip Cards */
.vote-clip-card {
    flex: 0 0 280px;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.vote-clip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(138, 92, 246, 0.3);
    border-color: var(--purple);
}

/* New clip animation */
.vote-clip-card.new-clip {
    animation: newClipAppear 2s ease-out;
    border-color: var(--purple);
    box-shadow: 0 0 20px rgba(138, 92, 246, 0.5);
}

@keyframes newClipAppear {
    0% {
        opacity: 0;
        transform: translateX(-20px);
        border-color: var(--purple);
        box-shadow: 0 0 30px rgba(138, 92, 246, 0.8);
    }
    50% {
        border-color: var(--purple);
        box-shadow: 0 0 25px rgba(138, 92, 246, 0.6);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        border-color: var(--purple);
        box-shadow: 0 0 20px rgba(138, 92, 246, 0.5);
    }
}

.vote-clip-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
}

.vote-clip-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vote-clip-thumbnail .no-thumbnail {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
}

.vote-duration {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.vote-count-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(138, 92, 246, 0.9);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: bold;
}

.vote-icon, .reactions-display {
    font-size: 1rem;
}

.reaction-emoji {
    font-size: 1rem;
    margin-right: 0.1rem;
}

.emoji-display {
    font-size: 1.2rem;
    margin-right: 0.3rem;
}

.vote-clip-info {
    padding: 1rem;
}

.vote-clip-info h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.vote-clip-info h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.vote-clip-info h3 a:hover {
    color: var(--purple);
}

.vote-actions {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-vote-quick {
    width: 100%;
    padding: 0.6rem;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-vote-quick:hover {
    background: #a78bfa;
}

.already-voted {
    font-size: 0.875rem;
    color: var(--green);
    font-weight: 500;
    text-align: center;
}

/* Vote Modal */
.vote-modal-content {
    max-width: 500px;
}

.vote-form {
    margin: 1.5rem 0;
}

.tag-selector, .emoji-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin: 1rem 0;
}

.tag-btn, .emoji-btn {
    padding: 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tag-btn:hover, .emoji-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--purple);
    transform: scale(1.1);
}

.tag-btn.selected, .emoji-btn.selected {
    background: var(--purple);
    color: white;
    border-color: var(--purple);
    transform: scale(1.15);
}

.custom-emoji-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

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

.custom-emoji-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1.5rem;
    text-align: center;
    transition: border-color 0.2s;
}

.custom-emoji-input:focus {
    outline: none;
    border-color: var(--purple);
    background: var(--bg-secondary);
}

.custom-emoji-input::placeholder {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.emoji-hint {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

.vote-submit-section {
    margin-top: 1.5rem;
    text-align: center;
}

.vote-result {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Clip Vote Detail Page */
.vote-section-detail {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.current-vote {
    font-size: 1.1rem;
    color: var(--green);
    margin-bottom: 0.5rem;
}

.vote-change-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.tag-selector-detail, .emoji-selector-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.tag-btn-detail, .emoji-btn-detail {
    padding: 1rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 2rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tag-btn-detail:hover, .emoji-btn-detail:hover {
    background: var(--bg-secondary);
    border-color: var(--purple);
    transform: scale(1.1);
}

.tag-btn-detail.selected, .emoji-btn-detail.selected {
    background: var(--purple);
    color: white;
    border-color: var(--purple);
    transform: scale(1.15);
}

.vote-breakdown {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.vote-breakdown h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.vote-breakdown ul {
    list-style: none;
    padding: 0;
}

.vote-breakdown li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .vote-clip-card {
        flex: 0 0 260px;
    }
}

@media (max-width: 768px) {
    .vote-clip-card {
        flex: 0 0 220px;
        min-width: 220px;
    }

    .horizontal-scroll-wrapper {
        gap: 1rem;
        padding: 0.75rem 15px 1rem 15px;
    }

    .vote-clip-info {
        padding: 0.75rem;
    }

    .vote-clip-info h3 {
        font-size: 0.875rem;
    }

    .btn-vote-quick {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .category-title {
        font-size: 1.25rem;
        padding-left: 15px;
    }

    .tag-selector {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .vote-clip-card {
        flex: 0 0 calc(80vw);
        min-width: calc(80vw);
        max-width: calc(85vw);
        scroll-snap-align: center;
    }

    .horizontal-scroll-wrapper {
        gap: 0.75rem;
        padding: 0.5rem 10px 0.75rem 10px;
        scroll-snap-type: x mandatory;
        scroll-padding: 10px;
    }

    .vote-clip-info h3 {
        font-size: 0.8125rem;
        line-height: 1.3;
    }

    .vote-clip-info .broadcaster {
        font-size: 0.75rem;
    }

    .vote-count-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .vote-duration {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .btn-vote-quick {
        padding: 0.4rem;
        font-size: 0.8125rem;
        min-height: 40px;
    }

    .category-title {
        font-size: 1.125rem;
        padding-left: 10px;
    }
}
