/**
 * /assets/css/profile.css
 * -----------------------------------------------------------------------------
 * Profile-only styling (player + profile header polish + hotkeys/tips card)
 * -----------------------------------------------------------------------------
 */

.profile-page {
  --pf-radius-lg: 16px;
  --pf-radius-md: 12px;
  --pf-border: #ececec;
  --pf-muted: #6b6b6b;
}

/* Header polish */
.profile-page .profile-header h1,
.profile-page .profile-title {
  letter-spacing: -0.3px;
}

.profile-page .country-link { text-decoration: none; }
.profile-page .country-link:hover { text-decoration: underline; }

/* Tags row */
.profile-page .tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Player wrapper */
.profile-page .player-wrap {
  position: relative;
  border-radius: var(--pf-radius-lg);
  overflow: hidden;
  background: #000;
  scroll-margin-top: 90px;
}

/* Video */
.profile-page .player-video {
  width: 100%;
  max-height: 560px;
  background: #000;
  display: block;
}

/* Loading overlay */
.profile-page .player-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 18px;
  background: rgba(0,0,0,.55);
  color: #fff;
  z-index: 5;
  transition: opacity 160ms ease;
  text-align: center;
}

.profile-page .player-poster {
  max-width: 260px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
}

/* Prev/Next arrows overlay */
.profile-page .player-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  color: #fff;
  text-decoration: none;
  font-size: 44px;
  line-height: 1;
  padding: 6px 14px;
  background: rgba(0,0,0,.35);
  border-radius: 12px;
  user-select: none;
}

.profile-page .player-nav:hover { background: rgba(0,0,0,.55); }
.profile-page .player-nav.prev { left: 10px; }
.profile-page .player-nav.next { right: 10px; }

@media (max-width: 575.98px) {
  .profile-page .player-nav { font-size: 38px; padding: 6px 12px; }
}

/* Fullscreen behavior */
body.is-fullscreen .player-video { max-height: none; height: 100vh; }

#playerWrap:fullscreen,
#playerWrap:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#playerWrap:fullscreen .player-video,
#playerWrap:-webkit-full-screen .player-video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  background: #000;
}

body.is-fullscreen .player-nav {
  font-size: 3rem;
  padding: 10px 16px;
}

/* Fullscreen model-name overlay (JS toggles .is-on) */
.profile-page .fs-modelname {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 7;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15px;
  max-width: calc(100% - 28px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}
.profile-page .fs-modelname.is-on { opacity: 1; transform: translateY(0); }

/* Hotkeys one-line */
.profile-page .hotkeys-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.profile-page .hotkey-badge {
  border-radius: 999px;
  padding: .42rem .62rem;
  font-weight: 700;
  letter-spacing: .1px;
  white-space: nowrap;
}

/* Tip strip */
.profile-page .tip-strip {
  border: 1px dashed #e2e2e2;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fafafa;
  font-size: 13px;
  color: #444;
}
