/* VideoEZ Frontend Player Styles */

.videoez-portal {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1f2937;
}

/* Header */
.videoez-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.videoez-project-title {
    font-size: 22px;
    font-weight: 800;
    color: #0d1b3e;
    margin: 0 0 4px;
}

.videoez-client-name {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.videoez-round-indicator {
    background: #f0f4ff;
    border: 1px solid #c7d2fe;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #0d1b3e;
    white-space: nowrap;
}

/* Player */
.videoez-player-wrap {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    user-select: none;
}

#videoez-video {
    width: 100%;
    display: block;
    cursor: pointer;
}

/* Prevent right-click download */
.videoez-player-wrap video,
.videoez-player-wrap iframe {
    pointer-events: auto;
    -webkit-user-select: none;
    user-select: none;
}

/* Custom Controls */
.videoez-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.85);
    padding: 8px 12px;
    position: relative;
    z-index: 5;
}

.videoez-btn-play,
.videoez-btn-mute {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: background 0.15s;
}

.videoez-btn-play:hover,
.videoez-btn-mute:hover {
    background: rgba(255,255,255,0.15);
}

/* Timeline */
.videoez-timeline-wrap {
    flex: 1;
    padding: 4px 0;
}

.videoez-timeline {
    position: relative;
    height: 6px;
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
    cursor: pointer;
    transition: height 0.15s;
}

.videoez-timeline:hover {
    height: 10px;
}

.videoez-progress {
    height: 100%;
    background: #46c031;
    border-radius: 3px;
    pointer-events: none;
    width: 0%;
}

.videoez-marker-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid #fff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    transition: transform 0.15s;
}

.videoez-marker-dot:hover {
    transform: translateY(-50%) scale(1.4);
}

.videoez-marker-dot.pending {
    background: #f59e0b;
}

.videoez-time {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    font-family: monospace;
    flex-shrink: 0;
}

.videoez-volume {
    width: 70px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Watermark */
.videoez-watermark {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    max-width: 30%;
}

/* Instructions */
.videoez-instructions {
    font-size: 13px;
    color: #6b7280;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 8px 0 0;
}

/* Marker Popup */
.videoez-marker-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    background: rgba(0,0,0,0.7);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.videoez-marker-popup-inner {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.videoez-marker-popup-inner h4 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #0d1b3e;
}

.videoez-marker-timecode {
    font-family: monospace;
    font-size: 13px;
    color: #ef4444;
    font-weight: 700;
    margin: 0 0 12px;
}

.videoez-marker-popup-inner textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
    margin-bottom: 14px;
}

.videoez-marker-popup-inner textarea:focus {
    outline: none;
    border-color: #0d1b3e;
    box-shadow: 0 0 0 2px rgba(13,27,62,0.1);
}

.videoez-marker-popup-actions {
    display: flex;
    gap: 10px;
}

/* Pending markers list */
.videoez-pending-markers {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.videoez-pending-markers h3 {
    margin: 0 0 14px;
    font-size: 15px;
    color: #0d1b3e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.videoez-badge-count {
    background: #ef4444;
    color: #fff;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
}

.videoez-marker-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.videoez-marker-item:last-child {
    border-bottom: none;
}

.videoez-marker-tc {
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
    background: #fef2f2;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
}

.videoez-marker-tc:hover {
    background: #fee2e2;
}

.videoez-marker-note-text {
    flex: 1;
    color: #374151;
    line-height: 1.5;
}

.videoez-marker-remove {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.videoez-marker-remove:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* Action Buttons */
.videoez-actions-bar {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.videoez-btn-approve {
    background: #10b981;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    flex: 1;
    min-width: 180px;
}

.videoez-btn-approve:hover {
    background: #059669;
    transform: translateY(-1px);
}

.videoez-btn-revise {
    background: #0d1b3e;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    flex: 1;
    min-width: 180px;
}

.videoez-btn-revise:hover {
    background: #1a3a6e;
    transform: translateY(-1px);
}

.videoez-btn-revise:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.videoez-btn-primary {
    background: #0d1b3e;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.videoez-btn-primary:hover { background: #1a3a6e; }

.videoez-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.videoez-btn-secondary:hover { background: #e5e7eb; }

.videoez-btn-download {
    display: inline-block;
    background: #10b981;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 16px;
    transition: background 0.2s;
}

.videoez-btn-download:hover {
    background: #059669;
    color: #fff;
}

/* Modal */
.videoez-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.videoez-modal-inner {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.videoez-modal-inner h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #0d1b3e;
}

.videoez-modal-inner p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.videoez-modal-actions {
    display: flex;
    gap: 10px;
}

/* Notices */
.videoez-notice {
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.videoez-notice-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
}

.videoez-notice-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
}

.videoez-notice-info {
    background: #eff6ff;
    border: 1px solid #93c5fd;
}

.videoez-notice h2 {
    color: #0d1b3e;
    margin: 0 0 10px;
}

.videoez-notice p {
    color: #374151;
    margin: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
    .videoez-portal { padding: 12px; }
    .videoez-header { flex-direction: column; }
    .videoez-actions-bar { flex-direction: column; }
    .videoez-marker-popup-inner { padding: 16px; }
}
