
:root {
  --bg:#0b0e12;
  --bg-elev:#111318;
  --card:#14161c;
  --muted:#a7aab3;
  --text:#e9ecf1;
  --accent:#0097e6;
  --accent-2:#0097e6;
  --radius:16px;
  --shadow: 0 14px 36px rgba(0,0,0,.45);
  --ring: 0 0 0 2px rgba(0,151,230,.35), 0 10px 30px rgba(0,151,230,.12);
}

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

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(900px 520px at 80% -10%, rgba(0,151,230,.08), transparent 60%),
    radial-gradient(700px 420px at -20% 10%, rgba(0,151,230,.06), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

header {
  position: relative;
  top: 0;
  z-index: 40;
  background: linear-gradient(to bottom, rgba(12,13,16,.92), rgba(12,13,16,.65));
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.wrap {
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  width: 100%;
}

.brand {
  margin: 0;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.brand a {
  text-decoration: none;
  color: var(--text);
}

main {
  flex: 1;
  width: 100%;
}

.canal-wrap {
  width: 100%;
  padding: 20px 12px;
}

@media (min-width: 1460px) {
  .canal-wrap {
    padding: 4%;
  }
}

@media (min-width: 860px) and (max-width: 1459px) {
  .canal-wrap {
    padding: 40px;
  }
}

.canal-wrap.chat-closed {
  padding-left: 12%;
  padding-right: 12%;
}

@media (max-width: 1000px) {
  .canal-wrap.chat-closed {
    padding-left: 3%;
    padding-right: 3%;
  }
}

@media (max-width: 600px) {
  .canal-wrap.chat-closed {
    padding: 15px !important;
  }
}

.btn-md {
  background: #eef8fc !important;
  border: none;
  color: #141d26;
  padding: 8px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}

.btn-md2 {
  background: none;
  border: 1px solid #555;
  color: #c6d1dc;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  margin: 4px 2px;
}

.channel-layout {
  display: grid;
  gap: 22px;
  align-items: start;
  grid-template-columns: 2.4fr 1fr;
  margin-top: 14px;
  min-height: 450px;
}

.channel-layout.hide-chat {
  grid-template-columns: 1fr !important;
}

.channel-layout.hide-chat .channel-aside {
  display: none !important;
}

@media (max-width: 1100px) {
  .channel-layout {
    grid-template-columns: 1.8fr 1fr;
  }
}

@media (max-width: 980px) {
  .channel-layout {
    grid-template-columns: 1fr;
  }
}

.player-card {
  background: linear-gradient(180deg, var(--card), #101219);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.iframe-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  min-height: 220px;
  background: #0e0f13;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.player-actions {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.helper-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hint {
  color: var(--muted);
  font-size: 13px;
}

.channel-aside {
  display: grid;
  gap: 9px;
}

.channel-aside > section {
  background: linear-gradient(180deg, var(--card), #101219);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 15px;
}

.note {
  border-left: 3px solid var(--accent);
}

.meta {
  color: var(--muted);
  font-size: 13px;
}

footer.wrap.privce {
  margin-top: auto;
  width: 100%;
  padding: 25px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.2);
}


@media (max-width: 600px) {
  footer.wrap.privce {
    padding: 18px 0;
  }

  .player-card {
    border-radius: 12px;
  }

  .channel-layout {
    min-height: auto;
  }

  .iframe-wrap {
    min-height: 180px;
  }

  .helper-links {
    flex-direction: column;
    align-items: flex-start;
  }
}

.grid {
  display: grid !important;
  gap: 20px !important;
  grid-template-columns: repeat(5, 1fr) !important;
  padding: 0 8% !important;
}

@media (max-width:1200px){
  .grid { grid-template-columns: repeat(4, 1fr) !important; padding:0 18px !important; }
}
@media (max-width:860px){
  .grid { grid-template-columns: repeat(2, 1fr) !important; padding:0 18px !important; }
}
@media (max-width:560px){
  .grid { grid-template-columns: repeat(2, 1fr) !important; padding:0 18px !important; }
}

.canal {
  display: block;
  background: linear-gradient(180deg, var(--card), #101219) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: inherit !important;
  position: relative !important;
  transition-timing-function: ease-out;
  transition-duration: 300ms;
}

.canal:hover {
  transform: scale(1.05, 1.05) translateZ(0px) translate3d(0px, 0px, 0px);
  transition-duration: 300ms;
  transition-timing-function: ease-out;
  border-color: rgba(0, 151, 230, .35) !important;
  box-shadow: rgb(0 0 0 / 90%) 0px 30px 20px -10px;
}

.canal-body {
  display: grid !important;
  grid-auto-rows: min-content !important;
  align-items: center !important;
  gap: 12px 16px !important;
  padding: 15px !important;
}

.canal-body .logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-bottom:1px solid rgba(255,255,255,.06) !important;
  padding:16px !important;
}

.canal-body .logo img {
  width:80px !important;
  height:80px !important;
  object-fit: contain !important;
  display:block !important;
}

.canal-body .title {
  margin:0 !important;
  font-size:16px !important;
  font-weight:700 !important;
  text-align:center !important;
}

.actions {
  display:flex !important;
  gap:8px !important;
  margin:0 !important;
  flex-direction:column !important;
}

.btn {
  display:inline-block !important;
  background: linear-gradient(180deg, var(--accent), var(--accent-2)) !important;
  color:white !important;
  padding:5px 8px !important;
  border-radius:12px !important;
  text-decoration:none !important;
  text-align:center !important;
  margin:2px !important;
}

.btn:hover {
  filter:brightness(1.05) !important;
  background:#007bb5 !important;
}

.badges {
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:6px !important;
  position:absolute !important;
  top:10px !important;
  left:50% !important;
  transform:translateX(-50%) !important;
  z-index:2 !important;
}

.badge {
    font-size: 12px;
    color: #1d2745;
    padding: 3px 6px;
    border-radius: 8px;
    background: #eef8fc;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width:560px) {
  .canal-body {
    grid-template-columns:1fr !important;
    text-align:center !important;
    gap:12px !important;
    padding:16px 0 8px 0 !important;
  }

  .canal-body .logo {
    border-bottom:1px solid rgba(255,255,255,.06) !important;
    padding-bottom:14px !important;
  }

  .actions {
    justify-content:center !important;
  }
}

.search {
    display: flex;
    gap: 10px;
    margin: 18px 0;
    padding: 0 12%;
}

@media (max-width: 800px) {
    .search {
        padding: 0;
    }
}


.search input{
  flex:1;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.1);
  background: #0e0f13;
  color:var(--text);
  outline:none;
}


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

.search .clear{
  border:0;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  font-size:18px;
  line-height:1;
}

.ops {
  text-align: left;
}

.circle-logo {
  width: 80px;
  height: 80px;
  border-radius: 25%;
  background: #0e0f13;
  border: 1px solid rgba(255, 255, 255, .12);
  object-fit: contain;
  padding: 6px;
}

.watching-card .watching-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}