:root {
  --sage-950: #263325;
  --sage-800: #4f634b;
  --sage-650: #6f8467;
  --sage-500: #7f9276;
  --sage-200: #dce4d8;
  --ivory: #f8f5ee;
  --white: #fffdf9;
  --gold: #c8a45d;
  --ink: #253026;
  --muted: #6e776e;
  --danger: #9d4a4a;
  --shadow: 0 20px 70px rgba(52, 70, 49, .15);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(200,164,93,.19), transparent 25rem),
    radial-gradient(circle at 91% 30%, rgba(127,146,118,.20), transparent 29rem),
    var(--ivory);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  min-height: 100vh;
}

a { color: inherit; }
code { overflow-wrap: anywhere; word-break: break-word; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: inherit; font-weight: 750; font-size: 22px; letter-spacing: .01em; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--white); background: var(--sage-800); border: 2px solid var(--gold); }
.brand-logo { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; border: 2px solid var(--gold); box-shadow: 0 7px 20px rgba(52,70,49,.2); }
.nav-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.release-banner { display:flex; align-items:center; justify-content:space-between; gap:22px; padding:18px 22px; border:1px solid rgba(200,164,93,.55); border-radius:22px; background:linear-gradient(110deg,rgba(79,99,75,.96),rgba(38,51,37,.98)); color:white; box-shadow:var(--shadow); }
.release-banner strong { display:block; color:#ead7a9; font-size:clamp(22px,3vw,34px); margin-top:3px; }
.release-banner p { margin:5px 0 0; color:rgba(255,255,255,.78); line-height:1.45; }
.release-banner .button { flex:none; }
.button { border: 0; border-radius: 999px; padding: 12px 18px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; transition: transform .16s, box-shadow .16s; }
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(52,70,49,.15); }
.button-primary { background: var(--sage-800); color: white; }
.button-gold { background: var(--gold); color: #2d2a22; }
.button-ghost { background: rgba(255,253,249,.72); border: 1px solid rgba(79,99,75,.17); color: var(--sage-950); }
.button-danger { color: var(--danger); background: #f8e7e3; }
.eyebrow { text-transform: uppercase; color: var(--sage-650); letter-spacing: .18em; font-weight: 800; font-size: 12px; }
h1, h2, h3 { font-family: inherit; font-weight: 750; margin: 0; letter-spacing: -.025em; }
.hero { padding: 7vh 0 12vh; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 7vw, 90px); align-items: center; }
.hero > * { min-width: 0; }
.hero h1 { font-size: clamp(52px, 8vw, 104px); line-height: .9; color: var(--sage-800); margin: 20px 0 24px; }
.hero h1 span { color: var(--gold); font-style: italic; }
.hero p { max-width: 620px; font-size: 19px; line-height: 1.7; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-card { border-radius: 42px 42px 16px 42px; min-height: 510px; background: linear-gradient(145deg, var(--sage-650), var(--sage-950)); color: white; padding: 14px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.hero-couple { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hero-overlay { position:absolute; inset:0; z-index:2; padding:30px; background:linear-gradient(180deg,rgba(38,51,37,.08) 38%,rgba(38,51,37,.92) 100%); }
.hero-card::before, .hero-card::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; width: 330px; height: 330px; }
.hero-card::before { right: -130px; top: -140px; }
.hero-card::after { left: -180px; bottom: -210px; border-color: rgba(200,164,93,.55); }
.date { font-family: inherit; font-weight: 750; font-size: 30px; position: relative; z-index: 1; }
.countdown { margin-top: 220px; position: relative; z-index: 1; }
.countdown strong { display: block; font-family: inherit; font-size: 72px; color: #ead7a9; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 72px; }
.feature, .card { background: rgba(255,253,249,.88); border: 1px solid rgba(79,99,75,.13); border-radius: 24px; padding: 24px; box-shadow: 0 12px 35px rgba(52,70,49,.08); }
.feature .icon { width: 46px; height: 46px; border-radius: 14px; background: var(--sage-200); color: var(--sage-800); display: grid; place-items: center; font-size: 22px; margin-bottom: 20px; }
.feature h3 { font-size: 22px; }
.feature p { color: var(--muted); line-height: 1.55; }
.panel { padding: 30px 0 70px; }
.panel-header { display:flex; align-items: end; justify-content: space-between; gap:16px; margin: 28px 0; }
.panel-header h1 { font-size: clamp(38px, 6vw, 62px); color: var(--sage-800); }
.login-card { width: min(460px, 100%); margin: 8vh auto; }
.login-card h1 { color: var(--sage-800); font-size: 42px; margin: 8px 0 12px; }
.access-shell { min-height: 100vh; display: grid; place-items: center; }
.access-card { text-align: center; }
.access-card .field { text-align: left; }
.access-card .button { width: 100%; }
.access-logo { width: 92px; height: 92px; object-fit: cover; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 12px 28px rgba(52,70,49,.18); margin-bottom: 18px; }
.form-message.success { color: var(--sage-800); }
.muted { color: var(--muted); line-height: 1.55; }
.field { display: grid; gap: 7px; margin: 16px 0; }
.field label { font-size: 13px; color: var(--sage-800); font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid rgba(79,99,75,.22); background: white; border-radius: 14px; padding: 13px 14px; color: var(--ink); outline: none; font: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200,164,93,.14); }
.track-playlist-select, .track-owner-select { width: min(230px,100%); border: 1px solid rgba(79,99,75,.22); border-radius: 10px; background: white; color: var(--ink); padding: 8px 9px; margin: 3px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; line-height: 1.4; }
.check input { margin-top: 3px; }
.form-message { min-height: 22px; color: var(--danger); font-size: 14px; margin: 8px 0; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stat { background: var(--sage-800); color: white; border-radius: 20px; padding: 20px; }
.stat span { display: block; opacity: .72; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.stat strong { font-size: 34px; font-family: inherit; display: block; margin-top: 8px; }
.tabs { display: flex; gap: 8px; margin: 24px 0 14px; overflow-x: auto; }
.tab { border: 1px solid rgba(79,99,75,.14); border-radius: 999px; padding: 10px 16px; background: var(--white); color: var(--muted); font-weight: 700; white-space: nowrap; }
.tab.active { background: var(--gold); color: var(--ink); border-color: transparent; }
.table-wrap { overflow-x: auto; border-radius: 22px; background: var(--white); border: 1px solid rgba(79,99,75,.12); }
table { border-collapse: collapse; width: 100%; min-width: 700px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid rgba(79,99,75,.10); font-size: 14px; }
th { color: var(--sage-800); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.badge { display:inline-flex; border-radius:999px; padding:5px 9px; font-size:11px; font-weight:800; background:var(--sage-200); color:var(--sage-800); }
.status-active { background:#d9ead6; color:#35583b; }
.status-hidden, .status-failed { background:#f6dfda; color:#8a3e3e; }
.status-processing { background:#f4e8c7; color:#725d26; }
.hidden { display: none !important; }
.submit-grid { display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
.admin-split { display:grid; grid-template-columns:minmax(280px,.8fr) minmax(360px,1.2fr); gap:18px; align-items:start; }
.check-row { display:flex; gap:10px; align-items:flex-start; color:var(--muted); font-size:13px; line-height:1.45; margin:16px 0; }
.check-row input { margin-top:3px; accent-color:var(--sage-600); }
.site-image-preview { display:block; width:min(100%,520px); aspect-ratio:1; object-fit:cover; border-radius:24px; border:1px solid rgba(79,99,75,.18); box-shadow:0 18px 50px rgba(54,68,50,.12); margin:14px auto; background:var(--ivory); }
.stack { display:grid; gap:12px; }
.stack h3 { margin-top:12px; font-size:22px; }
.reaction-pop { animation: reaction-pop .34s cubic-bezier(.2,.9,.3,1.25); }
@keyframes reaction-pop { 0%{transform:scale(.82);opacity:.4} 70%{transform:scale(1.08)} 100%{transform:scale(1);opacity:1} }
.legal-note { padding:16px; border-radius:16px; background:#edf1ea; color:var(--sage-800); font-size:13px; line-height:1.5; }
.karaoke-stage { width:min(480px,100%); margin:0 auto; position:relative; min-height:690px; }
.karaoke-card { position:absolute; inset:0 0 auto; overflow:hidden; padding:0; touch-action:pan-y; user-select:none; transform-origin:50% 90%; transition:transform .28s cubic-bezier(.2,.85,.25,1),opacity .28s; }
.karaoke-card.dragging { transition:none; cursor:grabbing; }
.karaoke-sample { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; background:linear-gradient(145deg,var(--sage-950),#111); }
.karaoke-audio { width:calc(100% - 36px); margin:70px 18px; }
.karaoke-copy { padding:22px; }
.karaoke-copy h2 { color:var(--sage-800); font-size:30px; margin-bottom:4px; }
.karaoke-copy h3 { color:var(--gold); font-size:18px; }
.karaoke-chips { display:flex; flex-wrap:wrap; gap:7px; margin:13px 0; }
.karaoke-chip { border-radius:999px; background:var(--sage-200); color:var(--sage-800); padding:6px 10px; font-size:12px; font-weight:750; }
.karaoke-lyrics { white-space:pre-line; color:var(--muted); line-height:1.45; max-height:92px; overflow:hidden; mask-image:linear-gradient(#000 65%,transparent); }
.karaoke-choice { position:absolute; top:24px; z-index:4; padding:10px 15px; border:3px solid; border-radius:13px; font-size:26px; font-weight:900; letter-spacing:.08em; opacity:0; pointer-events:none; }
.karaoke-choice.yes { right:22px; color:#3d784c; transform:rotate(9deg); }
.karaoke-choice.no { left:22px; color:var(--danger); transform:rotate(-9deg); }
.karaoke-actions { display:flex; justify-content:center; gap:22px; margin:18px 0 34px; }
.karaoke-vote { width:68px; height:68px; border-radius:50%; border:0; color:white; font-size:26px; box-shadow:0 12px 30px rgba(38,51,37,.22); }
.karaoke-vote.no { background:var(--danger); }
.karaoke-vote.yes { background:var(--sage-800); }
.karaoke-progress { text-align:center; color:var(--muted); margin:0 0 14px; font-weight:700; }
.footer { padding: 25px 0 42px; color: var(--muted); font-size: 13px; }

/* Kompaktowy układ strony głównej: hero, licznik i trzy kafelki mieszczą się
   na jednym ekranie desktopu, bez utraty czytelności na małych telefonach. */
.landing-page .shell { width: min(1060px, calc(100% - 40px)); }
.landing-page .topbar { padding: 14px 0; }
.landing-page .hero { padding: 3vh 0 4vh; grid-template-columns: 1fr .82fr; gap: clamp(28px, 5vw, 52px); }
.landing-page .hero h1 { font-size: clamp(48px, 6vw, 78px); margin: 12px 0 16px; }
.landing-page .hero p { font-size: 16px; line-height: 1.52; }
.landing-page .hero-actions { margin-top: 18px; gap: 9px; }
.landing-page .hero-card { min-height: 360px; border-radius: 32px 32px 14px 32px; }
.landing-page .hero-overlay { padding: 24px; }
.landing-page .date { font-size: 26px; }
.landing-page .countdown { margin-top: 128px; }
.landing-page .countdown strong { font-size: 60px; }
.landing-page .feature-grid { gap: 14px; padding-bottom: 28px; }
.landing-page .feature { padding: 18px; border-radius: 20px; }
.landing-page .feature .icon { width: 38px; height: 38px; margin-bottom: 12px; }
.landing-page .feature h3 { font-size: 19px; }
.landing-page .feature p { margin: 8px 0 0; font-size: 14px; line-height: 1.45; }
.landing-page .footer { padding: 8px 0 18px; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; padding-top: 3vh; }
  .hero-card { min-height: 390px; }
  .countdown { margin-top: 130px; }
  .feature-grid, .submit-grid, .admin-split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .landing-page .hero { padding-top: 2vh; grid-template-columns: 1fr; }
  .landing-page .hero-card { min-height: 320px; }
  .landing-page .countdown { margin-top: 96px; }
}
@media (max-width: 520px) {
  .shell { width: min(100% - 22px, 1160px); }
  .topbar { align-items: flex-start; }
  .brand { font-size: 18px; }
  .hero h1 { font-size: 55px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .panel-header { align-items:flex-start; flex-direction:column; }
  .release-banner { align-items:flex-start; flex-direction:column; }
  .landing-page .shell { width: min(100% - 22px, 1060px); }
  .landing-page .topbar { padding: 12px 0; }
  .landing-page .hero h1 { font-size: 51px; }
}
