/*
Theme Name: MatchGrid Final
Author: ChatGPT
Description: Final theme with pagination, responsive layout, no autoplay, home button, team logos auto fetch
Version: 1.0
*/

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #000;
  color: #fff;
}

a {
  color: #f5d000;
  text-decoration: none;
}

.header {
  text-align: center;
  padding: 20px;
}

.header img {
  max-height: 120px;
}

.home-grid {
  max-width: 1000px;
  margin: 20px auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 0 10px;
}

.home-card {
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(245, 208, 0, 0.8);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.home-card:hover {
  transform: scale(1.05);
}

.home-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.home-card-title {
  padding: 12px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  border-top: 1px solid #f5d000;
  background: #000;
  color: #f5d000;
}

.pagination {
  max-width: 1000px;
  margin: 10px auto 40px;
  padding: 0 10px;
  text-align: center;
}

.pagination a, .pagination span {
  display: inline-block;
  margin: 0 5px;
  padding: 6px 14px;
  color: #f5d000;
  border: 1px solid #f5d000;
  border-radius: 4px;
  text-decoration: none;
}

.pagination a:hover {
  background: #f5d000;
  color: #000;
}

.single-container {
  max-width: 960px;
  margin: 0 auto 40px;
  padding: 0 10px;
}

.single-title {
  font-size: 28px;
  font-weight: 700;
  margin: 20px 0;
  color: #f5d000;
  text-align: center;
}

.home-button {
  display: inline-block;
  margin: 20px auto;
  padding: 8px 18px;
  background: #f5d000;
  color: #000;
  font-weight: 700;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.home-button:hover {
  background: #d4b600;
}

/* Full width video wrapper */
.video-wrapper {
  width: 100%;
  background: #000;
  margin-bottom: 30px;
}

.video-wrapper iframe,
.video-wrapper video {
  width: 100%;
  height: 480px;
  border: none;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
  .home-card img {
    height: 200px;
  }
  .video-wrapper iframe,
  .video-wrapper video {
    height: 260px;
  }
}
/* MOBILE VERSION FIX — FORCE VIDEO PAGE TO BE MOBILE */
@media (max-width: 600px) {

  body {
    background: #000;
    padding: 0;
    margin: 0;
  }

  .single-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .single-title {
    font-size: 20px !important;
    padding: 10px;
  }

  .home-button {
    width: 95%;
    margin: 10px auto;
    display: block;
    text-align: center;
  }

  .video-wrapper {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .video-wrapper iframe,
  .video-wrapper video {
    width: 100% !important;
    height: 220px !important;
    border-radius: 0;
  }
}