:root {
  color-scheme: dark;
  font-family: Inter, Arial, sans-serif;
  background: #000;
  color: #f8fbff;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #07111f 0%, #000 100%);
}

.page {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  height: 100vh;
  padding: 0;
}

.banner-card {
  width: 100%;
  height: 100vh;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: hidden;
}

.public-page .banner-card {
  position: relative;
}

.banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ff5ea8;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-link {
  color: #71e0ff;
  text-decoration: none;
  font-weight: 600;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.media-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
  will-change: opacity, transform;
}

.media-frame.is-visible {
  z-index: 2;
  opacity: 1;
  transform: scale(1);
}

.media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.empty {
  color: #d6e3f3;
  padding: 24px 0;
}

.admin-page {
  align-items: start;
  height: auto;
  min-height: 100vh;
}

.admin-page .banner-card {
  height: auto;
  min-height: 100vh;
  background: rgba(7, 17, 31, 0.95);
  padding: 24px;
}

.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  color: white;
  background: #22c55e;
}

button.danger {
  background: #ef4444;
}

.slide-editor {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.slide-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  color: #d6e3f3;
}

input, select, textarea {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: #0f172a;
  color: white;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.slide-actions {
  display: flex;
  justify-content: end;
}

@media (max-width: 760px) {
  .content {
    padding: 24px 20px 28px;
  }

  .slide-row {
    grid-template-columns: 1fr;
  }
}
