/* 球員評分系統 */

.pr-container {
  max-width: 720px;
  margin: 0 auto;
}

.pr-header {
  text-align: center;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255,193,7,0.10), rgba(255,152,0,0.05));
  border: 1px solid rgba(255,193,7,0.25);
  border-radius: 12px;
}
.pr-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffd54f;
  margin-bottom: 4px;
}
.pr-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.pr-section-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin: 16px 0 8px;
  padding-left: 4px;
}

.pr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.pr-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.pr-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}
.pr-card-bench {
  opacity: 0.85;
}

.pr-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pr-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
}

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

.pr-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}
.pr-shirt {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}

.pr-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.pr-pos {
  font-weight: 600;
}
.pr-stats {
  background: rgba(255,193,7,0.12);
  border: 1px solid rgba(255,193,7,0.25);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 11px;
  color: #ffd54f;
}

.pr-highlight {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255,193,7,0.7);
  font-style: italic;
}

.pr-score {
  text-align: center;
  flex-shrink: 0;
  min-width: 90px;
}
.pr-stars {
  display: flex;
  gap: 1px;
  justify-content: center;
  margin-bottom: 2px;
}
.pr-star {
  background: none;
  border: none;
  color: rgba(255,255,255,0.2);
  font-size: 16px;
  cursor: pointer;
  padding: 2px;
  transition: color 0.1s ease, transform 0.1s ease;
  line-height: 1;
}
.pr-star:hover {
  color: #ffd54f;
  transform: scale(1.15);
}
.pr-star-filled {
  color: #ffc107;
}
.pr-score-num {
  font-size: 20px;
  font-weight: 800;
  color: #4fc3f7;
  line-height: 1;
}
.pr-score-count {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

.pr-comment {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(255,152,0,0.08);
  border-left: 3px solid #ff9800;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.pr-comment-tag {
  display: inline-block;
  background: rgba(255,152,0,0.25);
  color: #ffd54f;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.pr-comment-text {
  flex: 1;
  min-width: 0;
}

/* ─────────── 留言輸入 + 點讚 ─────────── */
.pr-comment-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.pr-comment-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.pr-comment-input:focus {
  border-color: rgba(255,193,7,0.45);
  background: rgba(255,255,255,0.08);
}
.pr-comment-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pr-comment-input::placeholder {
  color: rgba(255,255,255,0.35);
}
.pr-comment-submit {
  background: linear-gradient(135deg, #ff9800, #ffc107);
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s;
}
.pr-comment-submit:hover:not(:disabled) {
  filter: brightness(1.08);
}
.pr-comment-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pr-comment-form-disabled .pr-comment-input {
  background: rgba(255,255,255,0.02);
}

.pr-comment-tag-user {
  background: rgba(79, 195, 247, 0.20);
  color: #4fc3f7;
}

.pr-upvote-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 4px 10px 4px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-left: auto;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.pr-upvote-btn:hover {
  background: rgba(255,82,82,0.12);
  border-color: rgba(255,82,82,0.30);
  transform: scale(1.05);
}
.pr-upvote-btn.pr-upvoted {
  background: rgba(255,82,82,0.18);
  border-color: rgba(255,82,82,0.45);
  color: #ff8a8a;
}
.pr-upvote-heart {
  font-size: 14px;
  line-height: 1;
}
.pr-upvote-count {
  font-variant-numeric: tabular-nums;
}

.pr-bench-wrap {
  margin-top: 16px;
}
.pr-bench-wrap summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  padding: 8px 4px;
  user-select: none;
}
.pr-bench-wrap summary:hover {
  color: #ffd54f;
}
.pr-bench-wrap[open] summary {
  margin-bottom: 8px;
}

.pr-loading, .pr-empty, .pr-error {
  text-align: center;
  padding: 30px 20px;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
}
.pr-error { color: #ef9a9a; }

/* Modal 版 */
.pr-modal-overlay {
  position: fixed; inset: 0; z-index: 11000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 12px;
  overflow-y: auto;
}
.pr-modal-overlay.open { opacity: 1; }
.pr-modal-card {
  background: linear-gradient(180deg, #1a1d28 0%, #14161e 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  width: 100%;
  max-width: 760px;
  padding: 16px 14px 20px;
  position: relative;
  margin: auto;
}
.pr-modal-close {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255,255,255,0.10);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
}
.pr-modal-close:hover {
  background: rgba(255,255,255,0.18);
}

@media (max-width: 480px) {
  .pr-avatar { width: 48px; height: 48px; }
  .pr-name { font-size: 14px; }
  .pr-score-num { font-size: 18px; }
  .pr-score { min-width: 78px; }
  .pr-star { font-size: 14px; padding: 1px; }
}

/* ─────────── 球員擂台 banner（擂台頁入口 B）─────────── */
.player-rating-banner-wrap {
  margin: 14px 0 18px;
}
.player-rating-banner {
  background: linear-gradient(135deg, #ff9800 0%, #ffc107 50%, #ffb300 100%);
  border-radius: 16px;
  padding: 16px 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(255, 152, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.player-rating-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 193, 7, 0.5);
}
.player-rating-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.player-rating-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.player-rating-banner-icon {
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}
.player-rating-banner-title {
  font-size: 16px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.player-rating-banner-desc {
  font-size: 12px;
  color: rgba(26, 26, 26, 0.75);
  font-weight: 500;
}
.player-rating-banner-btn {
  background: #1a1a1a;
  color: #ffd54f;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .player-rating-banner { padding: 14px 14px; }
  .player-rating-banner-icon { font-size: 28px; }
  .player-rating-banner-title { font-size: 14px; }
  .player-rating-banner-desc { font-size: 11px; }
  .player-rating-banner-btn { padding: 7px 12px; font-size: 12px; }
}

/* ─────────── Picker modal（選比賽）─────────── */
.pr-picker-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffd54f;
  text-align: center;
  margin-bottom: 4px;
  padding: 0 30px;
}
.pr-picker-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  margin-bottom: 16px;
}
.pr-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pr-picker-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.pr-picker-item:hover {
  background: rgba(255,193,7,0.08);
  border-color: rgba(255,193,7,0.30);
}
.pr-picker-teams {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.pr-picker-score {
  font-weight: 800;
  color: #ffd54f;
  font-size: 13px;
  padding: 2px 8px;
  background: rgba(255,193,7,0.15);
  border-radius: 6px;
  min-width: 50px;
  text-align: center;
}
.pr-picker-stats {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

/* ─────────── 麥迪擂台 popup 底部 CTA（入口 B）─────────── */
.opinion-rating-cta-wrap {
  margin: 18px 0 8px;
  cursor: pointer;
}
.opinion-rating-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(255,152,0,0.15), rgba(255,193,7,0.08));
  border: 1px solid rgba(255,193,7,0.30);
  border-radius: 12px;
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
}
.opinion-rating-cta-wrap:hover .opinion-rating-cta {
  background: linear-gradient(135deg, rgba(255,152,0,0.22), rgba(255,193,7,0.14));
  border-color: rgba(255,193,7,0.55);
  transform: translateX(2px);
}
.opinion-rating-cta-icon {
  font-size: 30px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(255,193,7,0.35));
}
.opinion-rating-cta-text {
  flex: 1;
  min-width: 0;
}
.opinion-rating-cta-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffd54f;
  margin-bottom: 2px;
}
.opinion-rating-cta-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
}
.opinion-rating-cta-arrow {
  font-size: 18px;
  color: #ffd54f;
  font-weight: 800;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.opinion-rating-cta-wrap:hover .opinion-rating-cta-arrow {
  transform: translateX(4px);
}

/* ─────────── 進站彈窗入口卡（入口 D）─────────── */
.pr-entry-overlay {
  position: fixed; inset: 0; z-index: 11200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.pr-entry-overlay.open { opacity: 1; }
.pr-entry-card {
  background: linear-gradient(180deg, #232730 0%, #1a1d27 100%);
  border: 1px solid rgba(255, 193, 7, 0.30);
  border-radius: 18px;
  padding: 26px 22px 22px;
  max-width: 380px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 12px 40px rgba(255, 152, 0, 0.25);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pr-entry-overlay.open .pr-entry-card {
  transform: scale(1);
}
.pr-entry-close {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}
.pr-entry-close:hover {
  background: rgba(255,255,255,0.15);
}
.pr-entry-emoji {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 10px rgba(255, 193, 7, 0.5));
  animation: prEntryEmoji 2s ease-in-out infinite;
}
@keyframes prEntryEmoji {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.08) rotate(-5deg); }
}
.pr-entry-match {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.pr-entry-score {
  background: linear-gradient(135deg, #ff9800, #ffc107);
  color: #1a1a1a;
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 17px;
}
.pr-entry-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffd54f;
  margin-bottom: 6px;
}
.pr-entry-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 18px;
}
.pr-entry-btns {
  display: flex;
  gap: 10px;
}
.pr-entry-skip,
.pr-entry-go {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
  border: none;
}
.pr-entry-skip {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}
.pr-entry-skip:hover {
  background: rgba(255,255,255,0.14);
}
.pr-entry-go {
  background: linear-gradient(135deg, #ff9800, #ffc107, #ffb300);
  color: #1a1a1a;
  flex: 1.4;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}
.pr-entry-go:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
