:root {
  --navy: #0b1526;
  --navy-2: #13213a;
  --cream: #f6efe4;
  --cream-2: #e9dcc7;
  --gold: #d4af5f;
  --gold-2: #f1d792;
  --muted: #a9b3c6;
  --danger: #ff8b8b;
  --ok: #8fd6a4;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: "Montserrat", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: radial-gradient(ellipse at top, #16274a 0%, var(--navy) 55%, #060b16 100%);
  color: var(--cream); font-family: var(--sans); font-weight: 300; line-height: 1.6; overflow-x: hidden;
}
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 2; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.45) 100%); }
main, header, footer { position: relative; z-index: 3; }
a { color: var(--gold-2); }
.hidden { display: none !important; }

/* ---------- Koperta ---------- */
.intro {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
  background: radial-gradient(ellipse at center, #1a2c52 0%, #0a1324 70%); transition: opacity .9s ease, visibility .9s;
}
.intro.closed { opacity: 0; visibility: hidden; }
.envelope { position: relative; width: min(420px, 86vw); aspect-ratio: 1.55; perspective: 1200px; }
/* Warstwy koperty (od tyłu): tył -> list -> przód z wycięciem -> klapka -> pieczęć */
.env-body { position: absolute; inset: 0; background: linear-gradient(160deg, #e2d3b8 0%, #d3c2a3 100%); border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.55); z-index: 1; }
.env-front { position: absolute; inset: 0; z-index: 3; border-radius: 10px; background: linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 100%); clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%); }
.env-front::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent 49.5%, rgba(0,0,0,.09) 50%, transparent 50.5%), linear-gradient(to bottom left, transparent 49.5%, rgba(0,0,0,.09) 50%, transparent 50.5%); }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 58%; background: linear-gradient(180deg, #ecdfc9, #dccbb0); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transform: rotateX(0deg); z-index: 4; border-radius: 10px 10px 0 0; backface-visibility: hidden; }
.env-flap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #d8c8ab, #cbb994); transform: rotateX(180deg); backface-visibility: hidden; } /* spód klapki */
.env-seal { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #b8213a, #7a0f22); box-shadow: 0 6px 18px rgba(0,0,0,.4), inset 0 0 0 4px rgba(255,255,255,.12); display: grid; place-items: center; font-family: var(--script); font-size: 22px; color: #f5d7a8; z-index: 5; }
.env-letter { position: absolute; left: 6%; right: 6%; top: 10%; bottom: 6%; background: #fffaf2; border: 1px solid #e8d9bc; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #2b2a36; z-index: 2; transform: translateY(0); box-shadow: 0 10px 30px rgba(0,0,0,.25); will-change: transform; }

/* Sekwencja otwierania (klatki kluczowe - bez skoków warstw w trakcie ruchu) */
.intro.opening .env-seal { animation: sealOff .45s ease forwards; }
.intro.opening .env-flap { animation: flapOpen 1.1s ease-in-out forwards, fadeOut 1.1s ease-in 2.3s forwards; }
.intro.opening .env-letter { animation: letterOut 2.6s cubic-bezier(.45,0,.2,1) .7s forwards; }
.env-shell { position: absolute; inset: 0; }
/* Uwaga: animujemy tylko elementy z jawnym z-index - element z oczekującą animacją tworzy własną warstwę i psuje kolejność. */
.intro.opening .env-body, .intro.opening .env-front { animation: envDrop 1.1s ease-in 2.3s forwards, fadeOut 1.1s ease-in 2.3s forwards; }
.intro.opening .intro-btn { animation: none; opacity: 0; transition: opacity .4s; pointer-events: none; }
@keyframes sealOff { to { opacity: 0; transform: translate(-50%, -50%) scale(.5); } }
@keyframes flapOpen {
  0%    { transform: rotateX(0deg);   z-index: 4; }
  49.9% { transform: rotateX(89deg);  z-index: 4; }
  50%   { transform: rotateX(91deg);  z-index: 0; }   /* zmiana warstwy dokładnie gdy klapka jest ustawiona krawędzią */
  100%  { transform: rotateX(180deg); z-index: 0; }
}
@keyframes letterOut {
  0%    { transform: translateY(0);                  z-index: 2; }
  55%   { transform: translateY(-108%);              z-index: 2; }   /* list w całości wysunięty ponad kopertę */
  55.1% { transform: translateY(-108%);              z-index: 6; }   /* dopiero teraz na wierzch - nic się nie nakłada */
  100%  { transform: translateY(-38%) scale(1.12);   z-index: 6; }
}
@keyframes envDrop { to { transform: translateY(70px); } }
@keyframes fadeOut { to { opacity: 0; } }
.env-small { font-family: var(--sans); text-transform: uppercase; letter-spacing: .35em; font-size: 11px; margin: 0 0 6px; color: #8a7a5a; }
.env-names { font-family: var(--script); font-size: clamp(34px, 8vw, 54px); margin: 0; color: #7a5a1e; line-height: 1.1; }
.env-date { font-family: var(--serif); letter-spacing: .3em; margin: 8px 0 0; font-size: 16px; }
.intro-btn { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(212,175,95,.55); } 50% { box-shadow: 0 0 0 18px rgba(212,175,95,0); } }

/* ---------- Nawigacja ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px 26px; backdrop-filter: blur(10px); background: linear-gradient(to bottom, rgba(11,21,38,.75), rgba(11,21,38,0)); transition: background .3s; }
.topbar.scrolled { background: rgba(11,21,38,.85); border-bottom: 1px solid rgba(212,175,95,.15); }
.brand { font-family: var(--script); font-size: 22px; color: #fff; text-decoration: none; }
.brand .amp { color: var(--gold-2); }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--cream); text-decoration: none; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--gold); transition: width .3s; }
.nav a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.3); color: var(--cream); font-size: 20px; border-radius: 6px; padding: 2px 10px; }
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(11,21,38,.97); padding: 10px 0; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 26px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 20px 80px; position: relative; }
.hero-kicker { text-transform: uppercase; letter-spacing: .45em; font-size: 12px; color: var(--gold); margin: 0 0 18px; }
.hero-names { font-family: var(--script); font-weight: 400; font-size: clamp(64px, 13vw, 150px); line-height: 1; margin: 0; color: #fff; text-shadow: 0 10px 40px rgba(0,0,0,.5); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 .25em; }
.hero-names .amp { color: var(--gold-2); font-size: .7em; }
.hero-names .name { display: inline-block; opacity: 0; transform: translateY(30px) scale(.96); animation: rise 1.4s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-names .name:nth-child(3) { animation-delay: .35s; }
.hero-names .amp { opacity: 0; animation: rise 1.2s ease .7s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-date { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 34px); letter-spacing: .12em; margin: 20px 0 6px; color: var(--cream); }
.hero-greeting { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold-2); margin: 4px 0 0; min-height: 1em; }
.countdown { display: flex; gap: 18px; justify-content: center; margin: 34px 0; flex-wrap: wrap; }
.countdown div { min-width: 82px; padding: 14px 10px; border: 1px solid rgba(212,175,95,.35); border-radius: 12px; background: rgba(255,255,255,.03); backdrop-filter: blur(4px); }
.countdown b { display: block; font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1; color: #fff; }
.countdown span { font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 24px; height: 40px; border: 1px solid rgba(255,255,255,.35); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* ---------- Przyciski ---------- */
.btn-gold { display: inline-block; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #2a1e08; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; padding: 16px 34px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; transition: transform .2s, box-shadow .2s; box-shadow: 0 10px 30px rgba(212,175,95,.25); font-family: var(--sans); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(212,175,95,.4); }
.btn-gold:disabled { opacity: .6; cursor: wait; }
.btn-outline { display: inline-block; border: 1px solid var(--gold); color: var(--gold-2); background: transparent; padding: 12px 24px; border-radius: 999px; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; font-family: var(--sans); }
.btn-outline:hover { background: var(--gold); color: #2a1e08; }
.btn-outline.small { padding: 9px 16px; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-family: var(--sans); font-size: 12px; }

/* ---------- Sekcje ---------- */
.section { padding: 90px 20px; max-width: 1100px; margin: 0 auto; }
.section.narrow { max-width: 760px; text-align: center; }
.section-title { font-family: var(--script); font-weight: 400; font-size: clamp(44px, 7vw, 72px); text-align: center; color: var(--gold-2); margin: 0 0 40px; }
.ornament { color: var(--gold); font-size: 40px; margin-bottom: 10px; }
.lead { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 26px); line-height: 1.6; color: var(--cream); }
.contact { color: var(--muted); font-size: 14px; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Karty ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.card { background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(212,175,95,.25); border-radius: 18px; padding: 36px 30px; text-align: center; transition: transform .3s, border-color .3s; }
.card:hover { transform: translateY(-6px); border-color: var(--gold); }
.card-icon { font-size: 44px; margin-bottom: 8px; }
.card h3 { font-family: var(--script); font-weight: 400; font-size: 40px; margin: 0; color: var(--gold-2); }
.card-time { font-family: var(--serif); font-size: 26px; margin: 4px 0 12px; }
.card-name { font-weight: 500; margin: 0; }
.card-addr { color: var(--muted); margin: 4px 0 22px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, var(--gold), transparent); }
.timeline li { display: grid; grid-template-columns: 70px 44px 1fr; gap: 0 12px; align-items: start; padding: 18px 0; }
.timeline .t-time { font-family: var(--serif); font-size: 24px; text-align: right; color: var(--gold-2); }
.timeline .t-dot { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; background: var(--navy); font-size: 20px; margin-top: 0; box-shadow: 0 0 0 6px var(--navy); }
.timeline .t-title { font-family: var(--serif); font-size: 24px; margin: 4px 0 0; }
.timeline .t-place { color: var(--muted); font-size: 13px; margin: 0; }
.timeline .t-desc { margin: 6px 0 0; font-size: 14px; }
@media (max-width: 520px) {
  .timeline::before { left: 22px; }
  .timeline li { grid-template-columns: 44px 1fr; }
  .timeline .t-time { grid-column: 2; text-align: left; font-size: 18px; order: -1; margin-left: 0; }
  .timeline .t-dot { grid-row: 1 / span 2; }
}

/* ---------- Panele / formularze ---------- */
.panel { background: rgba(9,16,30,.7); border: 1px solid rgba(212,175,95,.25); border-radius: 20px; padding: 36px; max-width: 820px; margin: 0 auto; backdrop-filter: blur(8px); }
.panel-lead { font-family: var(--serif); font-size: 22px; margin: 0 0 8px; }
.panel-hint { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.panel-kicker { text-transform: uppercase; letter-spacing: .3em; font-size: 10px; color: var(--gold); margin: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.panel-head h3 { font-family: var(--script); font-size: 40px; font-weight: 400; margin: 0; color: #fff; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.form input, .form textarea, .form select { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.18); color: var(--cream); padding: 13px 14px; border-radius: 10px; font-family: var(--sans); font-size: 15px; letter-spacing: 0; text-transform: none; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,95,.2); }
.form select option { color: #111; }
.form.inline { flex-direction: row; flex-wrap: wrap; align-items: center; }
.form.inline input { flex: 1; min-width: 200px; }
.form h4 { font-family: var(--serif); font-size: 26px; margin: 10px 0 0; }
.form-error { color: var(--danger); font-size: 13px; margin: 0; min-height: 1em; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.choice-btn { border: 1px solid rgba(212,175,95,.35); background: rgba(255,255,255,.03); color: var(--cream); padding: 24px; border-radius: 16px; cursor: pointer; font-family: var(--serif); font-size: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: all .25s; }
.choice-btn span { font-size: 36px; }
.choice-btn:hover { border-color: var(--gold); transform: translateY(-3px); }
.choice-btn.active { background: linear-gradient(135deg, rgba(241,215,146,.25), rgba(212,175,95,.15)); border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(212,175,95,.25); }
@media (max-width: 520px) { .choice { grid-template-columns: 1fr; } }
.accom { border: 1px solid rgba(212,175,95,.3); border-radius: 14px; padding: 16px 18px 6px; }
.accom h4 { margin: 0 0 4px; }
.choice.small { margin: 10px 0; }
.choice.small .choice-btn { padding: 14px; font-size: 19px; }
.choice.small .choice-btn span { font-size: 26px; }
.accom-details { display: grid; grid-template-columns: 140px 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 560px) { .accom-details { grid-template-columns: 1fr; } }
.person { border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; animation: fadein .4s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } }
.person .full { grid-column: 1 / -1; }
.person .tag { position: absolute; top: -10px; left: 14px; background: var(--navy-2); border: 1px solid var(--gold); color: var(--gold-2); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; }
.person .remove { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } }
.add-row { display: flex; gap: 10px; flex-wrap: wrap; }
.status-banner { padding: 14px 18px; border-radius: 12px; margin: 10px 0 0; font-family: var(--serif); font-size: 20px; }
.status-banner.yes { background: rgba(143,214,164,.12); border: 1px solid rgba(143,214,164,.5); }
.status-banner.no { background: rgba(255,139,139,.1); border: 1px solid rgba(255,139,139,.4); }
.suggestions { margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); }
.suggestions h4 { font-family: var(--serif); font-size: 26px; margin: 0 0 4px; }
.sugg-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.sugg-list li { font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: rgba(255,255,255,.04); border-radius: 8px; }
.sugg-list button { background: none; border: 0; color: var(--muted); cursor: pointer; }

/* ---------- Plan sali ---------- */
.seat-cards { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 20px; }
.seat-card { flex: 1; min-width: 200px; border: 1px solid var(--gold); border-radius: 14px; padding: 16px 18px; background: linear-gradient(135deg, rgba(241,215,146,.15), rgba(212,175,95,.05)); animation: fadein .5s ease; }
.seat-card b { font-family: var(--serif); font-size: 22px; display: block; }
.seat-card span { color: var(--gold-2); font-size: 15px; }
.hall { width: 100%; overflow: auto; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.hall:empty { display: none; }
.hall-svg { width: 100%; height: auto; max-height: 70vh; color: var(--cream); }
.hall-svg .table-shape { fill: rgba(255,255,255,.08); stroke: rgba(212,175,95,.5); stroke-width: 3; }
.hall-svg .table.mine .table-shape { fill: rgba(212,175,95,.22); stroke: var(--gold-2); stroke-width: 5; }
.hall-svg .table-name { fill: var(--cream); font-family: var(--serif); }
.hall-svg .seat-shape { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.3); stroke-width: 2; }
.hall-svg .seat.taken .seat-shape { fill: rgba(255,255,255,.2); }
.hall-svg .seat.reserved .seat-shape { fill: rgba(212,175,95,.35); stroke: var(--gold); }
.hall-svg .seat.reserved .seat-label { fill: var(--gold-2); font-style: italic; }
.hall-svg .seat.mine .seat-shape { fill: var(--gold); stroke: #fff; stroke-width: 3; animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 50% { r: 26; } }
.hall-svg .seat-num { fill: var(--cream); font-family: var(--sans); }
.hall-svg .seat.mine .seat-num { fill: #2a1e08; font-weight: 700; }
.hall-svg .seat-label { fill: var(--muted); font-family: var(--sans); }
.hall-svg .elem-wall .elem-shape { fill: rgba(246,239,228,.55); }
.hall-svg .elem-pillar .elem-shape { fill: rgba(246,239,228,.35); stroke: rgba(246,239,228,.6); stroke-width: 3; }
.hall-svg .elem-area .elem-shape { fill: rgba(212,175,95,.08); stroke: rgba(212,175,95,.5); stroke-width: 3; stroke-dasharray: 14 10; }
.hall-svg .elem-text { fill: var(--gold-2); font-family: var(--sans); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.diet-legend { margin: 8px 0 18px; border: 1px solid rgba(212,175,95,.3); border-radius: 12px; background: rgba(255,255,255,.03); }
.diet-legend summary { cursor: pointer; padding: 12px 16px; font-family: var(--serif); font-size: 20px; color: var(--gold-2); list-style: none; }
.diet-legend summary::before { content: "🍽️ "; }
.diet-legend ul { list-style: none; margin: 0; padding: 0 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.diet-legend li b { display: block; font-weight: 500; color: var(--cream); }
.diet-legend li { font-size: 14px; color: var(--muted); }
.diet-desc { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin: -6px 0 0; }
.diet-desc:empty { display: none; }

/* ---------- Podgląd trybu (tylko Para Młoda) ---------- */
.preview-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: #b8923f; color: #1f1608; font-size: 12px; padding: 6px 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-family: var(--sans); }
.preview-bar a { color: #1f1608; text-decoration: none; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(0,0,0,.25); }
.preview-bar a.on { background: #1f1608; color: #f1d792; }
.preview-bar a.back { margin-left: auto; border: 0; text-decoration: underline; }
body.has-preview-bar .topbar { top: var(--pbh, 32px); }
body.has-preview-bar .intro { padding-top: var(--pbh, 32px); }

/* ---------- Tryby strony, transmisja, galeria ---------- */
[data-phase].phase-hidden { display: none !important; }
main { display: flex; flex-direction: column; }
main > * { width: 100%; }
body.phase-day .hero { order: -3; }
body.phase-day #agenda { order: -2; }
body.phase-day #transmisja { order: -1; }
.hero-phase { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold-2); margin: 6px 0 20px; }
.live-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.live-link { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--gold); border-radius: 14px; text-decoration: none; color: var(--cream); background: linear-gradient(135deg, rgba(241,215,146,.15), rgba(212,175,95,.05)); transition: transform .2s; }
.live-link:hover { transform: translateY(-3px); }
.live-link .dot { width: 12px; height: 12px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 0 rgba(255,77,77,.6); animation: livePulse 1.6s infinite; flex: none; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 10px rgba(255,77,77,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,77,0); } }
.live-link b { font-family: var(--serif); font-size: 22px; display: block; }
.live-link span { color: var(--muted); font-size: 13px; }
.live-link.soon { opacity: .55; }
.live-link.soon .dot { background: var(--muted); animation: none; }
.upload-drop { display: block; border: 2px dashed rgba(212,175,95,.5); border-radius: 14px; padding: 34px 20px; text-align: center; cursor: pointer; color: var(--gold-2); font-family: var(--serif); font-size: 20px; transition: background .2s; }
.upload-drop:hover, .upload-drop.over { background: rgba(212,175,95,.08); }
.upload-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.upload-list li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: 14px; background: rgba(255,255,255,.04); border-radius: 10px; padding: 10px 12px; }
.upload-list .bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.upload-list .bar i { display: block; height: 100%; background: var(--gold); width: 0; transition: width .3s; }
.upload-list .ok { color: var(--ok); } .upload-list .err { color: var(--danger); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 16px; }
.gallery-grid a { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.05); position: relative; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.gallery-grid .by { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; padding: 4px 8px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: var(--cream); }

.footer { text-align: center; padding: 60px 20px 40px; font-family: var(--serif); font-size: 20px; color: var(--muted); }
.foot-small { font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); background: var(--gold); color: #2a1e08; padding: 12px 22px; border-radius: 999px; font-weight: 500; opacity: 0; transition: all .3s; z-index: 40; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
