@font-face {
  font-family: "ProtestStrike";
  src: url("../souborykaktus/PROTESTSTRIKEFONT.ttf");
  font-display: swap;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "ProtestStrike";
  line-height: 1.6;
  color: #1a3a1a;
  background: linear-gradient(
    135deg,
    #fbfcfd 0%,
    #f4f7f6 22%,
    #eef4f0 45%,
    #e8f5e9 65%,
    #f7faf8 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Kaktusové pozadí */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 18% 82%, rgba(76, 175, 80, 0.07) 0%, transparent 54%),
              radial-gradient(circle at 82% 18%, rgba(102, 187, 106, 0.07) 0%, transparent 54%),
              radial-gradient(circle at 42% 40%, rgba(139, 195, 74, 0.04) 0%, transparent 52%),
              radial-gradient(circle at 50% 12%, rgba(15, 23, 42, 0.03) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
  animation: kaktusFloat 20s ease-in-out infinite;
}

/* Animace */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes kaktusFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(1deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Modern Header */
.modern-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(25px);
  border-bottom: 3px solid rgba(76, 175, 80, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
  transition: all 0.3s ease;
}


.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-image { /* Upraveno z .logo-icon img na .logo-image pro soupiska.php */
  width: 4.5rem;
  height: 3rem;
  border-radius: 0.375rem;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); /* Přesunuto z .logo-icon, pokud .logo-icon div již není */
}

.site-title {
  font-family: "ProtestStrike";
  font-size: 1.5rem;
  color: #2d3748;
  font-weight: 700;
}

.header-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
  white-space: nowrap;
}

.nav-button {
  border-width: 1px;
}


.nav-button.primary {
  background: rgba(47, 107, 31, 0.08);
  color: #14532d;
  border-color: rgba(47, 107, 31, 0.22);
  box-shadow: none;
}

.nav-button.primary:hover {
  background: rgba(47, 107, 31, 0.12);
  transform: translateY(-1px);
  box-shadow: none;
}

.nav-button:focus-visible {
  outline: 3px solid rgba(47, 107, 31, 0.35);
  outline-offset: 3px;
}

.nav-icon {
  font-size: 1.1rem;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem 0;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-family: "ProtestStrike";
  font-size: 3rem;
  color: white;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.title-icon {
  font-size: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.page-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Roster Wrapper */
.roster-wrapper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 2rem;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.12), 0 2px 10px rgba(76, 175, 80, 0.10);
  border: 1px solid rgba(76, 175, 80, 0.14);
  position: relative;
  overflow: hidden;
}


/* Age Average Card - menší, doplňková informace */
.age-average-wrapper {
  margin-bottom: 1.5rem;
  margin-top: -0.5rem;
}

.age-average-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.age-average-label {
  color: #718096;
  font-weight: 500;
}

.age-average-value-small {
  color: #2d3748;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.age-average-value-small strong {
  color: #4caf50;
  font-weight: 600;
}

.age-average-info-small {
  color: #a0aec0;
  font-size: 0.85rem;
  font-weight: normal;
}

/* Filters */
.filters-wrapper {
  margin-bottom: 2rem;
}

.filters-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10), 0 2px 10px rgba(76, 175, 80, 0.10);
  border: 1px solid rgba(76, 175, 80, 0.14);
}

.filters-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(76, 175, 80, 0.2);
}

.filters-card {
  position: relative;
  overflow: hidden;
}

.filters-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(76, 175, 80, 0.95), rgba(139, 195, 74, 0.70), rgba(76, 175, 80, 0.95));
  opacity: 0.75;
}

.filters-card::before {
  opacity: 0.45;
}

.filters-title {
  font-size: 1.3rem;
  color: #2d3748;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filters-icon {
  font-size: 1.5rem;
}

.filters-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: end;
}

.filters-content {
  gap: 1.1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group.checkbox-group {
  flex-direction: row;
  align-items: center;
  grid-column: 1 / -1;
}

.filter-group.checkbox-group {
  background: rgba(2, 6, 23, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
}

.filter-label {
  font-weight: 600;
  color: #2d3748;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.label-icon {
  font-size: 1.1rem;
}

.filter-input,
.filter-select {
  padding: 0.75rem;
  border: 1px solid rgba(76, 175, 80, 0.18);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  font-family: "ProtestStrike";
}

.filter-input:hover,
.filter-select:hover {
  border-color: rgba(76, 175, 80, 0.30);
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.filter-input:focus-visible,
.filter-select:focus-visible {
  outline: 3px solid rgba(76, 175, 80, 0.18);
  outline-offset: 2px;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 500;
  color: #2d3748;
  user-select: none;
}

.filter-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #4caf50;
}

.checkbox-text {
  font-size: 1rem;
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.filter-actions {
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.filter-button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-button.reset-button {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: #1f2937;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
}

.filter-button.reset-button {
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
}

.filter-button.reset-button:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.14);
}

.filter-button.reset-button:active {
  transform: translateY(0);
}

.filter-button:focus-visible {
  outline: 4px solid rgba(76, 175, 80, 0.22);
  outline-offset: 3px;
}

/* Inactive player – badge řeší soupiska-squad.css (.squad-card.inactive-player::after) */
.player-card.inactive-player {
  opacity: 0.88;
  position: relative;
}

/* No results message */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  color: #718096;
}

.no-results-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-results h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #4a5568;
}

.no-results p {
  font-size: 1rem;
}

/* Roster Grid – layout řídí soupiska-squad.css (.squad-grid) */
.roster-grid {
  gap: 1.25rem;
}

/* Player Cards */
.player-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(76, 175, 80, 0.12);
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  width: 100%;
  max-width: 320px;
  animation: fadeIn 0.6s ease forwards;
}

.player-card {
  border-radius: 22px;
}

.player-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(76, 175, 80, 0.95), rgba(139, 195, 74, 0.70), rgba(76, 175, 80, 0.95));
  opacity: 0.9;
  z-index: 4;
}

.player-card:nth-child(even) {
  animation-delay: 0.1s;
}

.player-card:nth-child(3n) {
  animation-delay: 0.2s;
}

.player-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 28px 85px rgba(15, 23, 42, 0.16), 0 10px 35px rgba(76, 175, 80, 0.14);
}

.player-card:focus-visible {
  outline: 4px solid rgba(76, 175, 80, 0.22);
  outline-offset: 4px;
}

.player-photo-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.player-photo-container::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.18) 55%, transparent);
  z-index: 1;
  pointer-events: none;
}

.player-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.player-card:hover .player-photo {
  transform: scale(1.1);
}

/* Jersey Number */
.jersey-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(76, 175, 80, 0.25);
  z-index: 3;
}

.jersey-number {
  color: rgba(22, 101, 52, 0.95);
}

/* Sezónní ocenění: rámeček karty + pruh s textem (místo ikon) */
.player-card--sezonni-oceneni {
  border: 2px solid rgba(47, 107, 31, 0.55);
  box-shadow: 0 8px 28px rgba(47, 107, 31, 0.12);
}

.player-oceneni-banner {
  text-align: center;
  padding: 0.45rem 0.65rem 0.55rem;
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.95) 0%, rgba(236, 253, 245, 0.88) 100%);
  border-bottom: 1px solid rgba(47, 107, 31, 0.18);
}

.player-oceneni-banner__line {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(22, 101, 52, 0.95);
  line-height: 1.35;
}

.player-oceneni-banner__line + .player-oceneni-banner__line {
  margin-top: 0.2rem;
}

/* Position Badge (kód pozice v pravém dolním rohu fotky) */
.position-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  top: auto;
  left: auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
}

.position-badge {
  color: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.12);
}

/* Role Icons */
.role-icons {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.role-icons {
  z-index: 3;
}

.role-icons {
  bottom: 0.95rem;
}

.role-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.role-icon {
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.role-icon:hover {
  transform: scale(1.1);
}

.role-icon.role-icon-img,
img.role-icon {
  object-fit: contain;
  box-sizing: border-box;
}

.role-icon-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

/* Ikony pozic a rolí pod jménem (bez kolečka, jako dřív na fotce) */
.player-info-position-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.player-info-position-icons .player-position-inline {
  font-size: 1rem;
  color: rgba(22, 101, 52, 0.95);
  font-weight: 600;
  margin-right: 0.25rem;
}

.player-info-position-icons .role-icon {
  width: auto;
  height: auto;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 0;
  background: transparent !important;
  backdrop-filter: none;
  box-shadow: none;
  padding: 0.1rem;
  border: none;
}

.player-info-position-icons .role-icon:hover {
  transform: scale(1.08);
}

.player-info-position-icons .role-icon-emoji {
  font-size: 2rem;
  line-height: 1;
}

.player-info-position-icons img.role-icon,
.player-info-position-icons .role-icon.role-icon-img {
  width: 44px;
  height: 44px;
  padding: 0;
  object-fit: contain;
  box-sizing: border-box;
}

/* Card Overlay */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(69, 160, 73, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.view-stats {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  box-shadow: 0 14px 38px rgba(2, 6, 23, 0.22);
}

.player-card:hover .card-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: white;
}

.view-stats {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Player Info */
.player-info {
  padding: 1.5rem;
  text-align: center;
}

.player-info {
  padding: 1.25rem 1.25rem 1.35rem;
}

.player-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.player-name {
  letter-spacing: 0.2px;
}

/* Narozeniny dnes – dort + věk (jako v kalendáři) */
.player-name .birthday-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.player-name .birthday-age {
  font-size: 0.75em;
  font-weight: 700;
  color: #c2410c;
  background: rgba(251, 191, 36, 0.25);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  line-height: 1.2;
}

.modal-player-name .birthday-badge { display: inline-flex; align-items: center; gap: 2px; margin-left: 0.35rem; vertical-align: middle; }
.modal-player-name .birthday-age { font-size: 0.7em; font-weight: 700; color: #c2410c; background: rgba(251, 191, 36, 0.25); padding: 0.15em 0.4em; border-radius: 4px; line-height: 1.2; }

.player-position {
  font-size: 1rem;
  color: rgba(22, 101, 52, 0.95);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.player-role {
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.65);
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(76, 175, 80, 0.10);
  border: 1px solid rgba(76, 175, 80, 0.14);
}

.player-role {
  margin-top: 0.35rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #718096;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.empty-state p {
  font-size: 1.1rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.modal-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.modal-content {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(22px);
  border-radius: 20px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 120px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(76, 175, 80, 0.14);
  position: relative;
}

.modal-content {
  border-radius: 26px;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #718096;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.92);
  color: #2d3748;
}

.modal-close:focus-visible {
  outline: 4px solid rgba(76, 175, 80, 0.22);
  outline-offset: 3px;
}

/* Modal Header */
.modal-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f1f5f9;
}

.modal-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.modal-player-photo-container {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.modal-player-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-header-info {
  flex: 1;
}

.modal-player-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1rem;
}

.modal-player-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-label {
  font-weight: 600;
  color: #718096;
  min-width: 120px;
}

.detail-value {
  font-weight: 500;
  color: #2d3748;
}

/* Instagram Button */
.instagram-btn-wrap {
  margin-top: 1rem;
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
}

.instagram-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
  text-decoration: none;
  color: white;
}

.instagram-icon {
  width: 24px;
  height: 24px;
  background: url("../souborykaktus/instagram.png") center / cover no-repeat;
  border-radius: 4px;
}

/* Sdílení profilu hráče */
.modal-share-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(113, 128, 150, 0.2);
}

.modal-share-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #718096;
  margin-bottom: 0.5rem;
}

.modal-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.modal-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  background: #e2e8f0;
  color: #2d3748;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.modal-share-btn .share-btn-icon {
  font-size: 1.1rem;
}

.modal-share-btn .share-btn-text {
  white-space: nowrap;
}

.modal-share-btn:hover {
  background: #cbd5e0;
  transform: scale(1.08);
}

.modal-share-btn.share-native:hover {
  background: #6366f1;
  color: white;
}

.modal-share-btn.share-whatsapp:hover {
  background: #25D366;
  color: white;
}

.modal-share-btn.share-facebook:hover {
  background: #1877F2;
  color: white;
}

.modal-share-btn.share-copy:hover {
  background: #2f6b1f;
  color: white;
}

.modal-share-btn.share-copy.copied {
  background: #38a169;
  color: white;
}

/* Modal Stats */
.modal-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stats-section {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-radius: 16px;
  padding: 1.5rem;
}

.stats-section {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(76, 175, 80, 0.14);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.10);
}

.stats-title {
  letter-spacing: 0.2px;
}

.stats-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-item {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-item {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.stat-label {
  font-weight: 500;
  color: #718096;
  font-size: 0.9rem;
}

.stat-value {
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #2d3748;
}

.stat-value {
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.stat-value.highlight,
.stat-value.success,
.stat-value.warning,
.stat-value.danger,
.stat-value.star {
  background: rgba(47, 107, 31, 0.08);
  border: 1px solid rgba(47, 107, 31, 0.18);
  color: #14532d;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .site-title {
    font-size: 1.25rem;
  }

  .page-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .title-icon {
    font-size: 2rem;
  }

  .content-container {
    padding: 0 1rem;
  }

  .roster-wrapper {
    padding: 1.5rem;
  }

  .roster-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Na tabletu ponecháno auto-fill, aby se vešly 2-3 karty */
    gap: 1.5rem;
  }

  .player-photo-container {
    height: 200px;
  }

  .modal-container {
    padding: 1rem;
  }

  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }

  .modal-header {
    flex-direction: column;
    text-align: center;
  }

  .modal-player-photo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

  .modal-player-name {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .logo-image { /* Upraveno z .logo-icon img na .logo-image */
    width: 3.75rem; 
    height: 2.5rem;
  }
  
  .filters-card {
    padding: 1rem;
  }
  
  .filters-content {
    grid-template-columns: 1fr;
  }
  
  .filter-group.checkbox-group {
    grid-column: 1;
  }
  
  .filter-actions {
    grid-column: 1;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.5rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .roster-grid {
    grid-template-columns: 1fr; /* Na mobilu 1 karta na řádek */
  }

  .jersey-number {
    font-size: 1.2rem;
    padding: 0.4rem 0.6rem;
  }

  .position-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .filters-card {
    padding: 0.75rem;
  }
  
  .filters-title {
    font-size: 1.1rem;
  }
  
  .filter-label {
    font-size: 0.9rem;
  }
  
  .filter-input,
  .filter-select {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
  
  .filter-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .player-info-position-icons .role-icon-emoji {
    font-size: 1.75rem;
  }

  .player-info-position-icons img.role-icon,
  .player-info-position-icons .role-icon.role-icon-img {
    width: 36px;
    height: 36px;
  }

  .logo-image { /* Upraveno z .logo-icon img na .logo-image */
    width: 3rem;
    height: 2rem;
  }
}

/* Loading animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bio popup a tlačítko */
.bio-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

.bio-popup {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 100%;
  overflow: hidden;
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.bio-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
  border-bottom: 1px solid rgba(76, 175, 80, 0.2);
}

.bio-popup-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #2d3748;
}

.bio-popup-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: #718096;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.bio-popup-close:hover {
  color: #e53e3e;
}

.bio-popup-content {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  word-wrap: break-word;
  line-height: 1.6;
  color: #2d3748;
}

.bio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2d3748;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bio-btn:hover {
  background: rgba(76, 175, 80, 0.15);
  border-color: rgba(76, 175, 80, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}