/* ─────────── 麥迪評分浮動入口（跟 btn-arena-float 同款、堆在上面）─────────── */
.btn-rating-float {
  position: fixed;
  bottom: 80px; /* 在 btn-arena-float（bottom 24px）上方 */
  left: 24px;
  z-index: 900;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px;
  background: linear-gradient(135deg, #ff9800 0%, #ffc107 50%, #ffd54f 100%);
  color: #1a1a1a; font-weight: 900; font-size: 14px; letter-spacing: 1.5px;
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 6px 24px rgba(255,152,0,0.4), 0 0 0 1px rgba(255,255,255,0.12) inset;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-rating-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 32px rgba(255,193,7,0.55), 0 0 0 1px rgba(255,255,255,0.2) inset;
}
.btn-rating-float:active { transform: translateY(0) scale(0.98); }
.btn-rating-float .btn-arena-float-icon { color: #1a1a1a; }
.btn-rating-float .btn-arena-float-ring {
  border-color: rgba(255,193,7,0.75);
}
body.opinion-open .btn-rating-float { display: none; }
@media (max-width: 600px) {
  .btn-rating-float {
    padding: 10px 14px 10px 12px;
    font-size: 13px;
    bottom: 68px; left: 16px; gap: 8px;
  }
}

/* ─────────── 麥迪評分主頁（/maddy-rating）─────────── */
/* 讓 hero 背景吃掉 #main-content 的 padding-top（= header-h、+ 紅 banner 時 + 44px）
   做法：當 maddy-rating active 時、#main-content padding-top 改 0、
        hero 自己內部加等量 padding-top 補償、title 還在正確位置（header 下方）
   結果：brown bg 從畫面最頂端 0px 開始、視覺上跟 header 緊貼、沒有 dark gap */
body:has(#section-maddy-rating.active) #main-content { padding-top: 0 !important; }
#section-maddy-rating { margin: 0; padding: 0; }
.maddy-rating-hero {
  position: relative;
  margin: 0;
  padding: calc(var(--header-h, 68px) + 28px) 20px 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,152,0,0.22) 0%, rgba(255,193,7,0.10) 50%, rgba(255,82,82,0.10) 100%);
  overflow: hidden;
  border-bottom: 1px solid rgba(255,193,7,0.30);
}
/* 有「即將開賽」紅 banner 時、再加 44px / 手機 38px */
body.has-imminent-banner .maddy-rating-hero {
  padding-top: calc(var(--header-h, 68px) + 44px + 28px);
}
@media (max-width: 600px) {
  body.has-imminent-banner .maddy-rating-hero {
    padding-top: calc(var(--header-h, 64px) + 38px + 20px);
  }
}
.maddy-rating-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,193,7,0.30) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,152,0,0.25) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255,255,255,0.025) 12px 14px);
  pointer-events: none;
}
.maddy-rating-hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.maddy-rating-hero-title {
  font-size: 36px;
  font-weight: 900;
  margin: 0 0 6px;
  line-height: 1.15;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffd54f 0%, #ff9800 70%, #ffb300 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 12px rgba(255, 152, 0, 0.35);
}
.maddy-rating-hero-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  margin: 0;
  line-height: 1.5;
}
.maddy-rating-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 20px 60px;
}
.maddy-rating-section-label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  margin-bottom: 12px;
  padding-left: 4px;
}
.maddy-rating-match-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.maddy-rating-match-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 768px) {
  .maddy-rating-match-list {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}
.maddy-match-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.maddy-match-card:hover {
  background: linear-gradient(135deg, rgba(255,193,7,0.10) 0%, rgba(255,152,0,0.05) 100%);
  border-color: rgba(255,193,7,0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 152, 0, 0.18);
}
.maddy-match-card-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.maddy-match-card-team-away {
  justify-content: flex-end;
  text-align: right;
}
.maddy-match-card-flag {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.maddy-match-card-flag img.flag-img {
  height: 28px;
  width: auto;
  border-radius: 3px;
}
.maddy-match-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.maddy-match-card-center {
  text-align: center;
  flex-shrink: 0;
  min-width: 90px;
}
.maddy-match-card-score {
  font-size: 20px;
  font-weight: 900;
  color: #ffd54f;
  line-height: 1.2;
  letter-spacing: 1px;
  background: rgba(255, 193, 7, 0.14);
  padding: 3px 12px;
  border-radius: 8px;
  display: inline-block;
  border: 1px solid rgba(255,193,7,0.25);
}
.maddy-match-card-meta {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  margin-top: 5px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.maddy-match-card-cta {
  display: none;
}
@media (max-width: 480px) {
  .maddy-rating-hero { padding: calc(var(--header-h, 64px) + 18px) 16px 18px; }
  .maddy-rating-hero-title { font-size: 28px; }
  .maddy-rating-hero-sub { font-size: 12px; }
  .maddy-rating-body { padding: 14px 12px 40px; }
  .maddy-match-card { padding: 12px 12px; gap: 10px; }
  .maddy-match-card-flag { font-size: 22px; }
  .maddy-match-card-flag img.flag-img { height: 22px; }
  .maddy-match-card-name { font-size: 13px; }
  .maddy-match-card-score { font-size: 16px; padding: 2px 8px; }
  .maddy-match-card-center { min-width: 72px; }
}

/* 球員評分系統 */

.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-projected-banner {
  margin-top: 10px;
  background: linear-gradient(135deg, rgba(255,152,0,0.18), rgba(255,193,7,0.10));
  border: 1px solid rgba(255,193,7,0.45);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #ffe082;
  line-height: 1.55;
  letter-spacing: 0.3px;
}
.pr-projected-banner b { color: #fff3c4; font-weight: 800; }

/* ─────────── 篩選 + 排序 tabs ─────────── */
.pr-filter-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pr-team-tabs,
.pr-sort-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pr-team-tabs::-webkit-scrollbar,
.pr-sort-tabs::-webkit-scrollbar { display: none; }
.pr-team-tab,
.pr-sort-tab {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pr-team-tab:hover,
.pr-sort-tab:hover {
  background: rgba(255,193,7,0.10);
  color: #ffd54f;
}
.pr-team-tab.is-active,
.pr-sort-tab.is-active {
  background: linear-gradient(135deg, rgba(255,152,0,0.20), rgba(255,193,7,0.12));
  border-color: rgba(255,193,7,0.55);
  color: #ffd54f;
}
.pr-sort-tabs {
  justify-content: flex-end;
}
.pr-meta-summary {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  text-align: right;
  margin-bottom: 8px;
}

.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-comments-expand {
  margin-top: 8px;
  width: 100%;
  background: transparent;
  border: 1px dashed rgba(255,193,7,0.30);
  color: rgba(255,193,7,0.85);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.pr-comments-expand:hover {
  background: rgba(255,193,7,0.08);
  border-color: rgba(255,193,7,0.55);
}
.pr-comments-expand-empty {
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.50);
}
.pr-comments-expand-empty:hover {
  border-color: rgba(255,193,7,0.45);
  color: rgba(255,193,7,0.85);
}

/* ─────────── 留言 modal（查看一個球員的全部銳評）─────────── */
.pr-comments-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffd54f;
  text-align: center;
  margin-bottom: 14px;
  padding: 0 30px;
}
.pr-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 70vh;
  overflow-y: auto;
}
.pr-comment-row {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px;
}
.pr-comment-row-mine {
  background: rgba(255,193,7,0.06);
  border-color: rgba(255,193,7,0.30);
}
/* 靜態愛心（seed 留言用、看起來像 button 但不能按） */
.pr-upvote-static {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  cursor: default;
  user-select: none;
}
.pr-comment-row-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  margin-bottom: 6px;
}
.pr-comment-row-author {
  font-weight: 700;
  color: #4fc3f7;
}
.pr-comment-row-mine-tag {
  background: #ffc107;
  color: #1a1a1a;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.pr-comment-row-rating {
  background: rgba(255,193,7,0.18);
  color: #ffd54f;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.pr-comment-row-time {
  color: rgba(255,255,255,0.40);
  margin-left: auto;
}
.pr-comment-row-text {
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  line-height: 1.55;
  margin-bottom: 8px;
}
.pr-comment-row-foot {
  display: flex;
  justify-content: flex-end;
}
.pr-comment-row-foot .pr-upvote-btn {
  margin-left: 0;
}
.pr-upvote-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.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);
}
