.releases-page {
  min-height: calc(100vh - 80px);
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(23, 127, 249, 0.12), transparent),
    linear-gradient(180deg, #f7faff 0%, #ffffff 40%, #f5f8fc 100%);
  padding: 48px 24px 80px;
}

.releases-container {
  max-width: 1080px;
  margin: 0 auto;
}

.releases-hero {
  text-align: center;
  margin-bottom: 36px;
}

.releases-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(23, 127, 249, 0.1);
  color: #177ff9;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

.releases-hero-badge svg {
  flex-shrink: 0;
}

.releases-hero-title {
  font-size: 36px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.releases-hero-subtitle {
  font-size: 16px;
  color: #64748b;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

.releases-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 40px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  position: relative;
}

.releases-panel.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(2px);
  z-index: 2;
}

.releases-panel.is-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid rgba(23, 127, 249, 0.15);
  border-top-color: #177ff9;
  border-radius: 50%;
  animation: releases-spin 0.8s linear infinite;
  z-index: 3;
}

@keyframes releases-spin {
  to {
    transform: rotate(360deg);
  }
}

.releases-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #fafcff 0%, #ffffff 100%);
}

.releases-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.crumb,
.crumb-root {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: #177ff9;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.crumb:hover,
.crumb-root:hover {
  background: rgba(23, 127, 249, 0.08);
}

.crumb-current {
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 8px;
}

.crumb-sep {
  color: #cbd5e1;
  font-size: 14px;
  user-select: none;
}

.releases-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.releases-stats-count {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.releases-stats-updated {
  font-size: 12px;
  color: #94a3b8;
}

.releases-table-wrap {
  overflow-x: auto;
}

.releases-table {
  width: 100%;
  border-collapse: collapse;
}

.releases-table thead th {
  text-align: left;
  padding: 14px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  white-space: nowrap;
}

.releases-table tbody tr {
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  transition: background 0.15s ease;
}

.releases-table tbody tr:last-child {
  border-bottom: none;
}

.releases-row-folder {
  cursor: pointer;
}

.releases-row-folder:hover,
.releases-row-file:hover {
  background: rgba(23, 127, 249, 0.04);
}

.releases-table td {
  padding: 16px 24px;
  vertical-align: middle;
  font-size: 14px;
  color: #334155;
}

.col-name {
  min-width: 280px;
}

.col-size,
.col-date {
  white-space: nowrap;
  color: #64748b;
}

.col-action {
  text-align: right;
  white-space: nowrap;
}

.name-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.entry-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
}

.icon-folder {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.icon-exe {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.icon-apk {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.icon-zip {
  background: rgba(168, 85, 247, 0.12);
  color: #9333ea;
}

.icon-json {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.icon-file {
  background: rgba(148, 163, 184, 0.15);
  color: #64748b;
}

.entry-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.entry-label {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}

.entry-link {
  text-decoration: none;
  transition: color 0.15s ease;
}

.entry-link:hover {
  color: #177ff9;
}

.entry-filename {
  font-size: 12px;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-hint {
  font-size: 13px;
  color: #177ff9;
  font-weight: 500;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #177ff9;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(23, 127, 249, 0.25);
}

.download-btn:hover {
  background: #1268cc;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(23, 127, 249, 0.3);
}

.releases-empty,
.releases-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 56px 24px;
  color: #94a3b8;
  text-align: center;
}

.releases-error {
  color: #ef4444;
}

.releases-error p {
  color: #64748b;
  font-size: 14px;
}

.retry-btn {
  margin-top: 4px;
  padding: 8px 18px;
  border: none;
  border-radius: 10px;
  background: #177ff9;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.retry-btn:hover {
  background: #1268cc;
}

.releases-footer-note {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

.releases-footer-note a {
  color: #177ff9;
  text-decoration: none;
}

.releases-footer-note a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .releases-page {
    padding: 24px 16px 64px;
  }

  .releases-hero-title {
    font-size: 28px;
  }

  .releases-toolbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .releases-stats {
    align-items: flex-start;
  }

  .releases-table thead {
    display: none;
  }

  .releases-table tbody tr {
    display: block;
    padding: 12px 16px;
  }

  .releases-table td {
    display: block;
    padding: 4px 0;
    border: none;
  }

  .col-action {
    text-align: left;
    padding-top: 10px;
  }

  .col-size::before,
  .col-date::before {
    content: attr(data-label) ': ';
    font-weight: 600;
    color: #94a3b8;
  }
}
