/* game_tgn_0050 — member profile · My Reels */

.g50-profile-page {
  flex: 1;
}

.g50-profile-panel { display: none; }
.g50-profile-panel.active { display: block; width: 100%; }

.g50-btn-remove,
.g50-btn-clear,
.g50-btn-load-more,
.g50-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid var(--g50-line, rgba(238, 241, 245, 0.12));
  border-radius: var(--g50-radius, 4px);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.g50-btn-remove {
  color: var(--g50-ink, #eef1f5);
  background: transparent;
}
.g50-btn-remove:hover {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}
.g50-btn-remove--inline {
  width: auto;
  margin-top: 0;
  margin-left: 8px;
}

.g50-btn-clear {
  color: var(--g50-cta, #e6322a);
  background: transparent;
  border-color: var(--g50-line, rgba(238, 241, 245, 0.12));
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.78rem;
}
.g50-btn-clear:hover {
  color: #fff;
  background: var(--g50-cta, #e6322a);
  border-color: var(--g50-cta, #e6322a);
}

.g50-btn-load-more {
  position: relative;
  width: 100%;
  margin-top: 1rem;
  color: #0a0b0e;
  background: var(--g50-accent, #4ecdc4);
  border-color: transparent;
}
.g50-btn-load-more:hover {
  filter: brightness(1.05);
}

.g50-btn-load-more.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.g50-btn-load-more:disabled {
  cursor: not-allowed;
  opacity: 0.85;
  filter: none;
}

.g50-btn-load-more.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: profile-load-more-spin 0.7s linear infinite;
}

@keyframes profile-load-more-spin {
  to { transform: rotate(360deg); }
}


.g50-loading[hidden],
.g50-empty-state[hidden],
.g50-btn-load-more[hidden],
.g50-btn-remove--inline[hidden] {
  display: none !important;
}

.g50-game-grid .special-card,
.g50-game-grid .g50-profile-game-card,
.g50-game-grid .g50-ranked-card,
.g50-game-grid .g50-game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--g50-panel-2, #22262f);
  border: 1px solid var(--g50-line, rgba(238, 241, 245, 0.12));
  border-radius: var(--g50-radius, 4px);
  overflow: hidden;
  color: var(--g50-ink, #eef1f5);
  transition: transform 0.15s ease;
  min-width: 0;
}
.g50-game-grid .g50-ranked-card:hover,
.g50-game-grid .g50-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--g50-accent, #4ecdc4);
}
.g50-game-grid a {
  color: var(--g50-ink, #eef1f5);
}
.g50-game-grid a:hover {
  color: var(--g50-ink, #eef1f5);
}
.g50-game-grid .g50-card-index {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  min-width: 22px;
  padding: 2px 6px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  color: #0a0b0e;
  background: var(--g50-accent, #4ecdc4);
  line-height: 1.25;
  border-radius: 3px;
}
.g50-game-grid .g50-ranked-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--g50-ph, #22262f);
}
.g50-game-grid .g50-ranked-thumb img,
.g50-game-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--g50-ph, #22262f);
}
.g50-game-grid .g50-ranked-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px 12px;
}
.g50-game-grid .game-title,
.g50-game-grid .card-title {
  display: block;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--g50-ink, #eef1f5);
}
.g50-game-grid .game-title a {
  color: var(--g50-ink, #eef1f5);
  text-decoration: none;
}
.g50-game-grid .brief-comment-game {
  margin: 0;
  color: var(--g50-muted, #9aa3b0);
  font-size: 0.75rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.g50-game-grid .g50-card-tags,
.g50-game-grid .g50-tag-chip {
  display: none;
}
.g50-game-grid .g50-btn-remove {
  align-self: flex-start;
  margin-top: 4px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.75rem;
}
.g50-game-grid .game-star {
  padding: 0;
}

@media (max-width: 767px) {
  .g50-game-grid .special-card,
  .g50-game-grid .g50-profile-game-card,
  .g50-game-grid .g50-ranked-card,
  .g50-game-grid .g50-game-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 0 10px;
    align-items: stretch;
    transform: none;
  }
  .g50-game-grid .g50-ranked-card:hover,
  .g50-game-grid .g50-game-card:hover {
    transform: none;
  }
  .g50-game-grid .g50-card-index {
    top: 4px;
    left: 4px;
    min-width: 20px;
    padding: 1px 5px;
    font-size: 0.65rem;
  }
  .g50-game-grid .g50-ranked-thumb {
    grid-column: 1;
    grid-row: 1;
    width: 88px;
    min-height: 55px;
    aspect-ratio: 16 / 10;
    align-self: stretch;
  }
  .g50-game-grid .g50-ranked-body {
    grid-column: 2;
    grid-row: 1;
    padding: 6px 8px;
    gap: 2px;
    justify-content: center;
  }
  .g50-game-grid .game-title,
  .g50-game-grid .card-title {
    font-size: 0.82rem;
  }
  .g50-game-grid .brief-comment-game {
    display: none;
  }
  .g50-game-grid .g50-btn-remove {
    min-height: 26px;
    padding: 0 8px;
    font-size: 0.68rem;
    margin-top: 2px;
  }
}
