/* ==========================================================================
   TV DEPECO DASHBOARD - 4K ULTRA HD PIXEL PERFECT SPECIFICATION
   ========================================================================== */

:root {
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-dark: #373435;
  --text-muted: #bebebe;
  --text-white: #ffffff;
  --aqi-yellow: #f8dc3c;
  
  /* 4K Liquid Glass Tokens */
  --liquid-glass-bg: rgba(217, 217, 217, 0.20);
  --liquid-glass-blur: blur(30px);
  --liquid-glass-border: 3px solid rgba(255, 255, 255, 0.25);
  --liquid-glass-radius: 48px;
  --liquid-glass-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 0 3px 3px rgba(255, 255, 255, 0.4);
}

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

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #050a10;
  font-family: var(--font-family);
  color: var(--text-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================= BACKGROUND SLIDESHOW ================= */
.slideshow-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  will-change: opacity;
}

.slide-bg.active,
.slide-bg.visible {
  opacity: 1;
}

.bottom-vignette-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: 
    linear-gradient(to top, rgba(55, 52, 53, 0.92) 0%, rgba(55, 52, 53, 0.50) 24%, rgba(55, 52, 53, 0.08) 46%, transparent 55%),
    linear-gradient(to left, rgba(55, 52, 53, 0.45) 0%, transparent 35%);
}

/* ================= TOP-LEFT FLOATING GLASS CARD ================= */
.top-left-header-card {
  position: absolute;
  top: 72px;
  left: 72px;
  width: 1068px;
  height: 270px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 72px;
  background: var(--liquid-glass-bg);
  backdrop-filter: var(--liquid-glass-blur);
  -webkit-backdrop-filter: var(--liquid-glass-blur);
  border: var(--liquid-glass-border);
  border-radius: var(--liquid-glass-radius);
  box-shadow: var(--liquid-glass-shadow);
}

.header-logo-group {
  display: flex;
  align-items: center;
}

.header-official-km-logo {
  height: 153px; /* 51px * 3 */
  width: auto;
  max-width: 450px;
  display: flex;
  align-items: center;
}

.header-official-km-logo svg {
  height: 100%;
  width: auto;
  display: block;
}

.header-clock-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.header-time {
  font-size: 72px; /* 24px * 3 */
  font-weight: 600; /* SemiBold */
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.header-date {
  font-size: 36px; /* 12px * 3 */
  font-weight: 600; /* SemiBold */
  color: #ffffff;
  margin-top: 14px;
  white-space: nowrap;
}

/* ================= BOTTOM-LEFT NEWS & QR BLOCK ================= */
.bottom-news-container {
  position: absolute;
  bottom: 72px;
  left: 72px;
  right: 1200px;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  pointer-events: none;
}

.news-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 1770px;
  pointer-events: auto;
}

.news-main-title {
  font-size: 72px;
  font-weight: 600;
  line-height: 1.22;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.95);
  transition: opacity 0.35s ease;
}

/* Smooth anti-aliased Pagination Dots */
.pagination-dots {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.dot.active {
  width: 48px;
  background: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.95), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.qr-block {
  display: flex;
  align-items: center;
  gap: 36px;
  pointer-events: auto;
  flex-shrink: 0;
  margin-bottom: 12px;
}

.qr-label {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  text-align: right;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

.qr-card {
  position: relative;
  width: 280px;
  height: 280px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.qr-card canvas,
.qr-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

/* ================= RIGHT FLOATING GLASS SIDEBAR ================= */
.right-sidebar {
  position: absolute;
  top: 72px;
  right: 72px;
  bottom: 72px;
  width: 1068px;
  height: 2016px;
  z-index: 10;
  background: var(--liquid-glass-bg);
  backdrop-filter: var(--liquid-glass-blur);
  -webkit-backdrop-filter: var(--liquid-glass-blur);
  border: var(--liquid-glass-border);
  border-radius: var(--liquid-glass-radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--liquid-glass-shadow);
  overflow: hidden;
}

.sidebar-top-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.white-panel {
  background: #ffffff;
  border-radius: 24px;
  color: var(--text-dark);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.weather-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 150px;
  padding: 0 36px;
}

.weather-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.weather-temp-val {
  font-size: 72px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.weather-info-text {
  font-size: 36px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

.weather-icon-box {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

.weather-icon-box svg {
  width: 100%;
  height: 100%;
}

.aqi-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 198px;
  padding: 16px 36px;
  gap: 12px;
}

.aqi-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 36px;
  font-weight: 600;
  color: var(--text-dark);
}

.aqi-bar-track {
  position: relative;
  width: 100%;
  height: 12px;
  background: var(--text-muted);
  border-radius: 6px;
  overflow: hidden;
}

.aqi-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--aqi-yellow);
  border-radius: 6px;
  transition: width 0.6s ease;
}

.aqi-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 36px;
  font-weight: 600;
  color: var(--text-dark);
}

.sidebar-news-sections {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
  padding: 24px 18px;
  gap: 36px;
}

.news-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-section-header {
  font-size: 42px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
}

.news-section-content {
  font-size: 42px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.25;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
  transition: opacity 0.35s ease;
}

.tv-channels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
}

.tv-channel-btn {
  height: 96px;
  background: #ffffff;
  border-radius: 24px;
  padding: 0 28px;
  border: 4px solid transparent;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.tv-channel-btn:hover {
  transform: translateY(-2px);
  background: #f8fafc;
}

.tv-channel-btn:focus,
.tv-channel-btn:focus-visible {
  transform: scale(1.03);
  background: #ffffff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.5) !important;
}

.btn-channel-name {
  font-size: 36px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

.btn-live-badge {
  font-size: 36px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.tv-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 72px;
}

.tv-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.tv-modal-box {
  position: relative;
  width: 90vw;
  max-width: 3200px;
  background: #090e11;
  border-radius: 48px;
  overflow: hidden;
  box-shadow: 0 64px 160px rgba(0, 0, 0, 0.95), 0 0 0 3px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
}

.tv-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 64px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
}

.tv-modal-channel-title {
  font-size: 48px;
  font-weight: 600;
  color: #ffffff;
}

.tv-modal-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 64px;
  line-height: 1;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.tv-modal-close-btn:hover,
.tv-modal-close-btn:focus {
  background: rgba(239, 68, 68, 0.85);
  border-color: rgba(239, 68, 68, 1);
  transform: scale(1.08);
}

.tv-modal-player-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  position: relative;
}

.tv-modal-player-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Fluid responsive zoom for all screens */



html, body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #050a10;
}

#tvAppScaleWrapper {
  width: 3840px;
  height: 2160px;
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  overflow: hidden;
}
