/* Detail View */
    .detail-view {
      display: none;
      animation: fadeIn 0.3s ease;
    }

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

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .detail-header {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 32px;
      margin-bottom: 24px;
    }

    .detail-nav {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 24px;
    }

    .back-btn {
      background: none;
      border: none;
      color: var(--text-secondary);
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 6px;
      transition: all 0.2s;
    }

    .back-btn:hover {
      background: var(--surface-hover);
      color: var(--text-primary);
    }

    .detail-title-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 16px;
    }

    .detail-title-left {
      display: flex;
      flex-direction: column;
      gap: 8px;
      align-items: flex-start;
    }

    .detail-status-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .detail-status-actions .btn,
    .detail-status-actions .btn-secondary,
    .detail-status-actions .btn-ghost {
      padding: 8px 12px;
      font-size: 12px;
    }

    .detail-status-actions {
      justify-content: flex-end;
    }

    .detail-status-actions button:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    .detail-title {
      font-family: 'Syne', sans-serif;
      font-size: 36px;
      font-weight: 700;
      letter-spacing: -0.02em;
    }

    .status-badge {
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
    }

    .status-badge::before {
      content: '';
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: currentColor;
    }

    .status-badge.empty {
      background: #f3f4f6;
      color: #6b7280;
    }

    .status-badge.planning {
      background: #fef3c7;
      color: #92400e;
    }

    .status-badge.ready {
      background: #d1fae5;
      color: #065f46;
    }

    .status-badge.done {
      background: #e0e7ff;
      color: #3730a3;
    }

    .detail-meta {
      display: flex;
      gap: 24px;
      flex-wrap: wrap;
    }

    .meta-item {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

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

    .meta-value {
      font-size: 16px;
      font-weight: 600;
      color: var(--text-primary);
    }

    /* Tabs */
    .tabs {
      display: flex;
      gap: 4px;
      border-bottom: 1px solid var(--border);
      margin-bottom: 32px;
      overflow-x: auto;
    }

    .tab {
      background: none;
      border: none;
      padding: 12px 20px;
      font-family: inherit;
      font-size: 14px;
      font-weight: 600;
      color: var(--text-secondary);
      cursor: pointer;
      position: relative;
      transition: all 0.2s;
      white-space: nowrap;
    }

    .tab:hover {
      color: var(--text-primary);
    }

    .tab.active {
      color: var(--accent);
    }

    .tab.active::after {
      content: '';
      position: absolute;
      bottom: -1px;
      left: 0;
      right: 0;
      height: 2px;
      background: var(--accent);
    }

    .tab-content {
      display: none;
    }

    .tab-content.active {
      display: block;
      animation: fadeIn 0.3s ease;
    }

    /* Section Layout */
    .section {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 24px;
      margin-bottom: 20px;
    }

    .section-number {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      background: linear-gradient(135deg, var(--accent), #7c3aed);
      color: white;
      border-radius: 50%;
      font-size: 14px;
      font-weight: 700;
      margin-right: 8px;
    }

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

    .section-title {
      font-family: 'Syne', sans-serif;
      font-size: 18px;
      font-weight: 700;
      letter-spacing: -0.01em;
      display: flex;
      align-items: center;
    }

    .section-count {
      font-size: 13px;
      color: var(--text-tertiary);
      font-weight: 500;
      display: block;
      margin-top: 4px;
    }

    .detail-content {
      animation: fadeIn 0.4s ease;
    }

    .btn-secondary {
      background: none;
      border: 1px solid var(--border);
      color: var(--text-primary);
      border-radius: 8px;
      padding: 8px 14px;
      font-family: inherit;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .btn-secondary:hover {
      background: var(--surface-hover);
      border-color: var(--border-strong);
    }

    /* Grid Layout for Sections */
    .grid-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }

    .grid-3 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
    }

    /* Item Cards */
    .item-card {
      background: var(--surface-hover);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 16px;
      transition: all 0.2s;
    }

    .item-card:hover {
      border-color: var(--border-strong);
      box-shadow: var(--shadow-sm);
    }

    .item-card.vertical-layout {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .item-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
    }

    .item-title {
      font-weight: 600;
      font-size: 15px;
      color: var(--text-primary);
    }

    .item-subtitle {
      font-size: 13px;
      color: var(--text-secondary);
      margin-top: 4px;
    }

    .tag {
      background: #f3f4f6;
      color: #4b5563;
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 600;
      display: inline-block;
    }

    /* Media Grid */
    .media-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      justify-content: stretch;
      align-items: start;
    }

    .media-item {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
      position: relative;
      overflow: hidden;
    }

    .media-item:hover {
      transform: translateY(-2px);
      border-color: var(--border-strong);
      box-shadow: var(--shadow-sm);
    }

    /* Checklist */
    .checklist {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .checklist-item {
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 12px 14px;
      background: var(--surface-hover);
      border: 1px solid var(--border);
      border-radius: 8px;
      transition: all 0.2s;
    }

    .checklist-item:hover {
      border-color: var(--border-strong);
    }

    .checklist-item.done {
      opacity: 0.6;
    }

    .checklist-item.done .checklist-text {
      text-decoration: line-through;
    }

    .checklist-row {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
    }

    .checkbox {
      width: 20px;
      height: 20px;
      border: 2px solid var(--border-strong);
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      cursor: pointer;
      transition: all 0.2s;
    }

    .checkbox.checked {
      background: var(--accent);
      border-color: var(--accent);
    }

    .checkbox.checked::after {
      content: '✓';
      color: white;
      font-size: 14px;
      font-weight: 700;
    }

    .checklist-text {
      flex: 1;
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .checklist-owner {
      font-size: 12px;
      color: var(--text-tertiary);
      white-space: nowrap;
    }

    .checklist-details {
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.5;
      padding-left: 32px;
      margin-top: 2px;
    }

    /* Comments */
    .comments {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .comment {
      padding: 16px;
      background: var(--surface-hover);
      border: 1px solid var(--border);
      border-radius: 10px;
      position: relative;
    }

    .comment.pinned {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
    }

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

    .comment-author {
      font-weight: 600;
      font-size: 14px;
    }

    .comment-time {
      font-size: 12px;
      color: var(--text-tertiary);
    }

    .comment-text {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    /* Progress Indicator */
    .progress-indicator {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 12px 16px;
      background: var(--surface-hover);
      border: 1px solid var(--border);
      border-radius: 10px;
      margin-bottom: 20px;
    }

    .step-indicator {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 1;
    }

    .step-dot {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--border);
      color: var(--text-tertiary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 13px;
      position: relative;
    }

    .step-dot.active {
      background: var(--accent);
      color: white;
    }

    .step-dot.complete {
      background: var(--status-ready);
      color: white;
    }

    .step-dot.complete::after {
      content: '✓';
      font-size: 14px;
    }

    .step-line {
      flex: 1;
      height: 2px;
      background: var(--border);
    }

    .step-line.complete {
      background: var(--status-ready);
    }

    .step-label {
      font-size: 12px;
      color: var(--text-tertiary);
      position: absolute;
      bottom: -20px;
      left: 50%;
      transform: translateX(-50%);
      white-space: nowrap;
    }

    /* Contextual Help */
    .context-help {
      background: #fef9c3;
      border: 1px solid #fde047;
      border-radius: 10px;
      padding: 12px 16px;
      margin-bottom: 16px;
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }

    .context-help-icon {
      font-size: 20px;
      flex-shrink: 0;
    }

    .context-help-text {
      font-size: 13px;
      color: #854d0e;
      line-height: 1.5;
    }

    /* Character Preview Card */
.character-preview {
      background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
      border: 2px solid #bae6fd;
      border-radius: 12px;
      padding: 24px;
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 24px;
      align-items: center;
    }

    .character-avatar {
      width: 240px;
      height: 240px;
      background: linear-gradient(135deg, #60a5fa, #3b82f6);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 48px;
      box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
      position: relative;
      overflow: hidden;
      background-size: cover;
      background-position: center;
    }

    .character-avatar.has-image {
      background: none;
    }

    .character-avatar::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
      animation: shimmer 3s infinite;
    }

    .character-avatar.has-image::before {
      display: none;
    }

.character-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 12px;
    }

    @media (max-width: 768px) {
      .character-preview {
        grid-template-columns: 1fr;
        text-align: center;
      }

      .character-avatar {
        margin: 0 auto;
      }

      .character-avatar img {
        width: 100%;
        max-width: 280px;
        height: auto;
      }
    }

    .character-image {
      width: 240px;
      height: 240px;
      border-radius: 12px;
      object-fit: cover;
      border: 1px solid var(--border);
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
      cursor: pointer;
    }

    @keyframes shimmer {
      0%, 100% { transform: translate(-50%, -50%); }
      50% { transform: translate(0%, 0%); }
    }

    .character-info {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .character-name {
      font-family: 'Syne', sans-serif;
      font-size: 24px;
      font-weight: 700;
      color: var(--text-primary);
      margin: 0;
    }

    .character-description {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.6;
      margin: 0;
    }

    .character-tags {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .character-tag {
      background: white;
      border: 1px solid #bae6fd;
      color: #0369a1;
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 600;
    }

    /* Form Preview */
    .form-preview {
      background: var(--surface-hover);
      border: 2px dashed var(--border);
      border-radius: 12px;
      padding: 20px;
      margin-top: 12px;
    }

    .form-group {
      margin-bottom: 16px;
    }

    .form-group:last-child {
      margin-bottom: 0;
    }

    .form-label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-secondary);
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .form-input {
      width: 100%;
      padding: 10px 14px;
      border: 1px solid var(--border);
      border-radius: 8px;
      font-family: inherit;
      font-size: 14px;
      transition: all 0.2s;
      background: var(--surface);
    }

    .form-input:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

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

    .form-actions {
      display: flex;
      gap: 12px;
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid var(--border);
    }

    /* Workflow Visualization */
    .workflow-visual {
      background: var(--surface-hover);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
      margin-bottom: 20px;
    }

    .workflow-steps {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 16px;
    }

    .workflow-step {
      text-align: center;
      padding: 16px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      transition: all 0.2s;
    }

    .workflow-step.completed {
      border-color: var(--status-ready);
      background: #ecfdf3;
    }

    .workflow-step.active {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    .workflow-step-icon {
      font-size: 32px;
      margin-bottom: 8px;
    }

    .workflow-step-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 4px;
    }

    .workflow-step-status {
      font-size: 11px;
      color: var(--text-tertiary);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      font-weight: 600;
    }

    .workflow-step.completed .workflow-step-status {
      color: var(--status-ready);
    }

    .workflow-step.active .workflow-step-status {
      color: var(--accent);
    }

    /* Thumbnails and Media */
    .item-thumb-wrap {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
    }

    .item-thumb {
      width: 100%;
      max-width: 320px;
      aspect-ratio: 1;
      border-radius: 10px;
      object-fit: cover;
      border: 1px solid var(--border);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

    .status-pill {
      display: inline-flex;
      align-items: center;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 600;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text-secondary);
      gap: 6px;
    }

    .status-pill::before {
      content: '';
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: currentColor;
    }

    .status-available, .status-accepted {
      background: #e0f2fe;
      border-color: #93c5fd;
      color: #075985;
    }

    .status-pending {
      background: #fef9c3;
      border-color: #fcd34d;
      color: #92400e;
    }

    .status-rejected {
      background: #fee2e2;
      border-color: #fca5a5;
      color: #991b1b;
    }

    .item-meta-row {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 6px;
    }

    .price-pill {
      background: #ecfdf3;
      border: 1px solid #bbf7d0;
      color: #166534;
      padding: 4px 10px;
      border-radius: 999px;
      font-weight: 700;
      font-size: 12px;
    }

    .shop-link-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--accent);
      font-weight: 600;
      text-decoration: none;
      font-size: 12px;
    }

    .shop-link-btn:hover {
      border-color: var(--accent);
      background: var(--surface-hover);
    }

    .shop-link-btn.small {
      padding: 4px 8px;
      font-size: 12px;
    }

    .budget-summary {
      background: var(--surface-hover);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 12px 16px;
      margin-bottom: 12px;
    }

    .budget-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .budget-title {
      font-weight: 700;
      font-size: 14px;
      color: var(--text-primary);
    }

    .budget-subtitle {
      font-size: 12px;
      color: var(--text-tertiary);
    }

    .budget-total {
      font-weight: 800;
      font-size: 18px;
      color: var(--text-primary);
    }

    .budget-list {
      margin-top: 10px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .budget-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 8px 10px;
    }

    .budget-name {
      font-weight: 600;
      color: var(--text-primary);
      flex: 1;
    }

    .budget-price {
      font-weight: 700;
      color: var(--text-secondary);
    }

    .budget-hint {
      font-size: 12px;
      color: var(--text-tertiary);
    }

    .budget-empty {
      font-size: 13px;
      color: var(--text-tertiary);
    }

    .media-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      justify-content: stretch;
      align-items: start;
    }

    .media-item {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
      position: relative;
      display: flex;
      flex-direction: column;
    }

    .media-item:hover {
      transform: translateY(-2px);
      border-color: var(--border-strong);
      box-shadow: var(--shadow-sm);
    }

    .media-delete {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 28px;
      height: 28px;
      border: none;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.6);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.2s ease, transform 0.2s ease;
      z-index: 2;
    }

    .media-item:hover .media-delete {
      opacity: 1;
    }

    .media-delete:hover {
      transform: scale(1.05);
      background: rgba(220, 38, 38, 0.85);
    }

    .media-edit {
      position: absolute;
      top: 8px;
      right: 44px;
      border: none;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.6);
      color: #fff;
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
      z-index: 2;
      padding: 6px 10px;
      font-size: 12px;
      font-weight: 700;
      line-height: 1;
    }

    .media-item:hover .media-edit {
      opacity: 1;
    }

    .media-edit:hover {
      transform: scale(1.03);
      background: rgba(37, 99, 235, 0.85);
    }

    .media-thumb {
      position: relative;
      width: 100%;
      aspect-ratio: 4 / 3;
      background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.2s ease;
    }

    .media-thumb img,
    .media-thumb video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .media-thumb video {
      background: #0b0b0b;
    }

    .media-thumb.hover {
      transform: scale(1.02);
    }

    .media-chip {
      position: absolute;
      top: 8px;
      left: 8px;
      background: rgba(0, 0, 0, 0.65);
      color: #fff;
      padding: 4px 8px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.02em;
      pointer-events: none;
    }

    .media-play {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: radial-gradient(circle at center, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
      color: #fff;
      font-size: 26px;
      opacity: 0;
      transition: opacity 0.2s ease;
      pointer-events: none;
    }

    .media-item:hover .media-play {
      opacity: 1;
    }

    .media-rating {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px 0;
      font-size: 12px;
      color: var(--text-secondary);
    }

    .media-rating select {
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 4px 6px;
      background: var(--surface);
      font-size: 12px;
      color: var(--text-primary);
    }

    .media-actions {
      display: flex;
      gap: 8px;
      padding: 8px 12px 0;
      flex-wrap: wrap;
    }

    .media-action-btn {
      padding: 6px 10px;
      font-size: 12px;
      line-height: 1;
    }

    .media-caption {
      padding: 10px 12px 12px;
      font-size: 13px;
      color: var(--text-secondary);
      min-height: 40px;
    }

    .media-caption-text {
      color: var(--text-secondary);
    }

    .media-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 8px;
    }

    .media-tag {
      background: var(--surface-hover);
      border: 1px solid var(--border);
      color: var(--text-secondary);
      padding: 3px 8px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 600;
      line-height: 1.2;
    }

    @media (max-width: 768px) {
      .detail-header {
        grid-template-columns: 1fr;
        gap: 12px;
      }

      .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }

      .grid-2,
      .grid-3 {
        grid-template-columns: 1fr;
      }

      .detail-content {
        padding: 0 4px;
      }

      .media-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    #lightboxOverlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.75);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 9999;
    }

    #lightboxOverlay.active {
      display: flex;
    }

    .lightbox-inner {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      max-width: 90vw;
      max-height: 90vh;
    }

    .lightbox-backdrop {
      position: absolute;
      inset: 0;
    }

    .lightbox-image,
    .lightbox-video {
      max-width: 90vw;
      max-height: 80vh;
      border-radius: 12px;
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
      z-index: 1;
      background: #000;
    }

    .lightbox-video {
      display: none;
    }

    .lightbox-close {
      position: absolute;
      top: 20px;
      right: 20px;
      background: rgba(0, 0, 0, 0.6);
      color: #fff;
      border: none;
      font-size: 24px;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      cursor: pointer;
      z-index: 2;
    }

    .lightbox-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0, 0, 0, 0.6);
      color: #fff;
      border: none;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      cursor: pointer;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      transition: background 0.2s ease, transform 0.2s ease;
    }

    .lightbox-nav.lightbox-prev {
      left: 24px;
    }

    .lightbox-nav.lightbox-next {
      right: 24px;
    }

    .lightbox-nav:hover {
      background: rgba(255, 255, 255, 0.15);
      transform: translateY(-50%) scale(1.05);
    }

    .lightbox-rating {
      position: absolute;
      bottom: 12px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(0, 0, 0, 0.65);
      color: #fff;
      padding: 8px 12px;
      border-radius: 999px;
      display: flex;
      align-items: center;
      gap: 8px;
      z-index: 2;
      font-size: 14px;
    }

    .lightbox-rating select {
      background: #111;
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 8px;
      padding: 4px 6px;
    }

    .image-tooltip {
      position: fixed;
      pointer-events: none;
      z-index: 9998;
      width: auto;
      height: auto;
      max-width: 80vw;
      max-height: 80vh;
      background-size: contain;
      background-position: center;
      background-repeat: no-repeat;
      border: 1px solid var(--border-strong);
      border-radius: 12px;
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
      display: none;
      padding: 0;
    }
