/* ===== Base ===== */
* { box-sizing: border-box; }
:root{
  --bg1:#ff7abf;
  --bg2:#ffb3d9;
  --card:#ffffffcc;
  --ink:#7a1b4b;
  --hot:#ff3f9a;
  --hot2:#ff66b2;
  --shadow: 0 18px 45px rgba(0,0,0,.18);
  --radius: 18px;
}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
}
.bg{
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  overflow-x:hidden;
}
.center{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding: 24px;
}

/* ===== Card ===== */
.card{
  width:min(520px, 92vw);
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
}
.card-wide{ width:min(640px, 92vw); }
.glass{ background: var(--card); }

.title{
  margin: 0 0 14px;
  text-align:center;
  font-weight: 800;
  letter-spacing:.2px;
}
.subtitle{
  margin: 0 0 18px;
  text-align:center;
  opacity:.9;
}

/* ===== Form ===== */
.stack{ display:grid; gap:12px; }
.input{
  width:100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 2px solid rgba(255,63,154,.35);
  outline:none;
  font-size: 16px;
}
.input:focus{
  border-color: rgba(255,63,154,.75);
  box-shadow: 0 0 0 5px rgba(255,63,154,.15);
}
.hint{
  margin: 0;
  text-align:center;
  min-height: 1.2em;
  opacity:.95;
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width: fit-content;
  margin: 0 auto;
  padding: 12px 18px;
  border-radius: 14px;
  border: none;
  cursor:pointer;
  font-weight: 750;
  color: white;
  background: linear-gradient(180deg, var(--hot), var(--hot2));
  box-shadow: 0 12px 25px rgba(255,63,154,.35);
  transition: transform .12s ease, filter .12s ease;
  text-decoration:none;
}
.btn:hover{ transform: translateY(-2px); filter: brightness(1.03); }
.btn:active{ transform: translateY(0px) scale(.98); }

.btn-soft{
  background: rgba(255,255,255,.55);
  color: var(--ink);
  border: 2px solid rgba(255,63,154,.25);
}

/* ===== Top/Header + Tabs ===== */
.top{
  padding: 26px 16px 10px;
  text-align:center;
}
.hero-title{
  margin: 0;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
  text-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.hero-sub{
  margin: 8px 0 16px;
  opacity:.9;
}
.tabs{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  padding-bottom: 10px;
}
.tab{
  padding: 10px 14px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.35);
  cursor:pointer;
  font-weight: 750;
  color: var(--ink);
  transition: transform .12s ease, background .12s ease;
}
.tab:hover{ transform: translateY(-1px); }
.tab.active{
  background: rgba(255,255,255,.75);
  border-color: rgba(255,63,154,.35);
}

/* ===== Layout ===== */
.container{
  width: min(980px, 92vw);
  margin: 0 auto 60px;
}
.section-title{
  text-align:center;
  margin: 18px 0 14px;
  font-size: 24px;
  font-weight: 900;
}
.panel{
  display:none;
  padding: 18px 14px 22px;
  background: rgba(255,255,255,.55);
  border: 2px solid rgba(255,255,255,.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.panel.show{ display:block; }

/* ===== Love Zone ===== */
.love-msg{
  text-align:center;
  margin: 14px auto 0;
  width: min(620px, 92%);
  font-weight: 650;
  opacity:.95;
}

/* ===== Music ===== */
.music-box{
  width: min(760px, 92%);
  margin: 0 auto;
  display:grid;
  gap: 14px;
}
.list{ list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.link{
  width:100%;
  text-align:left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid rgba(255,63,154,.18);
  background: rgba(255,255,255,.55);
  cursor:pointer;
  font-weight: 700;
}
.link:hover{ filter: brightness(1.02); }

/* ===== Gallery ===== */
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  padding: 8px;
}
.photo,
.video-photo {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.4);
  transition: transform .18s ease, box-shadow .18s ease;
  aspect-ratio: 1 / 1;
}

.photo img,
.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-thumb {
  pointer-events: none;
}

/* play icon */
.video-photo::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 48px;
  color: white;
  background: rgba(0,0,0,.25);
  pointer-events: none;
}

.photo:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(0,0,0,.18);
}
.tag{
  position:absolute;
  left:10px; right:10px; bottom:10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  background: rgba(255,63,154,.82);
  color:white;
  backdrop-filter: blur(6px);
}

/* ===== Notes ===== */
.notes{
  width: min(760px, 92%);
  margin: 0 auto 18px;
  padding: 0;
  list-style:none;
  display:grid;
  gap: 10px;
}
.notes li{
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.55);
  border: 2px solid rgba(255,63,154,.14);
  font-weight: 650;
}
.letter{
  width: min(760px, 92%);
  margin: 0 auto;
  padding: 16px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.55);
  border: 2px solid rgba(255,255,255,.55);
}
.letter h3{ margin: 0 0 8px; }
.sign{ margin-top: 12px; font-weight: 800; }
.sig-name{ color: var(--hot); }
.footer-note{
  text-align:center;
  margin-top: 14px;
  font-weight: 800;
  opacity:.9;
}

/* ===== Modal ===== */
.modal{ position:fixed; inset:0; display:none; }
.modal.show{ display:block; }
.modal-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.35);
}
.modal-card{
  position:relative;
  width: min(720px, 92vw);
  margin: 8vh auto 0;
  background: rgba(255,255,255,.95);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 28px 75px rgba(0,0,0,.3);
}
.modal-card img,
.modal-card video {
  width:100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 14px;
  background: #000;
}
.modal-x{
  position:absolute;
  right: 10px;
  top: 10px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: none;
  cursor:pointer;
  background: rgba(255,63,154,.15);
  font-weight: 900;
}
.modal-cap{
  margin: 10px 6px 0;
  font-weight: 850;
  text-align:center;
}

/* ===== Animations ===== */
.fade{ animation: fade .22s ease; }
@keyframes fade{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}
.pop-in{ animation: pop .28s ease; }
@keyframes pop{
  from{ opacity:0; transform: scale(.96); }
  to{ opacity:1; transform: scale(1); }
}
.shake{ animation: shake .35s ease; }
@keyframes shake{
  0%,100%{ transform: translateX(0); }
  20%{ transform: translateX(-10px); }
  40%{ transform: translateX(10px); }
  60%{ transform: translateX(-6px); }
  80%{ transform: translateX(6px); }
}

/* Floating hearts layer */
.hearts{
  position:fixed;
  inset:0;
  pointer-events:none;
  overflow:hidden;
}
.heart{
  position:absolute;
  bottom:-30px;
  font-size: 18px;
  opacity: .65;
  animation: floatUp linear forwards;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.12));
}
@keyframes floatUp{
  from{ transform: translateY(0) translateX(0) rotate(0deg); }
  to{ transform: translateY(-120vh) translateX(var(--drift)) rotate(18deg); }
}

/* A11y */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 900px){
  .hero-title{ font-size: clamp(22px,6vw,38px); }
  .grid{ grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap:12px; }
  .music-box, .letter, .notes{ width: 95%; }
}

/* Mobile */
@media (max-width: 600px){
  .hero-title{ font-size: clamp(20px,7vw,32px); }
  .hero-sub{ font-size: 14px; }
  .tabs button{ padding: 8px 12px; font-size: 14px; }
  .grid{ grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap:10px; }
  .photo img, .video-thumb{ height: 140px; }
  .modal-card{ width: 90%; margin: 6vh auto; padding: 12px; }
  .love-msg{ font-size: 14px; width: 90%; }
  .notes li{ font-size: 14px; padding: 10px; }
}

/* Small Mobile */
@media (max-width: 400px){
  .tabs{ flex-direction: column; gap: 6px; }
  .tab{ font-size: 12px; padding: 6px 10px; }
}
