:root{
  --bg-dark: #1a1614;
  --accent: #ff9933;
  --accent-2: #ffc107;
  --text: #f5f5f5;
  --text-muted: #999;
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg-dark);
}

.bg{
  position: fixed;
  inset: 0;
  background: url('assets/bg.png') center 42% / cover no-repeat;
  z-index: 0;
}

.overlay{
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,8,7,0.35) 0%, rgba(10,8,7,0.1) 40%, rgba(10,8,7,0.5) 100%);
  z-index: 1;
}

.topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 28px;
  font-size: 14px;
  font-weight: 500;
}

.online{
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
}

.clock{
  min-width: 70px;
  margin-top: 6px;
}

.clock .colon{
  animation: blink 1s step-start infinite;
}

@keyframes blink{
  50%{ opacity: 0; }
}

.online{
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.online-label{
  color: var(--text-muted);
  font-weight: 400;
}

.dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 8px #2ecc71;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse{
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.links{
  display: flex;
  flex-direction: row-reverse;
  gap: 10px;
}

.pill-link{
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.pill-link:hover{
  background: rgba(255,255,255,0.15);
}

.hero{
  position: relative;
  z-index: 3;
  height: 100vh;
  height: 100dvh;
  width: 100%;
}

.title{
  position: absolute;
  top: 11%;
  height: 44%;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 600px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.title object{
  height: 100%;
  width: 100%;
  max-width: 100%;
  pointer-events: none;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.6)) drop-shadow(0 0 40px rgba(255,153,51,0.25));
}

.player{
  position: absolute;
  bottom: max(30px, 5%);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 26px 10px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(150,50,35,0.35), rgba(70,35,28,0.35));
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 40px rgba(0,0,0,0.45), 0 0 40px rgba(255,90,50,0.15);
  max-width: 92vw;
  width: 560px;
}

.contact-footer{
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: rgba(245,245,245,0.35);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.contact-footer:hover{
  color: rgba(245,245,245,0.6);
}

.cd-wrap{
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.cd{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.7);
  border: 3px solid rgba(255,255,255,0.25);
  background: #333;
  animation: spin 4s linear infinite;
  animation-play-state: paused;
}

.cd.spinning{
  animation-play-state: running;
}

@keyframes spin{
  from{ transform: scale(1.7) rotate(0deg); }
  to{ transform: scale(1.7) rotate(360deg); }
}

.play-overlay{
  position: absolute;
  inset: 0;
  margin: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.play-overlay:hover{
  background: rgba(0,0,0,0.75);
}

.track-info{
  flex: 1;
  min-width: 0;
}

.controls{
  flex-shrink: 0;
}

.track-title{
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist{
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-row{
  margin-top: 6px;
}

.time-combined{
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.progress-bar{
  position: relative;
  width: 100%;
  padding: 6px 0;
  cursor: pointer;
  touch-action: none;
}

.progress-track{
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  overflow: hidden;
}

.progress-fill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}

.progress-thumb{
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5), 0 0 0 3px rgba(255,255,255,0.15);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.controls{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ctrl-btn{
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.ctrl-btn:hover{
  opacity: 1;
}

.ctrl-btn-main{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #1a1614;
  opacity: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

#yt-player-holder{
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  bottom: 0;
  left: 0;
}

/* ---------- Offer a Modak ---------- */

button.pill-link{
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

@keyframes heart-glow{
  0%, 100% { opacity: 0.6; filter: drop-shadow(0 0 1px rgba(230,0,0,0.2)); }
  50% { opacity: 1; filter: drop-shadow(0 0 6px rgba(255,30,30,0.9)); }
}

.modak-heart{
  animation: heart-glow 2.2s ease-in-out infinite;
}

.modak-overlay{
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8,6,5,0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modak-overlay.open{
  display: flex;
}

.modak-modal{
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #241a16, #150f0d);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 28px 22px 22px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modak-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modak-close:hover{
  background: rgba(255,255,255,0.18);
}

.modak-accent{
  width: 44px;
  height: 3px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.modak-message{
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 6px 0 20px;
}

.modak-greeting{
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 6px;
}

.modak-heart-inline{
  display: inline-block;
  animation: heart-glow 2.2s ease-in-out infinite;
}

.modak-qr-wrap{
  width: 190px;
  height: 190px;
  margin: 0 auto 16px;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 0 0 3px rgba(255,153,51,0.18), 0 0 30px rgba(255,90,50,0.25), 0 4px 20px rgba(0,0,0,0.35);
}

.modak-qr{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.modak-download-btn{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 4px 0 10px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #fff;
  color: #1a1614;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: filter 0.2s ease;
}

.modak-download-btn:hover{
  filter: brightness(0.92);
}

.modak-caption{
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.modak-legal{
  font-size: 10.5px;
  line-height: 1.5;
  color: #9a9a9a;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 520px){
  .player{ width: calc(100% - 32px); padding: 10px; gap: 14px; }
  .links{ flex-direction: column; align-items: flex-end; gap: 6px; }
  .topbar{ font-size: 12px; padding: 14px 16px; }
  .online{ top: 21px; }
  .clock{ margin-top: 7px; }
  .cd-wrap{ width: 60px; height: 60px; }
  .track-title{ font-size: 13px; }
  .controls{ gap: 10px; }
  .title{ width: min(72vw, 600px); }
  .modak-modal{ padding: 24px 18px 18px; }
  .modak-qr-wrap{ width: 160px; height: 160px; }
}

@media (max-width: 380px){
  .links .pill-link span{ display:none; }
  .pill-link{ padding: 8px 10px; }
}

@media (orientation: portrait){
  .bg{ background-position: center 38%; }
}
