:root {
  --bg: #03060a;
  --ink: #a6d0ff;
  --ink-strong: #ecf6ff;
  --ink-soft: #85add2;
  --accent: #ffcc00;
  --accent-2: #00b3ff;
  --line: rgba(166, 208, 255, 0.25);
  --glass: rgba(5, 16, 28, 0.86);
  --glass-2: rgba(8, 23, 38, 0.78);
  --ok: #2ee46f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image: url('/cdn/img/i/1images.gif');
  background-repeat: repeat;
  background-attachment: fixed;
  line-height: 1.5;
}

.site-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 560px at 95% -10%, rgba(255, 204, 0, 0.12), transparent 55%),
    radial-gradient(920px 580px at -10% 10%, rgba(0, 179, 255, 0.1), transparent 53%),
    linear-gradient(180deg, rgba(2, 11, 20, 0.24), rgba(0, 0, 0, 0.38) 55%, rgba(0, 0, 0, 0.46) 100%);
}

.shell {
  width: min(1240px, 94vw);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.58));
  backdrop-filter: blur(9px);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
}

.brand {
  text-decoration: none;
  color: #fff7ca;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 204, 0, 0.55);
  background: linear-gradient(145deg, rgba(255, 204, 0, 0.2), rgba(0, 179, 255, 0.24));
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.brand-play {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #fff8d4;
  margin-left: 2px;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-cool {
  font-size: 1.02rem;
  color: #fff7ca;
}

.brand-tv {
  font-size: 1.08rem;
  color: var(--accent);
}

.brand-live {
  font-size: 0.62rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d8ffe7;
  border: 1px solid rgba(46, 228, 111, 0.62);
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(46, 228, 111, 0.14);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 0 0 rgba(46, 228, 111, 0.42);
  animation: livePulse 1.4s ease-out infinite;
}

.brand-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2ee46f;
  box-shadow: 0 0 9px rgba(46, 228, 111, 0.7);
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 228, 111, 0.42);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(46, 228, 111, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 228, 111, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-live {
    animation: none;
  }
}

.brand:hover .brand-mark {
  transform: translateY(-1px);
  border-color: rgba(255, 204, 0, 0.72);
}

.brand-mark {
  transition: transform .18s ease, border-color .18s ease;
}

.nav-toggle {
  margin-left: auto;
  border: 1px solid var(--line);
  color: #ffffcc;
  background: rgba(0, 0, 0, 0.32);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.85rem;
  display: none;
}

.nav-links {
  margin-left: auto;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
  align-items: center;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(1, 8, 15, 0.98), rgba(1, 4, 10, 0.98));
  backdrop-filter: blur(8px);
  transform: translateY(100%);
  transition: transform .25s ease;
  display: none;
  overflow: auto;
  padding: 16px;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-menu-head strong {
  color: #fff6c3;
}

.mobile-menu-close {
  border: 1px solid var(--line);
  color: #ffffcc;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 7px 10px;
}

.mobile-menu-search {
  margin-bottom: 12px;
  border: 1px solid rgba(255, 204, 0, 0.26);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(8, 25, 40, 0.82), rgba(3, 12, 22, 0.82));
}

.mobile-menu-search input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 204, 0, 0.35);
  background: rgba(0, 0, 0, 0.55);
  color: var(--ink-strong);
  padding: 0 14px;
  font-size: 0.95rem;
}

.mobile-menu-search input:focus {
  outline: none;
  border-color: rgba(255, 204, 0, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.16);
}

.mobile-menu-search-hint {
  display: block;
  margin-top: 7px;
  color: #d8ebff;
  font-size: 0.76rem;
}

.mobile-menu-search-results {
  margin-top: 10px;
}

.mobile-menu-search-meta {
  color: var(--ink-soft);
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.mobile-links-results a {
  border-color: rgba(255, 204, 0, 0.28);
  background: rgba(255, 204, 0, 0.08);
}

.mobile-links-results a strong {
  display: block;
  color: #fff6cb;
}

.mobile-links-results a small {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.mobile-menu-body {
  display: grid;
  gap: 12px;
}

.mobile-menu-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 18, 31, 0.86);
  padding: 10px;
}

.mobile-menu-section h3 {
  margin: 0 0 8px;
  color: #fff6c3;
  font-size: 0.95rem;
}

.mobile-links {
  display: grid;
  gap: 6px;
}

.mobile-links a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(166, 208, 255, 0.16);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.84rem;
}

.mobile-links a small {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 0.82rem;
  line-height: 1;
  transition: all .18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffd6;
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(255, 204, 0, 0.14), rgba(0, 179, 255, 0.13));
  transform: translateY(-1px);
}

.nav-more {
  position: relative;
}

.nav-more summary {
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 0.82rem;
  line-height: 1;
  transition: all .18s ease;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more summary:hover,
.nav-more[open] summary,
.nav-more.is-active summary {
  color: #ffffd6;
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(255, 204, 0, 0.14), rgba(0, 179, 255, 0.13));
}

.nav-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(2, 12, 22, 0.95);
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  z-index: 40;
}

.nav-more-menu a {
  border-radius: 8px;
  text-align: left;
}

.page-main {
  padding: 20px 0 26px;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 16px;
  background:
    linear-gradient(120deg, rgba(255, 204, 0, 0.12), transparent 40%),
    linear-gradient(170deg, rgba(0, 179, 255, 0.15), rgba(4, 16, 28, 0.82));
}

.hero::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.38), rgba(255, 204, 0, 0));
  pointer-events: none;
}

.kicker {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--accent);
  border: 1px solid rgba(255, 204, 0, 0.42);
  background: rgba(255, 204, 0, 0.14);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 8px;
  color: var(--ink-strong);
  line-height: 1.15;
  font-size: clamp(1.45rem, 2vw, 2.1rem);
}

.hero p {
  margin: 0 0 14px;
  color: #d2e8ff;
}

.hero-channel-logo-wrap {
  width: 78px;
  height: 78px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.hero-channel-logo {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.hero-channel {
  padding: 10px 12px;
}

.hero-channel-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 10px;
  align-items: center;
}

.hero-channel-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hero-channel-heading {
  min-width: 0;
}

.hero-channel-heading .kicker {
  margin-bottom: 3px;
}

.hero-channel-heading h1 {
  margin-bottom: 0;
  font-size: clamp(1.18rem, 1.6vw, 1.55rem);
}

.hero-channel .hero-channel-logo-wrap {
  width: 58px;
  height: 58px;
  margin-bottom: 0;
}

.hero-channel p {
  margin: 8px 0 6px;
  font-size: 0.9rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.now-next-panel--hero {
  border: 1px solid rgba(166, 208, 255, 0.28);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(5, 18, 31, 0.74), rgba(2, 8, 16, 0.78));
  padding: 7px 8px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22);
}

.now-next-ticker-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(166, 208, 255, 0.28);
  background: rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  padding: 4px 8px;
  min-width: 0;
  max-width: min(100%, 420px);
}

.ticker-item-now {
  border-color: rgba(46, 228, 111, 0.55);
}

.ticker-item-next {
  border-color: rgba(255, 204, 0, 0.55);
}

.ticker-label {
  font-size: 0.64rem;
  line-height: 1;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 6px;
  letter-spacing: 0.03em;
  color: #d8fce7;
  border: 1px solid rgba(46, 228, 111, 0.5);
  background: rgba(46, 228, 111, 0.14);
}

.ticker-item-next .ticker-label {
  color: #fff2bb;
  border-color: rgba(255, 204, 0, 0.6);
  background: rgba(255, 204, 0, 0.14);
}

.ticker-time {
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 800;
  color: #fff5c0;
  white-space: nowrap;
}

.ticker-title {
  font-size: 0.76rem;
  color: #e8f5ff;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-next-link {
  color: #fff0ae;
  text-decoration: none;
  font-size: 0.72rem;
  border: 1px solid rgba(255, 204, 0, 0.45);
  background: rgba(255, 204, 0, 0.14);
  border-radius: 999px;
  padding: 3px 7px;
}

.now-next-link:hover {
  border-color: rgba(255, 204, 0, 0.72);
  color: #fff8d3;
}

.notice-compact {
  padding: 7px 9px;
  font-size: 0.78rem;
  border-radius: 10px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 12px;
  align-items: stretch;
}

.search-input {
  width: 100%;
  height: 49px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.52);
  color: var(--ink-strong);
  padding: 0 14px;
  font-size: 1rem;
}

.search-input::placeholder {
  color: #7ea6ce;
}

.search-input:focus {
  outline: none;
  border-color: rgba(255, 204, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.16);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(255, 204, 0, 0.12), rgba(0, 179, 255, 0.12));
  padding: 8px 10px;
  min-height: 48px;
}

.stat-card small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.71rem;
}

.stat-card b {
  color: var(--accent);
  font-size: 1.06rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--glass-2);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
}

.panel h2,
.panel h3 {
  color: var(--ink-strong);
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}

.panel p {
  margin-top: 0;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quick-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  background: linear-gradient(160deg, rgba(255, 204, 0, 0.1), rgba(0, 179, 255, 0.11));
  color: var(--ink);
}

.quick-card:hover {
  border-color: rgba(255, 204, 0, 0.6);
}

.quick-title {
  display: block;
  color: #ffffd5;
  margin-bottom: 4px;
  font-weight: 700;
}

.quick-card strong {
  color: var(--accent);
  font-size: 0.86rem;
}

#favorites-panel {
  display: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  border: 1px solid rgba(255, 204, 0, 0.48);
  border-radius: 999px;
  padding: 7px 12px;
  text-decoration: none;
  color: #1f1a00;
  font-weight: 700;
  background: linear-gradient(180deg, #ffdb68, #ffcc00);
  font-size: 0.83rem;
  transition: filter .16s ease;
}

.btn:hover {
  filter: brightness(1.07);
}

.btn-soft {
  background: rgba(255, 204, 0, 0.1);
  color: #ffe8a8;
  border-color: rgba(255, 204, 0, 0.42);
  font-weight: 600;
}

.btn-soft:hover {
  background: rgba(255, 204, 0, 0.2);
}

.live-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.live-tile {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  color: var(--ink);
}

.live-tile strong {
  display: block;
  color: #fff7ca;
  margin-bottom: 4px;
}

.live-tile small {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.load-more-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.load-more-btn {
  cursor: pointer;
}

.load-more-text {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

#load-more-sentinel {
  width: 100%;
  height: 1px;
}

.search-results-panel {
  margin-top: 0;
}

.search-results-count {
  color: var(--ink-soft);
  font-size: 0.83rem;
  margin-bottom: 10px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.channel-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(4, 17, 30, 0.92), rgba(2, 10, 19, 0.92));
  box-shadow: var(--shadow);
  padding: 14px;
  transition: all .18s ease;
}

.enhanced .channel-card {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
  transition-delay: calc(var(--stagger, 0) * 30ms);
}

.enhanced .channel-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.channel-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 204, 0, 0.52);
}

.channel-card-top {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.channel-logo-link {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.36);
  display: grid;
  place-items: center;
  overflow: hidden;
  text-decoration: none;
}

.channel-logo {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.channel-logo-fallback {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff5bd;
}

.channel-card-headline {
  min-width: 0;
}

.channel-name {
  color: #ffffd5;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
  display: inline-block;
  margin-right: 8px;
}

.channel-name:hover {
  color: #ffe277;
}

.channel-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  color: #c3ffd3;
  border: 1px solid rgba(46, 228, 111, 0.58);
  background: rgba(46, 228, 111, 0.18);
  border-radius: 999px;
  font-size: 0.66rem;
  padding: 3px 8px;
  text-transform: uppercase;
}

.fav-btn {
  border: 1px solid rgba(255, 204, 0, 0.46);
  background: rgba(255, 204, 0, 0.08);
  color: #ffe28a;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}

.fav-btn.active {
  background: rgba(255, 204, 0, 0.24);
  color: #ffcc00;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  color: #dcedff;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(166, 208, 255, 0.08);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.71rem;
}

.tag:hover {
  border-color: rgba(255, 204, 0, 0.55);
  color: #fff5ba;
}

.epg-line {
  color: #cae2ff;
  font-size: 0.81rem;
  line-height: 1.4;
}

.epg-line strong {
  color: var(--accent);
}

.player-shell {
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.channel-frame {
  width: 100%;
  border: 0;
  min-height: min(72vh, 760px);
}

.channel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.channel-meta-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.34);
  padding: 7px 10px;
  font-size: 0.8rem;
}

.home-app-layout {
  display: block;
}

.home-main-col,
.home-side-col {
  min-width: 0;
}

.channel-app-layout {
  display: block;
}

.channel-main-col,
.channel-side-col {
  min-width: 0;
}

.channel-side-col .channel-grid {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 0;
}

.channel-side-col .channel-card {
  padding: 12px;
}

.channel-side-col .channel-card-top {
  grid-template-columns: 42px 1fr;
}

.channel-side-col .channel-logo-link {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.panel-player {
  padding: 14px;
}

.player-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.player-head h2 {
  margin: 0;
}

.player-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.panel-head-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.panel-head-inline h2 {
  margin: 0;
}

.panel-head-inline small {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.epg-panel {
  overflow: hidden;
}

.epg-days-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.epg-day-panel {
  border: 1px solid rgba(166, 208, 255, 0.2);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(5, 20, 34, 0.62), rgba(2, 9, 17, 0.66));
  padding: 10px;
  min-width: 0;
}

.epg-day-title {
  margin: 2px 0 8px;
  color: #fff7ca;
  font-size: 0.95rem;
}

.epg-timeline {
  display: grid;
  gap: 8px;
}

.epg-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  border: 1px solid rgba(166, 208, 255, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.26);
  padding: 9px 10px;
}

.epg-row.is-now {
  border-color: rgba(46, 228, 111, 0.52);
  background: linear-gradient(145deg, rgba(46, 228, 111, 0.18), rgba(0, 0, 0, 0.2));
}

.epg-row.is-next {
  border-color: rgba(255, 204, 0, 0.55);
}

.epg-time {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.86rem;
}

.epg-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.epg-title {
  color: #dff0ff;
  font-size: 0.84rem;
}

.epg-state {
  display: inline-block;
  color: #c2ffd5;
  border: 1px solid rgba(46, 228, 111, 0.65);
  background: rgba(46, 228, 111, 0.18);
  border-radius: 999px;
  font-size: 0.68rem;
  line-height: 1;
  padding: 4px 7px;
  text-transform: uppercase;
}

.epg-state-next {
  color: #fff2ba;
  border-color: rgba(255, 204, 0, 0.65);
  background: rgba(255, 204, 0, 0.18);
}

.epg-loadmore-wrap {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.epg-loadmore-btn {
  cursor: pointer;
}

.show-library-panel p {
  margin: 0 0 8px;
}

.show-library-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.show-library-item {
  border: 1px solid rgba(166, 208, 255, 0.2);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(5, 18, 31, 0.6), rgba(2, 10, 19, 0.62));
  padding: 10px;
}

.show-library-item h3 {
  margin: 0 0 6px;
  color: #fff7cc;
  font-size: 0.9rem;
  line-height: 1.32;
}

.show-library-item p {
  margin: 0 0 6px;
  color: #dcefff;
  font-size: 0.79rem;
  line-height: 1.45;
}

.show-library-item small {
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.now-next-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.now-next-head h2 {
  margin: 0;
}

.now-next-sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(46, 228, 111, 0.45);
  background: rgba(46, 228, 111, 0.14);
  color: #c9ffdc;
  border-radius: 999px;
  font-size: 0.7rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 8px;
}

.now-next-stack {
  display: grid;
  gap: 10px;
}

.now-next-item {
  border: 1px solid rgba(166, 208, 255, 0.24);
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(6, 21, 36, 0.72), rgba(3, 11, 20, 0.78));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.now-next-item.is-now {
  border-color: rgba(46, 228, 111, 0.5);
}

.now-next-item.is-next {
  border-color: rgba(255, 204, 0, 0.5);
}

.now-next-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.now-next-chip {
  display: inline-flex;
  align-items: center;
  color: #c9ffdc;
  border: 1px solid rgba(46, 228, 111, 0.58);
  background: rgba(46, 228, 111, 0.16);
  border-radius: 999px;
  font-size: 0.68rem;
  line-height: 1;
  text-transform: uppercase;
  padding: 4px 8px;
}

.now-next-chip-next {
  color: #fff2ba;
  border-color: rgba(255, 204, 0, 0.65);
  background: rgba(255, 204, 0, 0.16);
}

.now-next-time {
  font-size: 1rem;
  line-height: 1;
  font-weight: 800;
  color: #fff5c0;
}

.now-next-title {
  margin: 0 0 4px;
  font-size: 0.93rem;
  line-height: 1.35;
  color: #eef7ff;
}

.now-next-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.77rem;
  line-height: 1.45;
}

.now-next-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.28);
}

.faq-item + .faq-item {
  margin-top: 8px;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.info-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.info-highlight-card {
  border: 1px solid rgba(166, 208, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(5, 18, 31, 0.75), rgba(2, 10, 19, 0.75));
  padding: 10px;
}

.info-highlight-card strong {
  display: block;
  color: #fff6c3;
  margin-bottom: 6px;
  font-size: 0.86rem;
}

.info-highlight-card p {
  margin: 0;
  color: #dceeff;
  font-size: 0.79rem;
  line-height: 1.45;
}

.info-layout {
  display: grid;
  gap: 10px;
}

.info-block {
  border: 1px solid rgba(166, 208, 255, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  padding: 10px;
}

.info-block h2 {
  margin: 0 0 7px;
  font-size: 1rem;
}

.info-block p {
  margin: 0;
}

.info-list {
  margin: 8px 0 0;
  padding: 0 0 0 20px;
  display: grid;
  gap: 6px;
}

.info-list li {
  color: #dceeff;
  font-size: 0.84rem;
}

.info-cta-panel p {
  margin: 0 0 10px;
}

.favorites-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.favorites-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.favorites-toolbar select,
.favorites-toolbar input {
  width: 100%;
  border: 1px solid rgba(166, 208, 255, 0.26);
  border-radius: 10px;
  background: #081a2d;
  color: #f3f8ff;
  min-height: 38px;
  padding: 8px 10px;
}

.favorites-toolbar select:focus,
.favorites-toolbar input:focus {
  outline: none;
  border-color: rgba(255, 204, 0, 0.62);
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.16);
}

.favorites-toolbar select option {
  background: #0a2036;
  color: #f6fbff;
}

.favorites-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-soft.danger {
  border-color: rgba(255, 97, 97, 0.55);
  color: #ffd1d1;
  background: rgba(255, 86, 86, 0.14);
}

.btn-soft.danger:hover {
  background: rgba(255, 86, 86, 0.24);
}

.favorites-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.favorites-page-item {
  border: 1px solid rgba(166, 208, 255, 0.24);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(5, 18, 31, 0.72), rgba(2, 10, 19, 0.72));
  position: relative;
  overflow: hidden;
}

.favorites-page-item:hover {
  border-color: rgba(255, 204, 0, 0.55);
}

.favorites-page-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  text-decoration: none;
  color: var(--ink);
}

.favorites-page-logo {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(166, 208, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.favorites-page-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.favorites-page-logo-fallback {
  font-size: 1rem;
  color: #fff1bf;
  font-weight: 700;
}

.favorites-page-content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.favorites-page-content strong {
  color: #fff7ca;
}

.favorites-page-content small {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.favorites-page-epg {
  display: block;
  font-size: 0.74rem;
  color: #c7e6ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favorites-page-epg strong {
  color: #ffe9a1;
  font-size: 0.74rem;
}

.favorites-page-item-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid rgba(255, 136, 136, 0.5);
  background: rgba(50, 2, 2, 0.6);
  color: #ffd8d8;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 1;
  line-height: 1;
}

.favorites-page-item-remove:hover {
  background: rgba(95, 9, 9, 0.7);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.55);
  position: relative;
  z-index: 2;
}

.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 0 20px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.footer-left,
.footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.footer-right a {
  color: var(--ink);
  text-decoration: none;
}

.footer-right a:hover {
  color: #ffffcc;
}

.footer-seo {
  border-top: 1px solid rgba(166, 208, 255, 0.2);
  padding: 10px 0 18px;
}

.footer-seo strong {
  display: block;
  color: #fff7ca;
  margin-bottom: 8px;
  font-size: 0.86rem;
}

.footer-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-seo-links a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(166, 208, 255, 0.22);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.22);
}

.footer-seo-links a:hover {
  color: #fff4b2;
  border-color: rgba(255, 204, 0, 0.5);
}

.notice {
  border: 1px solid rgba(255, 204, 0, 0.52);
  background: rgba(255, 204, 0, 0.13);
  color: #ffe9a0;
  border-radius: 12px;
  padding: 10px 12px;
}

@media (max-width: 1030px) {
  .live-strip {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-channel-top {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .info-highlights {
    grid-template-columns: 1fr;
  }

  .favorites-toolbar {
    grid-template-columns: 1fr;
  }

  .favorites-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1100px) {
  .home-app-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.9fr);
    gap: 14px;
    align-items: start;
  }

  .home-side-col {
    position: sticky;
    top: 76px;
  }

  .channel-app-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr);
    gap: 14px;
    align-items: start;
  }

  .channel-side-col {
    position: sticky;
    top: 76px;
  }

  .channel-frame {
    min-height: min(74vh, 840px);
  }

  .epg-days-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .show-library-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
  }

  .mobile-menu {
    display: block;
  }

  body.menu-open {
    overflow: hidden;
  }

  .nav-links {
    display: none;
    width: 100%;
    margin-top: 6px;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav-links.open {
    display: flex;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }

  .favorites-page-grid {
    grid-template-columns: 1fr;
  }

  .live-strip {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 18px;
  }

  .page-main {
    padding-top: 14px;
  }

  .channel-card-top {
    grid-template-columns: 46px 1fr;
  }

  .channel-logo-link {
    width: 46px;
    height: 46px;
  }

  .player-head {
    display: grid;
    gap: 8px;
  }

  .epg-row {
    grid-template-columns: 60px 1fr;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .brand-text {
    gap: 5px;
    letter-spacing: 0.06em;
  }

  .brand-cool {
    font-size: 0.95rem;
  }

  .brand-tv {
    font-size: 0.98rem;
  }

  .brand-live {
    display: none;
  }

  .now-next-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .now-next-time {
    font-size: 0.94rem;
  }

  .now-next-ticker-row {
    gap: 5px;
  }

  .ticker-item {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .now-next-link {
    margin-left: 0;
  }
}
