/* ============================================================
   FirePulse — Users Marketplace Styles (v8 FINAL)
   Team card: one-line header | Player card: gaming border
   + 3 Filters + Smart Buttons + Simple View Team Button
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #000000;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  padding-bottom: 62px;
  margin: 0;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  text-align: center;
  padding: 30px 20px 10px;
}
.page-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 10px;
  object-fit: cover;
  border: none;
}
.page-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
}
.page-header h1 span { color: #ff0000; }
.page-description {
  color: #888888;
  font-size: 14px;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   TABS
   ============================================================ */
.tab-switcher {
  display: flex;
  border-bottom: 1px solid #1a1a1a;
  background: #0a0a0a;
  max-width: 800px;
  margin: 20px auto 0;
  width: 100%;
}
.tab-btn {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  border: none;
  color: #888888;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.tab-btn i { font-size: 16px; }
.tab-btn:hover { color: #ffffff; }
.tab-btn.active { color: #ff0000; }
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ff0000;
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-container {
  max-width: 600px;
  margin: 20px auto 0;
  padding: 0 20px;
  width: 100%;
}
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 16px;
  font-size: 16px;
  color: #888888;
  pointer-events: none;
  transition: color 0.3s ease;
}
.search-wrapper input {
  width: 100%;
  padding: 12px 48px 12px 44px;
  background: #111111;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.3s ease;
}
.search-wrapper input:focus { border-color: #ff0000; }
.search-wrapper input::placeholder { color: #555555; }
.search-clear {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888888;
  font-size: 16px;
  transition: color 0.3s ease;
}
.search-clear:hover { color: #ff0000; }

/* ============================================================
   FILTERS (3 filters side by side)
   ============================================================ */
.filters-row {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  width: 100%;
}
.player-filters, .team-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
}
.filter-group { min-width: 0; }
.filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #888888;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}
.filter-group select {
  width: 100%;
  padding: 10px 12px;
  background: #111111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.filter-group select:focus { border-color: #ff0000; }

.filter-divider {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 20px;
  height: 1px;
  background: #2a2a2a;
}

.results-count {
  text-align: center;
  margin: 16px auto;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 0, 0, 0.1);
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
}

/* ============================================================
   MAIN
   ============================================================ */
.marketplace-main {
  flex: 1 0 auto;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 40px;
  width: 100%;
  min-height: 50vh;
}

/* ============================================================
   SKELETON
   ============================================================ */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.skeleton-card {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  padding: 18px 20px;
  animation: pulse 1.5s ease-in-out infinite;
}
.skeleton-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin: 0 auto 12px;
}
.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  margin: 8px 0;
}
.skeleton-line.short { width: 60%; }
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================================
   ERROR / EMPTY STATES
   ============================================================ */
.error-state, .empty-state {
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.error-state h2, .empty-state h2 { font-size: 24px; margin-bottom: 10px; color: #ffffff; }
.error-state p, .empty-state p { color: #888888; }
.error-state i, .empty-state i {
  font-size: 64px;
  color: #ff0000;
  margin-bottom: 8px;
}
.btn-retry {
  padding: 12px 24px;
  background: #ff0000;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
}
.btn-retry:hover { background: #cc0000; }

/* ============================================================
   GRIDS
   ============================================================ */
.players-grid, .teams-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ============================================================
   COMMON CARD BASE
   ============================================================ */
.player-card, .team-card {
  position: relative;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 16px;
}
.player-card:hover, .team-card:hover {
  border-color: #ff0000;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.25);
}

/* ============================================================
   ⭐ PLAYER CARD — GAMING BORDER DESIGN
   ============================================================ */
.player-card {
  align-items: center;
  padding-top: 20px;
  border: 1.5px solid rgba(255, 0, 0, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 0, 0, 0.05),
    inset 0 0 20px rgba(255, 0, 0, 0.05);
}

/* Gaming corner brackets — top-left */
.player-card::before {
  content: '';
  position: absolute;
  top: -1.5px;
  left: -1.5px;
  width: 26px;
  height: 26px;
  border-top: 2.5px solid #ff0000;
  border-left: 2.5px solid #ff0000;
  border-top-left-radius: 16px;
  pointer-events: none;
  z-index: 3;
}

/* Gaming corner brackets — bottom-right */
.player-card::after {
  content: '';
  position: absolute;
  bottom: -1.5px;
  right: -1.5px;
  width: 26px;
  height: 26px;
  border-bottom: 2.5px solid #ff0000;
  border-right: 2.5px solid #ff0000;
  border-bottom-right-radius: 16px;
  pointer-events: none;
  z-index: 3;
}

/* Additional corner — top-right (inner subtle) */
.player-card .gaming-corner-tr {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 14px;
  height: 14px;
  border-top: 1.5px solid rgba(255, 0, 0, 0.5);
  border-right: 1.5px solid rgba(255, 0, 0, 0.5);
  pointer-events: none;
  z-index: 3;
}

/* Additional corner — bottom-left (inner subtle) */
.player-card .gaming-corner-bl {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 14px;
  height: 14px;
  border-bottom: 1.5px solid rgba(255, 0, 0, 0.5);
  border-left: 1.5px solid rgba(255, 0, 0, 0.5);
  pointer-events: none;
  z-index: 3;
}

.player-card:hover {
  border-color: #ff0000;
  box-shadow:
    0 8px 30px rgba(255, 0, 0, 0.35),
    inset 0 0 30px rgba(255, 0, 0, 0.08);
}

/* Player card — status badge top-LEFT */
.player-card .status-badge-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
}

/* Player card — avatar */
.player-card .card-avatar-ring {
  margin: 8px auto 12px;
}

/* Player card — name block */
.player-card .card-name-block {
  text-align: center;
  margin-bottom: 16px;
  width: 100%;
}

/* ============================================================
   ⭐ TEAM CARD — ONE-LINE HEADER
   ============================================================ */
.team-card {
  padding: 14px;
}

.team-card .team-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  z-index: 2;
  position: relative;
}

.team-card .card-avatar-ring.team-ring {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.team-card .card-name-block {
  text-align: left;
  min-width: 0;
  padding: 0;
}
.team-card .card-name {
  font-size: 17px;
  margin: 0 0 2px;
  line-height: 1.1;
}
.team-card .card-name-underline {
  width: 24px;
  height: 2.5px;
  margin: 3px 0 3px;
}
.team-card .card-username {
  font-size: 11px;
}

.team-card .status-badge-pill {
  position: static;
  align-self: flex-start;
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 9px;
  padding: 4px 10px;
}

.team-card .team-info-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  padding: 12px 0;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  margin-bottom: 14px;
  z-index: 2;
  position: relative;
}
.team-card .team-info-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
  border-right: 1px solid #1a1a1a;
}
.team-card .team-info-col:last-child {
  border-right: none;
}
.team-card .team-info-icon {
  color: #ff0000;
  font-size: 14px;
  margin-bottom: 5px;
}
.team-card .team-info-label {
  font-size: 9px;
  font-weight: 700;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}
.team-card .team-info-value {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  word-break: break-word;
  line-height: 1.3;
}

/* ============================================================
   AVATAR RING
   ============================================================ */
.card-avatar-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #ff0000, #ff6b00);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(255, 0, 0, 0.4);
  flex-shrink: 0;
}
.card-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0a0a0a;
  background: #111;
}

/* ============================================================
   NAME BLOCK
   ============================================================ */
.card-name-block {
  text-align: center;
}
.card-name {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 4px;
  word-break: break-word;
  line-height: 1.15;
  letter-spacing: -0.4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.card-name-underline {
  width: 36px;
  height: 3px;
  background: #ff0000;
  border-radius: 2px;
  margin: 6px auto 6px;
}
.card-username {
  font-size: 13px;
  color: #888888;
  margin: 0;
  word-break: break-all;
  line-height: 1.3;
  font-weight: 500;
}

/* ============================================================
   PLAYER INFO TABLE
   ============================================================ */
.card-table {
  display: flex;
  flex-direction: column;
  background: #050505;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  width: 100%;
  z-index: 2;
  position: relative;
}
.card-table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #1a1a1a;
}
.card-table-row:last-child {
  border-bottom: none;
}
.card-table-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.card-table-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff0000;
  font-size: 14px;
  flex-shrink: 0;
}
.card-table-label {
  font-size: 11px;
  font-weight: 700;
  color: #aaaaaa;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.card-table-value {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-align: right;
  word-break: break-word;
  min-width: 0;
}

/* ============================================================
   ACTION BUTTONS
   ============================================================ */
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  z-index: 2;
  position: relative;
}
.card-actions.single {
  grid-template-columns: 1fr;
}

.btn-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  white-space: nowrap;
  min-height: 48px;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}
.btn-card-action i {
  font-size: 15px;
  flex-shrink: 0;
}

/* Primary (red gradient) */
.btn-card-action.primary {
  background: linear-gradient(135deg, #cc0000, #ff0000);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.3);
}
.btn-card-action.primary:hover {
  background: linear-gradient(135deg, #ff0000, #ff2200);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
}

/* WhatsApp (green outline) */
.btn-card-action.whatsapp {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid #22c55e;
}
.btn-card-action.whatsapp:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: #16a34a;
  color: #22c55e;
  transform: translateY(-1px);
}
.btn-card-action.whatsapp i {
  color: #22c55e;
}
.btn-card-action.whatsapp:hover i {
  color: #16a34a;
}

/* ⭐ Team button (simple — just "View Team" text) */
.btn-card-action.team-btn {
  background: transparent;
  color: #00ccff;
  border: 1.5px solid #00ccff;
}
.btn-card-action.team-btn:hover {
  background: rgba(0, 204, 255, 0.1);
  border-color: #00b8e6;
  color: #00b8e6;
  transform: translateY(-1px);
}
.btn-card-action.team-btn i {
  color: #00ccff;
}
.btn-card-action.team-btn:hover i {
  color: #00b8e6;
}

/* ============================================================
   STATUS BADGE PILLS
   ============================================================ */
.status-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.status-badge-pill.looking {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.status-badge-pill.in_team {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.4);
}
.status-badge-pill.not_interested {
  background: rgba(180, 180, 180, 0.08);
  color: #b0b0b0;
  border: 1px solid rgba(180, 180, 180, 0.35);
}
.status-badge-pill.requirement {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.status-badge-pill.team-full {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.status-badge-pill.no-requirement {
  background: rgba(180, 180, 180, 0.08);
  color: #b0b0b0;
  border: 1px solid rgba(180, 180, 180, 0.35);
}
.status-badge-pill i {
  font-size: 7px;
}

/* ============================================================
   VERIFICATION BADGE
   ============================================================ */
.verification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  flex-shrink: 0;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.verification-badge i {
  font-size: 16px;
  line-height: 1;
}
.verification-badge.verified i {
  color: #1d9bf0;
  filter: drop-shadow(0 0 3px rgba(29, 155, 240, 0.4));
}
.verification-badge.golden i {
  color: #ffc107;
  filter: drop-shadow(0 0 3px rgba(255, 193, 7, 0.5));
}

/* ============================================================
   LOAD MORE
   ============================================================ */
.load-more-container { text-align: center; margin-top: 30px; }
.btn-load-more {
  padding: 14px 32px;
  background: transparent;
  color: #ffffff;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
}
.btn-load-more i { font-size: 16px; }
.btn-load-more:hover { color: #ff0000; border-color: #ff0000; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  padding: 30px 0 20px;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #2a2a2a;
  object-fit: cover;
}
.footer-desc { font-size: 14px; color: #888888; }
.footer-social { display: flex; gap: 14px; justify-content: center; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #333333;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}
.footer-social a:hover { border-color: #ff0000; }
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  padding: 0 10px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.footer-links a {
  color: #888888;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 0 5px;
  white-space: nowrap;
}
.footer-links a:hover { color: #ff0000; }
.footer-bottom {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #1a1a1a;
  width: 100%;
}
.footer-copy { font-size: 12px; color: #555555; }
.footer-copy a { color: #666666; text-decoration: none; }
.footer-copy a:hover { color: #ff0000; }

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  padding: 8px 0;
  z-index: 1000;
  height: 62px;
  box-sizing: border-box;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #666666;
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  padding: 4px 0;
  transition: all 0.2s ease;
  flex: 1;
  max-width: 80px;
  position: relative;
}
.nav-item.active { color: #ff0000; }

.nav-badge-dot {
  position: absolute;
  top: 2px;
  right: calc(50% - 14px);
  width: 8px;
  height: 8px;
  background: #ff0000;
  border-radius: 50%;
  border: 2px solid #0a0a0a;
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.3);
  animation: badgePulse 1.5s infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .players-grid, .teams-grid, .skeleton-grid { grid-template-columns: repeat(2, 1fr); }
  .filters-row { max-width: 100%; }
}

@media (max-width: 768px) {
  body { padding-bottom: 56px; }
  .tab-switcher { max-width: 100%; margin: 16px auto 0; }
  .tab-btn { font-size: 14px; padding: 12px; }
  .filters-row { max-width: 100%; padding: 0 16px; }
  .player-filters, .team-filters { gap: 10px; }
  .players-grid, .teams-grid, .skeleton-grid { grid-template-columns: 1fr; }
  .footer-links { gap: 16px; overflow-x: auto; }
  .footer-links a { font-size: 12px; }
  .bottom-nav { height: 56px; padding: 6px 0; }
  .nav-item span { font-size: 9px; }
  .nav-badge-dot { right: calc(50% - 12px); }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 480px) {
  body { padding-bottom: 50px; }
  .page-header { padding: 20px 16px 10px; }
  .page-logo { width: 60px; height: 60px; }
  .page-header h1 { font-size: 22px; }
  .page-description { font-size: 13px; }
  .tab-switcher { margin: 16px auto 0; }
  .tab-btn { font-size: 13px; padding: 10px; }
  .search-container { padding: 0 12px; }
  .search-wrapper input { padding: 10px 40px 10px 40px; font-size: 13px; }

  /* 3 filters on mobile — all in one row, side by side */
  .filters-row { padding: 0 10px; }
  .player-filters, .team-filters {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .filter-group label { font-size: 9px; letter-spacing: 0.3px; }
  .filter-group select {
    font-size: 11px;
    padding: 8px 8px;
    padding-right: 24px;
    background-position: right 8px center;
  }

  .players-grid, .teams-grid, .skeleton-grid { gap: 14px; }

  .card-avatar-ring { width: 80px; height: 80px; }
  .team-card .card-avatar-ring.team-ring { width: 56px; height: 56px; }
  .card-name { font-size: 20px; }
  .team-card .card-name { font-size: 16px; }

  .team-card .team-header { gap: 10px; }
  .team-card .status-badge-pill { font-size: 8px; padding: 3px 8px; }

  .team-card .team-info-body {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 10px 0;
  }
  .team-card .team-info-col { padding: 0 4px; }
  .team-card .team-info-value { font-size: 11px; }
  .team-card .team-info-label { font-size: 8px; }

  .card-table-row { padding: 10px 12px; }
  .card-table-value { font-size: 13px; }
  .card-table-label { font-size: 10px; }

  .btn-card-action {
    padding: 11px 12px;
    font-size: 13px;
    min-height: 44px;
    gap: 6px;
  }
  .btn-card-action i { font-size: 14px; }

  .footer-links { gap: 12px; }
  .footer-links a { font-size: 11px; }
  .bottom-nav { height: 50px; padding: 4px 0; }
  .nav-item span { font-size: 8px; }
}

@media (max-width: 360px) {
  .filters-row { padding: 0 8px; }
  .player-filters, .team-filters { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .filter-group label { font-size: 8px; }
  .filter-group select {
    font-size: 10px;
    padding: 7px 6px;
    padding-right: 20px;
    background-position: right 6px center;
  }
  .card-actions { grid-template-columns: 1fr 1fr; }
  .btn-card-action {
    font-size: 11px;
    padding: 10px 8px;
    min-height: 40px;
  }
  .team-card .team-info-body { grid-template-columns: 1fr 1fr; }
  .team-card .team-info-col:nth-child(2) { border-right: none; }
  .team-card .team-info-col:nth-child(3) {
    border-right: none;
    grid-column: 1 / -1;
    border-top: 1px solid #1a1a1a;
    padding-top: 10px;
    margin-top: 10px;
  }
}