/* ================================
   COMPONENT — HERO BLOCK
================================ */

.hero {
  position: relative;
  text-align: center;
  padding: 80px 20px 60px;
  background: #000;
  color: #fff;
  margin-bottom: 40px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.hero h1 {
  position: relative;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero p {
  position: relative;
  font-size: 18px;
  opacity: 0.9;
}

/* ================================
   COMPONENT — MODALS
================================ */

.modal-content {
  position: relative;
  background: #111;
  padding: 20px;
  border-radius: 12px;
  max-width: 500px;
  margin: 40px auto;
}

.hidden {
  display: none !important;
}

.close-archive::before,
.close-modal::before,
.close-sponsor::before {
  content: "x";
  font-size: 28px;
  font-weight: bold;
  line-height: 28px;
  color: #fff;
}

/* ================================
   COMPONENT — TABS (MODERN)
================================ */

.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 18px;
  background: #eee;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tab-btn.active {
  background: #b30000;
  color: #fff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}


/* ================================
   COMPONENT — BADGES
================================ */

.fx-opponent {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fx-badge {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ================================
   COMPONENT — TABLES (Fixtures)
================================ */

.fixtures-table,
.reserves-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin-bottom: 40px;
}

.fixtures-table tr:nth-child(even),
.reserves-table tr:nth-child(even) {
  background: #fafafa;
}

.fixtures-table tr:nth-child(odd),
.reserves-table tr:nth-child(odd) {
  background: #ffffff;
}

.fixtures-table tr,
.reserves-table tr {
  border-radius: 8px;
  overflow: hidden;
  transition: background 0.2s ease, transform 0.15s ease;
}

.fixtures-table tr:hover,
.reserves-table tr:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.fixtures-table td,
.reserves-table td {
  padding: 12px 14px;
  vertical-align: middle;
  font-size: 15px;
}

.fixtures-table tr:first-child td,
.reserves-table tr:first-child td {
  background: none;
  font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 2px solid #ddd;
}

/* ================================
   COMPONENT — CARDS (News)
================================ */

.news-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 16px;
  margin-bottom: 20px;
}

/* ================================
   COMPONENT — PLAYER CARDS (Teams)
================================ */

.squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
  padding: 10px 0;
}

.player-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  color: #000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.player-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-name {
  font-size: 1.15rem;
  font-weight: 700;
}

.player-position {
  background: #b30000;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.player-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
  font-size: 0.9rem;
}

.player-stats div strong {
  color: #b30000;
}
.back-btn {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 14px;
  background: #eee;
  border-radius: 6px;
  font-weight: 600;
  color: #333;
}

.back-btn:hover {
  background: #ddd;
}



/* ================================
   COMPONENT — MOBILE FIXTURES
================================ */

@media (max-width: 600px) {

  .fixtures-table tr,
  .reserves-table tr {
    display: block;
    margin-bottom: 16px;
    padding: 14px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  }

  .fixtures-table td,
  .reserves-table td {
    display: block;
    padding: 5px 0;
    text-align: left !important;
  }

  .fixtures-table tr:first-child,
  .reserves-table tr:first-child {
    display: none;
  }
}

/* ================================
   MOBILE — SPONSOR BELT FIX
================================ */

@media (max-width: 600px) {
  #sponsor-belt::before,
  #sponsor-belt::after {
    width: 60px;   /* smaller fade so logos stay visible */
  }
}



/* ================================
   COMPONENT — MOBILE PLAYER CARDS
================================ */

@media (max-width: 600px) {

  .squad-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 30px;
  }

  .player-card {
    padding: 16px;
    border-radius: 12px;
  }

  .player-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .player-name {
    font-size: 1.1rem;
  }

  .player-position {
    padding: 3px 8px;
    font-size: 0.75rem;
  }

  .player-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 10px;
    font-size: 0.85rem;
  }
}

/* ================================
   SPONSOR BELT — NEW COMPONENT
================================ */

#sponsor-belt {
  width: 100%;
  height: 200px;
  background: #f0f0f0;
  border: 3px solid #333;
  margin-top: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 450px;
}

/* Wobble wrapper */
#wobble-wrapper {
  width: max-content;
  animation: wobble 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes wobble {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(4px); }
  100% { transform: translateY(0px); }
}

/* Inner belt (JS moves this) */
.belt-inner {
  display: flex;
  width: max-content;
  transform-style: preserve-3d;
}

/* Tracks */
.belt-track {
  display: flex;
  flex-shrink: 0;
}

/* Logos — UPDATED (no more faded look) */
.sponsor-logo {
  height: 100px;
  margin-right: 40px;
  flex-shrink: 0;
  object-fit: contain;

  transform: rotateX(28deg) scaleY(0.92) translateY(6px);

  /* FIXED: full visibility */
  opacity: 1;

  /* FIXED: stronger glow + brighter logos */
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.7))
          brightness(1.05)
          contrast(1.1);

  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.sponsor-logo:hover {
  transform: rotateX(0deg) scale(1.08);
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.9))
          brightness(1.1)
          contrast(1.15);
}

/* Fade masks */
#sponsor-belt::before,
#sponsor-belt::after {
  content: "";
  position: absolute;
  top: 0;
  width: 160px;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}

#sponsor-belt::before {
  left: 0;
  background: linear-gradient(to right, #f0f0f0 0%, transparent 100%);
}

#sponsor-belt::after {
  right: 0;
  background: linear-gradient(to left, #f0f0f0 0%, transparent 100%);
}

/* Curve shading */
#curve-shading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.12) 0%,
    rgba(0,0,0,0.00) 40%,
    rgba(0,0,0,0.10) 100%
  );
  z-index: 4;
}

/* Glass sheen */
#glass-sheen {
  position: absolute;
  top: 0;
  left: -200%;
  width: 300%;
  height: 100%;
  background: linear-gradient(
    60deg,
    rgba(255,255,255,0.0) 0%,
    rgba(255,255,255,0.15) 40%,
    rgba(255,255,255,0.0) 80%
  );
  animation: sheen 12s linear infinite;
  z-index: 7;
  pointer-events: none;
}

@keyframes sheen {
  0%   { transform: translateX(0); }
  100% { transform: translateX(50%); }
}
/* Ensure programme viewer always appears above everything */
#programme-viewer {
  position: fixed !important;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 99999 !important;
}

#programme-viewer .modal-content {
  position: relative;
  z-index: 100000 !important;
}
