/* ============================================
   LUNA APP — NETFLIX DESIGN (specs exatas)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #141414;
  --bg-card: #181818;
  --bg-darker: #111;
  --bg-nav: rgba(20,20,20,0.9);
  --accent: #C4A05C;
  --accent-hover: #d4b06c;
  --accent-glow: rgba(196,160,92,0.25);
  --text: #ffffff;
  --text-2: #e5e5e5;
  --text-3: #b3b3b3;
  --text-muted: #777;
  --danger: #e05545;
  --success: #46D369;
  --border: #333;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --radius: 4px;
  --radius-md: 6px;
  --shadow: 0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.7);
  --transition: 0.2s ease;
  --header-h: 52px;
  --pad: 4%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
::selection { background: var(--accent); color: #000; }

::-webkit-scrollbar { width: 0; height: 0; }

/* ============================================
   HEADER (Netflix-style gradient navbar)
   ============================================ */

.app-header {
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 10%, transparent 100%);
  padding: 0 var(--pad);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}

.app-header .logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.app-header .logo:hover { opacity: 0.85; text-decoration: none; }

.app-header nav { display: flex; align-items: center; gap: 1rem; }
.app-header nav a { color: var(--text-3); font-size: 0.82rem; font-weight: 500; }
.app-header nav a:hover { color: var(--text); text-decoration: none; }

.btn-logout {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-3);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-logout:hover { border-color: #fff; color: #fff; }

/* ============================================
   AUTH PAGES
   ============================================ */

.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  background: var(--bg);
}

.auth-card {
  background: rgba(0,0,0,0.75);
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  width: 100%;
  max-width: 400px;
}

.auth-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  text-align: center;
  color: var(--accent);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-3);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

/* ============================================
   FORMS
   ============================================ */

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #444;
  border-radius: var(--radius);
  background: #333;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input:disabled { opacity: 0.4; cursor: not-allowed; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 80px; }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all var(--transition);
  line-height: 1.3;
}
.btn:active { transform: scale(0.96); }
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-hover); color: #000; }

.btn-secondary {
  background: rgba(109,109,110,0.7);
  color: var(--text);
}
.btn-secondary:hover { background: rgba(109,109,110,0.4); color: var(--text); }

.btn-gold { background: var(--accent); color: #000; font-weight: 700; }
.btn-gold:hover { background: var(--accent-hover); color: #000; }

.btn-full { width: 100%; }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.8rem; }

.auth-links { text-align: center; margin-top: 1.5rem; }
.auth-links a { color: var(--text-3); font-size: 0.82rem; }
.auth-links a:hover { color: var(--accent); }

/* ============================================
   ALERTS
   ============================================ */

.alert {
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.alert-error {
  background: rgba(229,9,20,0.15);
  border: 1px solid rgba(229,9,20,0.3);
  color: #f0a090;
}
.alert-info {
  background: rgba(196,160,92,0.1);
  border: 1px solid rgba(196,160,92,0.2);
  color: var(--accent);
}
.alert-success {
  background: rgba(70,211,105,0.1);
  border: 1px solid rgba(70,211,105,0.2);
  color: #80d0a0;
}

/* ============================================
   PAGE CONTAINERS
   ============================================ */

.page-container {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 1.5rem) 1.25rem 3rem;
}

.page-container--wide {
  max-width: 100%;
  padding: 0 0 3rem;
}

.page-container--medium {
  max-width: 800px;
  padding-top: calc(var(--header-h) + 1.5rem);
}

/* ============================================
   HERO / BILLBOARD
   ============================================ */

.hero-section {
  position: relative;
  width: 100%;
  height: 58vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg--1 {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(100,60,150,0.5) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(196,160,92,0.15) 0%, transparent 45%),
    linear-gradient(160deg, #1a0d2e 0%, #0d0d1a 40%, #141414 100%);
}
.hero-bg--2 {
  background:
    radial-gradient(ellipse at 60% 30%, rgba(60,80,150,0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(196,160,92,0.12) 0%, transparent 45%),
    linear-gradient(160deg, #0d1a2e 0%, #0d0d1a 40%, #141414 100%);
}
.hero-bg--3 {
  background:
    radial-gradient(ellipse at 40% 30%, rgba(150,60,100,0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(196,160,92,0.12) 0%, transparent 45%),
    linear-gradient(160deg, #1a0d1a 0%, #0d0d1a 40%, #141414 100%);
}

.hero-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: 10rem;
  opacity: 0.04;
  pointer-events: none;
}

.hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to top, #141414 0%, rgba(20,20,20,0.7) 40%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad) 1.5rem;
  width: 100%;
}

.hero-greeting {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.hero-sub {
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  color: var(--text-3);
  margin-bottom: 1rem;
  max-width: 450px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  gap: 0.5rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.hero-btn--play { background: var(--accent); color: #000; }
.hero-btn--play:hover { background: var(--accent-hover); color: #000; text-decoration: none; }
.hero-btn--info { background: rgba(109,109,110,0.7); color: #fff; }
.hero-btn--info:hover { background: rgba(109,109,110,0.4); color: #fff; text-decoration: none; }

.hero-progress {
  margin-top: 0.75rem;
  max-width: 160px;
}
.hero-progress__bar {
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}
.hero-progress__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}
.hero-progress__text {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* ============================================
   SECTION ROWS (Netflix carousels)
   ============================================ */

.content-area {
  position: relative;
}

.section-row {
  margin-bottom: 3vw;
}

.section-label {
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 0.5em;
  padding: 0 var(--pad);
}

/* ============================================
   PRODUCT ROW — HORIZONTAL SCROLL
   ============================================ */

.products-row {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 var(--pad);
}

.products-row::-webkit-scrollbar { display: none; }

/* ============================================
   PRODUCT CARD — NETFLIX PROPORTIONS
   ============================================ */

.product-card {
  flex: 0 0 28vw;
  min-width: 100px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  display: block;
  color: var(--text);
  transition: transform 300ms ease, box-shadow 300ms ease;
  transition-delay: 300ms;
}

.product-card:hover {
  text-decoration: none;
  color: var(--text);
}

/* Desktop: expand on hover */
@media (hover: hover) {
  .product-card:hover {
    transform: scale(1.35);
    z-index: 10;
    box-shadow: var(--shadow-lg);
    transition-delay: 0ms;
  }
}

.product-card__cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
}

/* Gradient covers (rich, each unique) */
.product-card__cover .cover-gradient {
  position: absolute;
  inset: 0;
}

.product-card:nth-child(8n+1) .cover-gradient {
  background: linear-gradient(150deg, #1a0d2e, #2d1848 50%, #401830);
}
.product-card:nth-child(8n+2) .cover-gradient {
  background: linear-gradient(150deg, #0d1a30, #1a2850 50%, #0d1a40);
}
.product-card:nth-child(8n+3) .cover-gradient {
  background: linear-gradient(150deg, #1a0d18, #30102a 50%, #200d30);
}
.product-card:nth-child(8n+4) .cover-gradient {
  background: linear-gradient(150deg, #0d1a18, #0d2d20 50%, #102a18);
}
.product-card:nth-child(8n+5) .cover-gradient {
  background: linear-gradient(150deg, #1a100d, #302818 50%, #2d1a10);
}
.product-card:nth-child(8n+6) .cover-gradient {
  background: linear-gradient(150deg, #10102a, #1a1a40 50%, #201848);
}
.product-card:nth-child(8n+7) .cover-gradient {
  background: linear-gradient(150deg, #2a100d, #401820 50%, #300d18);
}
.product-card:nth-child(8n+8) .cover-gradient {
  background: linear-gradient(150deg, #0d2a1a, #184830 50%, #0d3020);
}

.product-card__cover .cover-symbol {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  opacity: 0.08;
}

.product-card__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

/* Overlay text at bottom */
.product-card__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 5;
  padding: 2rem 0.5rem 0.45rem;
  background: linear-gradient(to top,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.5) 60%,
    transparent 100%);
}

.product-card__name {
  font-size: clamp(10px, 1vw, 14px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.product-card__sub {
  font-size: clamp(8px, 0.75vw, 11px);
  color: var(--text-3);
  line-height: 1.2;
}

/* Progress at bottom edge */
.product-card__progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
  z-index: 6;
}
.product-card__progress-bar {
  height: 100%;
  background: var(--accent);
}

/* Locked */
.product-card--locked .cover-gradient {
  filter: brightness(0.35) saturate(0.3);
}
.product-card--locked .cover-symbol { opacity: 0.04; }

.lock-badge {
  position: absolute;
  top: 0.35rem; right: 0.35rem;
  background: rgba(0,0,0,0.7);
  border-radius: var(--radius);
  padding: 0.15rem 0.4rem;
  font-size: clamp(8px, 0.7vw, 11px);
  font-weight: 600;
  color: var(--text-3);
  z-index: 10;
}

/* Soon */
.product-card--soon { opacity: 0.3; pointer-events: none; }

/* Responsive card widths */
@media (min-width: 500px) {
  .product-card { flex: 0 0 22vw; }
  .products-row { gap: 6px; }
}
@media (min-width: 768px) {
  .product-card { flex: 0 0 18vw; }
  .products-row { gap: 6px; }
}
@media (min-width: 1100px) {
  .product-card { flex: 0 0 14vw; }
  .products-row { gap: 8px; }
}

/* ============================================
   MODAL (upsell)
   ============================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

@media (min-height: 500px) {
  .modal-backdrop { align-items: center; padding: 1rem; }
}

.modal-content {
  background: #181818;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: slideUp 0.25s ease;
}
@media (min-height: 500px) {
  .modal-content { border-radius: var(--radius-md); }
}

.modal-close {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--text-3);
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.2); color: #fff; }

.modal-product-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  padding-right: 2rem;
}

.modal-description {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.modal-benefits {
  list-style: none;
  margin-bottom: 1.25rem;
}
.modal-benefits li {
  padding: 0.3rem 0;
  font-size: 0.82rem;
  color: var(--text-3);
  padding-left: 1.3rem;
  position: relative;
}
.modal-benefits li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.55rem;
  top: 0.5rem;
}

.modal-price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.modal-price small {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state { text-align: center; padding: 4rem var(--pad); }
.empty-state__icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.15; }
.empty-state__text { font-size: 0.85rem; color: var(--text-3); }

/* ============================================
   PRODUTO OVERVIEW — ALBUM STYLE
   ============================================ */

.album-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 0.5rem 0 1.5rem;
}

.album-cover {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.album-cover__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, #1a0d2e, #2d1848 50%, #401830);
}

.album-cover__symbol {
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  opacity: 0.15;
}

.album-meta { flex: 1; min-width: 0; padding-top: 0.25rem; }

.album-meta__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.album-meta__sub {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 0.6rem;
}

.album-meta__stats {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.album-meta__completed { color: var(--accent); }

.album-progress { max-width: 180px; }

.album-progress__bar {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.album-progress__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.album-actions {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

/* Episode list */
.episode-list {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.episode-group-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 1rem 0 0.3rem;
}

.episode-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  text-decoration: none;
  transition: background var(--transition);
}

.episode-row:hover {
  text-decoration: none;
  color: var(--text);
}

.episode-row__play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text);
  flex-shrink: 0;
  transition: all var(--transition);
}

.episode-row:hover .episode-row__play {
  background: rgba(255,255,255,0.15);
}

.episode-row__play--done {
  background: var(--accent) !important;
  color: #000 !important;
  font-size: 0.75rem;
}

.episode-row__play--active {
  background: transparent !important;
  border: 2px solid var(--accent);
  color: var(--accent) !important;
}

.episode-row__body { flex: 1; min-width: 0; }

.episode-row__title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.15rem;
}

.episode-row__symbol {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.episode-row__meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.episode-row__badge {
  color: var(--accent);
  font-weight: 600;
}

.episode-row__badge--progress {
  color: var(--text-3);
}

/* ============================================
   PLAYER PAGE — SPOTIFY STYLE
   ============================================ */

.player-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #1a0d2e 0%, #121212 40%, #121212 100%);
  padding: 0 24px 48px;
}

/* Top bar */
.player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 0 16px;
}

.player-topbar__back {
  font-size: 1.8rem;
  color: var(--text);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}

.player-topbar__context {
  text-align: center;
  flex: 1;
}

.player-topbar__from {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  line-height: 1.2;
}

.player-topbar__album {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* Cover art */
.player-cover {
  display: flex;
  justify-content: center;
  padding: 16px 0 24px;
}

.player-cover__art {
  width: 85%;
  max-width: 340px;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  background: #181818;
}

.player-cover__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(140,80,200,0.4) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(196,160,92,0.2) 0%, transparent 50%),
    linear-gradient(150deg, #1a0d2e, #2d1848 50%, #401830);
}

.player-cover__symbol {
  position: relative;
  z-index: 1;
  font-size: 4rem;
  opacity: 0.15;
}

/* Track info */
.player-info {
  padding: 0 0 16px;
}

.player-info__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-sans);
}

.player-info__artist {
  font-size: 14px;
  color: var(--text-3);
  font-weight: 400;
}

/* Custom audio controls */
.player-controls-wrap {
  padding-bottom: 24px;
}

/* Progress bar */
.player-progress {
  cursor: pointer;
  padding: 8px 0;
  -webkit-tap-highlight-color: transparent;
}

.player-progress__track {
  position: relative;
  height: 4px;
  background: #535353;
  border-radius: 2px;
}

.player-progress__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  position: relative;
}

.player-progress__thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: transform 0.1s ease;
}

.player-progress:active .player-progress__track {
  height: 6px;
}

.player-progress:active .player-progress__thumb {
  transform: translate(-50%, -50%) scale(1.3);
}

.player-progress__times {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-3);
}

/* Player buttons */
.player-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 12px;
}

.player-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
}

.player-btn:hover { opacity: 0.8; text-decoration: none; color: var(--text); }
.player-btn:active { transform: scale(0.9); }

.player-btn--skip {
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
}

.player-btn--disabled {
  opacity: 0.25;
  pointer-events: none;
}

.player-btn--play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 1.2rem;
}

.player-btn--play:hover {
  transform: scale(1.05);
  color: #000;
}

/* Content text (collapsible) */
.player-content {
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.player-content__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.player-content__text--expanded {
  -webkit-line-clamp: unset;
  display: block;
}

.player-content__text p { margin-bottom: 0.6rem; }
.player-content__text strong { color: var(--text); }

.player-content__toggle {
  background: none;
  border: none;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-top: 4px;
  padding: 4px 0;
  font-family: var(--font-sans);
}

/* Questions */
.player-questions {
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.player-questions__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.player-questions__title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

.player-questions__status {
  font-size: 11px;
  font-weight: 500;
  height: 16px;
}

.player-questions__status--saving { color: var(--text-muted); }
.player-questions__status--saved { color: var(--accent); }

.player-question {
  margin-bottom: 14px;
}

.player-question label {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 6px;
  font-weight: 500;
  line-height: 1.4;
}

.player-question input,
.player-question textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #333;
  border-radius: var(--radius);
  background: #222;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition);
}

.player-question input:focus,
.player-question textarea:focus {
  border-color: var(--accent);
}

.player-question textarea {
  resize: vertical;
  min-height: 60px;
  line-height: 1.5;
}

/* Complete button */
.player-complete {
  text-align: center;
  padding: 12px 0;
}

.player-complete__btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition);
}

.player-complete__btn:hover {
  background: rgba(255,255,255,0.15);
}

.player-complete__btn--done {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.player-complete__btn--done:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Section counter */
.player-counter {
  text-align: center;
  padding: 8px 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   UTILITY
   ============================================ */

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
  :root { --header-h: 48px; }
  .hero-section { height: 55vh; }
  .hero-content { padding-bottom: 1rem; }
  .page-container { padding: calc(var(--header-h) + 1rem) 1rem 2.5rem; }
  .auth-card { padding: 2.5rem 1.5rem; }
  .modal-content { padding: 1.5rem 1rem; }
}

@media (min-width: 768px) {
  :root { --header-h: 56px; }
  .hero-section { height: 65vh; }
  .hero-content { padding-bottom: 2.5rem; }
}

@media (min-width: 1200px) {
  :root { --header-h: 64px; }
  .hero-section { height: 70vh; }
}

@supports (padding: max(0px)) {
  .app-header {
    padding-left: max(var(--pad), env(safe-area-inset-left));
    padding-right: max(var(--pad), env(safe-area-inset-right));
  }
}
