@font-face {
  font-family: 'Agrandir';
  src: url('/fonts/Agrandir-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Agrandir';
  src: url('/fonts/AgrandirText-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Agrandir';
  src: url('/fonts/Agrandir-GrandHeavy.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}
.gallery-banner {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('/images/banner-detail.webp') no-repeat center center;
  background-size: cover;
  padding: 60px 20px;
  color: #ffffff;
  display: flex;
  align-items: center;
  min-height: 180px;
  box-sizing: border-box;
}
.gallery-banner .banner-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.gallery-banner .banner-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.gallery-banner .banner-title {
  font-family: 'Agrandir', sans-serif;
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.gallery-banner .event-badge {
  background-color: #E60000;
  color: #ffffff;
  padding: 6px 16px;
  font-family: 'Agrandir', sans-serif;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
}
.gallery-banner .banner-right {
  display: flex;
  align-items: center;
}
.gallery-banner .search-form {
  display: flex;
  align-items: center;
}
.gallery-banner .search-input-wrapper {
  position: relative;
  width: 320px;
  display: flex;
  align-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 15px;
  padding: 0 20px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 46px;
  transition: all 0.25s ease;
  box-sizing: border-box;
}
.gallery-banner .search-input-wrapper:focus-within {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}
.gallery-banner .search-input-wrapper .search-icon {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  margin-left: 10px;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  padding: 0;
}
.gallery-banner .search-input-wrapper input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  font-family: 'Inter', 'Roboto', sans-serif;
  color: #ffffff;
  padding: 0;
}
.gallery-banner .search-input-wrapper input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.gallery-banner .search-input-wrapper input:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.gallery-banner .search-input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.desktop-search {
  display: flex;
}
.mobile-search {
  display: none;
}
.gallery-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 50px 20px 80px;
  font-family: 'Inter', 'Roboto', sans-serif;
  box-sizing: border-box;
}
.gallery-wrapper .recordings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}
.gallery-wrapper .recordings-grid .recording-card {
  background: #ffffff;
  border: 1.5px solid #E60000;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: unset;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}
.gallery-wrapper .recordings-grid .recording-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(230, 0, 0, 0.08);
}
.gallery-wrapper .recordings-grid .recording-card .card-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background-color: #000;
  margin-bottom: 16px;
}
.gallery-wrapper .recordings-grid .recording-card .card-thumbnail-wrapper .thumbnail-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.gallery-wrapper .recordings-grid .recording-card .card-thumbnail-wrapper .play-overlay-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 38px;
  opacity: 0.9;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.gallery-wrapper .recordings-grid .recording-card .card-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.gallery-wrapper .recordings-grid .recording-card .card-details .card-title {
  font-family: 'Agrandir', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #191919;
  margin: 0 0 6px 0;
  line-height: 1.35;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-wrapper .recordings-grid .recording-card .card-details .card-meta {
  font-size: 12px;
  color: #888888;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.gallery-wrapper .recordings-grid .recording-card .card-details .card-meta .meta-separator {
  color: #dddddd;
}
.gallery-wrapper .recordings-grid .recording-card .card-details .players-list {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #f2f2f2;
  padding-top: 12px;
}
.gallery-wrapper .recordings-grid .recording-card .card-details .players-list .player-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #191919;
  font-weight: 500;
}
.gallery-wrapper .recordings-grid .recording-card .card-details .players-list .player-team i {
  color: #191919;
  font-size: 13px;
  width: 16px;
  text-align: center;
}
.gallery-wrapper .recordings-grid .recording-card .card-details .players-list .player-team span {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-wrapper .custom-pagination-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 45px;
  border-top: 1px solid #eeeeee;
  padding-top: 30px;
  flex-wrap: wrap;
  gap: 20px;
}
.gallery-wrapper .custom-pagination-wrapper .pagination-status-info {
  font-size: 14px;
  color: #191919;
  font-weight: 600;
}
.gallery-wrapper .custom-pagination-wrapper .pagination-action-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gallery-wrapper .custom-pagination-wrapper .pagination-action-links .pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  color: #191919;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  border-radius: 50%;
}
.gallery-wrapper .custom-pagination-wrapper .pagination-action-links .pagination-btn i {
  font-size: 11px;
}
.gallery-wrapper .custom-pagination-wrapper .pagination-action-links .pagination-btn.active {
  background-color: #E60000;
  color: #ffffff;
  pointer-events: none;
}
.gallery-wrapper .custom-pagination-wrapper .pagination-action-links .pagination-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
}
.gallery-wrapper .custom-pagination-wrapper .pagination-action-links .pagination-btn:hover:not(.active):not(.disabled) {
  background-color: #f5f5f5;
  color: #E60000;
}
.gallery-wrapper .no-results-msg {
  text-align: center;
  grid-column: 1 / -1;
  padding: 60px;
  color: #888888;
  font-weight: 500;
  font-size: 16px;
  background: #fafafa;
  border-radius: 20px;
  border: 1.5px dashed #bbbbbb;
}
.gallery-wrapper .no-results-msg i {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
  color: #ccc;
}
@media (max-width: 1024px) {
  .gallery-wrapper .recordings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 950px) {
  .gallery-wrapper .recordings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .gallery-banner {
    padding: 40px 15px;
    min-height: 140px;
  }
  .gallery-banner .banner-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .gallery-wrapper {
    padding: 25px 15px 50px;
  }
}
@media (max-width: 604px) {
  .desktop-search {
    display: none !important;
  }
  .mobile-search {
    display: flex;
    width: 100%;
    margin-bottom: 24px;
    box-sizing: border-box;
  }
  .mobile-search .search-form {
    width: 100%;
  }
  .mobile-search .search-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    border: 1.5px solid #bbbbbb;
    border-radius: 15px;
    padding: 0 20px;
    background-color: #ffffff;
    height: 46px;
    transition: all 0.25s ease;
    box-sizing: border-box;
  }
  .mobile-search .search-input-wrapper:focus-within {
    border-color: #191919;
    box-shadow: 0 0 0 3px rgba(25, 25, 25, 0.08);
  }
  .mobile-search .search-input-wrapper .search-icon {
    color: #888888;
    font-size: 16px;
    margin-left: 10px;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    padding: 0;
  }
  .mobile-search .search-input-wrapper input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #191919;
    padding: 0;
  }
  .mobile-search .search-input-wrapper input::-moz-placeholder {
    color: #b3b3b3;
  }
  .mobile-search .search-input-wrapper input:-ms-input-placeholder {
    color: #b3b3b3;
  }
  .mobile-search .search-input-wrapper input::placeholder {
    color: #b3b3b3;
  }
  .gallery-wrapper .recordings-grid {
    grid-template-columns: 1fr;
  }
}

