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

:root {
  --bg: #050512;
  --card: rgba(255, 255, 255, 0.05);
  --card2: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --primary: #8bb3ff;
  --text: #ffffff;
  --text2: rgba(255, 255, 255, 0.65);
}

html {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background-color: #050512 !important;
}

body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  background-color: #050512 !important;
  color: var(--text);
  display: flex;
  flex-direction: column;
  overscroll-behavior: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #1b1b3a, #050512);
  z-index: -1;
}

body.is-loading .page-content {
  overflow-y: hidden !important;
}

.page-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
}

::selection {
  background: rgba(139, 179, 255, 0.35);
  color: #fff;
}

.header {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(15, 15, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
}

.menu {
  position: relative;
}

.menu-btn,
#menuBtn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: 0.25s ease;
}

.menu-btn:hover,
#menuBtn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.menu-btn:active {
  transform: scale(0.95);
}

.dropdown {
  display: none;
  position: absolute;
  top: 58px;
  right: 0;
  width: 190px;
  background: rgba(20, 20, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  z-index: 999;
}

.dropdown.show {
  display: block;
}

.dropdown a {
  display: block;
  padding: 14px 16px;
  color: #fff;
  text-decoration: none;
  transition: 0.25s ease;
}

.dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.match-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: 0.25s ease;
  display: flex;
  flex-direction: column;
}

.match-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 179, 255, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.match-card:active {
  transform: scale(0.98);
}

.poster {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111827;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.3s ease;
}

.match-card:hover .poster img {
  transform: scale(1.03);
}

.badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live {
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.upcoming {
  background: rgba(245, 158, 11, 0.92);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.server-badge {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.card-content {
  padding: 14px;
}

.match-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.teams {
  color: var(--text2);
  font-size: 13px;
  line-height: 1.5;
}

.time {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.matches-grid,
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 14px;
  width: 100%;
}

@media (min-width: 1024px) {
  .matches-grid,
  .skeleton-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
    padding: 20px;
  }
}

.skeleton-grid {
  align-content: start;
}

.skeleton-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

.skeleton-card::before {
  content: "";
  display: block;
  aspect-ratio: 16/9;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.10) 50%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.4s linear infinite;
}

.skeleton-card::after {
  content: "";
  display: block;
  height: 55px;
  margin: 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.10) 50%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.4s linear infinite;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-state {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.footer {
  flex-shrink: 0;
  width: 100%;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.footer-text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer span {
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 768px) {
  .logo {
    font-size: 22px;
  }
  .header {
    padding: 14px 16px;
  }
  .footer {
    padding: 16px;
    font-size: 14px;
  }
  .match-title {
    font-size: 16px;
  }
  .teams {
    font-size: 12px;
  }
}

* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

img,
video {
  -webkit-user-drag: none;
  user-drag: none;
}

button,
a,
input,
textarea {
  outline: none;
}

button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: none;
  box-shadow: none;
}

::selection {
  background: transparent;
}

::-moz-selection {
  background: transparent;
}
