/**
 * Ultra-Luxury Hospitality IPTV System - 10-Foot TV Stylesheet
 * Inspired by 5-Star Hotel Presidential Suites, LG Pro:Centric, and Samsung LYNK REACH
 */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  --gold-primary: #d4af37;
  --gold-light: #fbe5a2;
  --gold-dark: #9a781b;
  --gold-gradient: linear-gradient(135deg, #fbe5a2 0%, #d4af37 50%, #9a781b 100%);
  --gold-glow: 0 0 0 2.5px #d4af37, 0 16px 44px rgba(212, 175, 55, 0.45);
  
  --bg-obsidian: #060911;
  --bg-card-glass: rgba(11, 17, 32, 0.72);
  --bg-card-glass-hover: rgba(22, 33, 58, 0.9);
  --border-glass: rgba(212, 175, 55, 0.22);
  --border-glass-bright: rgba(212, 175, 55, 0.6);

  --text-pure: #ffffff;
  --text-gold: #f6dc96;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-serif: 'Cinzel', serif;
  --font-quote: 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, Menlo, monospace;
}

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

body, html {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--bg-obsidian);
  color: var(--text-pure);
  font-family: var(--font-sans);
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  image-rendering: -webkit-optimize-contrast;
  -webkit-text-size-adjust: 100%;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Base App Container (Full TV Resolution Target) */
#iptv-app {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Screen Transitions */
.iptv-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.iptv-screen.active {
  display: flex;
  opacity: 1;
}

/* ================= 1. SPLASH SCREEN ================= */
#screen-splash {
  background: radial-gradient(circle at center, #111a2e 0%, #060911 100%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 100;
}

.splash-gold-crest {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 8px 24px rgba(212, 175, 55, 0.5));
  animation: emblemFloat 3s ease-in-out infinite alternate;
}

.splash-hotel-name {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 6px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.splash-sub {
  font-size: 14px;
  color: #cbd5e1;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-top: 10px;
  font-weight: 600;
}

.splash-loader {
  margin-top: 48px;
  width: 240px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.splash-loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 35%;
  background: var(--gold-gradient);
  border-radius: 4px;
  animation: splashLoaderAnim 1.6s infinite ease-in-out;
}

@keyframes splashLoaderAnim {
  0% { left: -35%; }
  100% { left: 100%; }
}

@keyframes emblemFloat {
  0% { transform: translateY(0) scale(0.98); }
  100% { transform: translateY(-8px) scale(1.02); }
}

/* ================= 2. VIDEO BUMPER SCREEN ================= */
#screen-bumper {
  background: #000;
  z-index: 90;
}

#bumper-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bumper-skip-pill {
  position: absolute;
  bottom: 40px;
  right: 60px;
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  padding: 10px 22px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.4s ease;
}

.key-badge {
  background: var(--gold-gradient);
  color: #060911;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* ================= 2.5 MANAGEMENT WELCOME LETTER SCREEN ================= */
#screen-welcome-msg {
  background: radial-gradient(circle at center, #111a2e 0%, #060911 100%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 95;
  padding: 40px;
}

.welcome-msg-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(17, 26, 46, 0.6) 0%, rgba(6, 9, 17, 0.95) 100%);
  z-index: 1;
}

.welcome-letter-card {
  position: relative;
  z-index: 2;
  max-width: 860px;
  width: 90%;
  background: rgba(11, 17, 32, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--border-glass-bright);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 36px 44px;
  animation: letterCardPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes letterCardPop {
  0% { transform: scale(0.92) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.letter-top-crest {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 20px;
}

.letter-hotel-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 4px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.letter-guest-salutation {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.letter-heading {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.letter-paragraph {
  font-size: 15px;
  line-height: 1.8;
  color: #cbd5e1;
  white-space: pre-line;
  margin-bottom: 28px;
}

.letter-footer-sign {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
}

.letter-sender-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.letter-sender-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

.letter-sender-name {
  font-size: 15px;
  color: #ffffff;
  display: block;
}

.letter-sender-title {
  font-size: 12px;
  color: var(--text-gold);
}

.btn-msg-enter {
  background: var(--gold-gradient);
  color: #060911;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: 30px;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
  transition: all 0.25s ease;
}

.btn-msg-enter:focus,
.btn-msg-enter.focused,
.btn-msg-enter:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.7);
}

/* ================= 3. ULTRA-LUXURY WELCOME SCREEN ================= */
#screen-welcome {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  background-color: transparent;
  box-sizing: border-box;
  overflow: hidden;
}

.welcome-layout-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  box-sizing: border-box;
}

#layout-luxury-dock {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 44px 28px 44px;
  box-sizing: border-box;
}

#layout-procentric-split {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  gap: 32px;
  padding: 24px 36px;
  box-sizing: border-box;
}

#layout-bento-grid {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 36px;
  box-sizing: border-box;
}

#layout-custom-freeform {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.welcome-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.welcome-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(6, 9, 17, 0.08) 0%, rgba(6, 9, 17, 0.38) 100%),
              linear-gradient(180deg, rgba(6, 9, 17, 0.2) 0%, transparent 45%, rgba(6, 9, 17, 0.45) 100%);
  z-index: 2;
  transition: background 0.4s ease;
}

/* Top Header Bar */
.welcome-top-bar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* Top Left: Weather & Clock */
.top-left-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-weather-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(11, 17, 32, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.28);
  padding: 6px 16px;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.weather-temp {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

.weather-city-date {
  display: flex;
  flex-direction: column;
}

.weather-city {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-gold);
}

.weather-date {
  font-size: 11px;
  color: var(--text-muted);
}

.top-clock-pill {
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(11, 17, 32, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 6px 18px;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Top Center: Gold Hotel Crest (Image 1 reference) */
.top-center-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.top-gold-crest-icon {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.7));
}

.top-hotel-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 3.5px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Top Right: Guest Greeting & Room Info */
.top-right-guest {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.guest-info-text {
  text-align: right;
}

.guest-name-pill {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.guest-room-pill {
  font-size: 12px;
  color: var(--text-gold);
  font-weight: 600;
  margin-top: 2px;
}

.top-status-icons {
  display: flex;
  gap: 8px;
}

.status-circle-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.status-circle-badge:hover {
  transform: scale(1.1);
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* Center Section: Left Card (WiFi & Cast) + Center Greeting Quote */
.welcome-center-body {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto 0;
  width: 100%;
}

/* Left Floating Glass Card (WiFi & Smart Casting) */
.left-smart-card {
  width: 290px;
  background: linear-gradient(135deg, rgba(14, 22, 42, 0.86) 0%, rgba(6, 10, 20, 0.94) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.18);
  animation: fadeIn 0.4s ease;
  transform: translateZ(0);
}

.smart-card-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Frosted Glass Icon Box */
.smart-card-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(212, 175, 55, 0.12) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--gold-light);
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: all 0.2s ease;
}

.smart-card-details {
  flex: 1;
  min-width: 0;
}

.smart-card-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.smart-card-value {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Center Ambient Quote Banner */
.center-quote-wrapper {
  flex: 1;
  max-width: 680px;
  text-align: center;
  margin: 0 auto;
}

.active-action-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 6px;
  transition: all 0.3s ease;
}

.center-quote-text {
  font-family: var(--font-quote);
  font-size: 19px;
  font-style: italic;
  color: #e2e8f0;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  transition: opacity 0.3s ease;
}

/* ================= BOTTOM LUXURY FLOATING DOCK ================= */
.welcome-bottom-section {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Luxury Dock Container (Ultra Translucent Frosted Glass) */
.luxury-dock-bar {
  background: linear-gradient(180deg, rgba(14, 22, 42, 0.88) 0%, rgba(6, 10, 20, 0.95) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-top: 1.5px solid rgba(251, 229, 162, 0.45);
  border-radius: 24px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.16);
  overflow-x: hidden;
  transform: translateZ(0);
}

/* Luxury Carousel Tile Cards with Individual Frosted Glassmorphism */
.luxury-tile-card {
  flex: 1;
  height: 116px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.2s ease-out;
  position: relative;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.14);
  transform: translateZ(0);
}

.luxury-tile-card.focused {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.32) 0%, rgba(15, 23, 42, 0.92) 100%);
  border-color: #d4af37;
  transform: translateY(-8px) scale(1.06);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 24px rgba(212, 175, 55, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  z-index: 10;
}

.luxury-tile-card.focused::before {
  content: '';
  position: absolute;
  top: -8px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 8px solid var(--gold-primary);
  filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.8));
}

/* Glassmorphism Icon Pill Wrapper */
.tile-icon-svg {
  width: 46px;
  height: 46px;
  padding: 8px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(212, 175, 55, 0.08) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  margin-bottom: 8px;
  fill: #f6dc96;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.4));
}

.luxury-tile-card.focused .tile-icon-svg {
  background: linear-gradient(135deg, rgba(251, 229, 162, 0.38) 0%, rgba(212, 175, 55, 0.28) 100%);
  border-color: #d4af37;
  fill: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.6);
  filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.8));
}

.tile-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  letter-spacing: 0.3px;
}

.luxury-tile-card.focused .tile-title {
  color: var(--text-gold);
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.tile-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 9.5px;
  font-weight: 900;
  background: var(--gold-gradient);
  color: #060911;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Bottom Utility / Remote Legend */
.welcome-footer-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.language-flag-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.language-flag-box:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.remote-hint-group {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
}

/* ================= MULTI-LAYOUT VIEW CONTAINERS ================= */
.welcome-layout-view {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.welcome-layout-view#layout-luxury-dock {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 44px 28px 44px;
}

/* ================= LAYOUT 2: LG PRO:CENTRIC GLASS SPLIT ================= */
.welcome-layout-view#layout-procentric-split {
  display: flex;
  flex-direction: row;
  gap: 32px;
  padding: 24px 36px;
  height: 100%;
}

.split-sidebar-panel {
  width: 420px;
  height: 100%;
  background: rgba(6, 10, 22, 0.52);
  backdrop-filter: blur(36px) saturate(190%);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 24px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.82), inset 0 1px 1px rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.split-sidebar-header {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.split-menu-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.split-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(15, 23, 42, 0.3) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.split-menu-row.focused {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.3) 0%, rgba(15, 23, 42, 0.85) 100%);
  border-color: #d4af37;
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 22px rgba(212, 175, 55, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.split-menu-row.focused .split-menu-title {
  color: var(--text-gold);
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.split-menu-row.focused .split-row-arrow {
  color: var(--gold-light);
  transform: translateX(4px);
}

.split-menu-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
}

.split-menu-sub {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.split-row-arrow {
  font-size: 18px;
  color: #64748b;
  font-weight: 700;
  transition: all 0.2s ease;
}

.split-wifi-card {
  margin-top: auto;
  padding: 14px 16px;
  background: rgba(8, 14, 28, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.split-showcase-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.split-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.split-hero-card {
  margin: auto 0;
  background: rgba(8, 14, 28, 0.52);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 28px;
  padding: 44px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85), 0 0 36px rgba(212, 175, 55, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  max-width: 820px;
  animation: fadeIn 0.4s ease;
}

.split-hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.split-hero-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.split-hero-desc {
  font-size: 16px;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 26px;
}

.split-hero-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold-light);
}

/* ================= LAYOUT 3: SAMSUNG / ZAFIRO SMART BENTO GRID ================= */
.welcome-layout-view#layout-bento-grid {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.bento-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bento-grid-container {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  height: 68vh;
  margin: auto 0;
}

.bento-card {
  position: relative;
  background: rgba(8, 14, 28, 0.48);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1.5px solid rgba(212, 175, 55, 0.28);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.16);
}

.bento-card.hero-card {
  grid-row: span 2;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.2) 0%, rgba(8, 14, 28, 0.65) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
}

.bento-card.wide-card {
  grid-column: span 2;
}

.bento-card.focused {
  border-color: var(--gold-primary);
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.75), 0 0 32px rgba(212, 175, 55, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.35);
  background: linear-gradient(165deg, rgba(212, 175, 55, 0.28) 0%, rgba(14, 22, 42, 0.9) 100%);
  z-index: 10;
}

/* Frosted Glass Bento Icon Wrapper */
.bento-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(212, 175, 55, 0.1) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.38);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card.focused .bento-card-icon {
  background: linear-gradient(135deg, rgba(251, 229, 162, 0.38) 0%, rgba(212, 175, 55, 0.28) 100%);
  border-color: #d4af37;
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  transform: scale(1.12);
}

.bento-card-title {
  font-family: var(--font-serif);
  font-size: 17.5px;
  font-weight: 800;
  color: #ffffff;
}

.bento-card.focused .bento-card-title {
  color: var(--text-gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.bento-card-sub {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 4px;
}

.bento-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9.5px;
  font-weight: 800;
  background: var(--gold-gradient);
  color: #060911;
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ================= LUXURY RUNNING TEXT TICKER (MARQUEE) ================= */
.welcome-running-ticker {
  position: absolute;
  bottom: 8px;
  left: 56px;
  right: 56px;
  height: 38px;
  background: rgba(6, 10, 22, 0.52);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 14px;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 20;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.ticker-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-gradient);
  color: #060911;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 0 16px;
  height: 100%;
  flex-shrink: 0;
  text-transform: uppercase;
}

.ticker-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dc2626;
  animation: pulseDot 1.4s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ticker-marquee-text {
  display: inline-block;
  padding-left: 100%;
  font-size: 13px;
  font-weight: 600;
  color: #fbe5a2;
  letter-spacing: 0.5px;
  animation: marqueeTicker 24s linear infinite;
}

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

/* ================= 3.8 LIVE TV CHANNEL DIRECTORY & CATEGORY GUIDE ================= */
#screen-channel-guide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #0e1726 0%, #060911 100%);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 36px 20px 36px;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 45;
}

#screen-channel-guide.active {
  display: flex;
}

.channel-guide-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.channel-guide-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.guide-header-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-hotel-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.guide-sub-title {
  font-size: 11.5px;
  color: var(--text-gold);
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Category Filter Bar */
.channel-category-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.channel-category-bar::-webkit-scrollbar {
  display: none;
}

.category-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(11, 17, 32, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #cbd5e1;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  outline: none;
}

.category-pill-btn .cat-count-badge {
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 7px;
  border-radius: 12px;
  color: #ffffff;
}

.category-pill-btn:hover,
.category-pill-btn.focused,
.category-pill-btn.active {
  background: var(--gold-gradient);
  color: #060911;
  border-color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.55);
}

.category-pill-btn.active .cat-count-badge,
.category-pill-btn.focused .cat-count-badge {
  background: #060911;
  color: var(--gold-light);
}

/* Main Split Directory */
.channel-guide-main {
  position: relative;
  z-index: 5;
  display: flex;
  flex: 1;
  gap: 28px;
  min-height: 0;
  margin-bottom: 12px;
}

.channel-guide-list-panel {
  flex: 1.15;
  height: 100%;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
}

.channel-guide-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Luxury Channel Card */
.guide-channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(11, 17, 32, 0.58);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.guide-channel-card:hover,
.guide-channel-card.focused {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.32) 0%, rgba(15, 23, 42, 0.92) 100%);
  border-color: var(--gold-primary);
  transform: translateX(8px) scale(1.015);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 24px rgba(212, 175, 55, 0.45);
}

.ch-card-number {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 900;
  color: var(--gold-light);
  min-width: 44px;
}

.ch-card-logo-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(212, 175, 55, 0.08) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.ch-card-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ch-card-info {
  flex: 1;
  min-width: 0;
}

.ch-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ch-card-name {
  font-size: 15.5px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ch-card-cat-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
  text-transform: uppercase;
}

.ch-card-program {
  font-size: 12.5px;
  color: #cbd5e1;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ch-card-live-tag {
  font-size: 11px;
  font-weight: 800;
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: liveBlink 1.4s infinite;
  display: inline-block;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* Right Channel Preview Panel */
.channel-guide-preview-panel {
  flex: 0.85;
  display: flex;
  flex-direction: column;
  background: rgba(8, 14, 28, 0.58);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.preview-video-container {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

#guide-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
}

.preview-channel-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.preview-meta-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.preview-logo-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

#preview-ch-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.preview-ch-number {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 900;
  color: var(--gold-light);
}

.preview-ch-name {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 4px;
}

.preview-epg-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.preview-epg-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.preview-epg-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.preview-epg-next-title {
  font-size: 12px;
  color: #cbd5e1;
}

.btn-watch-fullscreen {
  width: 100%;
  background: var(--gold-gradient);
  color: #060911;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  border: none;
  border-radius: 30px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.45);
  transition: all 0.25s ease;
}

.btn-watch-fullscreen:hover,
.btn-watch-fullscreen:focus {
  transform: scale(1.03);
  box-shadow: 0 14px 36px rgba(212, 175, 55, 0.7);
}

.channel-guide-footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

/* ================= 4. LIVE TV SCREEN ================= */
#screen-livetv {
  background: #000;
  z-index: 50;
}

.tv-floating-topbar {
  position: absolute;
  top: 28px;
  left: 36px;
  right: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 60;
  pointer-events: auto;
}

.btn-tv-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(6, 9, 17, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--gold-primary);
  color: #fbe5a2;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 175, 55, 0.25);
  transition: all 0.2s ease;
  outline: none;
}

.btn-tv-back:hover,
.btn-tv-back:focus {
  background: var(--gold-primary);
  color: #060911;
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.6);
}

.btn-tv-back:active {
  transform: scale(0.98);
}

#tv-live-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-osd-banner {
  position: absolute;
  bottom: 40px;
  left: 60px;
  right: 60px;
  background: rgba(6, 9, 17, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-left: 4px solid var(--gold-primary);
  border-radius: 16px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 20;
}

.tv-osd-banner.show {
  opacity: 1;
  transform: translateY(0);
}

.osd-ch-number {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  min-width: 80px;
}

.osd-ch-name {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.osd-ch-program {
  font-size: 13.5px;
  color: #cbd5e1;
  margin-top: 2px;
}

.osd-category-pill {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-glass);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 1px;
}

/* Channel Drawer (Left Sliding Panel) */
.channel-drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: 440px;
  height: 100%;
  background: rgba(6, 9, 17, 0.96);
  backdrop-filter: blur(24px);
  border-right: 1px solid var(--border-glass);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 30;
  box-shadow: 20px 0 50px rgba(0, 0, 0, 0.8);
}

.channel-drawer.open {
  transform: translateX(0);
}

.channel-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-glass);
}

.channel-drawer-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.channel-list-container {
  flex: 1;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.channel-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.channel-item-row.focused {
  background: var(--gold-gradient);
  color: #060911;
  transform: scale(1.02);
  border-color: #ffffff;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.channel-item-row.focused .channel-num-badge {
  color: #060911;
}

.channel-item-row.focused .channel-item-cat {
  color: #1e293b;
  font-weight: 700;
}

.channel-num-badge {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-light);
  width: 44px;
}

.channel-item-name {
  font-size: 14.5px;
  font-weight: 700;
  flex: 1;
  margin-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-item-cat {
  font-size: 11px;
  color: var(--text-muted);
}

/* ================= 5. LUXURY MODAL SYSTEM (SMOOTH POPUP ENGINE) ================= */
.iptv-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.88) 0%, rgba(3, 5, 10, 0.96) 100%);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.iptv-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.iptv-modal-card {
  background: linear-gradient(165deg, rgba(17, 26, 46, 0.97) 0%, rgba(8, 12, 22, 0.99) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 24px;
  width: 900px;
  max-width: 92vw;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 85px rgba(0, 0, 0, 0.95), 0 0 45px rgba(212, 175, 55, 0.22);
  transform: scale(0.92) translateY(24px);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.iptv-modal-backdrop.active .iptv-modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.iptv-modal-header {
  padding: 22px 32px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.iptv-modal-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.iptv-modal-body {
  padding: 30px 32px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
}

.iptv-modal-body::-webkit-scrollbar {
  width: 6px;
}

.iptv-modal-body::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 4px;
}

.iptv-modal-footer {
  padding: 16px 32px;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #94a3b8;
}

/* Remote Visualizer */
.remote-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
}

.remote-key-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
}

.remote-key-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(15, 23, 42, 0.35) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.remote-key-row:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(15, 23, 42, 0.6) 100%);
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateX(4px);
}

.remote-key-name {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--gold-light);
  min-width: 130px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: inline-block;
  text-align: center;
}

.remote-key-desc {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

.remote-mockup-wrap {
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.7) 0%, rgba(6, 10, 20, 0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Dining & Service Catalog Cards */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.catalog-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(15, 23, 42, 0.5) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(212, 175, 55, 0.25);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.catalog-card.focused {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
  color: #060911;
  border-color: var(--gold-primary);
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 30px rgba(212, 175, 55, 0.55);
}

.catalog-card.focused .catalog-card-price {
  color: #b45309;
}

.catalog-thumb {
  height: 120px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(6, 10, 20, 0.6) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: all 0.25s ease;
}

.catalog-card.focused .catalog-thumb {
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.2) 0%, rgba(255, 255, 255, 0.8) 100%);
  transform: scale(1.05);
}

.catalog-content {
  padding: 14px 16px;
}

.catalog-title {
  font-size: 14.5px;
  font-weight: 700;
}

.catalog-card-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-light);
  margin-top: 6px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ================= MANAGEMENT WELCOME LETTER SCREEN ================= */
#screen-welcome-msg {
  background: #060911;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.welcome-msg-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.12) 0%, rgba(6, 9, 17, 0.95) 75%),
              url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?w=1920&q=80') center/cover no-repeat;
  filter: blur(8px);
  opacity: 0.45;
  transform: scale(1.05);
}

.welcome-letter-card {
  position: relative;
  z-index: 10;
  max-width: 900px;
  width: 100%;
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid var(--border-gold);
  border-radius: 20px;
  padding: 44px 52px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(212, 175, 55, 0.25);
  backdrop-filter: blur(20px);
  animation: modalScaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.letter-top-crest {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.letter-hotel-name {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--text-gold);
  font-weight: 700;
  text-transform: uppercase;
}

.letter-guest-salutation {
  font-size: 16px;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 8px;
}

.letter-heading {
  font-family: var(--font-serif);
  font-size: 26px;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.letter-paragraph {
  font-size: 15px;
  line-height: 1.75;
  color: #cbd5e1;
  margin-bottom: 28px;
  white-space: pre-line;
  background: rgba(255, 255, 255, 0.02);
  padding: 16px 20px;
  border-radius: 12px;
  border-left: 3px solid var(--gold-primary);
}

.letter-footer-sign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
}

.letter-sender-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.letter-sender-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.letter-sender-name {
  font-size: 15px;
  color: #ffffff;
  display: block;
}

.letter-sender-title {
  font-size: 12px;
  color: #94a3b8;
}

.btn-msg-enter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #d4af37, #b45309);
  color: #060911;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4);
  transition: all 0.25s ease;
}

.btn-msg-enter.focused,
.btn-msg-enter:hover {
  background: #ffffff;
  color: #060911;
  transform: scale(1.06);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.6);
}

/* ================= LUXURY RUNNING TEXT TICKER (MARQUEE) ================= */
.welcome-running-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: rgba(6, 9, 17, 0.88);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  z-index: 40;
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.ticker-badge {
  background: linear-gradient(135deg, #d4af37, #9a781b);
  color: #060911;
  font-size: 11px;
  font-weight: 800;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 1px;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);
}

.ticker-pulse-dot {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  animation: tickerDotPulse 1.2s infinite ease-in-out;
}

@keyframes tickerDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ticker-marquee-text {
  display: inline-block;
  padding-left: 100%;
  animation: tickerMarqueeScroll 30s linear infinite;
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.5px;
}

.ticker-marquee-text:hover {
  animation-play-state: paused;
}

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

/* ================= LIVE TV AUTO-HIDE TOPBAR & DRAWER ================= */
.tv-floating-topbar {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tv-floating-topbar.autohide-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}

/* ================= LAYOUT 4: CUSTOM FREEFORM / STUDIO ENGINE ================= */
#layout-custom-freeform {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5;
  box-sizing: border-box;
}

.tv-freeform-widget {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  border-radius: 12px;
}

/* Background Variations */
.tv-freeform-widget.bg-transparent {
  background: transparent !important;
}

.tv-freeform-widget.bg-dark_glass,
.tv-freeform-widget.bg-dark-glass {
  background: rgba(11, 17, 32, 0.78) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.tv-freeform-widget.bg-solid_black,
.tv-freeform-widget.bg-solid-black {
  background: #080c16 !important;
}

.tv-freeform-widget.bg-gold_tint,
.tv-freeform-widget.bg-gold-tint {
  background: rgba(212, 175, 55, 0.14) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* Border Variations */
.tv-freeform-widget.border-none {
  border: none !important;
}

.tv-freeform-widget.border-gold_subtle,
.tv-freeform-widget.border-gold-subtle {
  border: 1px solid rgba(212, 175, 55, 0.28) !important;
}

.tv-freeform-widget.border-gold_bright,
.tv-freeform-widget.border-gold-bright {
  border: 1.5px solid rgba(212, 175, 55, 0.75) !important;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25) !important;
}

.tv-freeform-widget.border-glass_white,
.tv-freeform-widget.border-glass-white {
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

/* Font Size Modifiers */
.tv-freeform-widget.font-small {
  font-size: 0.85em;
}

.tv-freeform-widget.font-medium {
  font-size: 1em;
}

.tv-freeform-widget.font-large {
  font-size: 1.25em;
}

.tv-freeform-widget.font-xlarge {
  font-size: 1.5em;
}

/* ================= 10-FOOT TV RESOLUTION ADAPTIVE ENGINE ================= */
/* HD Ready / 720p TV Screens (e.g. 1280x720, 1366x768) */
@media (max-width: 1440px) or (max-height: 800px) {
  :root {
    font-size: 13.5px;
  }
  .welcome-top-bar {
    transform: scale(0.92);
    transform-origin: top center;
  }
  .welcome-bottom-section {
    transform: scale(0.92);
    transform-origin: bottom center;
  }
  .luxury-tile-card {
    height: 100px;
    padding: 8px 6px;
  }
  .tile-icon-svg {
    width: 38px;
    height: 38px;
    padding: 6px;
    margin-bottom: 4px;
  }
  .tile-title {
    font-size: 11.5px;
  }
  .left-smart-card {
    width: 250px;
    padding: 12px 14px;
    gap: 10px;
  }
  .smart-card-icon-box {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .center-quote-text {
    font-size: 16px;
  }
  .channel-guide-main {
    gap: 16px;
  }
  .preview-video-container {
    height: 155px;
  }
  .guide-channel-card {
    padding: 8px 12px;
  }
  .ch-card-number {
    font-size: 18px;
  }
  .ch-card-name {
    font-size: 14px;
  }
}

/* Native 4K UHD TV Screens (e.g. 3840x2160) */
@media (min-width: 2500px) or (min-height: 1400px) {
  :root {
    font-size: 24px;
  }
  .welcome-top-bar {
    transform: scale(1.35);
    transform-origin: top center;
  }
  .welcome-bottom-section {
    transform: scale(1.35);
    transform-origin: bottom center;
  }
  .luxury-tile-card {
    height: 160px;
  }
  .tile-icon-svg {
    width: 68px;
    height: 68px;
    padding: 12px;
  }
  .tile-title {
    font-size: 18px;
  }
  .left-smart-card {
    width: 420px;
    padding: 24px 28px;
  }
  .channel-guide-main {
    gap: 40px;
  }
  .preview-video-container {
    height: 320px;
  }
}

