/* Modal Container */
.profile-modal-content {
  background: rgba(30, 30, 30, 0.95);
  padding: 15px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--text-color);
  /* Make modal narrower than leaderboard on larger screens */
  width: calc(45vw + 80px);
  height: 90vh;
  max-width: 900px;
  min-width: 600px;
  max-height: 90vh;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary-color) var(--semi-transparent-bg);
}

/* Modal Header Section */
.profile-modal-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0px 10px;
  margin-bottom: 20px;
  width: 100%;
}

.playername-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.profile-player-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 250px;
  text-align: left;
  display: block;
}
.profile-player-name:hover{
  color: rgba(255, 255, 255, 0.6);
}

.last-seen {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Tier Container */
.tier-container {
  margin-top: 5px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

.tier-container img {
  width: 24px;
  height: 24px;
}

.tier-container p {
  font-size: .9rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
  margin-top: 2px;
}

.tier-container span{
  font-size: .9rem;
    text-transform: uppercase;
}

/* League Container */
.league-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.league-container img {
  width: 40px;
  height: 40px;
}

.league-container-rank{
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 10px;
}

.league-container-rank p{
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-size: .8rem !important;
}
.league-container-rank span{
  color: rgba(255, 255, 255, 0.6);
  font-size: .8rem !important;
}

.rank-box {
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;
}

.league-container p {
  font-size: 0.9rem;
  font-weight: 300;
  border-radius: 6px;
}

.profile-league-icon {
  width: 40px;
  height: 40px;
}

.profile-league {
  font-size: 0.9rem;
}

/* OP.GG Container */
.opgg-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Info Container Section */
.info-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0;
  align-items: center;
}

/* Premium Content Wrapper */
.premium-content-wrapper {
  width: 100%;
  margin: 0 auto;
  position: relative;
  display: inline-block;
  cursor: pointer;
}
#profile-chart{
  height: 310px !important;
}

#profile-chart.premium-content {
  height: 100%;
  width: 100%;
  display: block;
  position: relative;
  cursor: pointer;
}

/* Info Container Right Section */
.info-container-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* Profile Info Wrapper */
.profile-info-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.info-box {
  padding: 10px;
  background: var(--semi-transparent-bg);
  color: var(--text-color);
  border-radius: 6px;
  width: 100px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.info-box h4 {
  font-size: 1rem;
  margin: 0;
}

.info-box p {
  margin: 5px 0 0 0;
}

/* Player Info Wrapper */
.player-info-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

/* Teammate Images */
.teammate-images-wrapper {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.teammate-image img {
  width: 30px;
  height: 30px;
}

.teammate-wr {
  font-size: 0.6rem;
  font-weight: 300;
}

/* Bottom Wrapper Section */
.bottom-wrapper {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* Badges Container */
.badges-container {
  width: 65%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  gap: 15px;
  margin: 0 auto;
}

.badges-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 33px !important;
  width: 100%; 
}

/* Badges premium wrapper - contains lock and blur effects */
.badges-premium-wrapper {
  position: relative;
  width: 100%;
  min-height: 100px;
}

/* Only apply blur when locked (not unlocked) */
.badges-premium-wrapper:not(.unlocked) .badges-wrapper {
  filter: blur(4px);
}

.badges-premium-wrapper:not(.unlocked) .lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  z-index: 10;
  color: var(--primary-color);
  filter: none !important;
  pointer-events: none;
}

.badges-premium-wrapper:not(.unlocked) .badges-unlock-tooltip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -150%);
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 9;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badges-premium-wrapper:not(.unlocked):hover .badges-unlock-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Unlocked state - ensure no blur or lock elements show */
.badges-premium-wrapper.unlocked .badges-wrapper {
  filter: none;
}

.badges-premium-wrapper.unlocked .lock-icon,
.badges-premium-wrapper.unlocked .badges-unlock-tooltip {
  display: none;
}

@media (min-width: 769px) {
  .badges-wrapper {
    gap: 16px;
    justify-content: center;
    max-width: 100%;
  }
  

}

/* Progress Bar with Badge */
.progress-bar-with-badge {
  position: relative;
  width: 64px;
  height: 64px;
  cursor: pointer;
  margin: 0 8px;
}

/* Desktop badge sizes - larger than mobile */
@media (min-width: 769px) {
  .progress-bar-with-badge {
    width: 80px;
    height: 80px;
    margin: 0 10px;
  }
}

.progress-bar-with-badge:hover .progress-percent-center {
  opacity: 1;
  visibility: visible;
}

.progress-badge {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  background: #222;
  z-index: 2;
  transition: opacity 0.2s;
}

/* Desktop badge image sizes */
@media (min-width: 769px) {
  .progress-badge {
    width: 50px;
    height: 50px;
  }
  
  .progress-bar-with-badge svg {
    transform: scale(1.25);
    transform-origin: center;
  }
  
  .progress-percent-center {
    font-size: 0.9em;
    padding: 5px 10px;
  }
}

.progress-percent-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 0.8em;
  font-weight: bold;
  z-index: 3;
  background: rgba(30, 30, 30, 0.85);
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
}


/* Match History Table */
.match-history-table {
  width: 100%;
  padding: 20px 5px;
}

.match-history-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--semi-transparent-bg);
  border-radius: 6px;
  overflow: hidden;
}

.match-history-table thead tr {
  background: var(--semi-transparent-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.match-history-table th {
  padding: 10px 20px;
  color: var(--text-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
}

.match-history-table td {
  padding: 15px 20px;
  color: var(--text-color);
  font-size: 0.85em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.match-history-table tr:last-child td {
  border-bottom: none;
}

.match-history-table tr:hover {
  background: rgba(255, 255, 255, 0.3);
}

.match-history-table .champion-cells {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}

.match-history-table .champion-icon {
  width: 32px;
  height: 32px;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: help;
}

.match-history-table .champion-icon:hover {
  transform: scale(1.2);
  z-index: 10;
}

/* Premium Content Styles */
.premium-content {
  position: relative;
  pointer-events: none;
  user-select: none;
}
.premium-content > table {
  filter: blur(4px);
}
.premium-content-wrapper.lock-tier-4 {
  position: relative;
}
.premium-content-wrapper.lock-tier-4 .lock-tooltip {
  display: none;
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease all; 
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9em;
  white-space: nowrap;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
}

.champion-items-table:hover .lock-tooltip {
  
  display: block !important;
}
.match-history-table:hover .lock-tooltip {
  top: 50px;
  display: block !important;
}
.premium-content-wrapper.lock-tier-4 .lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  color: var(--primary-color);
  pointer-events: none;
  filter: none !important;
}


.lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  z-index: 10;
  color: var(--primary-color);
  filter: none !important;
  pointer-events: none;
  transition: opacity 0.3s ease;
}


.premium-content-blur-wrapper {
  position: relative;
  display: inline-block;
  min-width: 20px;
  cursor: pointer;
}

.premium-content-blur-wrapper::before {
  content: "Unlock at Tier 2";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-content-blur-wrapper:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Add blur effect to progress bar background */
.premium-content-blur-wrapper .progress-badge {
  filter: blur(4px);
}

.premium-content-blur-wrapper svg circle {
  filter: blur(2px);
}

.premium-content-blur-wrapper .progress-percent-center {
  filter: blur(4px);
  display: none;
}

/* Ensure lock icon stays sharp */
.premium-content-blur-wrapper .lock-icon {
  filter: none;
  z-index: 3;
}

/* Desktop lock icon sizing for badges */
@media (min-width: 769px) {
  .premium-content-blur-wrapper .lock-icon {
    width: 24px;
    height: 24px;
  }
}

/* Buttons */
.upgrade-profile-btn {
  margin-left: 5px;
  padding: 8px 10px;
  font-size: 0.7rem;
  background: var(--secondary-color);
  color: var(--text-color);
  border: none;
  cursor: pointer;
  font-weight: 400;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.upgrade-profile-btn:hover {
  background: var(--primary-color);
}

/* Profile Modal Tabs */
.profile-modal-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.tabs-buttons {
  display: flex;
}

.tab-btn {
  background: none;
  border: none;
  position: relative;
  top: 2.3px;
  color: var(--text-color);
  padding: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  border-radius: 0;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0);
  transition: all 0.3s ease;
  border-radius: 10px;
}

.tab-btn:hover {
  opacity: 1;
  background: none;
}

.tab-btn:hover::after {
  background-color: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
  opacity: 1;
  background: none;
  color: var(--text-color);
}

.tab-btn.active::after {
  background-color: var(--secondary-color);
}

.tab-btn.blurred {
  filter: blur(2px);
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.tab-btn .tab-text.blurred {
  filter: blur(2px);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Hover effects for locked tabs */
.tab-btn:hover .lock-icon {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tab-btn:hover .tab-text.blurred {
  filter: none;
  opacity: 0.4;
}

.tabs-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Tab Content */
.tab-content {
  width: 100%;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Player Info Section */
.player-info-header {
  padding: 0 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.opgg-link {
  display: block;
  max-width: 100px;
  text-decoration: none;
}

.opgg-icon {
  width: 100%;
  height: auto;
}

/* Responsive Styles */


/* Profile Synergy Table Styles */
.profile-synergy-table {
  margin-top: 20px;
  padding: 0 16px;
  width: 100%;
}

.profile-modal-heading {
  text-align: left;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 16px;
  text-transform: capitalize;
}

.profile-synergy-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--semi-transparent-bg);
  border-radius: 6px;
  overflow: hidden;
}

.profile-synergy-table thead tr {
  background: var(--semi-transparent-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-synergy-table th {
  padding: 10px 20px;
  color: var(--text-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
}

.profile-synergy-table td {
  padding: 15px 20px;
  color: var(--text-color);
  font-size: 0.85em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-synergy-table tr:last-child td {
  border-bottom: none;
}

.profile-synergy-table tr:hover {
  background: rgba(255, 255, 255, 0.3);
}

.synergy-champion-icon-container{
  display: flex;
  align-items: center;
  gap: 10px;
}

.synergy-champion-icon {
  width: 24px;
  height: 24px;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: help;
}

.synergy-champion-icon:hover {
  transform: scale(1.2);
  z-index: 10;
}

.profile-champ-icon{
  width: 160px;
}

.profile-champ-stats{
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

.profile-champ-stats-item p{
  font-size: .9rem;
  color: var(--text-color);
}

.profile-champ-stats-item span{
  font-size: .9rem;
  color: #ffffff;
  font-weight: 600;
}

.profile-champ-block {
    position: relative;
    display: inline-block;
    margin: 0 0px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    width: 250px; /* Fixed width for consistent carousel behavior */
    flex-shrink: 0; /* Prevent shrinking in flex container */
    
}

.profile-champ-block:hover {
    transform: translateY(-5px);
    
}

.profile-champ-block.active {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.3);
}

.profile-champ-block.active .icon-bg::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(var(--primary-color-rgb), 0.3));
}

.profile-champ-block.active .profile-champ-name {
    color: var(--primary-color);
}

.icon-bg {
    width: 100%;
    height: 250px;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.icon-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.16), rgb(0, 0, 0));
    pointer-events: none;
}

.profile-champ-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.profile-champ-name {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin: 0;
    z-index: 1;
}

.profile-champ-stats-container{
  background-color: #010101;
}

/* Champion Items Table Styles */

.chamption-table-container{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}
.champion-items-table {
    width: 70%;
    padding: 0 5px;
    margin-top: 20px;
}

.champion-items-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--semi-transparent-bg);
    border-radius: 6px;
    overflow: hidden;
}

.champion-items-table th {
    padding: 10px 10px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.5rem;
    letter-spacing: 1px;
    text-align: center;
}

.champion-items-table td {
    padding: 5px 5px;
    color: var(--text-color);
    font-size: 0.85em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.champion-items-table tr:last-child td {
    border-bottom: none;
}

.champion-items-table tr:hover {
    background: rgba(255, 255, 255, 0.3);
}

.champion-icon-cell {
    width: 30px;
}

.champion-icon-cell img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.champion-icon-cell img:hover {
    transform: scale(1.3);
}

.champion-header {
    width: 30px !important; /* Force column width same as champion icon */
    max-width: 30px !important; /* Prevent expansion */
    min-width: 30px !important; /* Maintain minimum */
    padding: 0; /* Remove all padding */
    position: relative;
    overflow: visible;
}

.champion-header::before {
    content: attr(data-text);
    position: absolute;
    left: 8px; /* Small padding from left edge */
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

.item-icon-cell {
    width: 30px;
    position: relative;
}

.item-icon-cell img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.item-icon-cell img:hover {
    transform: scale(1.3);
}

.champion-icon-cell img.augment-icon {
    width: 38px;  /* Same as items icons */
    height: 38px; /* Same as items icons */
    margin: -4px; /* Negative margin to extend beyond normal bounds */
    padding: 0;   /* Remove any default padding */
}

.augment-icon {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.augment-icon:hover {
    transform: scale(1.3);
}

.item-tooltip {
    position: relative;
}

.item-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.95);
    color: var(--text-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1000;
    border: 1px solid var(--primary-color);
    margin-bottom: 5px;
}

.item-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

.progress-bars-cell {
    width:30%;
}

.progress-bar-container {
    margin: 5px 0;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 100%;
}

.progress-bar.primary {
    background: var(--primary-color);
    width: 75%;
}

.progress-bar.secondary {
    background: var(--secondary-color);
    width: 60%;
}

.rate-cell {
    text-align: center;
    font-weight: 600;
    color: var(--text-color);
}

.champion-table-heading{
  text-align: left;
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.pick-rate-heading{
  color:var(--primary-color) !important;
}

.win-rate-heading{
  color:var(--secondary-color) !important;
}

/* Hide by default */
.desktop-only {
  display: none;
}

/* Champions Carousel Styles
 * Shows 3 cards per view on all screen sizes
 * Card sizes adjust responsively to fit 3 cards
 */
.champions-carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;  
}

.champions-carousel-wrapper {
  overflow: hidden;
  flex: 1;
  width: calc(3 * 270px + 2 * 10px);
  max-width: calc(3 * 270px + 2 * 10px);
  padding-top: 10px;
}

.profile-champions {
  display: flex;
  transition: transform 0.3s ease;
  gap: 10px;
  width: fit-content;
}

.carousel-arrow {
  background: var(--semi-transparent-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  width: 40px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-color);
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 1000;
}

.carousel-arrow:hover:not(:disabled) {
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px var(--highlight-color);
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: var(--semi-transparent-bg);
}

.carousel-arrow svg {
  width: 28px;
  height: 28px;
}

.champions-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: var(--secondary-color);
}

/* Dynamic arrow locking styles for limited carousel */
.carousel-arrow.arrow-locked {
  opacity: 1;
  cursor: not-allowed;
  background: var(--semi-transparent-bg);
  pointer-events: auto;
  position: relative;
}

.carousel-arrow.arrow-locked .lock-icon {
  position: static;
  width: 20px;
  height: 20px;
  color: var(--primary-color);
  opacity: 1;
  transform: none;
}

.carousel-arrow.arrow-locked:hover .carousel-arrow-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Enhanced tooltip positioning for dynamic locking */
.carousel-arrow.arrow-locked .carousel-arrow-tooltip {
  position: absolute;
  z-index: 1000;
  top: -50px;
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  visibility: hidden;
}

/* Positioning for left and right arrows */
.carousel-arrow-left.arrow-locked .carousel-arrow-tooltip {
  left: 0;
  transform: translateX(0);
}

.carousel-arrow-right.arrow-locked .carousel-arrow-tooltip {
  right: 0;
  transform: translateX(0);
}

/* Mobile specific positioning for dynamic locked arrows */
@media (max-width: 480px) {
  .carousel-arrow.arrow-locked .carousel-arrow-tooltip {
    top: -40px;
    font-size: 0.8em;
    padding: 6px 12px;
  }
  
  .carousel-arrow-left.arrow-locked .carousel-arrow-tooltip {
    left: 0;
    transform: translateX(0);
  }
  
  .carousel-arrow-right.arrow-locked .carousel-arrow-tooltip {
    right: 0;
    transform: translateX(0);
  }
}

/* Locked carousel styles */
.champions-carousel-container.locked .carousel-arrow {
  opacity: 1;
  cursor: not-allowed;
  background: var(--semi-transparent-bg);
  pointer-events: auto; /* Allow pointer events for individual tooltip */
  position: relative;
}

.champions-carousel-container.locked .carousel-arrow .lock-icon {
  position: static;
  width: 20px;
  height: 20px;
  color: var(--primary-color);
  opacity: 1;
  transform: none;
}

.champions-carousel-container.locked .carousel-dot {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.carousel-arrow-tooltip {
  position: absolute;
  z-index: 1;
  top: -50px;
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s, visibility 1;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Left arrow tooltip - positioned to avoid left edge cutoff */
.carousel-arrow-left .carousel-arrow-tooltip {
  left: 0;
  transform: translateX(0);
}

/* Right arrow tooltip - positioned to avoid right edge cutoff */
.carousel-arrow-right .carousel-arrow-tooltip {
  right: 0;
  transform: translateX(0);
}

.champions-carousel-container.locked .carousel-arrow:hover .carousel-arrow-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Hide the old container-wide tooltip */
.locked-carousel-tooltip {
  display: none;
}

.graph-unlock-tooltip {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.premium-content-wrapper:hover .graph-unlock-tooltip {
  opacity: 0;
  visibility: hidden;
}
.premium-content-wrapper.show-unlock-tooltip:hover .graph-unlock-tooltip,
.info-container:has(.premium-content-wrapper.show-unlock-tooltip):hover .graph-unlock-tooltip {
  opacity: 1;
  visibility: visible;
}

.tab-btn .tab-lock-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: 50%;
  top: -22%;
  transform: translateX(-50%);
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9em;
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
}

.tab-btn:hover .tab-lock-tooltip,
.tab-btn:focus .tab-lock-tooltip,
.premium-content-wrapper:hover .tab-lock-tooltip {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.premium-content > canvas {
  filter: blur(4px);
}

/* Coming Soon Lock Styles */
.premium-content-wrapper.coming-soon-lock {
  position: relative;
}

.premium-content-wrapper.coming-soon-lock.premium-content > table {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

.premium-content-wrapper.coming-soon-lock .lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  color: var(--primary-color);
  pointer-events: none;
  filter: none !important;
}

.premium-content-wrapper.coming-soon-lock .lock-tooltip {
  display: none;
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease all; 
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9em;
  white-space: nowrap;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
}

.premium-content-wrapper.coming-soon-lock:hover .lock-tooltip {
  display: block !important;
}

/* Lock Tier 5 Styles */
.premium-content-wrapper.lock-tier-5 {
  position: relative;
}

.premium-content-wrapper.lock-tier-5 .lock-tooltip {
  display: none;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease all; 
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9em;
  white-space: nowrap;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
}

.premium-content-wrapper.lock-tier-5:hover .lock-tooltip {
  display: block !important;
}

.premium-content-wrapper.lock-tier-5 .lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  color: var(--primary-color);
  pointer-events: none;
  filter: none !important;
}

/* Items Shared Container Lock Styles */
.items-shared-container.lock-tier-5 {
  position: relative;
}

.items-shared-container.lock-tier-5.premium-content {
  pointer-events: none;
  user-select: none;
}

.items-shared-container.lock-tier-5.premium-content .items-table-tabs {
  filter: blur(3px);
  pointer-events: none;
}

.items-shared-container.lock-tier-5.premium-content .premium-content-wrapper table {
  filter: blur(4px);
  pointer-events: none;
}

.items-shared-container.lock-tier-5 .lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 20px;
  height: 20px;
  color: var(--primary-color);
  pointer-events: none;
  filter: none !important;
}

.items-unlock-tooltip {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.items-shared-container.lock-tier-5:hover .items-unlock-tooltip {
  opacity: 0;
  visibility: hidden;
}

.items-shared-container.lock-tier-5.show-unlock-tooltip:hover .items-unlock-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Augments Shared Container Lock Styles */
.augments-shared-container.lock-tier-5 {
  position: relative;
}

.augments-shared-container.lock-tier-5.premium-content {
  pointer-events: none;
  user-select: none;
}

.augments-shared-container.lock-tier-5.premium-content .keystones-table-tabs {
  filter: blur(3px);
  pointer-events: none;
}

.augments-shared-container.lock-tier-5.premium-content .premium-content-wrapper table {
  filter: blur(4px);
  pointer-events: none;
}

.augments-shared-container.lock-tier-5 .lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 20px;
  height: 20px;
  color: var(--primary-color);
  pointer-events: none;
  filter: none !important;
}

.augments-unlock-tooltip {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.augments-shared-container.lock-tier-5:hover .augments-unlock-tooltip {
  opacity: 0;
  visibility: hidden;
}

.augments-shared-container.lock-tier-5.show-unlock-tooltip:hover .augments-unlock-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Custom Tooltip for Items */
.custom-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 10000;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    width: auto;
    white-space: nowrap;
    text-align: center;
}

.custom-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.custom-tooltip.removing {
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
}

.custom-tooltip:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--secondary-color);
}

.custom-tooltip.player-tooltip {
    width: auto;
    white-space: normal;
    text-align: left;
}

.custom-tooltip .opgg-link {
    display: block;
    width: 60px;
}

.custom-tooltip .opgg-icon {
    width: 100%;
    height: auto;
    margin-top: 3px;
}

/* Enhanced Badge Tooltip */
.badge-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 10000;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    max-width: 175px;
    white-space: nowrap;
}

.badge-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.badge-tooltip.removing {
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
}

.badge-tooltip:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--secondary-color);
    transition: opacity 0.3s ease;
}

/* Hide arrow when content is expanded */
.badge-tooltip:has(.badge-tooltip-content.expanded):after {
    opacity: 0;
    visibility: hidden;
}

.badge-tooltip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.badge-tooltip-name {
    font-weight: 600;
    color: #ffffff;
}

.badge-tooltip-arrow {
    width: 15px;
    height: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
    color: #ffffff;
    flex-shrink: 0;
}

.badge-tooltip-arrow:hover {
    color: var(--primary-color);
}

.badge-tooltip-arrow.expanded {
    transform: rotate(180deg);
}

.badge-tooltip-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding-top 0.3s ease;
    white-space: normal;
    text-align: left;
}

.badge-tooltip-content.expanded {
    max-height: 300px;
    padding-top: 8px;
}

.badge-tooltip-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.badge-tooltip-requirements {
    margin-top: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.badge-tooltip-requirements strong {
    color: var(--secondary-color);
}

/* Chart Loader Spinner */
.chart-loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 20;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.chart-loader .spinner {
  border: 4px solid rgba(255,255,255,0.2);
  border-top: 4px solid var(--primary-color, #3ceb36);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Items Table Tabs */
.items-table-tabs {
  display: flex;
  justify-content: flex-start;
}
.items-tab-btn {
  background: none;
  width: 100%;
  border: none;
  color: var(--text-color);
  padding: 8px 18px;
  font-size: 0.95rem;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.items-tab-btn.active {
  opacity: 1;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  background: var(--semi-transparent-bg);
}
.items-tab-btn:not(.active):hover {
  opacity: 1;
  color: var(--secondary-color);
}

/* Keystones Table Tabs */
.keystones-table-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}
.keystones-tab-btn {
  background: none;
  width: 100%;
  border: none;
  color: var(--text-color);
  padding: 8px 18px;
  font-size: 0.95rem;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.keystones-tab-btn.active {
  opacity: 1;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  background: var(--semi-transparent-bg);
}
.keystones-tab-btn:not(.active):hover {
  opacity: 1;
  color: var(--secondary-color);
}


/* Medium screens - adjust modal width for better fit */
@media (max-width: 1200px) and (min-width: 769px) {
  .profile-modal-content {
    width: calc(60vw + 100px);
    max-width: 700px;
  }
}

@media (max-width: 1024px) and (min-width: 800px) {
  .champions-carousel-wrapper {
    width: calc(3 * 250px + 2 * 10px); /* Show 3 smaller cards on tablet */
    max-width: calc(3 * 250px + 2 * 10px);
  }
  

}
@media (max-width: 1024px) and (min-width: 800px){
  .profile-champ-block{
    width: 230px !important;
    margin: 0; /* 3 small cards for small mobile */
  }
}

@media (max-width: 768px) {
  .profile-modal-content {
    width: 95%;
    min-width: 320px; /* Ensure minimum width for very small screens */
    padding: 10px;
  }

  .champions-carousel-wrapper {
    width: calc(2 * 200px + 1 * 8px); /* Show 2 cards on tablet */
    max-width: calc(2 * 200px + 1 * 8px);
  }

  .profile-champions {
    gap: 8px; /* Reduce gap between cards on mobile */
  }

  .profile-modal-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 5px;
  }

  .playername-container {
    align-items: center;
  }

  .header-right {
    justify-content: center;
    margin-top: 10px;
  }

  .profile-modal-tabs {
    flex-direction: column;
    gap: 15px;
  }

  .tabs-buttons {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .tabs-right {
    width: 100%;
    justify-content: center;
  }

  .player-info-header {
    padding: 0 10px;
  }

  .opgg-link {
    max-width: 80px;
  }

  /* Tablet champion card styles */
  .profile-champ-block {
    width: 200px; /* Width for 2 cards on tablet */
  }

  .icon-bg {
    height: 120px !important; /* Reduced height */
  }

  .profile-champ-name {
    font-size: 0.75rem !important; /* Smaller font */
    bottom: 55px !important; /* Adjust positioning */
  }

  .profile-champ-stats {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px 4px; /* Reduced padding */
  }

  .profile-champ-stats-item {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 2px; /* Add small margin between items */
  }

  .profile-champ-stats-item p {
    font-size: 0.6rem; /* Smaller font */
    margin: 0;
  }

  .profile-champ-stats-item span {
    font-size: 0.6rem; /* Smaller font */
    font-weight: 400;
    margin: 0;
  }
}

/* Tablet-specific responsive behavior (between mobile and tablet) */
@media (max-width: 580px) and (min-width: 481px) {
  .champions-carousel-wrapper {
    width: calc(2 * 160px + 1 * 8px) !important; /* Show 2 smaller cards on small tablets */
    max-width: calc(2 * 160px + 1 * 8px) !important;
  }

  .profile-champ-block {
    width: 160px !important; /* Smaller width for 2-card view on small tablets */
  }

  .icon-bg {
    height: 130px !important;
  }

  .profile-champ-name {
    font-size: 0.8rem !important;
    bottom: 60px !important;
  }

  .profile-champ-stats-item p {
    font-size: 0.65rem !important;
  }

  .profile-champ-stats-item span {
    font-size: 0.65rem !important;
  }

  .profile-champ-stats {
    padding: 8px 4px !important;
  }
}

@media (max-width: 480px) {

  .profile-modal-content {
    width: 95%;
    padding: 5px;
  }

  .profile-player-name {
    font-size: 1.2rem;
    width: 300px;
    position: relative;
    left: -55px;
  }

  .tab-btn {
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  .upgrade-profile-btn {
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  .tabs-buttons {
    gap: 3px;
  }

  .tabs-right {
    gap: 5px;
  }

  .tab-btn {
    background: none;
    border: none;
    position: relative;
    top: 2.3px;
    color: var(--text-color);
    padding: 10px 7px;
    font-size: .8rem;
   
  }
  /* Single card for mobile screens */
  .profile-champ-block{
    width: 280px !important;
    margin: 0; /* 1 card for mobile */
  }

  .profile-champ-name{
    font-size: 0.9rem !important; /* Larger font for single card view */
    bottom: 70px !important;
  }

  .profile-champ-stats-item p{
    font-size: 0.75rem !important; /* Readable font size for single card */
  }
  .profile-champ-stats-item span{
    font-size: 0.75rem !important; /* Readable font size for single card */
    font-weight: 400;
  }

  .icon-bg{
    height: 160px !important; /* Larger height for single card view */
  }

  .profile-champ-stats {
    padding: 10px 8px !important; /* More padding for single card view */
  }

  .champions-carousel-wrapper {
    width: calc(1 * 280px) !important; /* Show 1 card on mobile */
    max-width: calc(1 * 280px) !important;
  }

  .profile-champ-block:hover {
    transform: translateY(0px);
    
}

  .profile-champions {
    gap: 6px !important; /* Gap for mobile cards */
  }

  .chamption-table-container{
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .champion-items-table{
    width: 100% !important;
  }
  .match-history-table th {
    padding: 10px 5px !important;
  
  }
  
  .match-history-table td {
    padding: 15px 5px !important;
    
  }

  /* Mobile carousel styles */
  .champions-carousel-container {
    gap: 5px;
  }

  .carousel-arrow {
    width: 30px;
    height: 30px;
  }

  .carousel-arrow svg {
    width: 16px;
    height: 16px;
  }

  .carousel-arrow-tooltip {
    top: -40px;
    font-size: 0.8em;
    padding: 6px 12px;
    background: var(--secondary-color);
  }

  /* Mobile positioning for left and right arrows */
  .carousel-arrow-left .carousel-arrow-tooltip {
    left: 0;
    transform: translateX(0);
  }

  .carousel-arrow-right .carousel-arrow-tooltip {
    right: 0;
    transform: translateX(0);
  }

  .champions-carousel-dots {
    gap: 6px;
    margin-bottom: 15px;
  }

  .carousel-dot {
    width: 6px;
    height: 6px;
  }

  .badges-container {
    width: 100%;
  }

  .badges-wrapper {
    gap: 10px !important;
  }

}


/* Show on screens with height greater than 800px */
@media (min-height: 800px) {
  .desktop-only {
    display: flex !important;
  }
}

/* Additional responsive adjustment for very tall screens */
@media (min-height: 1000px) {
  .badges-container {
    margin-top: 20px;
  }
}

/* Live Game Styles */
.live-game-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-color);
}

.live-game-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.live-game-loading p {
  font-size: 1rem;
  opacity: 0.8;
}

.live-game-error,
.live-game-not-in-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-color);
  text-align: center;
}

.live-game-error p {
  color: #ff6b6b;
  font-size: 1.1rem;
}

.live-game-not-in-game {
  color: rgba(255, 255, 255, 0.8);
}

.not-in-game-icon {
  width: 64px;
  height: 64px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.live-game-not-in-game h3 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  color: var(--text-color);
}

.live-game-not-in-game p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.7;
}

.live-game-content {
  padding: 20px;
}

.live-game-top-section {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.game-mode-section {
  flex: 1;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-mode-section h3.game-mode {
  margin: 0 0 8px 0;
  font-size: 1.4rem;
  color: var(--text-color);
  font-weight: 600;
}

.game-details {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
}

.live-timer-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.live-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.timer-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.timer-display {
  color: var(--primary-color);
  font-weight: 600;
  font-family: monospace;
  font-size: 1rem;
}

.game-separator {
  color: rgba(255, 255, 255, 0.4);
}

.game-duration {
  font-weight: 600;
  color: var(--primary-color);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ff4444;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #ff4444;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.banned-champions-section {
  flex: 1;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-heading {
  font-size: 1.2rem;
  color: var(--text-color);
  margin: 0 0 15px 0;
  font-weight: 600;
}

.banned-champions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.banned-champion {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.banned-champion:hover {
  transform: translateY(-2px);
}

.ban-champion-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  margin-bottom: 6px;
  filter: grayscale(100%) brightness(0.5);
}

.ban-champion-name {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.live-game-players-section {
  margin-bottom: 20px;
}

.teams-container {
  display: flex;
  gap: 30px;
}

.team-section {
  flex: 1;
}

.team-heading {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.live-game-table {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.live-game-table table {
  width: 100%;
  border-collapse: collapse;
}

.live-game-table thead {
  background: rgba(255, 255, 255, 0.1);
}

.live-game-table th {
  padding: 15px 20px;
  text-align: left;
  font-weight: 600;
  color: var(--text-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.live-game-table td {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.live-game-table tr:last-child td {
  border-bottom: none;
}

.player-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.live-champion-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.player-name {
  color: var(--text-color);
  font-weight: 500;
}

.team-indicator {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-color);
}

.champion-header,
.player-header {
  font-size: 0.9rem;
}

/* Mobile responsive adjustments for live game */
@media (max-width: 768px) {
  .live-game-top-section {
    flex-direction: column;
    gap: 20px;
  }
  
  .teams-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .game-details {
    flex-direction: column;
    gap: 8px;
  }
  
  .live-timer-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .banned-champions {
    justify-content: center;
  }
  
  .team-heading {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  .live-game-table th,
  .live-game-table td {
    padding: 10px 12px;
  }
  
  .player-name {
    font-size: 0.9rem;
  }
  
  .team-indicator {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .live-game-content {
    padding: 15px;
  }
  
  .live-game-top-section {
    gap: 15px;
  }
  
  .game-mode-section,
  .banned-champions-section {
    padding: 15px;
  }
  
  .teams-container {
    gap: 15px;
  }
  
  .banned-champion {
    padding: 8px;
  }
  
  .ban-champion-icon {
    width: 28px;
    height: 28px;
  }
  
  .ban-champion-name {
    font-size: 0.7rem;
  }
  
  .team-heading {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }
  
  .live-champion-icon {
    width: 28px;
    height: 28px;
  }
  
  .live-game-table th,
  .live-game-table td {
    padding: 8px 10px;
  }
}