* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Tomorrow', sans-serif;
}

body {
  background: #0F0F11;
  color: #e2e8f0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Adblock Modal Styles */
.adblock-modal-content {
  background-color: #0A0A0B;
  font-family: 'Inter', sans-serif;
}

/* Class to apply the blur effect to the main content */
.content-blur {
  filter: blur(8px);
  pointer-events: none;
  transition: filter 0.3s ease;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
  background-color: #0F0F11;
  position: sticky;
  top: 0;
  height: 50px;
  z-index: 1000;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #333333;
}

.logo img {
  height: 35px;
}

.telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #1A1A1A;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
}

.telegram-btn:hover {
  background-color: #19A480;
}

.telegram-btn img {
  height: 16px;
  width: 16px;
}

.hero {
  text-align: center;
  padding: 40px 20px;
  background: #0F0F11;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.hero h1 span {
  color: #19A480;
}

.hero p {
  font-size: 1.1rem;
  font-weight: 400;
  color: #ccc;
  margin-bottom: 20px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  background: #1A1A1A;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn i {
  color: #19A480;
  font-size: 1.1rem;
}

.btn:hover {
  background: #2a2a2a;
}

.divider {
  width: 100%;
  height: 1px;
  background: #374151;
  margin: 0 auto;
  max-width: 1200px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
  justify-content: center;
}

.control {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  flex: 1;
  max-width: 280px;
}

.control select, .control input {
  background: transparent;
  border: 1px solid #374151;
  outline: none;
  color: #e2e8f0;
  width: 100%;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 4px;
  border-radius: 4px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.control select option {
  background: #19A480;
  color: #fff;
}

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.match-card {
  background: #1A1A1A;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #374151;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.match-card:hover {
  border-color: #19A480;
}

.match-card.selected {
  border-left: 3px solid #19A480;
}

.category-league-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-tag {
  background: #1A1A1A;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid #374151;
}

.status-indicator {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.live-indicator {
  background: #ef4444;
  color: #fff;
}

.starts-soon-indicator {
  background: transparent;
  color: #19A480;
  border: 1px solid #19A480;
}

.ended-indicator {
  background: #6b7280;
  color: #fff;
}

.countdown {
  color: #22d3ee;
  font-weight: 600;
  font-size: 0.8rem;
}

.team-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 8px;
}

.team {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 40%;
}

.team.away {
  flex-direction: row-reverse;
  text-align: right;
}

.team img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #374151;
}

.team img:hover {
  border-color: #19A480;
}

.vs {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ef4444;
  background: #1A1A1A;
  padding: 4px 8px;
  border-radius: 50%;
}

.league {
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 8px;
}

.time-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
  border-top: 1px solid #374151;
  padding-top: 8px;
  margin-top: 8px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 17, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(10px);
}

.modal-content {
  background: #1A1A1A;
  border-radius: 16px;
  width: 90%;
  max-width: 900px;
  overflow: hidden;
  position: relative;
  border: 1px solid #374151;
}

.modal-content.light-theme {
  background: #e2e8f0;
  color: #1A1A1A;
}

.modal-header {
  background: #0F0F11;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #374151;
}

.modal-content.light-theme .modal-header {
  background: #f1f5f9;
  border-bottom: 1px solid #94a3b8;
}

.modal-header img {
  width: 120px;
  height: auto;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #e2e8f0;
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-content.light-theme .modal-close-btn {
  color: #1A1A1A;
}

.modal-close-btn:hover {
  color: #19A480;
}

.modal-match-info {
  background: #0F0F11;
  padding: 10px 20px;
  text-align: center;
  border-bottom: 1px solid #374151;
}

.modal-content.light-theme .modal-match-info {
  background: #f1f5f9;
  border-bottom: 1px solid #94a3b8;
}

.modal-match-info h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.modal-content.light-theme .modal-match-info h2 {
  color: #1A1A1A;
}

.modal-match-info p {
  font-size: 0.9rem;
  color: #94a3b8;
}

.modal-content.light-theme .modal-match-info p {
  color: #4b5563;
}

.modal-body {
  padding: 0;
}

.stream-player-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0F0F11;
  position: relative;
  margin: 0;
}

.modal-content.light-theme .stream-player-container {
  background: #000;
}

.stream-player {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.placeholder-gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 10;
}

.placeholder-gif.hidden-gif {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.stream-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 20px;
  justify-content: center;
  align-items: center;
}

.stream-btn, .fullscreen-btn, .cast-btn, .pip-btn, .theme-toggle-btn, .quality-select {
  background: #1A1A1A;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid #374151;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.modal-content.light-theme .stream-btn,
.modal-content.light-theme .fullscreen-btn,
.modal-content.light-theme .cast-btn,
.modal-content.light-theme .pip-btn,
.modal-content.light-theme .theme-toggle-btn,
.modal-content.light-theme .quality-select {
  background: #f1f5f9;
  color: #1A1A1A;
  border: 1px solid #94a3b8;
}

.stream-btn:hover, .fullscreen-btn:hover, .cast-btn:hover, .pip-btn:hover, .theme-toggle-btn:hover, .quality-select:hover {
  background: #19A480;
  border-color: #19A480;
  transform: translateY(-2px);
}

.modal-content.light-theme .stream-btn:hover,
.modal-content.light-theme .fullscreen-btn:hover,
.modal-content.light-theme .cast-btn:hover,
.modal-content.light-theme .pip-btn:hover,
.modal-content.light-theme .theme-toggle-btn:hover,
.modal-content.light-theme .quality-select:hover {
  background: #19A480;
  color: #fff;
}

.stream-btn:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1A1A1A;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 20;
  margin-bottom: 8px;
}

.modal-content.lightknn-theme .stream-btn:hover::after {
  background: #f1f5f9;
  color: #1A1A1A;
  border: 1px solid #94a3b8;
}

.cast-btn.connected Halle i::before {
  content: "\f6ff";
  color: #19A480;
}

.modal-social-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px auto;
  flex-wrap: wrap;
}

.modal-telegram-btn, .modal-whatsapp-btn {
  background: #1A1A1A;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid #374151;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  width: fit-content;
}

.modal-content.light-theme .modal-telegram-btn,
.modal-content.light-theme .modal-whatsapp-btn {
  background: #f1f5f9;
  color: #1A1A1A;
  border: 1px solid #94a3b8;
}

.modal-telegram-btn:hover, .modal-whatsapp-btn:hover {
  background: #19A480;
  border-color: #19A480;
  transform: translateY(-2px);
}

.modal-content.light-theme .modal-telegram-btn:hover,
.modal-content.light-theme .modal-whatsapp-btn:hover {
  background: #19A480;
  color: #fff;
}

.viewer-count {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #19A480;
  z-index: 20;
}

.modal-content.light-theme .viewer-count {
  color: #19A480;
}

.viewer-count svg {
  width: 16px;
  height: 16px;
  fill: #19A480;
}

.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ef4444;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 20;
}

.modal-content.light-theme .live-badge {
  color: #fff;
}

.empty {
  text-align: center;
  padding: 24px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.tutorial {
  text-align: center;
  padding: 24px;
  color: #e2e8f0;
  font-size: 0.85rem;
  max-width: 600px;
  margin: 0 auto;
}

.tutorial h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tutorial h3 i {
  color: #19A480;
  font-size: 1.4rem;
}

.tutorial ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.tutorial li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.tutorial i {
  color: #19A480;
  font-size: 1.1rem;
}

.dmca-text {
  text-align: center;
  padding: 24px;
  color: #94a3b8;
  font-size: 0.8rem;
  border-top: 1px solid #374151;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .hero {
    padding: 20px 15px;
  }
  .hero h1 {
    font-size: 1.3rem;
  }
  .hero p {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }
  .btn {
    font-size: 0.8rem;
    padding: 8px 14px;
  }
  .btn i {
    font-size: 0.9rem;
  }
  .modal-content {
    width: 95%;
    max-width: 95%;
  }
  .modal-header {
    padding: 10px 12px;
  }
  .modal-header img {
    width: 100px;
  }
  .modal-close-btn {
    font-size: 1.5rem;
  }
  .modal-match-info h2 {
    font-size: 1rem;
  }
  .modal-match-info p {
    font-size: 0.8rem;
  }
  .stream-controls {
    margin: 12px 12px;
    gap: 10px;
  }
  .stream-btn, .fullscreen-btn, .cast-btn, .pip-btn, .theme-toggle-btn, .quality-select {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
  .modal-telegram-btn, .modal-whatsapp-btn {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
  .viewer-count {
    font-size: 0.8rem;
    padding: 4px 6px;
  }
  .viewer-count svg {
    width: 14px;
    height: 14px;
  }
  .live-badge {
    font-size: 0.7rem;
    padding: 5px 10px;
  }
  .tutorial {
    padding: 16px;
    font-size: 0.75rem;
  }
  .tutorial h3 {
    font-size: 1rem;
  }
  .tutorial h3 i {
    font-size: 1.2rem;
  }
  .tutorial li {
    font-size: 0.75rem;
    margin-bottom: 10px;
  }
  .tutorial i {
    font-size: 1rem;
  }
  .dmca-text {
    font-size: 0.7rem;
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .header {
    padding: 4px 12px;
    height: 45px;
  }
  .logo img {
    height: 30px;
  }
  .telegram-btn {
    padding: 3px 8px;
    font-size: 11px;
  }
  .telegram-btn img {
    height: 14px;
    width: 14px;
  }
  .container {
    padding: 8px;
  }
  .toolbar {
    gap: 8px;
    margin: 8px 0;
  }
  .control {
    max-width: none;
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  .control select, .control input {
    font-size: 0.8rem;
  }
  .match-card {
    padding: 10px;
  }
  .team img {
    width: 28px;
    height: 28px;
  }
  .team-info {
    font-size: 0.8rem;
    gap: 8px;
  }
  .vs {
    font-size: 0.8rem;
    padding: 3px 6px;
  }
  .category-tag, .status-indicator, .countdown {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
  .league {
    font-size: 0.7rem;
  }
  .time-status {
    font-size: 0.7rem;
  }
  .stream-btn, .fullscreen-btn, .cast-btn, .pip-btn, .theme-toggle-btn, .quality-select {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  .modal-telegram-btn, .modal-whatsapp-btn {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  .viewer-count {
    font-size: 0.7rem;
    padding: 3px 5px;
  }
  .viewer-count svg {
    width: 12px;
    height: 12px;
  }
  .empty {
    font-size: 0.8rem;
    padding: 16px;
  }
  .tutorial {
    font-size: 0.7rem;
    padding: 12px;
  }
  .tutorial h3 {
    font-size: 0.9rem;
  }
  .tutorial h3 i {
    font-size: 1.1rem;
  }
  .tutorial li {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }
  .tutorial i {
    font-size: 0.9rem;
  }
  .dmca-text {
    font-size: 0.65rem;
    padding: 12px;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.2rem;
  }
  .hero p {
    font-size: 0.8rem;
  }
  .btn {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  .btn i {
    font-size: 0.85rem;
  }
  .control {
    font-size: 0.75rem;
  }
  .control select, .control input {
    font-size: 0.75rem;
  }
  .match-card {
    padding: 8px;
  }
  .team-info {
    font-size: 0.75rem;
    gap: 6px;
  }
  .team img {
    width: 24px;
    height: 24px;
  }
  .vs {
    font-size: 0.75rem;
    padding: 2px 5px;
  }
  .category-tag, .status-indicator, .countdown {
    font-size: 0.65rem;
    padding: 2px 5px;
  }
  .league {
    font-size: 0.65rem;
  }
  .time-status {
    font-size: 0.65rem;
  }
  .stream-btn, .fullscreen-btn, .cast-btn, .pip-btn, .theme-toggle-btn, .quality-select {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
  .modal-telegram-btn, .modal-whatsapp-btn {
    font-size: 0.7rem;
    padding: 5px 10px;
  }
  .viewer-count {
    font-size: 0.65rem;
    padding: 3px 4px;
  }
  .viewer-count svg {
    width: 10px;
    height: 10px;
  }
  .empty {
    font-size: 0.75rem;
  }
  .tutorial {
    font-size: 0.65rem;
    padding: 10px;
  }
  .tutorial h3 {
    font-size: 0.85rem;
  }
  .tutorial h3 i {
    font-size: 1rem;
  }
  .tutorial li {
    font-size: 0.65rem;
    margin-bottom: 6px;
  }
  .tutorial i {
    font-size: 0.85rem;
  }
  .dmca-text {
    font-size: 0.6rem;
    padding: 10px;
  }
  .live-badge {
    font-size: 0.65rem;
    padding: 4px 8px;
  }
}
