* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 194, 224, 0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(46, 125, 246, 0.16), transparent 35%),
    linear-gradient(135deg, #061826, #0b2c44, #061826);
  color: #f4f8fb;
  min-height: 100vh;
}

.container {
  width: min(1180px, 92%);
  margin: auto;
  padding: 60px 0;
}

.hero {
  text-align: center;
  margin-bottom: 40px;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid rgba(0, 194, 224, 0.45);
  border-radius: 999px;
  color: #00c2e0;
  background: rgba(0, 194, 224, 0.08);
  margin-bottom: 18px;
  font-size: 14px;
  box-shadow: 0 0 22px rgba(0, 194, 224, 0.12);
}

h1 {
  font-size: clamp(38px, 5vw, 58px);
  margin: 0;
  letter-spacing: -1px;
}

.hero p {
  color: #b8c7d3;
  font-size: 18px;
  max-width: 760px;
  margin: 18px auto 0;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.stats div {
  min-width: 170px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
}

.stats span {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #00c2e0;
}

.stats small {
  color: #9db4c5;
}

.panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 30px;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.panel-header h2 {
  margin: 0;
  font-size: 28px;
}

#resultsInfo {
  color: #9db4c5;
  margin: 8px 0 0;
  font-size: 14px;
}

.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

input,
select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: white;
  outline: none;
  min-width: 210px;
}

input::placeholder {
  color: #91a5b3;
}

select {
  cursor: pointer;
}

.list-container {
  display: grid;
  gap: 14px;
}

.card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  transition: 0.22s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,194,224,0.13), transparent 45%);
  opacity: 0;
  transition: 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.11);
  border-color: rgba(0,194,224,0.35);
  box-shadow: 0 14px 34px rgba(0,0,0,0.2);
}

.card:hover::before {
  opacity: 1;
}

.card-content,
.actions {
  position: relative;
  z-index: 1;
}

.card-title {
  font-weight: 700;
  font-size: 16px;
}

.card-meta {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 194, 224, 0.12);
  color: #00c2e0;
  font-size: 12px;
  border: 1px solid rgba(0, 194, 224, 0.2);
}

.card-url {
  color: #9db4c5;
  font-size: 13px;
  margin-top: 8px;
  word-break: break-all;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

a,
button {
  border: none;
  border-radius: 11px;
  padding: 10px 13px;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  transition: 0.18s ease;
}

.open {
  background: #00c2e0;
  color: #00131f;
}

.download {
  background: rgba(0, 194, 224, 0.18);
  color: #e9fbff;
}

.copy {
  background: rgba(255,255,255,0.12);
  color: white;
}

a:hover,
button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.empty {
  text-align: center;
  color: #9db4c5;
  padding: 30px;
}

footer {
  text-align: center;
  color: #8da2b0;
  margin-top: 28px;
  font-size: 14px;
}

@media (max-width: 760px) {
  .panel-header,
  .card {
    flex-direction: column;
    align-items: stretch;
  }

  .controls {
    justify-content: stretch;
  }

  input,
  select {
    width: 100%;
  }

  .actions {
    justify-content: flex-start;
  }
}

.custom-select {
  position: relative;
  min-width: 230px;
}

#yearButton {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.28);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.arrow {
  color: #00c2e0;
  font-size: 18px;
}

.select-options {
  display: none;
  position: absolute;
  top: 115%;
  left: 0;
  right: 0;
  background: #092235;
  border: 1px solid rgba(0,194,224,0.25);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  z-index: 50;
}

.select-options.show {
  display: block;
}

.select-option {
  padding: 13px 16px;
  cursor: pointer;
  color: #dcecf5;
  transition: 0.18s ease;
}

.select-option:hover,
.select-option.active {
  background: rgba(0,194,224,0.18);
  color: #00c2e0;
}

.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(0, 194, 224, 0.95);
  color: #00131f;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  transform: translateY(20px);
  opacity: 0;
  transition: 0.3s ease;
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}
