/* GLOBAL ESPORTS BACKGROUND */
html,
body {
  height: 100%;
}

body {
  background-image: url("https://www.hok.com/wp-content/uploads/2019/06/Esports_Seating-Reconfiguration_2400.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 12, 0.75);
  backdrop-filter: blur(4px);
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 70, 85, 0.25),
      transparent 40%
    ),
    radial-gradient(circle at 80% 70%, rgba(255, 70, 85, 0.15), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

.navbar-brand {
  text-shadow:
    0 0 2px rgba(255, 70, 85, 0.5),
    0 0 4px rgba(255, 70, 85, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  height: 34px;
}

.brand-text {
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.brand-main {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  padding-bottom: 2px;
  color: #ff4655;
  font-family: "Orbitron", sans-serif;
  position: relative;
}

.brand-sub {
  font-size: 12px;
  letter-spacing: 2px;
  color: #ff4655;
}

.section-divider {
  height: 2px;
  margin: 80px auto;
  max-width: 1200px;
  background: linear-gradient(90deg, transparent, #ff4655, transparent);
  box-shadow: 0 0 10px rgba(255, 70, 85, 0.6);
}

.section-title {
  position: relative;
  color: #ff4655;
  font-family: "Orbitron", sans-serif;
  text-align: center;
  margin-bottom: 30px;
  font-size: 34px;
  letter-spacing: 2px;
}

.match-card {
  display: grid;
  grid-template-columns: 80px 1.5fr 1fr 120px 120px;
  align-items: center;
  padding: 16px 22px;
  border-radius: 10px;
  background: linear-gradient(90deg, #1a0507, #1a0507 60%, #0d0203);
  margin-bottom: 12px;
  transition: 0.25s;
}

.match-card:hover {
  transform: translateY(-3px);
  background: linear-gradient(90deg, #2a070b, #2a070b 60%, #140305);
  box-shadow: 0 0 12px rgba(255, 70, 85, 0.25);
}

.match-time {
  font-weight: 700;
  color: #60a5fa;
}

.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.team-logo-box {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.team-left {
  justify-content: flex-end;
  text-align: right;
}

.team-right {
  justify-content: flex-start;
  text-align: left;
}

.vs {
  font-weight: 700;
  color: #ff4655;
  letter-spacing: 1px;
}

.match-event {
  opacity: 0.7;
}

.match-blv {
  color: #facc15;
  font-weight: 600;
}

.status-live {
  color: #ff4655;
  font-weight: 700;
  animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

.status-upcoming {
  color: #ff7a85;
  font-weight: 600;
}

.status-ended {
  opacity: 0.5;
}

.schedule-section {
  min-height: 500px;

  display: flex;

  align-items: flex-start;
}

.schedule-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.schedule-tab {
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  background: #1a0a0c;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

.schedule-tab:hover {
  background: #2a0e11;
}

.schedule-tab.active {
  background: #ff4655;
  color: white;
}

.navbar-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 70, 85, 0.7));
}

.navbar {
  background: #020617;
  padding: 14px 0;
}

.navbar-nav .nav-link {
  color: #cbd5f5;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  position: relative;
  transition: all 0.25s ease;
}

.navbar-nav .nav-link:hover {
  color: white;
  background: #1e293b;
}

.navbar-nav .nav-link.active {
  color: white;
  background: #dc2626;
}

.nav-link.active {
  background: #dc2626;
  color: white !important;
}

.hero-banner {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-carousel {
  height: 100%;
  width: 100%;
  position: relative;
}

#hero-carousel {
  width: 100%;

  margin: 0 auto;

  max-width: 1280px;

  aspect-ratio: 16/9;

  position: relative;

  overflow: hidden;

  border-radius: 10px;
}

.hero-wrapper {
  margin-top: 50px;
  width: 100%;
  max-width: 1280px;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-watch-btn {
  position: absolute;
  right: 100px;
  bottom: 100px;
  background: #ff4655;
  color: white;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(255, 70, 85, 0.4);
}

.hero-watch-btn:hover {
  background: #ff2c3e;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 70, 85, 0.6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0)
  );
}

.hero-content {
  position: absolute;
  left: 8%;
  bottom: 18%;
  z-index: 3;
  color: #fff;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-status {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: #ff4655;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-nav {
  position: absolute;
  bottom: 30px;
  right: 40px;
  z-index: 5;
}

.hero-nav button {
  background: #ff4655;
  border: none;
  color: white;
  font-size: 22px;
  padding: 8px 14px;
  margin-left: 10px;
  cursor: pointer;
  border-radius: 4px;
}

.hero-nav button:hover {
  background: #ff2a3d;
}

.hero-match {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-team {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.hero-vs {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  opacity: 0.85;
  margin-left: 70px;
}

.hero-team-name {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero-countdown {
  font-size: 18px;
  font-weight: 600;
  color: #ff4655;
}

.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-time-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  font-size: 16px;
  opacity: 0.9;
}

.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: #ff4655;
  transition: width 0.1s linear;
}

.hero-datetime {
  font-size: 18px;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

.hero-mobile {
  display: none;
}

.casters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: auto;
}

.caster-card {
  position: relative;
  background: linear-gradient(145deg, #0f0f0f, #1c1c1c);
  border-radius: 16px;
  padding: 35px 25px;
  text-align: center;
  overflow: hidden;
  transition: 0.35s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.caster-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 70, 85, 0.25),
    transparent
  );
  opacity: 0;
  transition: 0.4s;
}

.caster-card:hover {
  transform: translateY(-12px) scale(1.03);
  border: 1px solid rgba(255, 70, 85, 0.6);
  box-shadow:
    0 0 25px rgba(255, 70, 85, 0.4),
    0 0 50px rgba(255, 70, 85, 0.2);
}

.caster-card:hover::before {
  opacity: 1;
}

.caster-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  border: 3px solid #ff4655;
  box-shadow:
    0 0 10px #ff4655,
    0 0 25px rgba(255, 70, 85, 0.7),
    0 0 40px rgba(255, 70, 85, 0.4);
  transition: 0.3s;
}

.caster-card:hover .caster-avatar {
  transform: scale(1.1);
  box-shadow:
    0 0 15px #ff4655,
    0 0 35px #ff4655,
    0 0 60px rgba(255, 70, 85, 0.8);
}

.caster-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: 1px;
}

.caster-desc {
  font-size: 14px;
  opacity: 0.75;
  line-height: 1.6;
  max-width: 220px;
  margin: auto;
}

/* ============================= */
/* FOOTER */
/* ============================= */

.site-footer {
  background: #0b0b0b;
  border-top: 2px solid #ff4655;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  color: #ff4655;
  font-size: 22px;
  margin-bottom: 10px;
}

.footer-desc {
  opacity: 0.75;
  line-height: 1.6;
  font-size: 14px;
  max-width: 320px;
}

.footer-links h4 {
  margin-bottom: 15px;
  font-size: 16px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: 0.25s;
}

.footer-links a:hover {
  color: #ff4655;
}

.footer-links p {
  opacity: 0.75;
  font-size: 14px;
  margin-bottom: 6px;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 14px;
  opacity: 0.6;
}

.livestream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

.livestream-banner {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.livestream-banner img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: 0.35s;
}

.livestream-banner::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 55%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.4),
    transparent
  );
}

.livestream-title {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
  z-index: 2;
  text-align: center;
}

.livestream-banner:hover img {
  transform: scale(1.08);
}

.beacons-links {
  max-width: 640px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.beacons-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 50px;
  font-size: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s;
}

.beacons-pill i {
  position: absolute;
  left: 25px;
  font-size: 30px;
  opacity: 0.9;
}

.beacons-pill:hover {
  background: #ff4655;
  border-color: #ff4655;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 70, 85, 0.35);
}

.sponsor-container {
  max-width: 1200px;
  margin: auto;
}

.sponsor-header {
  text-align: center;
  margin-bottom: 60px;
}

.sponsor-label {
  font-size: 18px;
  color: #aaa;
  position: relative;
  display: inline-block;
  padding-left: 50px;
}

.sponsor-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 40px;
  height: 2px;
  background: #ff4655;
}

.sponsor-title {
  font-size: 42px;
  color: #ff4655;
  margin: 10px 0 30px;
}

.sponsor-btn {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.sponsor-btn:hover {
  background: #ff4655;
  border-color: #ff4655;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: center;
}

.sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  transition: 0.3s;
}

.sponsor-item img {
  max-height: 75px;
  transition: 0.3s;
}

.sponsor-item:hover {
  border-color: #ff4655;
  transform: translateY(-4px);
}

.sponsor-item:hover img {
  filter: none;
  opacity: 1;
}

.agents-section {
  padding: 60px 20px;
  text-align: center;
}

.agents-title {
  font-size: 32px;
  margin-bottom: 40px;
  letter-spacing: 3px;
}

#agents {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: auto;
}

.agent-card {
  background: #1a242f;
  border-radius: 12px;
  padding: 12px;
  transition: 0.25s;
  cursor: pointer;
}

.agent-card:hover {
  transform: translateY(-6px);
  background: #ff4655;
}

.agent-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
}

.agent-card h3 {
  margin-top: 10px;
  font-size: 18px;
}

.agent-card p {
  opacity: 0.7;
  font-size: 14px;
}

.social-btn {
  width: 40px;
  height: 40px;
  background: #dc3545; /* đỏ */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.2s ease;
}

/* hover nhẹ */
.social-btn:hover {
  background: #ff4d5a;
  transform: scale(1.1);
}

@media (max-width: 1100px) {
  #agents {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  #agents {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 450px) {
  #agents {
    grid-template-columns: 1fr;
  }
}

.map-section {
  margin-bottom: 80px;
}

.map-content {
  margin-bottom: 20px;
}

.map-banner img {
  width: 100%;
  border-radius: 10px;
}

.map-callout {
  text-align: center;
}

.map-callout img {
  max-width: 350px;
  width: 100%;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.map-desc {
  max-width: 900px;
  margin: auto;
  text-align: center;
  line-height: 1.7;
  opacity: 0.9;
}

/* Mobile */

@media (max-width: 991px) {
  .map-callout {
    margin-top: 20px;
  }

  .map-callout img {
    max-width: 280px;
  }
}

.event-section {
  padding: 60px 20px;
  text-align: center;
}

.event-section img {
  max-width: 800px;
  width: 100%;
  height: auto;
  display: block;
  margin: auto;
  border-radius: 10px;
}

.event-section ul li {
  margin-bottom: 8px;
}

.section-title {
  font-family: "Orbitron", sans-serif;
  font-size: 32px;
}

/* ===== Modal Background ===== */

.policy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: none;

  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.7);

  backdrop-filter: blur(6px);

  z-index: 9999;
}

.policy-modal.active {
  display: flex;
}

/* ===== Modal Box ===== */

.policy-modal-box {
  width: 90%;
  max-width: 720px;

  max-height: 80vh;

  overflow-y: auto;

  padding: 35px 40px;

  background: #0f1923;

  border-radius: 8px;

  color: white;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

/* ===== Close Button ===== */

.policy-close {
  position: absolute;

  top: 15px;
  right: 20px;

  border: none;

  background: none;

  font-size: 20px;

  color: #aaa;

  cursor: pointer;
}

.policy-close:hover {
  color: #ff4655;
}

/* ===== Scrollbar ===== */

.policy-modal-box::-webkit-scrollbar {
  width: 6px;
}

.policy-modal-box::-webkit-scrollbar-thumb {
  background: #ff4655;
  border-radius: 10px;
}

/* ===== Lock Scroll ===== */

body.modal-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width);
  position: fixed;
  width: 100%;
  overflow-y: scroll;
}

/* Title chính */
.policy-modal-box h2 {
  color: #ff4655;
  text-align: center;
  font-size: 28px;
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Các tiêu đề nhỏ */
.policy-modal-box h3 {
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #ff4655;
}

/* Nội dung */
.policy-modal-box p {
  font-size: 15px;
  line-height: 1.7;
  color: #d8d8d8;
}

/* Khoảng cách đoạn */
.policy-modal-box p + h3 {
  margin-top: 18px;
}

.dropdown-menu {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
  padding: 10px 18px;
}

.dropdown-item:hover {
  background: #ff4655;
  color: white;
}

/* RESPONSIVE */
/* Desktop */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: center;
}

/* Tablet */
@media (max-width: 992px) {
  .sponsor-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .sponsor-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sponsor-item {
    padding: 20px;
  }

  .sponsor-item img {
    max-height: 60px;
  }
}

@media (max-width: 768px) {
  .brand-text {
    display: none;
  }

  .match-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    padding: 18px;
    background: linear-gradient(180deg, #260000, #120000);
  }

  .match-time {
    text-align: center;
    font-weight: 700;
    font-size: 15px;
  }

  .match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .team-logo {
    width: 28px;
    height: 28px;
  }

  .team-name {
    font-size: 14px;
  }

  .vs {
    font-size: 13px;
    opacity: 0.7;
  }

  .match-event {
    text-align: center;
    font-size: 13px;
    opacity: 0.8;
  }

  .match-blv {
    text-align: center;
    font-size: 13px;
  }

  .status-live,
  .status-upcoming,
  .status-ended {
    margin: auto;
    width: fit-content;
  }

  .section-title {
    font-size: 26px;
    letter-spacing: 3px;
    margin: 40px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-desc {
    max-width: 600px;
    margin: auto;
    font-size: 13px;
    line-height: 1.4;
  }

  .footer-links ul {
    padding: 0;
  }

  .footer-links a {
    font-size: 13px;
  }

  .event-section img {
    max-width: 100%;
  }

  .hero-desktop {
    display: none;
  }

  .hero-mobile {
    display: flex;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 3;
  }

  .hero-mobile .hero-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .hero-mobile .hero-logo {
    width: 42px;
    height: 42px;
  }

  .hero-mobile .hero-team-name {
    font-size: 14px;
    font-weight: 700;
  }

  .hero-mobile .hero-vs {
    font-size: 22px;
    font-weight: 800;
    color: #ff4655;
  }

  /* button center mobile */

  .hero-watch-btn {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    bottom: 16px;
    padding: 8px 16px;
    font-size: 12px;
  }

  .hero-nav {
    display: none;
  }
}

.tele-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: #0088cc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transition: all 0.3s ease;
  padding: 0;
  animation: pulse 2s infinite;
}

.tele-btn img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.tele-btn:hover {
  transform: scale(1.1);
  background: #0077b5;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 136, 204, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 136, 204, 0);
  }
}
