.logos-by-year-panel {
  padding: 14px;
  min-width: 0;
}

.logos-by-year-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.logos-by-year-select {
  min-width: 118px;
}

.logos-by-year-nav {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: inherit;
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.logos-by-year-nav:hover:not(:disabled) {
  background: rgba(255,255,255,0.08);
}

.logos-by-year-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.logos-by-year-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  align-items: center;
  justify-items: center;
  column-gap: 14px;
  row-gap: 2px;
  min-height: 260px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.018);
}

.logos-by-year-box img {
  display: block;
  width: 100%;
  max-width: 165px;
  height: 150px;
  object-fit: contain;
}

.logos-by-year-box.empty-state {
  display: grid;
  place-items: center;
}

@media (max-width: 680px) {
  .logos-by-year-panel {
    padding: 12px;
  }

  .logos-by-year-controls {
    gap: 6px;
  }

  .logos-by-year-nav {
    width: 42px;
    height: 42px;
  }

  .logos-by-year-box {
    grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
    column-gap: 10px;
    row-gap: 0;
    padding: 14px 10px;
  }

  .logos-by-year-box img {
    max-width: 125px;
    height: 112px;
  }
}
