/* =========================================================
   PLAYER RANKING (isoliert)
========================================================= */

.player-ranking {
  position: relative;
}

.player-ranking::after {
  content: "";
  position: absolute;
  left: -5px;
  top: 0;
  width: 5px;
  height: 100%;
  background-image: url(/img/ui/gold-deco.png);
}

.player-ranking::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 100%;
  height: 100%;
  border: 2px solid #ffffff;
  opacity: 0.3;
}

.player-ranking > * {
  position: relative;
  z-index: 1;
}

/* Header */
.player-ranking .w-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;
  min-height: 77px;
  padding: 10px 30px;

  text-transform: uppercase;
  background-image: url(/img/ui/widget-head-bg.png);
}

.player-ranking .w-heading .w-name {
  display: flex;
  align-items: center;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1;
}

.player-ranking .w-heading .w-name img {
  width: auto;
  margin-right: 10px;
}

.player-ranking .w-heading .w-name .main {
  font-size: 15px;
  color: #d3c9b7;
  text-shadow: 0.484px 1.941px 0px rgba(26, 27, 27, 0.7);
}

.player-ranking .w-heading .w-name span {
  font-size: 8px;
  color: #ac9f95;
}

.player-ranking .w-heading .action {
  display: block;
  padding: 5px 15px;
  background-color: rgba(169, 168, 167, 0.1);
  transition: 0.2s;
}

.player-ranking .w-heading .action:hover {
  background-color: rgba(169, 168, 167, 0.3);
}

.player-ranking .w-heading .action span {
  font-size: 13px;
  font-weight: bold;
  line-height: 1;
  color: #d3c9b7;
  text-shadow: 0.484px 1.941px 0px rgba(26, 27, 27, 0.7);
}

/* Content background */
.player-ranking .w-holder {
  background-image: url(/img/ui/news-widget-bg.png);
  background-size: cover;
  background-position: bottom center;
}

/* Table container */
.player-ranking .rank-table {
  overflow: auto;
}

/* Head + Rows Basis */
.player-ranking .rank-table .t-head,
.player-ranking .rank-table .t-contents .t-field {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 600px;
}

/* Inner holder */
.player-ranking .rank-table .t-head .holder,
.player-ranking .rank-table .t-contents .t-field .holder {
  display: flex;
  position: relative;
  left: 30px;
  width: calc(100% - 60px);
  padding-right: 30px; /* NEU */
  box-sizing: border-box; /* NEU */
}

/* Column widths (nur deine Klassen) */
.player-ranking .rank-table .t-id { width: 8%; min-width: 8%; }
.player-ranking .rank-table .t-player { width: 22%; min-width: 22%; font-weight: 600; }
.player-ranking .rank-table .t-class { width: 13%; min-width: 13%; color: #5c5c5c; }
.player-ranking .rank-table .t-specialty { width: 32%; min-width: 32%; color: #5c5c5c; }
.player-ranking .rank-table .t-guild { width: 10%; min-width: 10%; font-weight: 500; }
.player-ranking .rank-table .t-level {
  width: 15%;
  min-width: 15%;
  display: flex;
  justify-content: flex-end;
  font-weight: 600;
  color: #353535;
}

/* Header row */
.player-ranking .rank-table .t-head {
  height: 50px;
  padding-left: 0;
  padding-right: 0; /* statt 30px */
  font-size: 12px;
  color: #7a7873;
  text-transform: uppercase;
}

/* Data rows */
.player-ranking .rank-table .t-contents .t-field {
  height: 50px;
  color: #353535;
  transition: 0.2s ease;
}

.player-ranking .rank-table .t-contents .t-field:nth-child(odd) {
  border-bottom: 1px solid #ccc;
  background-color: rgba(255, 255, 255, 0.75);
}

.player-ranking .rank-table .t-contents .t-field:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Button */
.player-ranking .button-widget {
  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  cursor: pointer;
  transition: 0.2s;

  height: 50px;
  padding: 0 40px;
  width: fit-content;

  margin-left: auto;
  margin-right: 30px;

  transform: translateY(50%);
}

.player-ranking .button-widget span {
  font-size: 13px;
  font-weight: 700;
  color: #d9d9d9;
  z-index: 1;
}

.player-ranking .button-widget::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;

  background-image: url(/img/ui/gray-button-bg.png);
  background-size: cover;
}

.player-ranking .button-widget:hover {
  filter: brightness(120%);
}

/* === Player Ranking: Optik wie Top Guilds === */

/* Header-Leiste (wie Guilds: einheitlich hell) */
.player-ranking .rank-table .t-head {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

/* Jede Zeile bekommt Background (nicht nur odd!) */
.player-ranking .rank-table .t-contents .t-field:nth-child(odd) {
  background: rgba(220, 220, 220, 0.85);
  border-bottom: 1px solid rgba(0,0,0,0.10);
}

.player-ranking .rank-table .t-contents .t-field:nth-child(even) {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0,0,0,0.10);
}

/* Hover optional deaktivieren, wenn Guilds keinen Hover hat */
.player-ranking .rank-table .t-contents .t-field:hover {
  background: inherit;
}

.player-ranking .rank-table .t-specialty {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-ranking .rank-icon{
  height: 30px;
  width: auto;
  display: block;
}

/* # Spalte: Header + Rows exakt zentriert (Icon & Zahl) */
.player-ranking .rank-table .t-id{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Damit Zahlen nicht “links kleben” (schmale glyphs) */
.player-ranking .rank-table .t-id{
  font-variant-numeric: tabular-nums;
}

/* Icons bekommen gleiche Box wie Text */
.player-ranking .rank-icon{
  width: 30px;
  height: 30px;
  display: block;
}
