/* Shared styles for Ocean Surf player pages */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, rgb(23, 42, 116), rgb(33, 169, 175));
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

header.page-header {
  width: 100%;
  text-align: center;
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  padding: 16px 12px;
}

main.player {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  color: #0b2b2f;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease, background 0.2s ease;
}
.btn:hover { filter: brightness(0.97); }
.btn:active { transform: scale(0.98); }
.btn.secondary { background: rgba(255, 255, 255, 0.85); }

.center-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Play/Pause Control with progress ring */
.play-wrap {
  position: relative;
  width: clamp(180px, 40vw, 240px);
  height: clamp(180px, 40vw, 240px);
  display: grid;
  place-items: center;
}

.play-toggle {
  width: 68%;
  height: 68%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
}
.play-toggle:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}
.icon {
  width: 40%;
  height: 40%;
  display: block;
}

.ring-svg {
  position: absolute;
  inset: 0;
}
.ring-track { stroke: rgba(255, 255, 255, 0.25); }
.ring-progress { stroke: #ffffff; stroke-linecap: round; transition: stroke-dashoffset 0.2s linear; }

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}
.modal.open { display: flex; }
.modal-content {
  width: min(720px, 92vw);
  max-height: 88vh;
  background: #0e2330;
  color: #fff;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
}
.modal-title { font-weight: 700; }
.modal-close {
  appearance: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}
.modal-body { padding: 14px; }
.modal-body p { margin: 0 0 12px 0; line-height: 1.45; }
.modal-body .warn { font-weight: 700; color: #ffd06e; }

.iframe-wrap { width: 100%; height: min(70vh, 80dvh); background: #001018; }
.iframe-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

footer.page-footer {
  width: 100%;
  margin-top: auto;
  padding: 18px 12px 24px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
footer.page-footer a { color: #fff; opacity: 0.9; text-decoration: none; }
footer.page-footer a:hover { text-decoration: underline; }

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

@media (min-width: 768px) {
  .modal-body { padding: 18px; }
}

