/* Shots Styles */

/* Shot Insertion Styles */
.shot-item {
  position: relative;
  overflow: visible;
}

.shot-insert-left,
.shot-insert-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 20;
}

.shot-insert-left {
  left: 8px;
}

.shot-insert-right {
  right: 8px;
}

.shot-item:hover .shot-insert-left,
.shot-item:hover .shot-insert-right {
  opacity: 1;
}

.shot-insert-left:hover,
.shot-insert-right:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Custom Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.modal-overlay.modal-show {
  opacity: 1;
  visibility: visible;
}

.custom-modal {
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(-20px);
  transition: transform 0.3s ease-in-out;
}

.modal-overlay.modal-show .custom-modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease-in-out;
}

.modal-close:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px 24px;
  border-top: 1px solid #e5e7eb;
  margin-top: 24px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-help {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

/* Button Styles */
.btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.btn-primary:hover {
  background-color: #2563eb;
  border-color: #2563eb;
}

.btn-secondary {
  background-color: white;
  color: #374151;
  border-color: #d1d5db;
}

.btn-secondary:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .shot-insert-left,
  .shot-insert-right {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  
  .shot-insert-left {
    left: 4px;
  }
  
  .shot-insert-right {
    right: 4px;
  }
}

/* Container */
.shots-container {
  padding: var(--spacing-lg);
  max-width: 100%;
}

/* Header */
.shots-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-lg);
}

.shots-title-section h1 {
  margin: 0 0 var(--spacing-xs) 0;
  color: var(--color-text-secondary);
}

.breadcrumb-nav {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.breadcrumb-nav a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.shots-actions {
  display: flex;
  gap: var(--spacing-sm);
}

/* View Mode Controls */
.view-mode-controls {
  margin-bottom: var(--spacing-lg);
}

.view-mode-selector {
  display: inline-flex;
  border-radius: var(--radius-base);
  overflow: hidden;
  border: 1px solid var(--border-color);
  vertical-align: top;
}

.view-mode-selector input[type="radio"] {
  display: none;
}

.view-mode-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  margin: 0;
  background-color: var(--color-white);
  border: none;
  border-right: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  line-height: 1;
}

.view-mode-btn:last-child {
  border-right: none;
}

.view-mode-btn:hover {
  background-color: var(--bg-light-gray);
}

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

.view-mode-btn i {
  font-size: 1rem;
}

/* Common styles for all view modes */
.shot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

/* Scene mode specific */

.scene-label {
  position: absolute;
  top: -5px;
  left: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 10;
  grid-column: 1 / -1;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.scene-badge {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 0.25em 0.6em;
  font-size: 0.75em;
  font-weight: 700;
  border-radius: var(--radius-base);
}

/* Compact mode specific */
.scene-indicator {
  position: absolute;
  top: var(--spacing-xs);
  left: var(--spacing-xs);
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--color-white);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: bold;
  font-size: 0.75rem;
}

/* Images mode specific */
.images-mode {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.image-only .shot-image-container {
  border-radius: var(--radius-base);
}

/* Common item styles */
.shot-item {
  transition: transform 0.2s ease-in-out;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-base);
  overflow: hidden;
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
}

.shot-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.shot-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.shot-gallery .shot-image-container {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background-color: var(--bg-light-gray);
}

.shot-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.shot-placeholder i {
  font-size: 2.5rem;
  opacity: 0.5;
}

.shot-info {
  padding: var(--spacing-sm);
  background-color: var(--color-white);
}

.shot-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.scene-list {
  list-style: none;
  padding: 0;
  margin-top: var(--spacing-md);
  text-align: left;
  display: inline-block;
}

.scene-list li {
  margin-bottom: var(--spacing-xs);
}

.scene-list a {
  color: var(--color-primary);
  text-decoration: none;
}

.scene-list a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .shots-container {
    padding: var(--spacing-md);
  }
  
  .shots-header {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
  }
  
  .view-mode-selector {
    display: flex;
    width: 100%;
  }
  
  .view-mode-btn {
    flex: 1;
    justify-content: center;
    padding: var(--spacing-sm);
  }
  
  .shot-gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-sm);
  }
  
  .images-mode {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 576px) {
  .view-mode-btn {
    font-size: var(--font-size-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .view-mode-btn span {
    display: none;
  }
  
  .shot-gallery {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  
  .images-mode {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* Shot Show Page Styles */
.shot-show-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.shot-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.header-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--color-text);
}

.shot-meta {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 1rem;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.shot-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}

.shot-card {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 4px 16px var(--shadow);
  overflow: hidden;
}

.shot-image-container {
  position: relative;
  width: 100%;
  min-height: 200px;
  background: var(--bg-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
}

.shot-video {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  background: #000;
  border-radius: 4px;
}

.shot-placeholder {
  text-align: center;
  color: var(--color-text-muted);
}

.shot-placeholder i {
  font-size: 4rem;
  margin-bottom: 16px;
  display: block;
}

.shot-generating {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 200px;
  background: var(--color-bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.generating-gif {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.generating-overlay {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.875rem;
}

.generating-text {
  font-weight: 500;
}

.shot-details {
  padding: 24px;
}

.detail-row {
  display: flex;
  margin-bottom: 16px;
  gap: 16px;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-weight: 600;
  color: var(--color-text);
  min-width: 100px;
  flex-shrink: 0;
}

.detail-value {
  color: var(--color-text-muted);
  flex: 1;
}

.detail-value.description {
  line-height: 1.5;
}

.shot-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-section {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 4px 16px var(--shadow);
  padding: 20px;
}

.sidebar-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--color-text);
}

.audio-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audio-item {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-light-gray);
}

.audio-item.no-audio {
  opacity: 0.6;
}

.audio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.character-name {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.875rem;
}

.no-audio-badge {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: var(--bg-white);
  padding: 2px 8px;
  border-radius: 4px;
}

.audio-content {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.btn-audio-play {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.75rem;
}

.btn-audio-play:hover {
  background: var(--color-primary-dark);
  transform: scale(1.05);
}

.video-source-preview {
  max-width: 200px;
}

.video-source-preview img {
  width: 100%;
  height: auto;
}

.source-image-preview {
  margin-bottom: 12px;
}

.source-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.video-preview {
  margin-bottom: 16px;
}

.video-player {
  width: 100%;
  max-height: 300px;
  border-radius: 8px;
  background: #000;
}

.video-info {
  margin-top: 8px;
  text-align: center;
}

/* Responsive styles for show page */
@media (max-width: 768px) {
  .shot-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .shot-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.shot-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  width: 325px;
}

.shot-image-container {
  position: relative;
  background: #000;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.shot-image,
.shot-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-video {
  background: #000;
}

/* Style video controls */
.shot-video::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.8);
}

.shot-video::-webkit-media-controls-play-button,
.shot-video::-webkit-media-controls-volume-slider,
.shot-video::-webkit-media-controls-timeline,
.shot-video::-webkit-media-controls-current-time-display,
.shot-video::-webkit-media-controls-time-remaining-display {
  color: white;
}

.shot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  color: #666;
  font-size: 3rem;
  padding: 2rem;
}

.shot-placeholder .placeholder-text {
  font-size: 0.875rem;
  line-height: 1.4;
  color: #888;
  margin-top: 1rem;
  text-align: center;
  max-width: 80%;
}

.shot-controls {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hide controls overlay when hovering over video */
.shot-image-container:hover .shot-controls {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Show controls when not hovering */
.shot-image-container .shot-controls {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.shot-position {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.video-indicator {
  color: #4CAF50;
  font-size: 1rem;
}

.shot-tools-btn,
.shot-menu-btn,
.shot-fullscreen-btn {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.shot-tools-btn:hover,
.shot-menu-btn:hover,
.shot-fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.shot-menu-btn,
.shot-fullscreen-btn {
  margin-left: auto;
  width: 40px;
  padding: 0.5rem;
  justify-content: center;
}

.shot-timeline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.timeline-progress {
  height: 100%;
  width: 20%;
  background: #4a8fff;
}

.shot-actions {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-light-gray);
  border-bottom: 1px solid var(--border-color);
}

.action-btn {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.75rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.2s;
  font-size: 0.8rem;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
  font-family: inherit;
}

.action-btn:hover {
  background: var(--bg-white);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.action-btn.needs-regeneration {
  background: #fff3cd;
  border-color: #856404;
  color: #856404;
  font-weight: 600;
}

.action-btn.needs-regeneration:hover {
  background: #856404;
  border-color: #856404;
  color: white;
}

.shot-details {
  padding: 1.5rem;
}

.detail-section {
  margin-bottom: 2rem;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.detail-content {
  background: var(--bg-light-gray);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.detail-content p {
  margin: 0;
  color: var(--color-text);
  line-height: 1.5;
}

.dropdown-field {
  position: relative;
  margin-bottom: 0.75rem;
}

.dropdown-field:last-child {
  margin-bottom: 0;
}

.shot-dropdown,
.angle-dropdown {
  width: 100%;
  background: var(--bg-light-gray);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  appearance: none;
  padding-right: 2.5rem;
  text-transform: uppercase;
}

.dropdown-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-secondary);
  pointer-events: none;
}

.composition-btn {
  width: 100%;
  background: var(--bg-light-gray);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.2s;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.composition-btn:hover {
  background: var(--bg-white);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Status Indicator */
.status-indicator {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.status-draft {
  background: #f1f3f4;
  color: #5f6368;
}

.status-modified {
  background: #fff3cd;
  color: #856404;
}

.status-generating,
.status-regenerating {
  background: #cce7ff;
  color: #0066cc;
}

.status-generated {
  background: #d4edda;
  color: #155724;
}

.status-failed {
  background: #f8d7da;
  color: #721c24;
}

/* Editable Prompt */
.editable-prompt {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.editable-prompt:hover {
  background: var(--bg-white);
  border-color: var(--color-primary);
}

.editable-prompt::after {
  content: "Click to edit";
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.625rem;
  color: var(--color-text-secondary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.editable-prompt:hover::after {
  opacity: 1;
}

.prompt-editor {
  width: 100%;
  background: var(--bg-white);
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 1rem;
  color: var(--color-text);
  resize: vertical;
  outline: none;
  font-family: inherit;
  line-height: 1.5;
}

.section-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: all 0.2s;
}

.section-toggle:hover {
  background: var(--bg-light-gray);
  color: var(--color-text);
}

/* Dark theme adjustments */
[data-theme="dark"] .shot-card {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .shot-actions {
  background: #222;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .action-btn {
  border-color: rgba(255, 255, 255, 0.2);
  color: #e0e0e0;
}

[data-theme="dark"] .action-btn:hover {
  background: #333;
  border-color: #4a8fff;
  color: #4a8fff;
}

[data-theme="dark"] .action-btn.needs-regeneration {
  background: #8b6f00 !important;
  border-color: #ffd700 !important;
  color: #ffd700 !important;
  font-weight: 600;
}

[data-theme="dark"] .action-btn.needs-regeneration:hover {
  background: #ffd700 !important;
  border-color: #ffd700 !important;
  color: #000 !important;
}

[data-theme="dark"] .detail-content,
[data-theme="dark"] .shot-dropdown,
[data-theme="dark"] .angle-dropdown,
[data-theme="dark"] .composition-btn {
  background: #333;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

[data-theme="dark"] .composition-btn:hover {
  background: #444;
  border-color: #4a8fff;
  color: #4a8fff;
}

[data-theme="dark"] .section-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  color: #999;
}

[data-theme="dark"] .section-toggle:hover {
  background: #333;
  color: #e0e0e0;
}

/* Add icons styling */
.shot-position i,
.shot-tools-btn i,
.shot-menu-btn i,
.shot-fullscreen-btn i,
.action-btn i,
.composition-btn i {
  font-size: 1rem;
}

.dropdown-field i {
  font-size: 0.875rem;
}

.shots-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-left: 10px;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.shots-header h2 {
  margin: 0;
  color: var(--color-text);
}

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

.shots-list {
  padding-bottom: 2rem;
}

.scene-group {
  /* margin-bottom: 3rem; */
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  padding-top: 20px;
}

.scene-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  padding: 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.scene-title {
  margin: 0;
  font-size: 1.25rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.scene-number {
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

.scene-shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, 325px);
  gap: 2.5rem; /* ~40px gap to accommodate 30px button + spacing */
  justify-content: start;
  padding: 0 1rem;
}

/* Each shot wrapper contains shot + insert zones */
.shot-wrapper {
  display: flex;
  align-items: flex-start;
  position: relative;
}

/* Shot Container */
.shot-container {
  display: block;
  width: 325px;
  flex-shrink: 0;
}

/* Insert zones */
.insert-left,
.insert-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.insert-left {
  left: -40px;
}

.insert-right {
  right: -40px;
}

/* Show button when hovering over the entire insert zone */
.insert-left .insert-btn,
.insert-right .insert-btn {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.insert-left:hover .insert-btn,
.insert-right:hover .insert-btn {
  opacity: 1;
}

.insert-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.insert-btn:hover {
  background: var(--color-primary-dark, #3a7bd5);
  transform: scale(1.1);
  box-shadow: var(--shadow-md, 0 4px 8px rgba(0, 0, 0, 0.15));
  text-decoration: none;
  color: white;
}

.insert-btn i {
  font-size: 0.9rem;
}

.scene-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.scene-links li {
  margin-bottom: 0.5rem;
}

.scene-links a {
  color: var(--color-primary);
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0;
}

.scene-links a:hover {
  text-decoration: underline;
}

/* Dark theme adjustments */
[data-theme="dark"] .scene-header {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .shots-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .scene-title {
  color: #e0e0e0;
}

[data-theme="dark"] .plus-btn {
  background: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .plus-btn:hover {
  background: var(--color-primary-dark, #3a7bd5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .shots-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .scene-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .scene-shots {
    padding: 0 0.5rem;
    gap: 2rem; /* ~32px gap for mobile, slightly smaller */
    grid-template-columns: repeat(auto-fill, 325px);
  }
  
  .insert-left,
  .insert-right {
    width: 30px;
  }
  
  .insert-left {
    left: -32px;
  }
  
  .insert-right {
    right: -32px;
  }
  
  .insert-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
  }
  
  .insert-btn i {
    font-size: 0.8rem;
  }
}

.shot-preview {
    position: relative;
  }
  
.shot-count-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 5px;
  text-align: center;
  font-weight: bold;
}

/* Empty State Styles */
.shots-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: var(--spacing-xl);
}

.empty-state-content {
  text-align: center;
  max-width: 500px;
}

.empty-state-icon {
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-muted);
}

.empty-state-icon i {
  font-size: 4rem;
  opacity: 0.7;
}

.shots-empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--spacing-md) 0;
}

.shots-empty-state p {
  color: var(--color-text-muted);
  margin: 0 0 var(--spacing-lg) 0;
  line-height: 1.6;
}

.empty-state-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: center;
}

.empty-state-actions .text-muted {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin: 0 0 var(--spacing-sm) 0;
}

.empty-state-actions .btn,
.empty-state-actions input[type="submit"] {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  text-decoration: none;
  border-radius: var(--radius-base);
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.empty-state-actions .btn-primary,
.empty-state-actions input[type="submit"].btn-primary {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.empty-state-actions .btn-primary:hover,
.empty-state-actions input[type="submit"].btn-primary:hover {
  background-color: var(--color-primary-dark, #3a7bd5);
  border-color: var(--color-primary-dark, #3a7bd5);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.empty-state-actions .btn-secondary {
  background-color: white;
  color: var(--color-text);
  border-color: var(--border-color);
}

.empty-state-actions .btn-secondary:hover {
  background-color: var(--bg-light-gray);
  border-color: var(--color-text-muted);
}

/* Dark theme adjustments for empty state */
[data-theme="dark"] .shots-empty-state h3 {
  color: #e0e0e0;
}

[data-theme="dark"] .empty-state-actions .btn-secondary {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .empty-state-actions .btn-secondary:hover {
  background-color: #333;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments for empty state */
@media (max-width: 768px) {
  .shots-empty-state {
    min-height: 300px;
    padding: var(--spacing-lg);
  }

  .empty-state-icon i {
    font-size: 3rem;
  }

  .shots-empty-state h3 {
    font-size: 1.25rem;
  }
}