body.photolove {
  margin: 0; padding: 0; min-height: 100vh;
  font-family: "Fredoka", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #fff5fb 0%, #ffe4f0 100%);
  background-attachment: fixed;
  color: #2e2b3b;
}
body.photolove::before { display: none; }
body.photolove * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

.pl-header {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  position: sticky; top: 0; z-index: 10;
}
.pl-header h1 {
  margin: 0; font-size: 1.4rem; flex: 1; text-align: center;
  letter-spacing: .03em; font-family: inherit; color: #1a1a1a;
}
.pl-header .back { text-decoration: none; color: #2e2b3b; font-size: 1.6rem; }
.pl-header .me-name { font-weight: 700; color: #c049a0; font-size: 1rem; }

.pl-main { max-width: 760px; margin: 0 auto; padding: 0.75rem; }

.pl-note {
  background: linear-gradient(135deg, #fff5e0, #ffe0c0);
  border-radius: 12px;
  padding: .75rem 1rem;
  margin-bottom: .85rem;
  font-size: 1rem;
  text-align: center;
  border: 2px solid #f5c84a;
}

.pl-upload-btn {
  display: block; width: 100%;
  padding: .75rem;
  margin-bottom: .85rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff7eb6 0%, #ffb6a3 100%);
  color: white;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 3px 10px rgba(208,70,148,.25);
}
.pl-upload-btn:active { transform: scale(.98); }

.pl-modal-back {
  position: fixed; inset: 0; z-index: 25;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.pl-modal-back.hidden { display: none; }
.pl-modal {
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.pl-modal h3 { margin: 0 0 .75rem; font-size: 1.2rem; }
.pl-modal img.preview {
  max-width: 100%; max-height: 40vh;
  border-radius: 10px; margin-bottom: .75rem;
}
.pl-modal input.caption-input {
  width: 100%;
  padding: .65rem .75rem;
  border-radius: 10px;
  border: 2px solid rgba(0,0,0,.1);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: .75rem;
}
.pl-modal input.caption-input:focus { outline: none; border-color: #ff7eb6; }
.pl-modal .modal-hint {
  font-size: .85rem;
  color: #666;
  margin-bottom: .75rem;
  font-style: italic;
}
.pl-modal .modal-actions {
  display: flex; gap: .5rem;
}
.pl-modal .modal-btn {
  flex: 1;
  border: none; border-radius: 999px;
  padding: .65rem;
  font-family: inherit; font-weight: 800; font-size: 1rem;
  cursor: pointer;
}
.pl-modal .modal-btn.go { background: #ff7eb6; color: white; }
.pl-modal .modal-btn.go:disabled { background: #ddd; cursor: not-allowed; }
.pl-modal .modal-btn.cancel { background: #ddd; color: #333; }

.pl-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .65rem; }

.pl-card {
  background: white;
  border-radius: 14px;
  padding: .65rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  display: flex; gap: .75rem; align-items: stretch;
}
.pl-thumb {
  width: 180px; height: 180px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  background: #f7f3e8;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,.05);
}
@media (max-width: 480px) {
  .pl-thumb { width: 140px; height: 140px; }
}
.pl-right {
  display: flex; flex-direction: column; justify-content: space-between;
  flex: 1; min-width: 0;
}
.pl-prompt {
  font-size: 1.05rem; line-height: 1.4; font-weight: 600;
  color: #2e2b3b;
  word-break: break-word;
}
.pl-actions {
  display: flex; align-items: center; gap: .6rem;
  margin-top: .5rem;
}
.heart-btn {
  border: none; background: white;
  border-radius: 999px;
  padding: .5rem .9rem;
  font-size: 1.5rem; line-height: 1;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  transition: transform .1s ease;
}
.heart-btn:active { transform: scale(.92); }
.heart-btn.liked { animation: heart-pop .3s ease; }
@keyframes heart-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.like-count {
  font-weight: 800;
  font-size: 1.1rem;
  color: #c049a0;
}
.like-count.zero { color: #aaa; }

.lightbox {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; cursor: zoom-out;
}
.lightbox.hidden { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
