/* Hoops Clips - Basketball Video Editor Styles */

:root {
    --primary: #7C5CFF;
    --primary-dark: #6B4CE6;
    --primary-light: #9378FF;
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --bg-card: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --keep: #10b981;
    --discard: #ef4444;
    --unreviewed: #6b7280;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(circle at top, rgba(124, 92, 255, 0.18), transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.15), transparent 40%),
        var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.25;
    pointer-events: none;
    z-index: -1;
}

/* Navigation */
.navbar {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.app-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(124, 92, 255, 0.1);
}

/* Web demo notice - this page only */
.web-demo-notice {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.875rem;
}
.web-demo-notice-icon {
    flex-shrink: 0;
}
.web-demo-notice strong {
    color: var(--text-primary);
}

/* App Container */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    min-height: calc(100vh - 80px);
}

/* Tabs */
.tabs {
    display: flex;
    background: var(--bg-dark);
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
    position: sticky;
    top: 80px;
    z-index: 90;
}

.tab {
    flex: 1;
    min-width: 120px;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.tab::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 2px;
    background: transparent;
    border-radius: 999px;
    transition: background 0.3s ease;
}

.tab:hover {
    background: rgba(124, 92, 255, 0.1);
    color: var(--text-primary);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(124, 92, 255, 0.05);
}

.tab.active::after {
    background: linear-gradient(90deg, var(--primary), #3b82f6);
}

.tab-icon {
    font-size: 1.2rem;
}

/* Tab Content */
.tab-content {
    padding: 2rem;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Player Tab */
.player-container {
    max-width: 1200px;
    margin: 0 auto;
}

.video-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.player-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 1.5rem;
}

.player-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.player-sidebar {
    position: sticky;
    top: 140px;
    align-self: start;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper.is-dragging {
    outline: 2px dashed var(--primary);
    outline-offset: -6px;
}

#videoPlayer {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.video-placeholder.hidden {
    display: none;
}

.video-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(5, 5, 10, 0.7);
    backdrop-filter: blur(6px);
    z-index: 3;
}

.video-loading.hidden {
    display: none;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

.loading-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.loading-text strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.video-overlay.show {
    opacity: 1;
}

.overlay-message {
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    background: rgba(12, 12, 16, 0.85);
    border: 1px solid rgba(124, 92, 255, 0.45);
    color: var(--text-primary);
    letter-spacing: 2px;
    font-weight: 700;
}

.drop-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 4;
}

.video-wrapper.is-dragging .drop-hint {
    opacity: 1;
}

.placeholder-content {
    text-align: center;
}

.placeholder-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.placeholder-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.placeholder-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-control {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(124, 92, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-card);
    border-color: var(--primary);
}

.btn-control {
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-control:hover:not(:disabled) {
    background: rgba(124, 92, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-control.active {
    background: rgba(124, 92, 255, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Video Controls */
.video-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.mark-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    border-radius: 10px;
}

.mark-chip {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.mark-chip.active {
    background: rgba(124, 92, 255, 0.25);
    border-color: rgba(124, 92, 255, 0.5);
    color: var(--text-primary);
}

.mark-hint {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.video-url {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.35);
}

.video-url label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.url-input {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.video-url input[type="url"] {
    flex: 1;
    min-width: 200px;
    padding: 0.65rem 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.video-url small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    background: var(--bg-dark);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.video-meta .meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 160px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.video-meta strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.control-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ai-button {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: white;
    border: none;
}

.ai-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(124, 92, 255, 0.5);
}

.ai-button.glowing {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(124, 92, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(124, 92, 255, 0.8);
    }
}

/* Clips List */
.clips-list {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.player-sidebar .clips-list {
    border-top: none;
    padding-top: 0;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
}

.player-sidebar .clips-items {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.player-sidebar .clips-items::-webkit-scrollbar {
    width: 6px;
}

.player-sidebar .clips-items::-webkit-scrollbar-thumb {
    background: rgba(124, 92, 255, 0.4);
    border-radius: 999px;
}

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

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

.clips-header h3 {
    font-size: 1.25rem;
}

.clips-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.clip-item {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.clip-item:hover {
    border-color: var(--primary);
    background: rgba(124, 92, 255, 0.05);
    border-left-color: var(--primary);
}

.clip-info {
    flex: 1;
}

.clip-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

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

.clip-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.clip-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: 1px solid transparent;
}

.clip-badge.ai {
    background: rgba(124, 92, 255, 0.2);
    color: var(--primary-light);
    border-color: rgba(124, 92, 255, 0.4);
}

.clip-badge.manual {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.4);
}

.clip-badge.status-keep {
    background: rgba(16, 185, 129, 0.2);
    color: var(--keep);
    border-color: rgba(16, 185, 129, 0.4);
}

.clip-badge.status-discard {
    background: rgba(239, 68, 68, 0.2);
    color: var(--discard);
    border-color: rgba(239, 68, 68, 0.4);
}

.clip-badge.status-unreviewed {
    background: rgba(107, 114, 128, 0.2);
    color: var(--unreviewed);
    border-color: rgba(107, 114, 128, 0.4);
}

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

.btn-icon {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(124, 92, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Review Tab */
.review-container {
    max-width: 1200px;
    margin: 0 auto;
}

.review-header {
    margin-bottom: 2rem;
}

.review-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.review-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.review-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stat {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.stat strong {
    color: var(--primary);
    margin-left: 0.25rem;
}

.stat-keep strong {
    color: var(--keep);
}

.stat-discard strong {
    color: var(--discard);
}

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

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-card.is-focused {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.35), 0 16px 40px rgba(124, 92, 255, 0.2);
}

.review-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.review-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(124, 92, 255, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.review-card:hover::after {
    opacity: 1;
}

.review-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.status-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-keep {
    background: rgba(16, 185, 129, 0.2);
    color: var(--keep);
}

.status-discard {
    background: rgba(239, 68, 68, 0.2);
    color: var(--discard);
}

.status-unreviewed {
    background: rgba(107, 114, 128, 0.2);
    color: var(--unreviewed);
}

.review-card-body {
    margin-bottom: 1rem;
}

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

.review-card-actions .btn-control {
    flex: 1;
    justify-content: center;
}

.team-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-team {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-team.active {
    background: rgba(124, 92, 255, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

/* Styles Tab */
.styles-container {
    max-width: 1200px;
    margin: 0 auto;
}

.styles-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

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

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

.style-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.style-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.style-card.is-selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.25);
}

.style-preview {
    margin-bottom: 1rem;
}

.preview-box {
    height: 150px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
}

.style-card h3 {
    margin-bottom: 0.5rem;
}

.style-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.btn-style {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Export Tab */
.export-container {
    max-width: 1000px;
    margin: 0 auto;
}

.export-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.export-options {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.export-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.export-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.format-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover, .checkbox-option:hover {
    border-color: var(--primary);
    background: rgba(124, 92, 255, 0.05);
}

.radio-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.radio-label small {
    color: var(--text-secondary);
}

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

.reel-summary {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.reel-metric {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: var(--text-secondary);
}

.reel-metric strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.reel-timeline {
    display: flex;
    gap: 0.35rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    min-height: 52px;
    align-items: center;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.reel-timeline .empty-state {
    width: 100%;
    padding: 1rem;
}

.reel-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(124, 92, 255, 0.3);
    border: 1px solid rgba(124, 92, 255, 0.5);
    position: relative;
}

.reel-segment.ai {
    background: rgba(124, 92, 255, 0.35);
    border-color: rgba(124, 92, 255, 0.6);
}

.reel-segment.manual {
    background: rgba(59, 130, 246, 0.35);
    border-color: rgba(59, 130, 246, 0.6);
}

.reel-segment span {
    white-space: nowrap;
    padding: 0 0.4rem;
}

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

.reel-note {
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.queue-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Settings Tab */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
}

.settings-container h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.settings-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.setting-item {
    margin-bottom: 1rem;
}

.setting-item:last-child {
    margin-bottom: 0;
}

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

.setting-readonly {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
}

.setting-label {
    font-size: 0.8rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.setting-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

.setting-item input[type="text"],
.setting-item input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.setting-item input[type="text"]:focus,
.setting-item input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
}

.setting-item small {
    display: block;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    font-size: 1.5rem;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.modal-body {
    padding: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--bg-dark);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #3b82f6);
    border-radius: 6px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.ai-status {
    padding: 1rem;
    background: rgba(124, 92, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--text-secondary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .tabs {
        overflow-x: auto;
    }
    
    .tab {
        min-width: 100px;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .tab-label {
        display: none;
    }
    
    .review-clips {
        grid-template-columns: 1fr;
    }
    
    .styles-grid {
        grid-template-columns: 1fr;
    }
    
    .export-actions {
        flex-direction: column;
    }

    .reel-actions {
        flex-direction: column;
    }

    .video-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .clips-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }

    .player-grid {
        grid-template-columns: 1fr;
    }

    .player-sidebar {
        position: static;
    }
}

@media (max-width: 480px) {
    .nav-title span {
        display: none;
    }
}
