/* 4tuna.sk Magic World — brand štýly */

:root {
  /* Farebná paleta z brand kitu */
  --cream: #F6EFE4;
  --honey: #E9C77A;
  --peach: #F1A887;
  --terracotta: #D97A5E;
  --teal: #8EBDB6;
  --sage: #B7C7B2;
  --camel: #C49A6C;
  --taupe: #B7B1A6;

  /* Dominantné (texty, logo, dôležité prvky) */
  --navy: #1F3A54;
  --teal-deep: #3E7E76;

  --white: #FFFFFF;
  --ink: #33302A;
  --ink-soft: #6B655C;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 10px 30px rgba(31, 58, 84, 0.10);
  --shadow-hover: 0 16px 40px rgba(31, 58, 84, 0.16);

  --font-heading: 'Rubik', 'Nunito', system-ui, sans-serif;
  --font-body: 'Poppins', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.bg-waves {
  background-image: radial-gradient(ellipse 65% 35% at 20% 0%, rgba(255,255,255,0.4), transparent 55%),
                     radial-gradient(circle at 88% 10%, rgba(142, 189, 182, 0.30) 0, transparent 45%),
                     radial-gradient(circle at 6% 28%, rgba(62, 126, 118, 0.22) 0, transparent 42%),
                     radial-gradient(circle at 55% 100%, rgba(233, 199, 122, 0.20) 0, transparent 48%),
                     linear-gradient(180deg, #BEE3DC 0%, #CDE8E0 9%, #DCEBDD 24%, #ECEBD9 42%, #F3ECDC 62%, var(--cream) 82%, var(--cream) 100%);
  background-attachment: fixed;
  position: relative;
}

/* Kaustika - jemné pohyblivé svetlo na "hladine", ako v akváriu */
body.bg-waves::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255,255,255,0.10) 0px,
    rgba(255,255,255,0.10) 3px,
    transparent 3px,
    transparent 46px
  ), repeating-linear-gradient(
    65deg,
    rgba(255,255,255,0.07) 0px,
    rgba(255,255,255,0.07) 2px,
    transparent 2px,
    transparent 60px
  );
  background-size: 340px 340px, 260px 260px;
  mix-blend-mode: overlay;
  animation: caustic-drift 24s linear infinite;
}
@keyframes caustic-drift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 340px 220px, -260px 180px; }
}

/* Svetelné lúče prechádzajúce cez vodu */
.light-rays {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}
.light-rays .ray {
  position: absolute;
  top: -15%;
  left: var(--rx, 10%);
  width: var(--rw, 120px);
  height: 130%;
  background: linear-gradient(180deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0.12) 45%, transparent 82%);
  filter: blur(7px);
  transform: rotate(var(--rr, 8deg));
  animation: ray-sway var(--rd, 12s) ease-in-out infinite;
  animation-delay: var(--rl, 0s);
}
@keyframes ray-sway {
  0%, 100% { transform: rotate(var(--rr, 8deg)) translateX(0); opacity: 0.55; }
  50%      { transform: rotate(calc(var(--rr, 8deg) * -0.5)) translateX(26px); opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  body.bg-waves::after, .light-rays .ray { animation: none !important; }
}

/* ---------- Podmorské bublinky (animované pozadie) ---------- */
.bg-bubbles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bg-bubbles .bubble {
  position: absolute;
  bottom: -12%;
  left: var(--bx, 10%);
  width: var(--bs, 26px);
  height: var(--bs, 26px);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.95), rgba(142,189,182,0.35) 55%, rgba(142,189,182,0.05) 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25) inset;
  animation: bubble-rise var(--bd, 22s) linear infinite;
  animation-delay: var(--bl, 0s);
}
@keyframes bubble-rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  8%   { opacity: 0.65; }
  92%  { opacity: 0.5; }
  100% { transform: translate(var(--bx-drift, 24px), -118vh); opacity: 0; }
}

/* Riasy hojdajúce sa pri spodku obrazovky */
.bg-bubbles .seaweed {
  position: absolute;
  bottom: -10px;
  left: var(--sx, 5%);
  width: var(--sw, 16px);
  height: var(--sh, 90px);
  background: linear-gradient(180deg, var(--sage), var(--teal-deep));
  border-radius: 40px 40px 8px 8px;
  transform-origin: bottom center;
  opacity: 0.4;
  animation: seaweed-sway var(--sd, 6s) ease-in-out infinite;
  animation-delay: var(--sl, 0s);
}
@keyframes seaweed-sway {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(7deg); }
}

/* Statické podmorské dekorácie (korály, hviezdice, mušličky) */
.bg-bubbles .reef-deco {
  position: absolute;
  opacity: 0.35;
  font-size: var(--rs, 2rem);
}

.page-content { position: relative; z-index: 1; }

/* jemné pohupovanie hero maskota a hviezdičiek */
.hero-art img { animation: float-bob 5s ease-in-out infinite; }
.float-star { animation: twinkle 2.4s ease-in-out infinite; }
.float-star.s2 { animation-delay: 0.6s; }
@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.2) rotate(12deg); opacity: 0.7; }
}

.wave-divider { display: block; width: 100%; height: auto; margin-top: -1px; }
.wave-divider path { fill: var(--white); }

@media (prefers-reduced-motion: reduce) {
  .bg-bubbles .bubble, .bg-bubbles .seaweed,
  .hero-art img, .float-star { animation: none !important; }
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--teal-deep); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.sparkle {
  color: var(--terracotta);
  display: inline-block;
}

/* ---------- Header ---------- */
.site-header {
  padding: 18px 0;
  background: rgba(246, 239, 228, 0.9);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(31, 58, 84, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-logo img { height: 54px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--teal);
  color: var(--white);
}

.main-nav a.publisher-link {
  background: var(--navy);
  color: var(--white);
}
.main-nav a.publisher-link:hover { background: var(--terracotta); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: var(--shadow-soft);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: #c86a4f; }

.btn-teal { background: var(--teal-deep); color: var(--white); }
.btn-teal:hover { background: #336a63; }

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--sage);
  box-shadow: none;
}
.btn-outline:hover { border-color: var(--teal-deep); }

.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero-eyebrow {
  font-family: var(--font-heading);
  color: var(--teal-deep);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: inline-block;
}
.hero-tagline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--terracotta);
  margin: 4px 0 14px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}
/* Maskot pláva voľne v prostredí - žiadny rámik/box, obrázok má reálne priehľadné pozadie */
.hero-art img {
  width: 100%;
  max-width: 460px;
  filter: drop-shadow(0 18px 22px rgba(15, 40, 50, 0.25));
}
.hero-art .float-star {
  position: absolute;
  font-size: 2rem;
}
.hero-art .float-star.s1 { top: -10px; left: 0; color: var(--honey); }
.hero-art .float-star.s2 { bottom: 10px; right: -6px; color: var(--terracotta); }

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ---------- Kategórie (Maľovánky / Piesne) ---------- */
.category-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 340px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: var(--shadow-hover); }
.category-card.coloring { background: linear-gradient(160deg, var(--terracotta), var(--peach)); }
.category-card.songs { background: linear-gradient(160deg, var(--teal-deep), var(--teal)); }
.category-card .cat-icon-badge {
  position: absolute; top: 20px; right: 20px;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.category-card .cat-mascot {
  width: 150px;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.18));
  margin-bottom: 6px;
}
.category-card.songs .cat-mascot { transform: scaleX(-1); }
.category-card h3 { color: var(--white); font-size: 1.6rem; margin: 4px 0 6px; }
.category-card p { color: rgba(255,255,255,0.92); max-width: 34ch; }
.category-card .cat-cta {
  margin-top: auto;
  display: inline-block;
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 999px;
}
.category-card.coloring .cat-cta { color: var(--terracotta); }
.category-card.songs .cat-cta { color: var(--teal-deep); }
.category-card .note {
  position: absolute;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.85);
  animation: note-bob 3s ease-in-out infinite;
}
.category-card .note.n1 { top: 34px; left: 30px; }
.category-card .note.n2 { top: 70px; left: 70px; font-size: 1.1rem; animation-delay: 1s; }
@keyframes note-bob {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-10px) rotate(8deg); }
}
.category-card .paint-drop {
  position: absolute;
  font-size: 1.4rem;
  animation: note-bob 3.4s ease-in-out infinite;
}
.category-card .paint-drop.p1 { top: 36px; left: 30px; animation-delay: 0.3s; }
.category-card .paint-drop.p2 { top: 74px; left: 66px; font-size: 1.1rem; animation-delay: 1.2s; }

/* ---------- Vlnová dekorácia ---------- */
.wave-divider-wrap { line-height: 0; margin-top: -12px; }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title .kicker {
  font-family: var(--font-heading);
  color: var(--terracotta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

/* ---------- Coloring page cards / grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: var(--shadow-hover); }

.card-thumb {
  aspect-ratio: 4 / 3;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }

.card-body { padding: 18px 20px 22px; }
.card-book { font-size: 0.78rem; font-weight: 600; color: var(--teal-deep); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.card-title { font-family: var(--font-heading); font-weight: 700; color: var(--navy); font-size: 1.1rem; margin: 0; }

/* ---------- Piesne - veľké kartičky (málo položiek, nech vyniknú) ---------- */
.song-feature-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 880px;
  margin: 0 auto;
}
.song-feature {
  display: flex;
  gap: 28px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.song-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.song-feature-cover {
  flex: 0 0 auto;
  width: 190px;
  height: 190px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(160deg, var(--sage), var(--teal-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(31, 58, 84, 0.18);
}
.song-feature-cover img { width: 100%; height: 100%; object-fit: cover; }
.song-feature-cover .placeholder-icon { font-size: 3.6rem; }
.song-feature-body { flex: 1; min-width: 0; }
.song-feature-book { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--teal-deep); margin-bottom: 6px; }
.song-feature h3 { margin: 0 0 10px; font-size: 1.5rem; }
.song-feature h3 a { color: var(--navy); text-decoration: none; }
.song-feature h3 a:hover { color: var(--teal-deep); }
.song-feature p.desc { margin-bottom: 16px; max-width: 60ch; }
.song-feature audio { width: 100%; max-width: 420px; display: block; }
.song-feature-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}
.empty-state img { width: 140px; margin: 0 auto 20px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 8px 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: '+'; color: var(--terracotta); font-size: 1.3rem; font-weight: 700; flex-shrink: 0; width: 1.2em; }
.faq-item[open] summary::before { content: '–'; }
.faq-item p { padding: 0 0 16px 1.9em; margin: 0; }

/* ---------- Detail page ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.detail-image {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}
.detail-image img { border-radius: var(--radius-sm); }

.detail-cta { display: flex; flex-direction: column; gap: 14px; margin: 28px 0; }
.detail-cta .btn { width: 100%; }

.buy-box {
  background: var(--white);
  border: 2px dashed var(--peach);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-top: 20px;
}
.buy-box h3 { margin-bottom: 6px; }
.buy-box p { margin-bottom: 14px; }

/* ---------- Kartička knihy (vždy viditeľná) ---------- */
.book-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--honey);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.book-card-cover {
  flex: 0 0 auto;
  width: 84px;
  height: 112px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--sage), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(31,58,84,0.15);
}
.book-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card-cover-placeholder { font-size: 2.2rem; }
.book-card-kicker { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--terracotta); }
.book-card-title { font-size: 1.05rem; margin: 2px 0 10px; }
.book-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.book-card.sticky-card { position: sticky; top: 90px; }
.book-card.compact { padding: 12px; gap: 12px; }
.book-card.compact .book-card-cover { width: 56px; height: 74px; }
.book-card.compact .book-card-title { font-size: 0.92rem; margin-bottom: 6px; }

.breadcrumbs { font-size: 0.9rem; margin-bottom: 20px; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal-deep); }

/* ---------- Coloring tool ---------- */
.tool-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.tool-panel {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  position: sticky;
  top: 90px;
}
.tool-panel h3 { font-size: 1rem; margin-bottom: 12px; }

.palette {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px rgba(31,58,84,0.12);
  cursor: pointer;
  padding: 0;
}
.swatch.active { box-shadow: 0 0 0 3px var(--navy); transform: scale(1.08); }

.tool-modes { display: flex; gap: 8px; margin-bottom: 18px; }
.mode-btn {
  flex: 1;
  border: 2px solid var(--sage);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.mode-btn.active { background: var(--teal); border-color: var(--teal-deep); }

.tool-actions { display: flex; flex-direction: column; gap: 10px; }

.canvas-stage {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  display: flex;
  justify-content: center;
}
.canvas-stage canvas {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  touch-action: none;
  cursor: crosshair;
  background: var(--white);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 60px;
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 44px 0 28px;
}
.site-footer a { color: var(--white); }
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-size: 0.9rem; opacity: 0.9; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-note { font-size: 0.8rem; opacity: 0.65; margin-top: 24px; text-align: center; }

/* ---------- Admin ---------- */
.admin-shell { max-width: 1000px; margin: 0 auto; padding: 32px 24px 80px; }
.admin-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
}
.admin-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-tabs a {
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.admin-tabs a.active { background: var(--navy); color: var(--white); }
.book-select-preview { display:flex; align-items:center; gap:10px; margin-top:8px; }
.book-select-preview img { width:40px; height:40px; object-fit:cover; border-radius:8px; background:var(--cream); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); }
.admin-table th, .admin-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid rgba(31,58,84,0.08); font-size: 0.92rem; }
.admin-table th { background: var(--cream); color: var(--navy); font-family: var(--font-heading); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-thumb { width: 56px; height: 56px; object-fit: contain; background: var(--cream); border-radius: 8px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge-active { background: rgba(142,189,182,0.3); color: var(--teal-deep); }
.badge-inactive { background: rgba(183,177,166,0.3); color: var(--ink-soft); }

.form-card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); padding: 28px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); font-size: 0.92rem; }
.form-row input[type=text],
.form-row input[type=url],
.form-row input[type=number],
.form-row input[type=email],
.form-row input[type=password],
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(31,58,84,0.15);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
}
.form-row textarea { resize: vertical; min-height: 80px; }
.form-row .hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }
.form-row input[type=file] { font-size: 0.9rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-actions { display: flex; gap: 12px; margin-top: 10px; }

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 40px;
  max-width: 380px;
  width: 100%;
  text-align: center;
}
.login-card img { height: 60px; margin: 0 auto 18px; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 16px; }
.alert-error { background: rgba(217,122,94,0.15); color: #a34b31; }
.alert-success { background: rgba(142,189,182,0.2); color: var(--teal-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .detail-grid { grid-template-columns: 1fr; }
  .song-feature { flex-direction: column; text-align: center; }
  .song-feature-cover { width: 160px; height: 160px; }
  .song-feature audio { max-width: 100%; margin: 0 auto; }
  .song-feature-actions { justify-content: center; }
  .tool-wrap { grid-template-columns: 1fr; }
  .tool-panel { position: static; order: 2; }
  .canvas-stage { order: 1; }
  .main-nav { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .category-split { grid-template-columns: 1fr; }
  .book-card { flex-direction: column; text-align: center; }
  .book-card-actions { justify-content: center; }
}

@media (max-width: 520px) {
  .hero { padding: 36px 0 24px; }
  .btn-lg { padding: 15px 24px; font-size: 1rem; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}
