/* ========================================
   VIDEO STUDIO
   ======================================== */

.vs-container {
    padding: var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
    animation: page-fade-in 0.5s ease-out forwards;
}

/* ========================================
   HEADER
   ======================================== */

.vs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.vs-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.vs-header-actions {
    display: flex;
    gap: var(--space-sm);
}

.vs-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.vs-btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.vs-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 6px 25px var(--primary-glow);
}

.vs-btn-primary:active {
    transform: translateY(0);
}

.vs-btn-soon {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid rgba(245, 158, 11, 0.5);
    cursor: not-allowed;
    opacity: 0.85;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45);
    animation: vs-soon-glow 2.2s ease-in-out infinite;
}
.vs-btn-soon:hover,
.vs-btn-soon:active {
    transform: none;
}
@@keyframes vs-soon-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45),
                    0 0 12px rgba(245, 158, 11, 0.25);
        border-color: rgba(245, 158, 11, 0.5);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0),
                    0 0 22px rgba(239, 68, 68, 0.5);
        border-color: rgba(239, 68, 68, 0.7);
    }
}
.vs-soon-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-left: 4px;
}

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

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

.vs-btn-danger {
    background: transparent;
    color: var(--error);
    border: 1px solid rgba(185, 28, 28, 0.3);
}

.vs-btn-danger:hover {
    background: rgba(185, 28, 28, 0.06);
    border-color: var(--error);
}

.vs-btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.vs-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ========================================
   RECORDING PANEL
   ======================================== */

.vs-recorder {
    display: none;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: page-fade-in 0.4s ease-out forwards;
}

.vs-recorder.active {
    display: block;
}

.vs-recorder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.vs-recorder-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    font-family: var(--font-sans);
}

.vs-recorder-body {
    display: flex;
    gap: 0;
}

.vs-preview-area {
    flex: 1;
    position: relative;
    background: #0F172A;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-preview-area video {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
}

.vs-preview-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: var(--space-xl);
}

.vs-preview-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    opacity: 0.4;
}

.vs-preview-placeholder p {
    font-size: 14px;
    margin: 0;
}

/* Recording Controls Panel */
.vs-controls-panel {
    width: 280px;
    border-left: 1px solid var(--border);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    background: var(--bg-primary);
}

.vs-control-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.vs-control-group label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.vs-select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13.5px;
    cursor: pointer;
    transition: all var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' 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 10px center;
    padding-right: 30px;
}

.vs-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    outline: none;
}

/* Source Buttons */
.vs-source-btns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.vs-source-btn {
    flex: 1;
    min-width: calc(50% - var(--space-sm) / 2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px var(--space-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.vs-source-btn[data-source="both"] {
    flex: 1 1 100%;
}

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

.vs-source-btn.active {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.06);
    color: var(--primary);
}

.vs-source-btn svg {
    width: 20px;
    height: 20px;
}

/* Preview Button */
#previewBtn {
    background: var(--gradient-primary) !important;
    color: white;
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

#previewBtn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg), 0 6px 25px var(--primary-glow);
}

#previewBtn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Record Button */
.vs-record-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all var(--transition-fast);
}

.vs-record-btn.ready {
    background: #DC2626;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.vs-record-btn.ready:hover {
    background: #B91C1C;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.vs-record-btn.recording {
    background: #DC2626;
    color: white;
    animation: rec-pulse 1.5s ease-in-out infinite;
}

.vs-record-btn.recording .rec-dot {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 3px;
}

.vs-record-btn:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.rec-dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

@keyframes rec-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Timer */
.vs-timer {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

.vs-timer.recording {
    color: #DC2626;
}

/* ========================================
   CAMERA BUBBLE OVERLAY (Screen+Cam mode)
   ======================================== */

.vs-cam-bubble {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    cursor: grab;
    z-index: 10;
    display: none;
    transition: box-shadow var(--transition-fast);
}

.vs-cam-bubble:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), 0 0 0 2px var(--primary);
}

.vs-cam-bubble.dragging {
    cursor: grabbing;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 0 0 2px var(--primary);
    transition: none;
}

.vs-cam-bubble video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Hidden canvas for compositing */
.vs-composite-canvas {
    display: none;
}

/* ========================================
   UPLOAD / SAVE PANEL
   ======================================== */

.vs-save-panel {
    display: none;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: page-fade-in 0.4s ease-out forwards;
}

.vs-save-panel.active {
    display: block;
}

.vs-save-body {
    display: flex;
    gap: 0;
}

.vs-save-preview {
    flex: 1;
    background: #0F172A;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-save-preview video {
    width: 100%;
    height: 100%;
    max-height: 450px;
    object-fit: contain;
}

.vs-save-form {
    width: 320px;
    border-left: 1px solid var(--border);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    background: var(--bg-primary);
}

.vs-save-form h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.vs-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.vs-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    outline: none;
}

.vs-textarea {
    resize: vertical;
    min-height: 80px;
}

.vs-save-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 12px;
    color: var(--text-muted);
}

.vs-save-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vs-save-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: auto;
}

.vs-save-actions .vs-btn {
    flex: 1;
}

/* Upload Progress */
.vs-upload-progress {
    display: none;
    flex-direction: column;
    gap: var(--space-sm);
}

.vs-upload-progress.active {
    display: flex;
}

.vs-progress-bar {
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    overflow: hidden;
}

.vs-progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    width: 0%;
}

.vs-progress-text {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* ========================================
   VIDEO LIBRARY GRID
   ======================================== */

.vs-library {
    margin-top: var(--space-xl);
}

.vs-library-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.vs-library-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text-primary);
}

.vs-video-count {
    font-size: 13px;
    color: var(--text-muted);
}

.vs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

/* Video Card */
.vs-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.vs-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.vs-card-thumb {
    position: relative;
    background: #0F172A;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vs-card-thumb video,
.vs-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.vs-card-thumb-fallback {
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.vs-card-thumb .play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.vs-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay svg {
    width: 44px;
    height: 44px;
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.vs-card-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
}

.vs-card-info {
    padding: 14px var(--space-md);
}

.vs-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.vs-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 12px;
    color: var(--text-muted);
}

.vs-card-actions {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.vs-card:hover .vs-card-actions {
    opacity: 1;
}

.vs-card-actions button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background var(--transition-fast);
}

.vs-card-actions button:hover {
    background: rgba(0, 0, 0, 0.85);
}

.vs-card-actions .delete-btn:hover {
    background: rgba(220, 38, 38, 0.85);
}

/* Empty Library */
.vs-empty {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    color: var(--text-muted);
}

.vs-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    opacity: 0.35;
    color: var(--text-muted);
}

.vs-empty p {
    font-size: 14px;
    margin: 0 0 var(--space-lg);
}

/* ========================================
   VIDEO DETAIL / PLAYER VIEW
   ======================================== */

.vs-detail {
    display: none;
    animation: page-fade-in 0.4s ease-out forwards;
}

.vs-detail.active {
    display: block;
}

.vs-detail-layout {
    display: flex;
    gap: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.vs-player-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vs-player-wrapper {
    position: relative;
    background: #0F172A;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-player-wrapper video {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.vs-player-info {
    padding: var(--space-lg);
    border-top: 1px solid var(--border);
}

.vs-detail-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs);
}

.vs-detail-title-input {
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--text-primary);
    padding: 0;
    width: 100%;
    font-family: var(--font-sans);
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

.vs-detail-title-input:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.vs-detail-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: var(--space-sm) 0 0;
    line-height: 1.5;
}

.vs-detail-desc-input {
    font-size: 14px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 0;
    width: 100%;
    font-family: var(--font-sans);
    resize: none;
    min-height: 40px;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition-fast);
    line-height: 1.5;
}

.vs-detail-desc-input:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.vs-detail-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

.vs-detail-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vs-detail-actions {
    margin-left: auto;
    display: flex;
    gap: var(--space-sm);
}

/* ========================================
   COMMENTS PANEL
   ======================================== */

.vs-comments {
    width: 340px;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.vs-comments-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.vs-comment-count {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.vs-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Single Comment */
.vs-comment {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    animation: page-fade-in 0.3s ease-out forwards;
    position: relative;
}

.vs-comment-top {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: 6px;
}

.vs-comment-avatar {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.vs-comment-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.vs-comment-time {
    margin-left: auto;
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    background: rgba(124, 58, 237, 0.08);
    font-family: var(--font-mono);
    transition: background var(--transition-fast);
}

.vs-comment-time:hover {
    background: rgba(124, 58, 237, 0.15);
}

.vs-comment-text {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-left: 32px;
}

.vs-comment-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-fast);
}

.vs-comment:hover .vs-comment-delete {
    opacity: 1;
}

.vs-comment-delete:hover {
    background: rgba(185, 28, 28, 0.1);
    color: var(--error);
}

/* Comment Input */
.vs-comment-form {
    padding: var(--space-md);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.vs-comment-timestamp {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 12px;
    color: var(--text-muted);
}

.vs-comment-timestamp span {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--primary);
}

.vs-comment-input-row {
    display: flex;
    gap: var(--space-sm);
}

.vs-comment-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13.5px;
    transition: all var(--transition-fast);
}

.vs-comment-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    outline: none;
}

.vs-comment-input::placeholder {
    color: var(--text-muted);
}

.vs-comment-submit {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.vs-comment-submit:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.vs-comment-submit:active {
    transform: scale(0.97);
}

.vs-comment-submit svg {
    width: 16px;
    height: 16px;
}

.vs-comments-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: var(--space-xl);
    text-align: center;
}

/* ========================================
   LOADING SKELETON
   ======================================== */

.vs-grid-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.vs-card-skeleton {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.vs-card-skeleton .thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.vs-card-skeleton .info {
    padding: 14px var(--space-md);
}

.vs-card-skeleton .line {
    height: 12px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    margin-bottom: var(--space-sm);
}

.vs-card-skeleton .line.short {
    width: 50%;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
    .vs-comments {
        width: 300px;
    }

    .vs-controls-panel {
        width: 240px;
    }

    .vs-save-form {
        width: 280px;
    }
}

@media (max-width: 1024px) {
    .vs-detail-layout {
        flex-direction: column;
    }

    .vs-comments {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
        max-height: 400px;
    }

    .vs-recorder-body {
        flex-direction: column;
    }

    .vs-controls-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .vs-save-body {
        flex-direction: column;
    }

    .vs-save-form {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 768px) {
    .vs-container {
        padding: var(--space-md);
    }

    .vs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .vs-header h1 {
        font-size: 1.4rem;
    }

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

    .vs-preview-area {
        min-height: 250px;
    }

    .vs-player-wrapper {
        min-height: 250px;
    }

    .vs-source-btns {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .vs-container {
        padding: var(--space-sm);
    }

    .vs-header-actions {
        width: 100%;
    }

    .vs-header-actions .vs-btn {
        flex: 1;
    }
}

/* ========================================
   SHARE PAGE (PUBLIC)
   ======================================== */

.vs-share-page {
    min-height: 100vh;
    background: var(--bg-primary);
}

.vs-share-header {
    padding: var(--space-md) var(--space-xl);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}

.vs-share-logo img {
    height: 48px;
    width: 48px;
    border-radius: 10px;
}

.vs-share-content {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--space-xl);
}

.vs-share-player-wrap {
    background: #0F172A;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.vs-share-player-wrap video {
    width: 100%;
    max-height: 540px;
    display: block;
    object-fit: contain;
}

.vs-share-info {
    padding: var(--space-lg) 0;
}

.vs-share-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm);
    font-family: var(--font-sans);
}

.vs-share-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 var(--space-md);
}

.vs-share-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 13px;
    color: var(--text-muted);
}

.vs-share-comments {
    border-top: 1px solid var(--border);
    padding-top: var(--space-lg);
}

.vs-share-comments h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 var(--space-md);
    font-family: var(--font-sans);
}

.vs-share-comment {
    display: flex;
    gap: var(--space-md);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.vs-share-comment:last-child {
    border-bottom: none;
}

.vs-share-comment-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    font-family: var(--font-mono);
    cursor: pointer;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: rgba(124, 58, 237, 0.08);
    flex-shrink: 0;
    height: fit-content;
    transition: background var(--transition-fast);
}

.vs-share-comment-time:hover {
    background: rgba(124, 58, 237, 0.15);
}

.vs-share-comment strong {
    font-size: 13px;
    color: var(--text-primary);
    display: block;
    margin-bottom: 2px;
}

.vs-share-comment p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Share link copy toast */
.vs-toast {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text-primary);
    color: var(--text-inverse);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: var(--z-tooltip);
    pointer-events: none;
}

.vs-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .vs-share-content {
        padding: var(--space-md);
    }

    .vs-share-title {
        font-size: 1.2rem;
    }
}
