:root {
    --bg-black: #030508;
    --card-bg: #0f1218;
    --section-bg: #1e1f20;
    --point-blue: #71a8e2;
    --point-orange: #ff5e00;
    --text-white: #cbd5e1;
    --status-gray: #888;
    --status-blue: #3b82f6;
    --status-red: #ef4444;
    --status-green: #32CD32;
    --thumb-width: 240px;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.big-title {
    font-size: 32pt;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin: 0;
}

.nav-back-btn {
    font-size: 25pt;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.full-screen-center {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.modern-input {
    background: #000;
    border: 1px solid #333;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
}

.modern-btn {
    background: var(--point-blue);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

.modern-btn:hover {
    opacity: 0.8;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    width: 100%;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--thumb-width), 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.08);
    border-color: var(--point-blue);
    box-shadow: 0 15px 40px rgba(113, 168, 226, 0.2);
}

.card h3 {
    margin: 0;
    font-weight: 600;
    transition: color 0.3s;
}

.card:hover h3 {
    color: var(--point-blue);
}

.delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    color: #555;
}

.delete-btn:hover {
    background: var(--status-red);
    color: white;
    transform: scale(1.1);
}

.delete-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.workspace-card, .folder-card { 
    height: 150px; 
    padding: 1rem;
}

.folder-card h3, .workspace-card h3 {
    font-size: 14pt !important;
}

.folder-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 5px;
    fill: var(--point-blue);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.card:hover .folder-icon {
    opacity: 1;
    transform: scale(1.05);
}

/* Video Card specific */
.video-card {
    width: var(--thumb-width);
    padding: 0;
    display: block;
    text-align: left;
    height: auto;
    background: #0a0a0a;
    backdrop-filter: none;
    border: 1px solid #333;
    overflow: hidden;
    justify-self: center;
}

.video-card .thumbnail {
    width: 100%;
    height: calc(var(--thumb-width) * 0.5625);
    background: #000;
    position: relative;
    overflow: hidden;
}

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

/* Review Page */
.review-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.review-header {
    padding: 1rem 2rem;
    background: var(--section-bg);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.review-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.video-column {
    flex: 7;
    background: #000;
    display: flex;
    flex-direction: column;
    position: relative;
}

.feedback-column {
    flex: 3;
    background: var(--section-bg);
    border-left: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.video-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

video {
    max-width: 100%;
    max-height: 100%;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: auto;
}

.custom-controls {
    padding: 1.5rem;
    background: #0a0a0a;
}

.timeline-container {
    height: 20px;
    background: #222;
    position: relative;
    cursor: pointer;
    margin-bottom: 1rem;
}

.progress-bar-bg {
    width: 100%;
    height: 100%;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--point-blue);
    width: 0;
}

.timeline-marker {
    position: absolute;
    top: -10px;
    color: var(--point-orange);
    transform: translateX(-50%);
    cursor: pointer;
}

.feedback-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.feedback-item {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
}

.feedback-item:hover {
    background: rgba(255,255,255,0.1);
}

#feedbackInputArea {
    position: absolute;
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 12px;
    z-index: 100;
    width: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#feedbackMsg {
    width: 100%;
    height: 80px;
    background: #000;
    color: white;
    border: 1px solid #333;
    padding: 0.5rem;
    box-sizing: border-box;
}

.hidden { display: none; }