/* BYMED PRODUCTION - Modern Minimalist Theme */
/* Global Styles */
* { box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e5e9;
  --border-strong: #d0d6dc;
  --text: #111317;
  --text-light: #5a6169;
  --accent-start: #4f46e5;
  --accent-end: #6366f1;
  --danger: #dc2626;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 18px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --focus-ring: 0 0 0 3px rgba(99,102,241,0.35);
}

body { 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  margin: 0; 
  padding: 0;
  background: #ffffff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #000000;
}

html {
  scroll-behavior: smooth;
}

/* Header */
header { 
  background: #e8e8ea;
  color: #1a1a1a;
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #d0d0d2;
  backdrop-filter: saturate(180%) blur(12px);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-container img {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
}
img.logo-dark { filter: brightness(0) invert(1); }

header h1 { 
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: none;
}

header .user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

header .logout-btn {
  background: #1e1e22;
  border: 1px solid #2d2d31;
  color: #f8f8f9;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .4px;
}

header .logout-btn:hover {
  background: #2d2d31;
  border-color: #3a3a40;
}

/* Main Content */
main { 
  padding: 60px 40px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
}

/* Login/Form Card */
.login-container, .form-card {
  background: #ffffff;
  border: 1px solid #e2e5e9;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  padding: 48px 52px;
  max-width: 440px;
  margin: 80px auto;
  transition: box-shadow .3s;
}
.login-container:hover, .form-card:hover { box-shadow: 0 6px 32px rgba(0,0,0,0.08); }

.login-container h2, .form-card h2 {
  margin-top: 0;
  color: #111317;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: .5px;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 500;
  color: #33363d;
  font-size: 13px;
  letter-spacing: .3px;
}

form input[type="text"],
form input[type="password"],
form input[type="email"] {
  padding: 14px 16px;
  border: 1px solid #d0d4da;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color .25s, box-shadow .25s;
  background: #ffffff;
  font-family: inherit;
}

form input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.18);
}

button[type="submit"],
.btn-primary {
  background: linear-gradient(135deg,#6366f1,#4f46e5);
  color: #ffffff;
  border: none;
  padding: 14px 26px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .4px;
  cursor: pointer;
  transition: filter .25s, box-shadow .25s;
  box-shadow: 0 4px 16px -4px rgba(79,70,229,.5);
}
button[type="submit"]:hover,
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 22px -6px rgba(79,70,229,.55);
}

.error {
  color: #000000;
  background: #ffebee;
  padding: 15px;
  border: 2px solid #000000;
  border-radius: 0;
  margin: 20px 0;
  font-size: 14px;
  text-align: center;
}

/* Albums Container */
.albums-container {
  background: #ffffff;
  border: 1px solid #e2e5e9;
  border-radius: 24px;
  padding: 36px 40px 42px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  margin-bottom: 54px;
}

.albums-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e5e9;
}

.albums-header h2 {
  margin: 0;
  color: #15171b;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .6px;
}

.albums-header a {
  background: #000000;
  color: #ffffff;
  padding: 12px 24px;
  border: 2px solid #000000;
  border-radius: 0;
  text-decoration: none;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}

.albums-header a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.2);
  background: #333333;
}

.albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.albums li {
  background: #ffffff;
  border: 1px solid #e1e4e8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow .3s, transform .3s;
}

.albums li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.12);
}

.albums li a {
  display: block;
  padding: 24px 28px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .4px;
  transition: color .25s;
}

.albums li a:hover {
  color: var(--accent-end);
}

.albums-header a {
  background: #f5f7fa;
  color: #222529;
  padding: 10px 18px;
  border: 1px solid #d5d9df;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .3px;
  transition: background .25s, box-shadow .25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.albums-header a:hover {
  background: #ebeff3;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Image Grid Container */
.images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
}

.images article {
  background: #ffffff;
  border: 1px solid #e1e4e8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
  transition: box-shadow .3s, transform .3s;
  position: relative;
  will-change: transform;
}

.images article:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 36px rgba(0,0,0,0.12);
}

.images img { 
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #f0f2f4;
}

.video-container {
  width: 100%;
  height: 200px;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid #000000;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.images h3 {
  margin: 0;
  padding: 14px 16px 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  color: #1a1d20;
  background: #ffffff;
}

.images .actions {
  display: flex;
  gap: 10px;
  padding: 14px 16px 20px;
  background: #ffffff;
  border-top: 1px solid #f0f2f4;
  flex-wrap: wrap;
}

.download-btn {
  background: linear-gradient(135deg,var(--accent-start),var(--accent-end));
  color: #ffffff;
  border: 1px solid transparent;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: box-shadow .25s, transform .25s;
  flex: 1;
  justify-content: center;
  letter-spacing: .5px;
  text-transform: none;
  box-shadow: var(--shadow-sm);
}
.download-btn:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.download-btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

button.heart {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: all .25s ease;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
button.heart:hover { background: #eef2f7; }
button.heart.liked {
  background: linear-gradient(135deg,var(--accent-start),var(--accent-end));
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.revise-btn {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: background .25s, box-shadow .25s, transform .25s;
  flex: 1;
  letter-spacing: .5px;
  text-transform: none;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.revise-btn:hover { background: #eef2f7; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.revise-btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

/* Header Actions & View Modes */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.view-modes {
  display: flex;
  gap: 4px;
  background: var(--surface-alt);
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.view-mode {
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  transition: background .2s, color .2s;
  color: var(--text-light);
  font-weight: 500;
}
.view-mode:hover { background: #eef2f7; color: var(--text); }
.view-mode.active { background: linear-gradient(135deg,var(--accent-start),var(--accent-end)); color: #ffffff; }

.back-btn {
  background: var(--surface-alt);
  color: var(--text);
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .5px;
  transition: background .25s, box-shadow .25s, transform .25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.back-btn:hover { background: #eef2f7; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.back-btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

/* View Mode: List */
.images[data-view="list"] {
  grid-template-columns: 1fr;
}

.images[data-view="list"] article {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.images[data-view="list"] .image-wrapper,
.images[data-view="list"] img {
  width: 150px;
  height: 100px;
  flex-shrink: 0;
}

.images[data-view="list"] h3 {
  flex: 1;
  padding: 15px 20px;
}

.images[data-view="list"] .actions {
  flex-shrink: 0;
}

/* View Mode: Large */
.images[data-view="large"] {
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.images[data-view="large"] .image-wrapper img,
.images[data-view="large"] img {
  height: 300px;
}

/* Image Wrapper */
.image-wrapper {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.image-wrapper::after {
  content: '⊕';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.image-wrapper:hover::after {
  opacity: 1;
}

.image-wrapper:hover img {
  opacity: 0.8;
  transition: opacity 0.3s;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15,16,18,0.92);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.lightbox.active { display: flex; }
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: opacity 0.15s ease-out;
}
.lightbox-title {
  color: var(--text);
  margin-top: 20px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  background: var(--surface-alt);
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  letter-spacing: .5px;
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
  z-index: 10001;
  transition: background .25s, color .25s;
  background: var(--surface-alt);
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.lightbox-close:hover { background: #eef2f7; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 22px;
  padding: 14px 18px;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background .25s, box-shadow .25s;
  z-index: 10001;
  box-shadow: var(--shadow-sm);
}
.lightbox-prev:hover,
.lightbox-next:hover { background: #eef2f7; box-shadow: var(--shadow-md); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-light);
  background: var(--surface-alt);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .5px;
  box-shadow: var(--shadow-sm);
  z-index: 10002;
}

/* Lightbox Actions */
.lightbox-actions {
  position: absolute;
  top: 20px;
  right: 90px;
  display: flex;
  gap: 10px;
  z-index: 10002;
}

.lightbox-download-btn,
.lightbox-favorite-btn {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.lightbox-download-btn:hover,
.lightbox-favorite-btn:hover {
  background: #eef2f7;
  box-shadow: var(--shadow-md);
  transform: scale(1.1);
}

.lightbox-favorite-btn.liked {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

/* Revize Editor */
.revise-editor {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15,16,18,0.95);
  z-index: 10001;
  backdrop-filter: blur(4px);
}
.revise-editor.active { display: flex; flex-direction: column; }
.editor-header {
  background: var(--surface);
  color: var(--text);
  padding: 18px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.editor-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: none;
}
.editor-close {
  font-size: 26px;
  cursor: pointer;
  transition: transform .3s;
  line-height: 1;
}
.editor-close:hover { transform: rotate(90deg); }
.editor-content { flex: 1; display: flex; overflow: hidden; }
.editor-canvas-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--surface-alt);
}
#revise-canvas {
  max-width: 100%;
  max-height: 100%;
  box-shadow: var(--shadow-md);
  cursor: crosshair;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.editor-sidebar {
  width: 360px;
  background: var(--surface);
  padding: 28px 28px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-left: 1px solid var(--border);
}

.editor-tools h3,
.editor-notes h3 {
  margin: 0 0 15px 0;
  color: #000000;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tool-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-btn {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16px;
  transition: background .25s, box-shadow .25s;
  box-shadow: var(--shadow-sm);
}
.tool-btn:hover { background: #eef2f7; box-shadow: var(--shadow-md); }
.tool-btn.active {
  background: linear-gradient(135deg,var(--accent-start),var(--accent-end));
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.color-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.color-btn {
  width: 38px;
  height: 38px;
  border: 3px solid #ffffff;
  outline: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: box-shadow .25s, transform .25s;
  box-shadow: var(--shadow-sm);
}
.color-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.color-btn.active { outline-color: var(--accent-end); box-shadow: 0 0 0 4px rgba(99,102,241,0.25); }

.brush-size {
  margin-top: 15px;
}

.brush-size label {
  display: block;
  margin-bottom: 10px;
  color: #000000;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 1px;
}

.brush-size input[type="range"] {
  width: 100%;
}

.clear-btn {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: none;
  margin-top: 8px;
  transition: background .25s, box-shadow .25s;
  box-shadow: var(--shadow-sm);
}
.clear-btn:hover { background: #eef2f7; box-shadow: var(--shadow-md); }

#revise-notes {
  width: 100%;
  min-height: 150px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  box-shadow: var(--shadow-sm);
  background: var(--surface-alt);
  color: var(--text);
}
#revise-notes:focus { outline: none; box-shadow: var(--focus-ring); }

.editor-actions { display: flex; gap: 12px; margin-top: auto; }
.save-revise-btn,
.cancel-revise-btn,
.save-video-revise-btn,
.cancel-video-revise-btn {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: none;
  cursor: pointer;
  transition: background .25s, box-shadow .25s, transform .25s;
  box-shadow: var(--shadow-sm);
}
.save-revise-btn,
.save-video-revise-btn { background: linear-gradient(135deg,var(--accent-start),var(--accent-end)); color:#fff; border:1px solid transparent; }
.save-revise-btn:hover,
.save-video-revise-btn:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cancel-revise-btn,
.cancel-video-revise-btn { background: var(--surface-alt); color: var(--text); }
.cancel-revise-btn:hover,
.cancel-video-revise-btn:hover { background:#eef2f7; box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Video Revize Editor */
.video-revise-editor {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15,16,18,0.95);
  z-index: 10001;
  backdrop-filter: blur(4px);
}
.video-revise-editor.active { display: flex; flex-direction: column; }

.video-editor-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow-y: auto;
  gap: 24px;
  background: var(--surface-alt);
}

.video-dual-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.main-video-panel, .reference-video-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.video-panel-header {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.main-video-panel h3, .reference-video-panel h3 {
  margin: 0 0 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.video-preview-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

#revise-video, #reference-video {
  width: 100%;
  height: 40vh;
  border-radius: var(--radius-sm);
  background: #000;
  object-fit: contain;
}

.timecode-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  min-height: 60px;
}

.timecode-info {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  font-family: 'Courier New', monospace;
}

.add-timecode-btn, .add-ref-timecode-btn {
  background: linear-gradient(135deg,var(--accent-start),var(--accent-end));
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  transition: box-shadow .25s, transform .25s;
  box-shadow: var(--shadow-sm);
}
.add-timecode-btn:hover, .add-ref-timecode-btn:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.add-ref-timecode-btn { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }

.timecode-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.timecode-list h3 {
  margin: 0 0 15px 0;
  color: #000000;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#timecode-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timecode-item {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.timecode-item .timecode-stamp {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--accent-start);
  min-width: 60px;
  font-size: 13px;
  cursor: pointer;
  transition: color .25s;
}
.timecode-item .timecode-stamp:hover { color: var(--accent-end); }

.timecode-item textarea {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 40px;
  background: #fff;
}

.timecode-item .remove-timecode {
  background: transparent;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s;
}
.timecode-item .remove-timecode:hover { transform: scale(1.2); }

.video-editor-notes {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.video-editor-notes h3 {
  margin: 0 0 15px 0;
  color: #000000;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#video-revise-notes {
  width: 100%;
  min-height: 100px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  box-shadow: var(--shadow-sm);
  background: var(--surface-alt);
  color: var(--text);
}
#video-revise-notes:focus { outline: none; box-shadow: var(--focus-ring); }

.video-editor-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Admin */
.admin-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 44px 52px;
  box-shadow: var(--shadow-md);
  margin-bottom: 48px;
  transition: box-shadow .3s;
}
.admin-container:hover { box-shadow: var(--shadow-lg); }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.admin-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: none;
  color: var(--text);
}

.clients-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clients-list li {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 18px 22px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}
.clients-list li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.clients-list li strong { color: var(--text); font-size: 15px; letter-spacing: .5px; font-weight:600; }
.clients-list li small { color: var(--text-light); font-size: 12px; }

/* Footer */
footer {
  background: #e8e8ea;
  color: #1a1a1a;
  text-align: center;
  padding: 16px 20px;
  margin-top: 40px;
  font-size: 13px;
  letter-spacing: .5px;
  border-top: 1px solid #d0d0d2;
}
footer a { color: #1a1a1a; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  header h1 {
    font-size: 14px;
  }
  
  .logo-container img {
    height: 40px;
  }
  
  main {
    padding: 30px 20px;
  }
  
  .login-container, .form-card {
    padding: 40px 30px;
    margin: 40px auto;
    box-shadow: 6px 6px 0 rgba(0,0,0,1);
  }
  
  .albums {
    grid-template-columns: 1fr;
  }
  
  .images {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .admin-container {
    padding: 30px 20px;
  }
  
  .header-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .view-modes {
    width: 100%;
    justify-content: center;
  }
  
  .back-btn {
    width: 100%;
    justify-content: center;
  }
  
  .lightbox-prev,
  .lightbox-next {
    font-size: 24px;
    padding: 12px 15px;
  }
  
  .lightbox-close {
    width: 50px;
    height: 50px;
    font-size: 32px;
    top: 10px;
    right: 10px;
  }
  
  .lightbox-actions {
    top: 70px;
    right: 10px;
    flex-direction: column;
    gap: 8px;
  }
  
  .lightbox-download-btn,
  .lightbox-favorite-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .lightbox-counter {
    top: 10px;
    font-size: 11px;
    padding: 6px 12px;
  }
  
  .images[data-view="large"] {
    grid-template-columns: 1fr;
  }
  
  .editor-sidebar {
    width: 100%;
  }
  
  .editor-content {
    flex-direction: column;
  }
}

/* Download Progress Modal */
.progress-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 16, 18, 0.8);
  backdrop-filter: blur(4px);
  z-index: 20000;
  align-items: center;
  justify-content: center;
}

.progress-modal.active {
  display: flex;
}

.progress-card {
  background: var(--surface);
  padding: 30px;
  border-radius: var(--radius-md);
  width: 90%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  text-align: center;
}

.progress-card h3 {
  margin: 0 0 20px 0;
  color: var(--text);
  font-size: 18px;
}

.progress-bar-container {
  background: var(--surface-alt);
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 15px;
  border: 1px solid var(--border);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  width: 0%;
  transition: width 0.2s ease;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 5px;
}

.progress-percentage {
  font-size: 24px;
  font-weight: 600;
  color: var(--accent-end);
  margin-bottom: 10px;
  display: block;
}

