/* App shell */
.app-shell {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  min-height: 100vh;
}

/* Header / footer */
.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 1rem;
  text-align: center;
  color: var(--color-header-footer-text);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.05em;
  background: linear-gradient(
    135deg,
    var(--color-header-footer-start),
    var(--color-header-footer-end)
  );
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.site-footer {
  flex-direction: column;
  justify-content: center;
}

/* Header stream info */
.stream-info {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-align: center;
}

.stream-info__current-song {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--font-size-header);
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  transform: rotate(0);
  word-break: break-word;
  overflow-wrap: break-word;
}

.stream-info__link {
  display: inline-block;
  max-width: 100%;
  color: var(--color-primary);
  text-decoration: none;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  animation: colorPulse 3s ease-in-out infinite;
}

.stream-info__link:hover,
.stream-info__link:focus {
  animation-play-state: paused !important;
}

/* Footer action */
.footer-action {
  margin: 0 0 0.5rem;
  max-width: 160px;
  color: var(--color-header-footer-text);
  font-size: 1rem;
  font-weight: 700;
  writing-mode: horizontal-tb;
  cursor: pointer;
  transition: text-shadow var(--motion-base) var(--motion-ease);
}

.footer-action a {
  display: inline-block;
  color: inherit !important;
  text-decoration: none !important;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.footer-action a:link,
.footer-action a:visited,
.footer-action a:hover,
.footer-action a:active {
  color: inherit !important;
  text-decoration: none !important;
}

.footer-action:hover,
.footer-action:active,
.footer-action.glow {
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.6),
    0 0 12px rgba(255, 255, 255, 0.4);
}

/* Main layout */
.site-main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #eaeaea;
}

/* Shared module / card styling */
.module {
  padding: var(--module-padding-y) var(--module-padding-x);
  color: var(--color-header-footer-text);
  background: var(--color-bg-neutral);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition:
    transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-base) var(--motion-ease);
}

.module:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

/* Module internals */
.module__header {
  display: flex;
  flex-direction: column;
  gap: var(--module-header-gap);
}

.module__header--centered {
  align-items: center;
  text-align: center;
}

.module__body {
  min-width: 0;
}

.module__body--static {
  display: block;
}

/* Shared heading rhythm */
.module__title {
  margin: 0;
}

.module__title--hero {
  text-align: center;
}

.module__title-text {
  display: inline-block;
}

/* Shared paragraph rhythm inside modules */
.module p {
  margin: 0;
  color: var(--color-text-white);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  text-shadow: none;
}

/* Hero stream heading */
.module--stream .module__title--hero {
  font-family: var(--font-heading);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.095em;
  color: var(--color-neon-blue);
  text-shadow:
    0 0 6px var(--color-neon-blue),
    0 0 12px var(--color-electric-magenta),
    0 0 24px var(--color-electric-magenta);
  transition:
    text-shadow var(--motion-base) var(--motion-ease),
    color var(--motion-base) var(--motion-ease);
}

.module--stream .module__title--hero:hover,
.module--stream .module__title--hero:focus-within {
  text-shadow:
    0 0 8px var(--color-electric-magenta),
    0 0 16px var(--color-electric-magenta),
    0 0 32px var(--color-electric-magenta),
    0 0 48px var(--color-electric-magenta);
}
