.browse-page .browse-main {
  padding: 32px 16px 120px;
  width: min(1400px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.browse-hero {
  text-align: left;
  margin-bottom: 8px;
}

.browse-hero h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}

.browse-filters {
  background: rgba(8, 10, 17, 0.8);
  border-radius: 18px;
  padding: 24px;
}

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

.browse-filters__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.browse-filters__group input,
.browse-filters__group select {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(5, 7, 14, 0.7);
  padding: 10px 12px;
  color: #fff;
}

.browse-filters__group select {
  min-height: 140px;
}

.browse-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.browse-filters__group--options {
  gap: 12px;
}

.browse-filters__actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.browse-results__empty {
  background: rgba(8, 10, 17, 0.7);
  border-radius: 14px;
  padding: 20px;
}

.browse-more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.browse-more .browse-more__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  color: #05070e;
  text-decoration: none;
  box-shadow: 0 18px 32px rgba(39, 240, 201, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.browse-more .browse-more__btn:hover,
.browse-more .browse-more__btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(39, 240, 201, 0.35);
  color: #05070e;
}

.browse-more .browse-more__btn:focus-visible {
  outline: 2px solid rgba(39, 240, 201, 0.6);
  outline-offset: 3px;
}

.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.browse-card {
  background: rgba(8, 10, 17, 0.8);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.browse-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px var(--teal);
}

.browse-card__link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.browse-card__link:hover h3 {
  color: #fff;
}

.browse-card__link,
.browse-card__link * {
  text-decoration: none !important;
}
.browse-card__link:hover .browse-card__body h3 {
  color: #fff;
}

.browse-card__thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  overflow: hidden;
  background-color: #05070e;
}

.browse-card__thumb-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: inherit;
}

.browse-card__thumb-layer--base {
  opacity: 1;
}

.browse-card__thumb-layer--overlay {
  opacity: 0;
}

.browse-card__thumb-layer--overlay.is-visible {
  opacity: 1;
}

.browse-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(5, 7, 14, 0.75);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.browse-card__badge--accent {
  background: linear-gradient(120deg, var(--teal), var(--purple));
  color: #05070e;
}

.browse-card__body {
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(4, 6, 12, 0.85);
  height: 100%;
}

.browse-card__body h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.browse-card__title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.browse-card__categories {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.browse-card__footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.browse-card__footer span {
  display: inline-flex;
  align-items: center;
}

.browse-card__credits {
  font-weight: 600;
}

@media (max-width: 640px) {
  .browse-filters__form {
    grid-template-columns: 1fr;
  }

  .browse-filters__group select {
    min-height: 100px;
  }
}
.browse-page footer[role="contentinfo"] {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: rgba(5, 7, 14, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
