:root {
  --form-shell-max: 980px;
  --form-card-max: 980px;

  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-border-soft: rgba(255, 255, 255, 0.10);

  --text-main: #f5f7fa;
  --text-soft: rgba(245, 247, 250, 0.84);
  --text-muted: rgba(245, 247, 250, 0.65);

  --accent: #7c5cff;
  --accent-light: #a28bff;
  --accent-glow: rgba(124, 92, 255, 0.28);

  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.22);
  --shadow-sm: 0 8px 18px rgba(0, 0, 0, 0.16);

  --blur-lg: blur(24px);
  --blur-md: blur(16px);
  --blur-sm: blur(10px);
}

.station-genre-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.station-genre-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}

.station-genre-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.station-genre-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.station-genre-chip:hover span {
  transform: translateY(-1px);
  border-color: rgba(160,130,255,0.35);
  background: rgba(255,255,255,0.09);
}

.station-genre-chip input[type="checkbox"]:checked + span {
  background: linear-gradient(135deg, rgba(151,119,255,0.95), rgba(122,92,255,0.95));
  border-color: rgba(171,145,255,0.95);
  color: #fff;
  box-shadow: 0 10px 24px rgba(124,92,255,0.22);
}

.station-genre-chip input[type="checkbox"]:focus-visible + span {
  outline: 2px solid rgba(255,255,255,0.75);
  outline-offset: 2px;
}

.station-genre-extra-wrap[hidden] {
  display: none !important;
}

.station-genre-chip-grid-extra {
  margin-top: 10px;
}

.station-genre-toggle-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
}

.station-genre-toggle-btn {
  min-width: 180px;
}

/* --------------------------
   Header / Hero
--------------------------- */

.station-hero {
  width: min(var(--form-shell-max), calc(100% - 32px));
  margin: 24px auto 20px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.10),
    rgba(255,255,255,0.05)
  );
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255,255,255,0.10);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
}

.station-hero-top {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 92px;
  padding: 16px 24px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.04)
  );
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.station-hero-logo {
  height: 62px;
  width: auto;
  display: block;
}

.station-hero-banner {
  position: relative;
  min-height: 220px;
  background:
    linear-gradient(
      90deg,
      rgba(8, 11, 18, 0.28) 0%,
      rgba(8, 11, 18, 0.12) 45%,
      rgba(8, 11, 18, 0.24) 100%
    ),
    url('/images/andrzejrembowski-radio-4292411.jpg');
  background-size: cover;
  background-position: center;
}

.station-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.02) 0%,
      rgba(0,0,0,0.10) 100%
    );
  pointer-events: none;
}

.station-hero-overlay {
  position: relative;
  z-index: 1;
  min-height: 220px;
  display: flex;
  align-items: center;
  padding: 26px 28px;
}

.station-hero-content {
  max-width: 620px;
  padding: 20px 24px;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.18),
    rgba(255,255,255,0.11)
  );
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,255,255,0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.station-hero-content h1 {
  margin: 0 0 10px 0;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 3px 10px rgba(0,0,0,0.16);
}

.station-hero-content p {
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.45;
  text-shadow: 0 2px 8px rgba(0,0,0,0.14);
}

/* --------------------------
   Formular Card
--------------------------- */

.station-form-wrap {
  width: min(var(--form-card-max), calc(100% - 32px));
  margin: 0 auto 40px;
}

.station-form-card {
  position: relative;
  width: 100%;
  padding: 22px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.06)
  );
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  overflow: hidden;
}

.station-form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 28%),
    radial-gradient(circle at top right, rgba(124,92,255,0.10) 0%, transparent 28%);
}

.station-form-card > * {
  position: relative;
  z-index: 1;
}

.station-form-title {
  margin: 0 0 8px 0;
  color: #ffffff;
  letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.1;
}

.station-form-subtitle {
  margin: 0 0 20px 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.station-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.station-form-field {
  min-width: 0;
}

.station-form-field.full {
  grid-column: 1 / -1;
}

.station-form-label {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.3;
}

.station-form-help {
  color: var(--text-muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.station-divider {
  height: 1px;
  border: 0;
  margin: 6px 0 2px;
  background: rgba(255,255,255,0.14);
}

.station-section-title {
  margin: 4px 0 0;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
}

/* --------------------------
   Inputs
--------------------------- */

.station-input,
.station-textarea,
.station-select,
.station-file {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--glass-border-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 4px 10px rgba(0,0,0,0.10);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
}

.station-input::placeholder,
.station-textarea::placeholder {
  color: rgba(245, 247, 250, 0.48);
}

.station-input:focus,
.station-textarea:focus,
.station-select:focus,
.station-file:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow:
    0 0 0 3px rgba(124, 92, 255, 0.18),
    0 0 16px rgba(124, 92, 255, 0.10);
}

.station-textarea {
  min-height: 120px;
  resize: vertical;
}

.station-textarea-sm {
  min-height: 100px;
}

.station-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.9) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.9) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.station-select option {
  background: #2b2f36;
  color: #ffffff;
}

.station-file {
  padding: 10px 12px;
}

/* --------------------------
   Meldungen
--------------------------- */

.station-alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  line-height: 1.5;
  border: 1px solid rgba(255,255,255,0.12);
}

.station-alert-error {
  background: rgba(255, 90, 90, 0.12);
  border-color: rgba(255, 90, 90, 0.24);
  color: #ffd4d4;
}

.station-alert-success {
  background: rgba(78, 201, 140, 0.12);
  border-color: rgba(78, 201, 140, 0.24);
  color: #d8ffe7;
}

/* --------------------------
   Buttons
--------------------------- */

.station-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.station-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    box-shadow 0.16s ease;
  box-shadow:
    0 10px 20px rgba(124, 92, 255, 0.26),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.station-btn:hover {
  color: #fff;
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow:
    0 14px 26px rgba(124, 92, 255, 0.32),
    0 0 16px rgba(124, 92, 255, 0.14);
}

.station-btn-secondary {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.14),
    rgba(255,255,255,0.08)
  );
  color: #fff;
  border: 1px solid var(--glass-border);
  box-shadow:
    0 8px 18px rgba(0,0,0,0.14),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.station-btn-secondary:hover {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.18),
    rgba(255,255,255,0.10)
  );
}

.station-required::after {
  content: " *";
  color: #ffb3cf;
}

/* --------------------------
   Responsive
--------------------------- */

@media (max-width: 900px) {
  .station-hero,
  .station-form-wrap {
    width: min(var(--form-shell-max), calc(100% - 24px));
  }

  .station-form-card {
    padding: 18px;
    border-radius: 16px;
  }

  .station-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .station-hero {
    margin: 20px auto 18px;
    border-radius: 20px;
  }

  .station-hero-top {
    min-height: 82px;
    padding: 14px 18px;
  }

  .station-hero-logo {
    height: 54px;
  }

  .station-hero-banner,
  .station-hero-overlay {
    min-height: 210px;
  }

  .station-hero-overlay {
    padding: 20px;
  }

  .station-hero-content {
    max-width: 500px;
    padding: 18px 20px;
    border-radius: 18px;
  }
}

@media (max-width: 640px) {
  .station-hero,
  .station-form-wrap {
    width: min(var(--form-shell-max), calc(100% - 16px));
  }

  .station-hero {
    margin: 16px auto;
    border-radius: 18px;
  }

  .station-hero-top {
    min-height: 72px;
    padding: 12px 14px;
  }

  .station-hero-logo {
    height: 42px;
  }

  .station-hero-banner,
  .station-hero-overlay {
    min-height: 180px;
  }

  .station-hero-overlay {
    align-items: flex-end;
    padding: 14px;
  }

  .station-hero-content {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    border-radius: 16px;
  }

  .station-hero-content h1 {
    margin-bottom: 8px;
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .station-hero-content p {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .station-form-wrap {
    margin-bottom: 24px;
  }

  .station-form-card {
    padding: 14px;
    border-radius: 14px;
  }

  .station-form-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .station-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .station-btn {
    width: 100%;
  }
}