:root {
  --bg: #070404;
  --border: rgba(255, 168, 92, 0.2);
  --text: #fff4e8;
  --muted: #d6b69a;
  --orange-1: #ffb057;
  --orange-2: #ff8d2d;
  --orange-3: #df5c12;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #221108 0%, #0a0605 45%, #040303 100%);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

#sky-canvas,
.aurora,
.video-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#sky-canvas {
  z-index: 0;
}

.video-overlay {
  z-index: 1;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 153, 64, 0.08), transparent 30%),
    radial-gradient(circle at 80% 15%, rgba(255, 212, 121, 0.06), transparent 24%),
    radial-gradient(circle at 50% 75%, rgba(255, 118, 33, 0.08), transparent 26%),
    linear-gradient(to bottom, rgba(2, 1, 1, 0.15), rgba(7, 3, 2, 0.45));
}

.aurora {
  z-index: 0;
  filter: blur(50px);
  mix-blend-mode: screen;
  opacity: 0.35;
}

.aurora-one {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 168, 87, 0.48), transparent 38%),
    radial-gradient(circle at 60% 10%, rgba(255, 214, 130, 0.22), transparent 25%);
  animation: auroraMove 14s ease-in-out infinite alternate;
}

.aurora-two {
  background:
    radial-gradient(circle at 85% 28%, rgba(255, 114, 33, 0.36), transparent 34%),
    radial-gradient(circle at 50% 0%, rgba(255, 189, 112, 0.2), transparent 20%);
  animation: auroraMoveTwo 18s ease-in-out infinite alternate;
}

.app-shell {
  position: relative;
  z-index: 2;
  padding: 24px 20px 120px;
}

.section {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 32px 0;
}

.section-wide {
  width: min(1120px, 100%);
}

.hero,
.page-hero {
  min-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-topbar,
.glass-card,
.glass-footer {
  background: linear-gradient(180deg, rgba(37, 16, 10, 0.72), rgba(15, 8, 6, 0.72));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-topbar {
  padding: 14px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.brand-pill,
.section-kicker,
.eyebrow,
.helper-text,
.stat-label,
.manager-meta {
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hero-grid,
.music-grid,
.journal-grid,
.about-grid,
.admin-dashboard-grid,
.admin-summary-grid,
.editor-inline-grid {
  display: grid;
  gap: 26px;
}

.hero-grid {
  grid-template-columns: 1.25fr 0.95fr;
  align-items: center;
}

.music-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.journal-grid {
  grid-template-columns: 1.08fr 0.92fr;
  align-items: start;
}

.about-grid {
  grid-template-columns: repeat(2, 1fr);
}

.admin-dashboard-grid {
  grid-template-columns: repeat(3, 1fr);
}

.admin-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 220px));
  margin-top: 24px;
}

.editor-inline-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-copy h1,
.page-hero-card h1,
.section-heading h2,
.about-grid h2,
.featured-story h3,
.playlist-overview h3,
.dashboard-card h2,
.editor-form h3,
.post-list-header h3 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.hero-copy h1,
.page-hero-card h1 {
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  margin: 0 0 18px;
  text-shadow: 0 0 25px rgba(255, 145, 62, 0.18);
}

.section-heading {
  max-width: 840px;
  margin-bottom: 28px;
}

.section-heading h2,
.about-grid h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 0 0 12px;
}

.lead,
.section-heading p,
.panel-copy,
.panel-note,
.post-list-item p,
.manager-summary,
.story-content p,
.about-grid p,
#currentArtist,
.dashboard-card p,
.page-hero-card p {
  color: #f2d7bc;
  line-height: 1.8;
  font-size: 1.02rem;
}

.page-hero-card,
.hero-panel,
.playlist-overview,
.player-panel,
.featured-story,
.post-list-panel,
.about-grid article,
.dashboard-card,
.summary-card,
.editor-form-wide {
  padding: 24px;
  border-radius: var(--radius);
}

.section-wide .section-heading {
  max-width: none;
}

.logo-wrap {
  width: 150px;
  margin-bottom: 18px;
}

.phi-logo {
  width: 100%;
  display: block;
  filter: drop-shadow(0 10px 28px rgba(255, 132, 29, 0.45));
}

.hero-actions,
.form-actions,
.track-tags,
.track-actions,
.manager-item-actions,
.topbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 26px;
}

.btn,
.install-btn,
.small-btn {
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover,
.install-btn:hover,
.nav-item:hover,
.small-btn:hover,
.dashboard-card:hover {
  transform: translateY(-2px);
}

.primary,
.install-btn {
  background: linear-gradient(135deg, var(--orange-1), var(--orange-2), var(--orange-3));
  color: #1d0d05;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(255, 124, 24, 0.35);
}

.secondary,
.small-btn,
.dashboard-card {
  color: var(--text);
  background: rgba(255, 151, 73, 0.08);
  border: 1px solid rgba(255, 170, 96, 0.22);
}

.small-btn {
  padding: 10px 14px;
}

.small-btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.small-btn.danger {
  border-color: rgba(255, 124, 92, 0.32);
  background: rgba(255, 102, 82, 0.12);
}

.panel-header {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-1), var(--orange-3));
}

.quote-box {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 147, 73, 0.06);
  border: 1px solid rgba(255, 161, 89, 0.14);
  margin-bottom: 20px;
}

.quote-box p {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
}

.stats-grid,
.overview-stats,
.playback-stats {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(2, 1fr);
}

.overview-stats {
  grid-template-columns: repeat(3, 1fr);
  margin: 26px 0 18px;
}

.playback-stats {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 18px;
}

.stats-grid div,
.overview-stat,
.playback-stats div,
.summary-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 136, 54, 0.05);
  border: 1px solid rgba(255, 166, 94, 0.12);
}

.stats-grid strong,
.overview-stat strong,
.playback-stats strong,
.summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.now-playing {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.current-cover {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255, 173, 101, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

audio {
  width: 100%;
  margin-bottom: 18px;
  filter: sepia(40%) hue-rotate(-10deg) saturate(120%);
}

.playlist,
.post-list,
.manager-list,
.editor-stack {
  display: grid;
  gap: 12px;
}

.track-item,
.post-list-item,
.manager-item {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 136, 54, 0.05);
  border: 1px solid rgba(255, 166, 94, 0.12);
}

.track-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
}

.track-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 16px;
}

.track-meta strong,
#currentTitle {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.track-meta span {
  display: block;
  color: #f2d7bc;
}

.listen-pill,
.status-pill {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.listen-pill {
  border: 1px solid rgba(255, 168, 92, 0.16);
  background: rgba(255, 145, 62, 0.06);
  color: #f8dec4;
}

.status-pill {
  background: rgba(255, 145, 62, 0.08);
}

.status-live {
  color: #ffd8b0;
  border: 1px solid rgba(255, 168, 92, 0.22);
}

.status-draft {
  color: #e3c0aa;
  border: 1px solid rgba(227, 192, 170, 0.18);
}

.featured-media {
  margin-bottom: 20px;
}

.featured-media img,
.featured-media iframe,
.featured-media video,
.media-placeholder {
  width: 100%;
  min-height: 260px;
  border-radius: 24px;
  border: 1px solid rgba(255, 173, 101, 0.16);
  background: rgba(255, 151, 73, 0.05);
}

.featured-media img,
.featured-media iframe,
.featured-media video {
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.featured-media iframe {
  border: 0;
}

.media-placeholder {
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #f2d7bc;
  line-height: 1.7;
}

.featured-story h3 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  margin: 0 0 12px;
}

.story-content {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.post-list-header {
  margin-bottom: 18px;
}

.post-list-item h4,
.manager-item h4,
.dashboard-card h2,
.editor-form h3 {
  margin: 8px 0 10px;
  font-size: 1.16rem;
}

.playlist-empty,
.post-empty {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 136, 54, 0.05);
  border: 1px solid rgba(255, 166, 94, 0.12);
  color: #f2d7bc;
  line-height: 1.8;
}

.manager-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-card {
  display: block;
}

.editor-form {
  display: grid;
  gap: 14px;
}

.editor-form-wide {
  width: 100%;
}

.admin-login-section {
  display: grid;
  place-items: center;
}

.admin-login-card {
  width: min(540px, 100%);
}

.editor-span-2 {
  grid-column: span 2;
}

label {
  display: grid;
  gap: 8px;
  color: #f6dfcb;
}

input,
textarea {
  width: 100%;
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 170, 96, 0.14);
}

textarea {
  resize: vertical;
  min-height: 132px;
}

input[type='file'] {
  padding: 12px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

.form-message {
  min-height: 1.2em;
}

.message-error {
  color: #ffb6a4;
}

.app-footer {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  border-radius: 28px;
  padding: 10px;
  display: grid;
  gap: 8px;
  z-index: 5;
}

.app-footer-three {
  width: min(480px, calc(100% - 24px));
  grid-template-columns: repeat(3, 1fr);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  background: transparent;
  color: #f3d7bb;
  border-radius: 20px;
}

.nav-item.active,
.nav-item:focus-visible {
  background: rgba(255, 150, 70, 0.1);
  outline: none;
}

.reveal-up {
  opacity: 0;
  transform: translateY(26px);
  animation: revealUp 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.3s;
}

.floaty {
  animation: floaty 5s ease-in-out infinite;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes auroraMove {
  from {
    transform: translate3d(-4%, -2%, 0) scale(1);
  }

  to {
    transform: translate3d(6%, 3%, 0) scale(1.08);
  }
}

@keyframes auroraMoveTwo {
  from {
    transform: translate3d(3%, -3%, 0) scale(1);
  }

  to {
    transform: translate3d(-5%, 4%, 0) scale(1.1);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .music-grid,
  .journal-grid,
  .about-grid,
  .admin-dashboard-grid,
  .admin-summary-grid,
  .editor-inline-grid {
    grid-template-columns: 1fr;
  }

  .editor-span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 720px) {
  .stats-grid,
  .overview-stats,
  .playback-stats {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-hero-card h1 {
    font-size: clamp(2.8rem, 15vw, 5rem);
  }

  .manager-item-header,
  .hero-topbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding-inline: 14px;
  }

  .now-playing {
    grid-template-columns: 1fr;
  }

  .track-item {
    grid-template-columns: 56px 1fr;
  }

  .track-actions {
    grid-column: 1 / -1;
  }

  .current-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .featured-media img,
  .featured-media iframe,
  .featured-media video,
  .media-placeholder {
    min-height: 200px;
  }
}
body[data-page='who-am-i'] .page-hero {
  min-height: auto !important;
  justify-content: flex-start !important;
  padding-top: 8px !important;
  padding-bottom: 6px !important;
}

body[data-page='who-am-i'] .hero-topbar {
  margin-bottom: 14px !important;
}

body[data-page='who-am-i'] .page-hero-card {
  margin-bottom: 0 !important;
}

body[data-page='who-am-i'] #journal.section {
  padding-top: 6px !important;
  margin-top: 0 !important;
}
