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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:root {
  --bg: #000000;
  --surface: #0F0F23;
  --surface2: #1E1B4B;
  --surface-glass: rgba(15, 15, 35, 0.7);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text: #F8FAFC;
  --text2: #94A3B8;
  --text3: #64748B;
  --accent: #E11D48;
  --accent2: #BE123C;
  --teal: #0D9488;
  --teal-light: #14B8A6;
  --green: #22C55E;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-glow: 0 0 30px rgba(225, 29, 72, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-h: 72px;
  --sidebar-w: 320px;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 100;
}

.header-logo {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--teal-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  letter-spacing: -0.5px;
}

.header-channel-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.viewer-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
  margin-left: auto;
  min-width: 70px;
  text-align: right;
}

.header-channel-name::before {
  content: '/';
  margin-right: 12px;
  color: var(--text3);
}

.header-home {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(225, 29, 72, 0.3);
  transition: all 0.2s;
  white-space: nowrap;
}

.header-home:hover {
  background: rgba(225, 29, 72, 0.1);
  border-color: var(--accent);
}

.header-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--green);
  white-space: nowrap;
}

.header-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-live 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

@keyframes pulse-live {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.header-search {
  flex: 1;
  max-width: 360px;
  margin-left: auto;
}

.header-search input {
  width: 100%;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.header-search input::placeholder {
  color: var(--text3);
}

.header-search input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

/* ========== FILTER BAR ========== */
.filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  flex-shrink: 0;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--text2);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}

.mundial-btn {
  border-color: rgba(255, 215, 0, 0.3);
  color: #ffd700;
}

.mundial-btn:hover {
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
}

.mundial-btn.active {
  background: linear-gradient(135deg, #b8860b, #ffd700) !important;
  color: #000 !important;
  border-color: #ffd700 !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  font-weight: 700 !important;
}

/* ========== HEADER MUNDIAL LINK (player) ========== */
.header-mundial {
  font-size: 13px;
  font-weight: 600;
  color: #ffd700;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: all 0.2s;
  white-space: nowrap;
}

.header-mundial:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
}

.wc-badge {
  margin-left: 4px;
  font-size: 14px;
  display: inline-block;
}

/* ========== CHANNEL GRID ========== */
.main-content {
  flex: 1;
  padding-top: var(--header-h);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  padding: 20px 24px 40px;
  align-content: start;
}

.channel-card {
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px 14px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.channel-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.05), rgba(20, 184, 166, 0.05));
  opacity: 0;
  transition: opacity 0.3s;
}

.channel-card:hover {
  border-color: rgba(225, 29, 72, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(225, 29, 72, 0.08);
}

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

.channel-card:active {
  transform: scale(0.97);
}

.channel-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  user-select: none;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.channel-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.channel-country {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
  font-size: 15px;
}

/* ========== PLAYER PAGE ========== */
.player-page {
  overflow: hidden;
}

.player-layout {
  display: flex;
  height: 100vh;
  padding-top: var(--header-h);
}

.player-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
  padding: 20px 24px;
}

.player-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-glass);
  position: relative;
}

.player-video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.75);
  z-index: 5;
  transition: opacity 0.3s;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.player-overlay p {
  font-size: 14px;
  color: var(--text2);
}

.error-msg {
  font-size: 14px;
  color: var(--text2);
}

.unmute-btn {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  z-index: 6;
  transition: background 0.2s, transform 0.2s;
}

.unmute-btn:hover {
  background: var(--accent2);
  transform: translateX(-50%) scale(1.03);
}

/* ========== OPTIONS BAR ========== */
.player-options {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border-glass);
}

.back-btn {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--text2);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.back-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.source-options {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.source-btn {
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--text2);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
}

.source-btn:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.source-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}

/* ========== CHANNEL INFO ========== */
.channel-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
}

.channel-info-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.channel-info-text h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 2px;
}

.channel-info-text p {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== SIDEBAR ========== */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px;
  gap: 24px;
}

.sidebar-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text3);
  margin-bottom: 12px;
}

.chat-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  position: relative;
}

.chat-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 16px;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.chat-login p {
  font-size: 13px;
  color: var(--text2);
  text-align: center;
  margin: 0;
}

.chat-login input {
  width: 100%;
  max-width: 240px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.chat-login input:focus {
  border-color: var(--teal-light);
}

.chat-login button {
  padding: 9px 24px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s;
}

.chat-login button:hover {
  background: var(--accent2);
}

.chat-login-hint {
  font-size: 11px !important;
  color: var(--text3) !important;
}

.chat-warning {
  position: absolute;
  bottom: 56px;
  left: 8px;
  right: 8px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  text-align: center;
  z-index: 10;
  animation: chat-in 0.2s ease;
}

.chat-messages {
  flex: 1;
  padding: 10px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 180px;
  max-height: 300px;
}

.chat-messages:empty .chat-placeholder,
.chat-placeholder:only-child {
  display: flex;
}

.chat-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 13px;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  gap: 1px;
  animation: chat-in 0.2s ease;
}

@keyframes chat-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg-user {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal-light);
}

.chat-msg-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-msg-time {
  font-size: 10px;
  color: var(--text3);
}

.chat-input {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--border-glass);
}

.chat-input input {
  flex: 1;
  padding: 7px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
}

.chat-input input::placeholder {
  color: var(--text3);
}

.chat-input input:focus {
  border-color: var(--accent);
}

.chat-input button {
  padding: 7px 14px;
  border-radius: 20px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s;
}

.chat-input button:hover {
  background: var(--accent2);
}

.donate-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.donate-section p {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 4px;
  line-height: 1.5;
}

.donate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
}

.donate-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text3);
  font-weight: 500;
}

.donate-qr {
  width: 110px;
  height: 110px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.donate-qr canvas,
.donate-qr img {
  display: block;
  width: 110px !important;
  height: 110px !important;
}

.donate-address {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 10px;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  color: var(--teal-light);
  word-break: break-all;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1.4;
}

.donate-address:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ========== VISITOR COUNTER ========== */
.visit-counter {
  display: table;
  margin: 0 auto 40px;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text3);
  font-weight: 500;
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.visit-counter--below-player {
  display: table;
  margin: 12px 0 12px auto;
  padding: 6px 14px;
  font-size: 12px;
}

/* ========== DONATE HOME ========== */
.donate-home {
  padding: 0 24px 40px;
}

.donate-home-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
}

.donate-home-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent), var(--teal-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.donate-home-card > p {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 20px;
  line-height: 1.5;
  text-align: center;
}

.translation {
  display: block;
  font-size: 11px;
  color: var(--text3);
  font-weight: 400;
  margin-top: 2px;
  background: none;
  -webkit-text-fill-color: var(--text3);
}

.donate-crypto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 640px) {
  .donate-crypto {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .donate-card {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }
  .donate-card-label {
    font-size: 13px;
    margin-bottom: 4px;
  }
  .donate-qr {
    width: 160px;
    height: 160px;
  }
  .donate-qr canvas,
  .donate-qr img {
    width: 160px !important;
    height: 160px !important;
  }
  .donate-address {
    font-size: 12px;
    padding: 12px 14px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .donate-crypto {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ========== DRAWER ========== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 150;
  animation: fade-in 0.2s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 340px;
  max-width: 90vw;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-glass);
  z-index: 151;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.drawer-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.drawer-search {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.drawer-search input {
  width: 100%;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.drawer-search input::placeholder {
  color: var(--text3);
}

.drawer-search input:focus {
  border-color: var(--accent);
}

.drawer-grid {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.drawer-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glass);
}

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

.drawer-card.active {
  background: rgba(225, 29, 72, 0.1);
  border-color: rgba(225, 29, 72, 0.3);
}

.drawer-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.drawer-card-info {
  flex: 1;
  min-width: 0;
}

.drawer-card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-card-country {
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== FOOTER ========== */
.footer {
  text-align: center;
  padding: 20px 24px;
  font-size: 12px;
  color: var(--text3);
  border-top: 1px solid var(--border-glass);
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.footer a {
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-dmca {
  font-size: 11px;
  color: var(--text3) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== STATUS BAR ========== */
.status-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  z-index: 200;
  white-space: nowrap;
  color: var(--text2);
}

/* ========== UTILITIES ========== */
.hidden {
  display: none !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .sidebar {
    display: none;
  }

  .player-main {
    padding: 16px;
  }

  .visit-counter--below-player {
    display: none !important;
  }
}



@media (max-width: 768px) {
  :root {
    --header-h: 130px;
  }

  .header {
    padding: 0 16px;
    gap: 10px;
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-h);
    padding-top: 10px;
    padding-bottom: 10px;
    align-content: center;
  }

  .header-logo {
    font-size: 17px;
  }

  .header-channel-name {
    display: none;
  }

  .header-home,
  .header-mundial {
    font-size: 12px;
    padding: 3px 10px;
  }

  .header-home {
    margin-left: auto;
  }

  .header-search {
    max-width: 100%;
    order: 10;
    flex-basis: 100%;
  }

  .header-search input {
    font-size: 13px;
    padding: 7px 12px;
  }

  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 14px 14px 30px;
  }

  .channel-card {
    padding: 18px 10px 14px;
  }

  .channel-icon {
    width: 52px;
    height: 52px;
    font-size: 16px;
  }

  .player-layout {
    flex-direction: column;
  }

  .player-main {
    padding: 12px;
  }

  .player-options {
    padding: 12px 14px;
    flex-wrap: wrap;
  }

  .source-options {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .channel-info {
    padding: 14px 0;
  }

  .sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border-glass);
  }

  .sidebar.show-mobile {
    display: flex;
  }

  .footer {
    padding: 16px;
  }
}

@media (max-width: 375px) {
  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .channel-card {
    padding: 14px 8px 12px;
  }

  .channel-icon {
    width: 44px;
    height: 44px;
    font-size: 14px;
    margin-bottom: 10px;
  }

  .channel-name {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
