.elementor-6249 .elementor-element.elementor-element-db877f3{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}/* Start custom CSS for html, class: .elementor-element-413162e *//* --- THEME & RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --grad: linear-gradient(90deg, #5a0dff, #ff29b8, #ff581c);
  --bg: #050505;
  --surface: #111111;
  --border: rgba(255,255,255,0.08);
  --muted: #888;
  --accent: #ff29b8;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: white;
  line-height: 1.6;
  background-image: radial-gradient(circle at 50% -10%, rgba(90,13,255,0.15), transparent 40%);
  background-attachment: fixed;
}

.wrap {
  max-width: 1200px;
  margin: 141px auto;
  padding: 0 20px;
}

/* --- HEADER --- */
.hero {
  text-align: center;
  padding: 60px 0 40px;
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1;
  margin-bottom: 15px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- GLOBAL SEARCH --- */
.search-area {
  position: sticky;
  top: 20px;
  z-index: 1000;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.main-search {
  width: 100%;
  max-width: 600px;
  padding: 18px 30px;
  border-radius: 100px;
  background: rgba(15,15,15,0.85);
  border: 1px solid var(--border);
  color: white;
  font-size: 1.1rem;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  outline: none;
  transition: 0.3s;
}

.main-search:focus {
  border-color: var(--accent);
}

/* --- GRID --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: visible; /* changed */
  transition: 0.3s ease;
}

.card.open {
  grid-column: 1 / -1;
  border-color: var(--accent);
}

.card-header {
  padding: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
}

.flag-box {
  font-size: 2.2rem;
  background: rgba(255,255,255,0.03);
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.info h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
}

.count {
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  padding: 3px 10px;
  border-radius: 6px;
}

/* --- EXPANDED CONTENT --- */
.content {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px solid var(--border);
  background: #0a0a0a;
}

.card.open .content {
  display: block;
}

/* --- LOCAL CHANNEL SEARCH --- */
.content-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
}

.local-search {
  flex: 1;
  min-width: 250px;
  padding: 12px 20px;
  border-radius: 12px;
  background: #181818;
  border: 1px solid var(--border);
  color: white;
  font-size: 0.9rem;
  outline: none;
}

.local-search:focus {
  border-color: var(--accent);
}

/* --- CHANNEL LIST --- */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  height: 500px; /* changed from max-height */
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain; /* important */
  -webkit-overflow-scrolling: touch;
  padding-right: 10px;
}

.channel-grid::-webkit-scrollbar {
  width: 8px;
}

.channel-grid::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 20px;
}

.channel-grid::-webkit-scrollbar-track {
  background: transparent;
}

.chan-item {
  background: #161616;
  color: white;
  padding: 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,0.03);
}

.chan-num {
  color: #444;
  font-weight: 800;
  font-size: 0.7rem;
}

@media (max-width: 600px) {
  .grid,
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .content-tools {
    flex-direction: column;
    align-items: stretch;
  }
}/* End custom CSS */