/* DETAILS SECTION */
.details-header {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 100px;
}
.main-image {
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 0 25px #00ffff7d;
}
.thumb-gallery {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.thumb-gallery img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s;
  object-fit: cover;
  border: 2px solid #00ffff55;
}
.thumb-gallery img:hover, .thumb-gallery img.active {
  opacity: 1;
  box-shadow: 0 0 10px #00ffffaa;
  border: 2px solid #00ffff55;
}

.details-info {
  flex: 1;
}
.details-info h1 {
  color: #00ffff;
  font-size: 2.2rem;
  margin-bottom: 15px;
}
.badge-rating {
  background: #00ffff22;
  color: #00ffff;
  border: 1px solid #00ffff55;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
}
.details-meta span {
  display: inline-block;
  margin-right: 15px;
  color: #9fb3c8;
}
.details-description {
  font-family: 'Exo 2', sans-serif;
  margin-top: 25px;
  line-height: 1.8;
  color: #cdd7e0;
}

/* RELATED GAMES */
.section-title {
  margin: 60px 0 20px;
}

.tooltip-inner {
  max-width: 250px; /* control width */
  white-space: normal; /* allow wrapping */
  text-align: center;
}
.details-meta {
  background: #0f172a;
  border: 1px solid #00ffff33;
  border-radius: 15px;
  padding: 15px;
}

.details-meta .meta-item {
  background: rgba(0, 255, 255, 0.08);
 /* border: 1px solid rgba(0, 255, 255, 0.3); */
  color: #e0faff;
  transition: all 0.3s ease;
}

.details-meta .meta-item:hover {
  background: rgba(0, 255, 255, 0.18);
  border-color: #00ffffaa;
  transform: translateY(-2px);
}

.details-meta strong {
  color: #00ffff;
  margin-right: 5px;
}

.details-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #d0eaff;
  letter-spacing: 0.3px;
}

.fancybox__slide.is-selected.has-image.can-zoom_in {
    background: rgba(0, 255, 255, 0.08);
}

  @media (max-width: 576px) {
    .event-card .card-body {
        flex-direction: column;
        text-align: center;
    }

    .event-card img {
        margin-bottom: 10px;
    }

    .event-card .btn {
        width: 100%;
    }
}


/* Card Wrapper */
.event-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0,255,195,0.18);
    border-radius: 14px;
    padding: 16px;
    transition: 0.3s ease;
    box-shadow: 0 0 18px rgba(0,255,195,0.05);
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0,255,195,0.2);
}

/* Inner Flex */
.event-inner {
    display: flex;
}

/* Logo */
.event-logo img {
    width: 80px;
    height: auto;
    border-radius: 12px;
    border: 2px solid rgba(0,255,195,0.25);
    box-shadow: 0 0 12px rgba(0,255,195,0.2);
}

/* Title */
.event-title {
    font-family: 'Orbitron', sans-serif;
    color: #00ffc3;
    font-size: 1.2rem;
}

/* Meta Info */
.event-meta {
    color: #c2c8d0;
    font-size: 0.95rem;
}

/* LIVE Badge */
.live-badge {
    background: rgba(255, 0, 60, 0.8);
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 4px;
}

/* not LIVE Badge */
.no-live-badge {
    background: rgb(88 71 75 / 80%);
    color: #8d5656;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 4px;
}

/* Watch Button */
.btn-watch {
    background: linear-gradient(90deg, #00ffc3, #00aaff);
    color: #000;
    padding: 7px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.25s;
    font-family: 'Orbitron', sans-serif;
}

.btn-watch:hover {
    box-shadow: 0 0 12px #00ffc366;
    transform: translateY(-2px);
}

/* Visit Button */
.btn-visit {
    border: 1px solid rgba(0,255,195,0.3);
    color: #00ffc3;
    padding: 7px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.25s;
}

.btn-visit:hover {
    background: rgba(0,255,195,0.08);
    box-shadow: 0 0 10px rgba(0,255,195,0.3);
    transform: translateY(-2px);
}


/* Desktop default */
.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Mobile Fix */
@media (max-width: 767px) {

    .search-header {
        flex-direction: column; /* Stack vertically */
        align-items: stretch;
        gap: 8px;
    }

    /* Fullscreen button goes to TOP */
    .fs-box {
        order: 1;
        text-align: center;
    }

    /* Search Result heading goes to BOTTOM */
    .section-title {
        order: 2;
        margin: 0;
    }
}