:root {
  color-scheme: dark;
  --ap-bg: #040811;
  --ap-card: rgba(10, 21, 40, 0.86);
  --ap-line: rgba(159, 219, 255, 0.18);
  --ap-text: #eef7ff;
  --ap-muted: rgba(238, 247, 255, 0.68);
  --ap-cyan: #2ee8c8;
  --ap-blue: #58a6ff;
  --ap-gold: #ffd37a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 4%, rgba(46, 232, 200, 0.16), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(88, 166, 255, 0.2), transparent 34%),
    linear-gradient(135deg, #02050b, #08101e 42%, #030611);
  color: var(--ap-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.ap-shell {
  width: min(1680px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 30px;
}

.ap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--ap-line);
  border-radius: 26px;
  background: rgba(5, 14, 28, 0.74);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.ap-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.ap-brand img {
  width: 112px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.ap-brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.ap-brand small {
  display: block;
  margin-top: 3px;
  color: var(--ap-muted);
}

.ap-headerActions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ap-headerActions a,
.ap-primary,
.ap-secondary,
.ap-ghost {
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ap-text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 10px 14px;
  text-decoration: none;
}

.ap-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--ap-cyan), var(--ap-blue));
  color: #03101c;
}

.ap-secondary {
  width: 100%;
}

.ap-ghost {
  padding: 8px 11px;
  color: rgba(238, 247, 255, 0.82);
}

.ap-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(420px, 1fr) minmax(260px, 340px);
  gap: 16px;
  margin-top: 16px;
}

.ap-panel,
.ap-playerCard,
.ap-now,
.ap-playlist {
  border: 1px solid var(--ap-line);
  border-radius: 26px;
  background: var(--ap-card);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.ap-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.ap-stage {
  display: grid;
  gap: 14px;
}

.ap-playerCard {
  overflow: hidden;
  padding: 10px;
}

.ap-playerCard .amezay-playerShell video {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
}

.ap-youtubeFrame {
  overflow: hidden;
  border-radius: 18px;
  background: #020812;
  aspect-ratio: 16 / 9;
}

.ap-youtubeFrame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.ap-sectionTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ap-gold);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ap-field {
  display: grid;
  gap: 6px;
  color: rgba(238, 247, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.ap-field input,
.ap-field select,
.ap-inline select,
.ap-panel textarea {
  width: 100%;
  border: 1px solid var(--ap-line);
  border-radius: 16px;
  background: rgba(2, 8, 18, 0.7);
  color: var(--ap-text);
  font: inherit;
  padding: 12px 13px;
  outline: none;
}

.ap-field input:focus,
.ap-field select:focus,
.ap-inline select:focus,
.ap-panel textarea:focus {
  border-color: rgba(46, 232, 200, 0.58);
  box-shadow: 0 0 0 4px rgba(46, 232, 200, 0.1);
}

.ap-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.ap-divider {
  height: 1px;
  margin: 4px 0;
  background: var(--ap-line);
}

.ap-note,
.ap-copy {
  margin: 0;
  color: var(--ap-muted);
  font-size: 13px;
  line-height: 1.65;
}

.ap-resultList,
.ap-playlist {
  display: grid;
  gap: 8px;
}

.ap-playlist,
.ap-now {
  padding: 14px;
}

.ap-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(159, 219, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.ap-item strong {
  display: block;
  font-size: 13px;
}

.ap-item small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--ap-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-item button {
  border: 0;
  border-radius: 999px;
  background: rgba(46, 232, 200, 0.14);
  color: #c8fff7;
  cursor: pointer;
  font-weight: 900;
  padding: 8px 10px;
}

.ap-now {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ap-now span {
  display: block;
  color: var(--ap-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ap-now strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(18px, 2vw, 28px);
}

.ap-nowActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ap-logoPreview {
  display: grid;
  place-items: center;
  min-height: 110px;
  border: 1px dashed rgba(159, 219, 255, 0.28);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.ap-logoPreview img {
  max-width: 170px;
  max-height: 72px;
  object-fit: contain;
}

.ap-contact {
  display: grid;
  gap: 8px;
}

.ap-contact a {
  color: #bfe8ff;
  font-weight: 800;
  text-decoration: none;
}

.ap-chip {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(46, 232, 200, 0.12);
  color: #bffbf2;
}

@media (max-width: 1160px) {
  .ap-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ap-shell {
    width: min(100% - 18px, 1680px);
    padding-top: 10px;
  }

  .ap-header,
  .ap-now {
    align-items: flex-start;
    flex-direction: column;
  }

  .ap-brand img {
    width: 96px;
  }
}
