:root {
  --bg-deep: #040406;
  --bg-card: #09090c;
  --bg-elevated: #111116;
  --gold: #f59e0b;
  --gold-bright: #fbbf24;
  --gold-orange: #ea580c;
  --gold-border: rgba(245, 158, 11, 0.52);
  --text: #f8fafc;
  --muted: #a1a1aa;
  --danger: #dc2626;
  --success: #10b981;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  user-select: none;
}

input, textarea, select {
  user-select: text !important;
  -webkit-user-select: text !important;
}

html, body {
  width: 100%;
  height: 100%;
  background: #050508;
  color: var(--text);
  overflow: hidden;
}

/* --- Lightweight Luxury Black & Amber-Gold Interactive Card / Button System (TV Box 60fps) --- */
.gold-box {
  background: #0b0b0f;
  border: 1.5px solid rgba(245, 158, 11, 0.38);
  border-radius: 14px;
  color: var(--text);
  transition: border-color 0.08s ease, background-color 0.08s ease;
}

.focusable {
  cursor: pointer;
  outline: none;
}

.focusable:hover,
.focusable:focus,
.focusable.tv-focus {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--gold-bright) !important;
  box-shadow: 0 0 0 2px var(--gold-bright), 0 0 12px rgba(245, 158, 11, 0.42);
  z-index: 2;
}

.focusable:active {
  background: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 0 2px #fde047;
}

.pillar-bar {
  height: 3px;
  width: 38px;
  border-radius: 99px;
  background: rgba(245, 158, 11, 0.35);
  transition: width 0.1s ease;
  margin-top: 8px;
}

.focusable:hover .pillar-bar,
.focusable:focus .pillar-bar {
  width: 74px;
  background: #fbbf24;
}

.activation-hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
  align-items: center;
  max-width: 1180px;
  width: 100%;
  margin: auto;
}

.btn-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 52%, #ea580c 100%);
  color: #09090b;
  font-weight: 800;
  border: 1.5px solid #fde68a;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 15px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.btn-gold:hover,
.btn-gold:focus,
.btn-gold.tv-focus {
  filter: brightness(1.1);
  box-shadow: 0 0 0 2px #fef08a, 0 0 26px rgba(245, 158, 11, 0.7);
  transform: translateY(-2px) scale(1.02);
  outline: none;
}

.btn-gold:active {
  transform: scale(0.97);
}

.gold-text { color: var(--gold-bright); }

.hidden { display: none !important; }

/* --- Splash Screen --- */
#splash-screen {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: radial-gradient(circle at center, #221504 0%, #050507 65%);
  z-index: 100;
}

.splash-logo-badge {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 55px rgba(245, 158, 11, 0.55);
  border: 2px solid #fde68a;
  animation: pulseGold 1.6s ease-in-out infinite;
}

@keyframes pulseGold {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(245, 158, 11, 0.45); }
  50% { transform: scale(1.06); box-shadow: 0 0 70px rgba(251, 146, 60, 0.75); }
}

.splash-title {
  font-size: 46px;
  font-weight: 900;
  letter-spacing: 5px;
  color: #fff;
}

/* --- App Shell --- */
#app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.tv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(5, 5, 7, 0.9);
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #09090b;
  font-weight: 900;
  font-size: 20px;
  border: 1px solid #fde68a;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.45);
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tv-clock {
  font-family: 'Consolas', monospace;
  font-size: 14px;
  color: rgba(253, 230, 138, 0.8);
  margin-right: 6px;
}

.icon-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #d4d4d8;
  padding: 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s ease, color 0.08s ease;
}

.icon-btn:hover,
.icon-btn:focus,
.icon-btn.tv-focus {
  background: rgba(245, 158, 11, 0.16) !important;
  border: none !important;
  box-shadow: 0 0 0 2px var(--gold-bright) !important;
  color: var(--gold-bright) !important;
  transform: scale(1.12);
}

.icon-wa {
  color: #22c55e;
}

.icon-wa:hover,
.icon-wa:focus {
  color: #4ade80 !important;
  box-shadow: 0 0 0 2px #4ade80 !important;
}

@keyframes refreshBlink {
  0%, 100% { color: #fde047; box-shadow: 0 0 0 2px #fbbf24; transform: scale(1.05); }
  50% { color: #fb923c; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.45); transform: scale(1.18); }
}

#btn-refresh.refresh-has-update {
  animation: refreshBlink 1s ease-in-out infinite;
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fde047 !important;
}

.home-resume-float {
  position: relative;
  flex-shrink: 0;
  width: 150px;
  height: 220px;
  padding: 0;
  overflow: hidden;
  z-index: 10;
  border-radius: 12px;
}

@media (max-width: 1024px) {
  .home-resume-float {
    width: 120px;
    height: 180px;
  }
}

@keyframes homeBgKenBurns {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.09); }
}

.home-backdrop-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: transparent;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  filter: blur(1px) saturate(1.15);
  will-change: opacity, transform;
  z-index: 0;
  pointer-events: none;
}

.home-backdrop-bg.active {
  opacity: 0.62;
  animation: homeBgKenBurns 11s ease-out forwards;
}

.home-backdrop-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(5,5,8,0.32) 0%, rgba(5,5,8,0.78) 78%, rgba(5,5,8,0.95) 100%),
              linear-gradient(180deg, rgba(5,5,8,0.58) 0%, rgba(5,5,8,0.18) 38%, rgba(5,5,8,0.88) 100%);
  z-index: 1;
  pointer-events: none;
}

.home-backdrop-caption {
  position: absolute;
  top: 14px;
  left: 24px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(5, 5, 8, 0.62);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  max-width: 340px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.home-backdrop-caption.visible {
  opacity: 0.92;
}

@media (max-width: 760px) {
  .home-resume-float {
    display: none;
  }
}

/* --- Sleek Toggle Switch (Interruptor Liga/Desliga) --- */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #050507;
  border: 1px solid rgba(245, 158, 11, 0.3);
  cursor: pointer;
}

.switch-row:hover {
  border-color: var(--gold-bright);
  background: rgba(245, 158, 11, 0.08);
}

.dim-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.dim-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.dim-slider {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  transition: 0.2s ease;
}

.dim-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #d4d4d8;
  transition: 0.2s ease;
}

.dim-switch input:checked + .dim-slider {
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  border-color: #fde68a;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.55);
}

.dim-switch input:checked + .dim-slider::before {
  transform: translateX(20px);
  background: #09090b;
}

.reseller-shell {
  flex: 1;
  overflow-y: auto;
  padding: 22px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reseller-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 900px) {
  .reseller-grid { grid-template-columns: 1fr; }
}

.header-btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tv-main {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* --- Activation / Login Screen --- */
.activation-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 40px;
}

.activation-card {
  max-width: 780px;
  width: 100%;
  margin: auto;
  padding: 32px;
  text-align: center;
}

.mac-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0;
}

.mac-tile {
  padding: 20px;
  background: #040406;
  border: 1.5px solid var(--gold-border);
  border-radius: 12px;
}

.mac-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 1px;
}

.mac-value {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-top: 6px;
}

.manual-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
  margin-top: 18px;
}

.tv-input {
  width: 100%;
  background: #040406;
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}

.tv-input:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35);
}

/* --- Home 4-Tile Dashboard --- */
.home-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 48px;
  gap: 24px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.home-tile {
  height: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

.home-tile-icon {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  background: #040406;
  border: 1.5px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: inset 0 0 18px rgba(245, 158, 11, 0.14);
}

.home-tile-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--gold-bright);
}

.home-tile-sub {
  font-size: 14px;
  color: var(--muted);
}

/* --- Red Expiration Ticker Bar (3 days before expiration) --- */
#expiry-ticker {
  width: 100%;
  background: linear-gradient(90deg, #b91c1c, #dc2626, #b91c1c);
  border: none;
  border-top: 2px solid var(--gold-bright);
  padding: 11px 0;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

#expiry-ticker:hover,
#expiry-ticker:focus,
#expiry-ticker.tv-focus {
  background: #ef4444;
  box-shadow: 0 -4px 24px rgba(239, 68, 68, 0.7);
  outline: none;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  animation: tickerScroll 18s linear infinite;
}

@keyframes tickerScroll {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* --- Catalogs (Movies, Series, Live Channels) --- */
.catalog-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 270px 1fr;
  overflow: hidden;
}

.channels-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 240px 360px 1fr;
  overflow: hidden;
}

.sidebar-col {
  border-right: 1px solid rgba(245, 158, 11, 0.25);
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(4, 4, 6, 0.7);
}

.cat-item {
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
}

.cat-item.selected-cat {
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.catalog-content {
  padding: 18px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
}

.poster-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
}

.poster-img-wrap {
  height: 220px;
  background: linear-gradient(160deg, #1b1306, #070709);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-title {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Channels Preview & Player --- */
.preview-col {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.video-stage {
  flex: 1;
  background: #000;
  border-radius: 14px;
  border: 1.5px solid var(--gold-border);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-stage video {
  width: 100%;
  height: 100%;
  background: #000;
}

/* --- Settings & FAQs --- */
.settings-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px 36px;
  overflow-y: auto;
}

.settings-row {
  width: 100%;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.faq-card {
  padding: 22px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
}

/* --- Modals & Fullscreen Player --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 80;
}

.modal-box {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
}

#player-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #000;
  z-index: 90;
  display: flex;
  flex-direction: column;
}

#player-overlay video {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #000;
}

.net-banner {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(127, 29, 29, 0.95);
  border: 1.5px solid #fbbf24;
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
  z-index: 150;
  text-align: center;
}

.player-spinner-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
  z-index: 5;
}

.player-slow-warn {
  background: rgba(9, 9, 12, 0.88);
  border: 1.5px solid #f59e0b;
  color: #fde68a;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
}

.dim-spinner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 4px solid rgba(245, 158, 11, 0.22);
  border-top-color: #fbbf24;
  border-right-color: #ea580c;
  animation: dimSpin 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

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

#player-overlay.hud-hidden {
  cursor: none;
}

.back-nav-btn {
  gap: 4px;
  padding: 5px 10px 5px 6px !important;
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24 !important;
  margin-right: 4px;
}

.player-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 24px 26px 24px;
  background: linear-gradient(rgba(0, 0, 0, 0.9), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  opacity: 1;
  transition: opacity 0.28s ease;
  pointer-events: auto;
}

.player-back-btn {
  background: rgba(9, 9, 12, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  border-radius: 8px;
  padding: 5px 10px 5px 7px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.14s ease;
}

.player-back-btn:hover,
.player-back-btn:focus {
  background: rgba(245, 158, 11, 0.25);
  border-color: #fde047;
  color: #fff;
  outline: none;
}

.player-top-title {
  font-size: 18px;
  font-weight: 800;
  color: #fbbf24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.player-top-meta {
  font-size: 13px;
  font-weight: 600;
  color: #e4e4e7;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

#player-overlay.hud-hidden .player-top-bar,
#player-overlay.hud-hidden .player-hud {
  opacity: 0;
  pointer-events: none;
}

.player-hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 22px 14px 22px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 1;
  transition: opacity 0.28s ease;
}

.player-timeline-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.player-time-lbl {
  font-family: 'Consolas', monospace;
  font-size: 11px;
  color: #d4d4d8;
  min-width: 46px;
  text-align: center;
}

.player-scrubber {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.24);
  outline: none;
  cursor: pointer;
  transition: height 0.15s ease, box-shadow 0.15s ease;
}

.player-scrubber:focus,
.player-scrubber.tv-focus {
  outline: none !important;
  height: 8px !important;
  background: rgba(251, 191, 36, 0.45) !important;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.8) !important;
}

.player-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fde047, #f59e0b, #ea580c);
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.85);
  cursor: grab;
  transition: transform 0.12s ease;
}

.player-scrubber:focus::-webkit-slider-thumb,
.player-scrubber.tv-focus::-webkit-slider-thumb {
  transform: scale(1.6) !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 20px #fbbf24 !important;
}

.player-scrubber::-webkit-slider-thumb:hover,
.player-scrubber::-webkit-slider-thumb:active {
  transform: scale(1.25);
  cursor: grabbing;
}

.player-scrubber::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fde047, #f59e0b, #ea580c);
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.85);
  cursor: grab;
}

.player-scrubber:focus::-moz-range-thumb,
.player-scrubber.tv-focus::-moz-range-thumb {
  transform: scale(1.6) !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 20px #fbbf24 !important;
}

.player-bar-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.player-info {
  min-width: 0;
}

.player-title-txt {
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-meta-txt {
  font-size: 11px;
  color: #a1a1aa;
}

.player-center-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.player-ctrl-btn {
  background: rgba(12, 12, 16, 0.86);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #f8fafc;
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.player-ctrl-btn:hover,
.player-ctrl-btn:focus {
  background: rgba(245, 158, 11, 0.25);
  border-color: #fbbf24;
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
  outline: none;
}

.player-mini-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.player-mini-icon {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #d4d4d8;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.14s ease, transform 0.14s ease;
}

.player-mini-icon:hover,
.player-mini-icon:focus {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #fbbf24 !important;
  transform: scale(1.18);
  outline: none;
}

.player-mini-icon.is-on {
  color: #fbbf24;
}

.toast {
  position: fixed;
  top: 76px;
  right: 28px;
  background: #09090c;
  border: 1.5px solid var(--gold-bright);
  color: var(--gold-bright);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8);
  z-index: 120;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #050507; }
::-webkit-scrollbar-thumb { background: rgba(245, 158, 11, 0.45); border-radius: 4px; }

/* --- Responsive Mobile / Smartphone Adaptation --- */
@media (max-width: 768px) {
  .tv-header { padding: 10px 14px; }
  .brand-icon { width: 32px; height: 32px; font-size: 15px; border-radius: 8px; }
  .brand-name { font-size: 16px; letter-spacing: 1px; }
  #header-subtitle { display: none; }
  .tv-clock { font-size: 12px; margin-right: 2px; }

  .activation-wrap { padding: 14px 16px !important; overflow-y: auto; }
  .home-wrap { padding: 16px !important; overflow-y: auto; }
  .home-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .home-tile { height: auto !important; padding: 16px 12px !important; }

  .catalog-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .channels-layout { grid-template-columns: 1fr; grid-template-rows: auto 190px 1fr; }

  .sidebar-col {
    border-right: none;
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 12px;
    gap: 6px;
    white-space: nowrap;
  }
  .sidebar-col .cat-item { width: auto; flex-shrink: 0; padding: 7px 12px; font-size: 12px; }
  #channels-list-col {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    white-space: normal;
  }
  #channels-list-col .cat-item { width: 100%; }

  .preview-col { padding: 10px 12px; gap: 8px; }
  .catalog-content { padding: 12px; }
  .poster-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .poster-img-wrap { height: 175px; }

  .settings-grid { grid-template-columns: 1fr; padding: 14px; gap: 16px; }
  .faq-grid { grid-template-columns: 1fr; gap: 10px; }
  .faq-card { min-height: 76px; padding: 14px; font-size: 14px; }

  .player-bar-row { grid-template-columns: 1fr; gap: 8px; }
  .player-mini-actions { justify-content: center; }
  .player-top-title { font-size: 14px; }
  .player-top-meta { font-size: 11px; }
}
