
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #070b0a;
  --surface: #101714;
  --surface2: #17221c;
  --green: #b8ff35;
  --green2: #70d52b;
  --white: #f5f7f3;
  --muted: #9aa69e;
  --border: rgba(255,255,255,.09);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

header, nav {
  background: rgba(7,11,10,.96);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  padding: 17px 5%;
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

header nav a,
nav a {
  color: var(--white);
  margin: 0 9px;
  font-size: 14px;
  font-weight: 600;
  transition: .2s;
}

nav a:hover {
  color: var(--green);
}

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 1.05;
  letter-spacing: -.5px;
}

h1 {
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(30px, 5vw, 46px);
  margin-bottom: 22px;
}

h3 {
  font-size: 25px;
}

p {
  color: var(--muted);
}

button,
.btn,
.button {
  border: 0;
  border-radius: 8px;
  padding: 12px 22px;
  background: var(--green);
  color: #10150b;
  font-weight: 800;
  transition: .2s;
}

button:hover,
.btn:hover,
.button:hover {
  background: white;
  transform: translateY(-2px);
}

input {
  background: #101714;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 15px;
  color: white;
  outline: none;
}

input:focus {
  border-color: var(--green);
}

section {
  padding: 75px 5%;
}

.hero {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background:
    linear-gradient(90deg, rgba(4,9,7,.98), rgba(4,9,7,.75), rgba(4,9,7,.3)),
    linear-gradient(0deg, #070b0a, transparent),
    url('https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=1800&q=85') center/cover;
  padding: 90px 7%;
}

.hero h1 {
  max-width: 800px;
  margin: 20px 0;
}

.hero p {
  font-size: 18px;
  max-width: 600px;
  margin-bottom: 28px;
}

.hero a {
  display: inline-block;
  margin: 7px 8px 7px 0;
}

section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

section h2::before {
  content: "";
  width: 5px;
  height: 32px;
  border-radius: 5px;
  background: var(--green);
}

.container,
.matches-container,
.fixtures-container,
.leagues-container {
  width: 100%;
  max-width: 1250px;
  margin: auto;
}

.match-card,
.fixture-card,
.league-card,
.card {
  background: linear-gradient(145deg, #17221c, #0d1410);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  margin: 12px 0;
  transition: .25s;
}

.match-card:hover,
.fixture-card:hover,
.league-card:hover,
.card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
}

.match-card h3,
.fixture-card h3,
.league-card h3 {
  color: var(--white);
}

.live,
.live-badge {
  display: inline-block;
  background: rgba(255,55,55,.15);
  color: #ff5555;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 800;
}

.live::before {
  content: "● ";
}

.empty-state,
.no-matches,
.empty-message {
  text-align: center;
  padding: 45px 20px;
  background: var(--surface);
  border: 1px dashed #39463c;
  border-radius: 15px;
  color: var(--muted);
}

.empty-state h3,
.no-matches h3 {
  color: white;
  margin-bottom: 12px;
}

.league-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.video-player,
.player,
#videoPlayer {
  width: 100%;
  min-height: 300px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

footer {
  background: #050806;
  border-top: 1px solid var(--border);
  padding: 45px 5%;
  text-align: center;
}

footer a {
  color: var(--muted);
  margin: 8px;
}

footer a:hover {
  color: var(--green);
}

.modal,
#loginModal {
  background: rgba(0,0,0,.85);
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content,
.login-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  width: 100%;
  max-width: 430px;
}

.modal-content input,
.login-content input {
  width: 100%;
  margin: 9px 0;
}

@media (max-width: 700px) {
  header {
    padding: 13px 4%;
  }

  header nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  nav a {
    margin: 0 5px;
    font-size: 12px;
  }

  section {
    padding: 52px 5%;
  }

  .hero {
    min-height: 480px;
    padding: 65px 5%;
  }

  .hero p {
    font-size: 15px;
  }

  .match-card,
  .fixture-card {
    padding: 17px;
  }

  .video-player,
  .player,
  #videoPlayer {
    min-height: 220px;
  }
}

/* DASHBOARD TOGGLE BUTTON */
.dashboard-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #b8ff35;
    color: #07110b;
    border: none;
    border-radius: 9px;
    padding: 11px 16px;
    font-weight: 800;
    cursor: pointer;
    font-size: 14px;
}

/* DARK OVERLAY */
.dashboard-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.dashboard-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* RIGHT SLIDE-OUT PANEL */
.dashboard-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 88vw);
    height: 100dvh;
    background: #101714;
    border-left: 1px solid rgba(255,255,255,.1);
    z-index: 999;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform .35s ease;
    overflow-y: auto;
}

.dashboard-panel.open {
    transform: translateX(0);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.dashboard-logo {
    font-size: 27px;
    font-weight: 900;
    color: #b8ff35;
}

.dashboard-header p {
    font-size: 10px;
    letter-spacing: 2px;
    color: #9aa69e;
}

.dashboard-close {
    background: #26332b;
    color: white;
    font-size: 27px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 8px;
}

.dashboard-welcome {
    padding: 28px 0;
}

.dashboard-welcome h2 {
    font-size: 28px;
    margin-bottom: 7px;
}

.dashboard-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 12px;
    background: #17221c;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 11px;
    color: white;
    transition: .2s;
}

.dashboard-menu a:hover,
.dashboard-menu a.active {
    background: #243526;
    border-color: #b8ff35;
    color: #b8ff35;
}

.dashboard-menu a > span {
    font-size: 23px;
    width: 32px;
    text-align: center;
}

.dashboard-menu a div {
    flex: 1;
}

.dashboard-menu strong,
.dashboard-menu small {
    display: block;
}

.dashboard-menu small {
    color: #9aa69e;
    font-size: 11px;
    margin-top: 3px;
}

.dashboard-menu a b {
    font-size: 23px;
}

.dashboard-footer {
    margin-top: auto;
    padding-top: 30px;
    text-align: center;
}

.dashboard-footer p {
    color: #b8ff35;
    font-size: 11px;
    letter-spacing: 2px;
}

.dashboard-footer strong {
    color: #9aa69e;
    font-size: 10px;
}

body.dashboard-open {
    overflow: hidden;
}

/* HEADER LAYOUT */
.header {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 15px 4%;
    gap: 10px;
}

.login-btn {
    justify-self: start;
    order: 0;
}

.logo {
    justify-self: center;
    white-space: nowrap;
}

.dashboard-toggle {
    justify-self: end;
    white-space: nowrap;
}

/* CENTERED HOMEPAGE SEARCH */
.home-search {
    width: min(650px, 90%);
    margin: 35px auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #17221c;
    border: 1px solid rgba(184,255,53,.35);
    border-radius: 12px;
}

.home-search input {
    flex: 1;
    min-width: 0;
    padding: 13px;
    background: transparent;
    color: white;
    border: none;
    outline: none;
    font-size: 15px;
}

.home-search button {
    padding: 12px 20px;
    background: #b8ff35;
    color: #07110b;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 480px) {
    .header {
        padding: 12px 3%;
        gap: 5px;
    }

    .logo {
        font-size: 14px;
    }

    .dashboard-toggle {
        padding: 9px;
        font-size: 12px;
    }

    .login-btn {
        padding: 9px 10px;
        font-size: 12px;
    }

    .home-search {
        margin: 25px auto;
    }
}


/* INTERACTIVE LEAGUE CARDS */

.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.league-card {
    cursor: pointer;
    position: relative;
    background: linear-gradient(145deg, #17251d, #0c120f);
    border: 1px solid rgba(184,255,53,.15);
    border-radius: 16px;
    padding: 25px 18px;
    transition: .3s ease;
}

.league-card:hover {
    transform: translateY(-7px);
    border-color: #b8ff35;
    box-shadow: 0 10px 30px rgba(184,255,53,.12);
}

.league-card > span {
    font-size: 32px;
}

.league-card small {
    display: block;
    margin-top: 15px;
    color: #b8ff35;
    font-weight: bold;
}

.league-details-page {
    min-height: 70vh;
    padding: 35px 5%;
}

.back-button {
    padding: 11px 18px;
    background: #243526;
    color: #b8ff35;
    border: 1px solid #b8ff35;
    border-radius: 9px;
    cursor: pointer;
}

.league-details-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 35px 0;
}

.league-details-heading > span {
    font-size: 45px;
}

.league-details-heading h2 {
    color: #b8ff35;
    margin: 0;
}

.league-details-heading p {
    color: #9aa69e;
}

.league-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 13px;
    margin-top: 20px;
}

.league-team-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    background: #17221c;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;
}

.league-team-card span:first-child {
    color: #b8ff35;
}

.league-team-card strong {
    flex: 1;
    color: white;
}

.league-team-card span:last-child {
    color: #b8ff35;
    font-size: 22px;
}


.team-profile-page {
    min-height: 70vh;
    padding: 35px 5%;
}

.team-profile-header {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 35px 0;
    padding: 28px;
    background: linear-gradient(135deg,#17251d,#0c120f);
    border: 1px solid rgba(184,255,53,.2);
    border-radius: 18px;
}

.team-profile-logo {
    width: 90px;
    height: 90px;
    flex: 0 0 90px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #243526;
    color: #b8ff35;
    font-size: 26px;
    font-weight: 900;
}

.team-profile-header h1 {
    color: #b8ff35;
    margin: 0;
}

.team-profile-header p {
    color: #9aa69e;
    margin-top: 8px;
}

.team-profile-content {
    max-width: 1000px;
    margin: auto;
}

.team-profile-content h2 {
    margin: 28px 0 14px;
}

.team-profile-content > p {
    color: #b5c0b8;
    line-height: 1.7;
}

.team-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
    gap: 15px;
    margin: 20px 0;
}

.team-info-card {
    padding: 20px;
    background: #17221c;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 13px;
}

.team-info-card > span {
    font-size: 25px;
}

.team-info-card h3 {
    margin: 10px 0 6px;
}

.team-info-card p {
    color: #9aa69e;
}

@media(max-width:500px) {
    .team-profile-header {
        padding: 18px;
        gap: 14px;
    }

    .team-profile-logo {
        width: 65px;
        height: 65px;
        flex-basis: 65px;
        font-size: 20px;
    }

    .team-profile-header h1 {
        font-size: 22px;
    }
}


/* REAL FOOTBALL TEAM BADGES */

.team-badge {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
}

.league-team-card {
    align-items: center;
}

.match-card .team-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}


.team-profile-container {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding: 20px;
    color: #fff;
}

.back-button {
    background: #17283d;
    color: white;
    border: 1px solid #29415c;
    padding: 11px 18px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
}

.team-profile-header {
    background: linear-gradient(135deg, #10243a, #07111f);
    padding: 30px 15px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 20px;
}

.team-profile-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 12px;
}

.team-profile-header h1 {
    margin: 8px 0;
}

.team-basic-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    font-size: 13px;
    color: #b8c8d9;
}

.team-stadium-card,
.team-match-card {
    background: #102033;
    border: 1px solid #243a52;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
}

.team-stadium-card h2,
.team-matches-section h2 {
    color: #42d392;
    font-size: 19px;
}

.team-match-card {
    margin-top: 12px;
}

.match-competition {
    text-align: center;
    color: #42d392;
    font-size: 13px;
}

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

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.match-team-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.match-score {
    font-size: 20px;
    text-align: center;
}

.match-score small {
    display: block;
    font-size: 11px;
    color: #42d392;
    margin-top: 5px;
}

.match-date,
.match-stadium {
    text-align: center;
    color: #b8c8d9;
    font-size: 12px;
}

