:root
{
  --bg-color: #0f172a;
  --text-color: #f8fafc;
  --text-muted: #94a3b8;
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --error-color: #ef4444;
  --success-color: #22c55e;
  --radius: 12px;
}

*
{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body
{
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.app-container
{
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.app-header
{
  text-align: center;
}

.app-header h1
{
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(to right, #60a5fa, #a855f7);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.app-header p
{
  color: var(--text-muted);
}

.drop-zone
{
  background: var(--glass-bg);
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.drop-zone:hover,
.drop-zone.drag-over
{
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.1);
}

.drop-zone .icon
{
  font-size: 3rem;
  margin-bottom: 1rem;
}

.drop-zone h2
{
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.drop-zone p
{
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.btn-primary
{
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: inherit;
}

.btn-primary:hover
{
  background-color: var(--primary-hover);
}

.error-message
{
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error-color);
  color: var(--error-color);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
}

.content-area
{
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: fadeIn 0.5s ease-out;
}

.glass-panel
{
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.metadata-card
{
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.cover-image-container
{
  width: 200px;
  height: 240px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-image-container img
{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-cover
{
  color: var(--text-muted);
  font-size: 0.9rem;
}

.metadata-info
{
  flex: 1;
}

.metadata-info h2
{
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.meta-row
{
  display: flex;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.75rem;
}

.meta-row:last-child
{
  border-bottom: none;
}

.meta-row .label
{
  width: 100px;
  color: var(--text-muted);
  font-weight: 500;
}

.meta-row .value
{
  flex: 1;
  font-weight: 400;
}

.monospace
{
  font-family: monospace;
  color: #a5b4fc;
}

.count-badge
{
  background: rgba(59, 130, 246, 0.2);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.manifest-list,
.sequence-list
{
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.manifest-item
{
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--glass-border);
  transition: all 0.2s;
}

.manifest-item:hover
{
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.manifest-item-header
{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.manifest-item-number
{
  background: var(--primary-color);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.manifest-item-id
{
  font-weight: 600;
  color: #60a5fa;
  flex: 1;
}

.manifest-item-role,
.resource-role
{
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.manifest-item-details
{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 36px;
}

.manifest-detail
{
  font-size: 0.85rem;
  display: flex;
  gap: 0.5rem;
}

.detail-label
{
  color: var(--text-muted);
  font-weight: 500;
  min-width: 80px;
}

.detail-value
{
  color: var(--text-color);
  word-break: break-all;
}

.sequence-item
{
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
}

.sequence-item:hover
{
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.sequence-number
{
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.sequence-info
{
  flex: 1;
}

.sequence-id
{
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 0.25rem;
}

.sequence-role
{
  font-size: 0.85rem;
  color: var(--text-muted);
}

.panel-header
{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.global-volume
{
  display: flex;
  align-items: center;
  gap: 1rem;
}

input[type="range"]
{
  width: 150px;
  accent-color: var(--primary-color);
}

.resources-list
{
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.resource-item
{
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: background 0.2s;
  border: 1px solid transparent;
}

.resource-item:hover
{
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-border);
}

.resource-info
{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.resource-header
{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.resource-id
{
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
}

.resource-href
{
  font-size: 0.85rem;
  color: var(--text-color);
  word-break: break-all;
}

.resource-link
{
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.resource-link:hover
{
  color: var(--primary-hover);
  text-decoration: underline;
}

.resource-preview
{
  margin-top: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.resource-preview img,
.resource-preview video
{
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 4px;
}

.resource-preview audio
{
  width: 100%;
  height: 40px;
}

::-webkit-scrollbar
{
  width: 8px;
}

::-webkit-scrollbar-track
{
  background: transparent;
}

::-webkit-scrollbar-thumb
{
  background: var(--glass-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover
{
  background: rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn
{
  from
  {
    opacity: 0;
    transform: translateY(10px);
  }

  to
  {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-small
{
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-small:hover
{
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-small:active
{
  transform: translateY(0);
}

@media (max-width: 600px)
{
  .metadata-card
  {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .meta-row
  {
    flex-direction: column;
    gap: 0.25rem;
  }

  .meta-row .label
  {
    width: 100%;
  }
}
