
/* =========================================================
   GLOBAL
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #0e1621;
  color: #fff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* =========================================================
   HEADER
========================================================= */

header {
  background: #0a0a0a;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

header a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

header a:hover {
  background: #fff;
  color: #000;
}

/* =========================================================
   MAIN TITLE
========================================================= */

h1 {
  text-align: center;
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 20px 15px 5px;
}

.event-info {
  text-align: center;
  margin: 0 auto 20px;
  padding: 0 15px;
  color: #bbb;
}

.event-info img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 10px;
  background: #fff;
  border-radius: 5px;
}

/* =========================================================
   TOOLBAR
========================================================= */

.main-toolbar {
  background-color: #0a0a0a;
  border-bottom: 1px solid #222;
  padding: 10px 20px;
}

.toolbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  min-width: 0;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.toolbar-logo {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.toolbar-toggle {
  display: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.toolbar-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  min-width: 0;
}

.toolbar-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  transition: 0.2s;
}

.toolbar-links a:hover {
  background-color: #00ffd5;
  color: #000;
}

/* =========================================================
   TEAM / MATCH AREA
========================================================= */

.team-logos {
  width: calc(100% - 30px);
  max-width: 800px;
  margin: 30px auto 0;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #121212;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.home-team-logo,
.away-team-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #fff;
  padding: 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

.home-team-logo img,
.away-team-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.home-team-logo span,
.away-team-logo span {
  color: #bbb;
  font-size: 18px;
}

.match-title h1 {
  color: #fff;
  font-size: 18px;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
  margin: 30px 15px 10px;
}

/* =========================================================
   COUNTDOWN
========================================================= */

.countdown-box {
  width: calc(100% - 30px);
  max-width: 800px;
  margin: 20px auto 25px;
  padding: 18px 20px;
  background: #121212;
  border: 1px solid #292929;
  border-radius: 10px;
  text-align: center;
}

.countdown-label {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 10px;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.countdown-item {
  min-width: 65px;
  padding: 10px 8px;
  background: #1a2533;
  border-radius: 7px;
}

.countdown-number {
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.countdown-text {
  display: block;
  color: #999;
  font-size: 11px;
  margin-top: 6px;
  text-transform: uppercase;
}

.countdown-live {
  color: #00ffd5;
  font-size: 22px;
  font-weight: 700;
}

/* =========================================================
   PLAYER
========================================================= */

.player-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 50px;
  padding: 0 15px;
}

.player-box {
  width: 100%;
  background: #1a2533;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   STREAM LINKS
========================================================= */

.link-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.link-selector a {
  background: #fff;
  color: #000;
  padding: 8px 13px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  margin: 0;
  display: inline-block;
  transition: background 0.2s ease, transform 0.2s ease;
}

.link-selector a:hover {
  background: #ddd;
  transform: translateY(-1px);
}

.link-selector a.active {
  background: #5791ff !important;
  color: #fff !important;
}

/* =========================================================
   IFRAME
========================================================= */

iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 6px;
  background: #0a0a0a;
}

/* =========================================================
   IFRAME PLACEHOLDER
========================================================= */

.iframe-placeholder {
  width: 100%;
  min-height: 500px;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  color: #aaa;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  text-align: center;
  padding: 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 5px solid #333;
  border-top: 5px solid #00e0ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   PLACEHOLDER LOGO
========================================================= */

.placeholder-logo {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  color: #000;
  font-size: 24px;
  font-weight: bold;
  border-radius: 8px;
  text-align: center;
}

/* =========================================================
   SEO
========================================================= */

.seo-box {
  width: calc(100% - 30px);
  max-width: 900px;
  margin: 60px auto;
  padding: 25px 30px;
  background: #101010;
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.seo-content {
  color: #ddd;
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.seo-content h2 {
  color: #fff;
  font-size: 1.3rem;
  line-height: 1.35;
  margin: 28px 0 10px;
  padding-left: 10px;
  border-left: 3px solid #00e0ff;
}

.seo-content p {
  margin: 10px 0 18px;
}

.seo-meta {
  color: #bbb;
  font-size: 0.95rem;
  font-style: italic;
  margin-top: 25px;
  padding-top: 10px;
  border-top: 1px dashed #444;
}

/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 768px) {

  header {
    padding: 8px 12px;
    gap: 6px;
  }

  header a {
    font-size: 14px;
    padding: 7px 9px;
  }

  h1 {
    font-size: 1.35rem;
  }

  .toolbar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-left {
    justify-content: space-between;
    width: 100%;
  }

  .toolbar-toggle {
    display: block;
  }

  .toolbar-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 5px;
    margin-top: 10px;
  }

  .toolbar-links.show {
    display: flex;
  }

  .toolbar-links a {
    width: 100%;
    padding: 10px 15px;
  }

  .team-logos {
    justify-content: center;
    gap: 25px;
    padding: 15px;
  }

  .home-team-logo img,
  .away-team-logo img {
    width: 42px;
    height: 42px;
  }

  .match-title h1 {
    font-size: 15px;
    margin: 20px 10px 10px;
  }

  iframe {
    height: 300px;
  }

  .iframe-placeholder {
    min-height: 300px;
  }

  .seo-box {
    padding: 20px;
    margin: 40px auto;
  }

  .seo-content {
    font-size: 0.95rem;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 480px) {

  header {
    justify-content: center;
  }

  header a {
    font-size: 13px;
    padding: 6px 8px;
  }

  h1 {
    font-size: 1.2rem;
    margin-top: 15px;
  }

  .event-info {
    font-size: 14px;
  }

  .team-logos {
    width: calc(100% - 20px);
    padding: 12px;
    gap: 12px;
  }

  .home-team-logo,
  .away-team-logo {
    padding: 6px;
  }

  .home-team-logo img,
  .away-team-logo img {
    width: 35px;
    height: 35px;
  }

  .home-team-logo span,
  .away-team-logo span {
    font-size: 14px;
  }

  .match-title h1 {
    font-size: 13px;
    letter-spacing: 0.5px;
  }

  .countdown-box {
    width: calc(100% - 20px);
    padding: 15px 10px;
  }

  .countdown {
    gap: 5px;
  }

  .countdown-item {
    min-width: 58px;
    padding: 9px 5px;
  }

  .countdown-number {
    font-size: 20px;
  }

  .countdown-text {
    font-size: 9px;
  }

  .player-container {
    padding: 0 10px;
    margin-bottom: 35px;
  }

  .player-box {
    padding: 10px;
  }

  .link-selector {
    gap: 6px;
  }

  .link-selector a {
    font-size: 13px;
    padding: 7px 10px;
  }

  iframe {
    height: 240px;
  }

  .iframe-placeholder {
    min-height: 240px;
  }

  .seo-box {
    width: calc(100% - 20px);
    padding: 18px 15px;
    margin: 35px auto;
  }

  .seo-content {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .seo-content h2 {
    font-size: 1.1rem;
    margin-top: 22px;
  }

  .seo-meta {
    font-size: 0.85rem;
  }
}

/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media screen and (max-width: 360px) {

  .countdown-item {
    min-width: 52px;
  }

  .countdown-number {
    font-size: 18px;
  }

  .countdown-text {
    font-size: 8px;
  }

  iframe {
    height: 210px;
  }

  .link-selector a {
    font-size: 12px;
    padding: 6px 8px;
  }
}
