/* ==========================================================================
   ADARTS SAMSUNG TV PORTAL — VISIBLE TV DASHBOARD LAYOUT
   Optimized for 1080p / 4K Smart TVs with High-Contrast Remote Focus
   ========================================================================== */

:root {
  --bg-primary: #07070b;
  --bg-glass: rgba(14, 14, 24, 0.82);
  --bg-glass-card: rgba(22, 22, 36, 0.85);
  --bg-glass-hover: rgba(45, 45, 72, 0.95);
  
  --accent-neon: #ff1a53;
  --accent-neon-glow: rgba(255, 26, 83, 0.55);
  --accent-gold: #f4a261;
  --accent-cyan: #00f0ff;
  
  --text-main: #ffffff;
  --text-muted: #a6a6c5;
  --text-dim: #72728e;
  
  --border-glass: rgba(255, 255, 255, 0.14);
  --border-focus: #ff1a53;
  
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 35px var(--accent-neon-glow);
  
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-title: 'Playfair Display', Georgia, serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body.tv-dashboard {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  user-select: none;
  cursor: default;
  position: relative;
}

/* ==========================================================================
   BACKGROUND PHOTO LAYER
   ========================================================================== */
.media-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #000;
  overflow: hidden;
}

.bg-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/romeos_background.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: brightness(0.65) contrast(1.05);
  animation: photo-subtle-pan 45s infinite alternate ease-in-out;
}

@keyframes photo-subtle-pan {
  0% { transform: scale(1.02) translate(0, 0); }
  50% { transform: scale(1.05) translate(-1%, -1%); }
  100% { transform: scale(1.03) translate(1%, 0.5%); }
}

.video-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(7, 7, 11, 0.92) 0%,
    rgba(7, 7, 11, 0.45) 35%,
    rgba(7, 7, 11, 0.65) 60%,
    rgba(7, 7, 11, 0.96) 100%
  );
  pointer-events: none;
}

/* ==========================================================================
   PORTAL MAIN LAYOUT (FITS EXACTLY 1080P SCREEN)
   ========================================================================== */
.portal-layout {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 30px 50px 25px 50px;
  gap: 20px;
}

.portal-layout.hidden {
  display: none !important;
}

/* 1. TOP HEADER */
.top-bar {
  height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.top-left-info {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hotel-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 120px; /* breathing room on both sides of the centred logo */
}

.romeos-logo {
  height: 70px;
  width: auto;
  max-width: 420px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 20px rgba(255, 26, 83, 0.4));
}

.concept-partner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.partner-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent-gold);
}

.concept-logo {
  height: 34px;
  width: auto;
  filter: brightness(1.2) drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

.top-right-info {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.weather-pill, .clock-pill {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: 40px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.weather-icon {
  font-size: 20px;
}

.weather-temp {
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}

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

.live-clock {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
}

/* 2. WELCOME & RADIO ROW */
.welcome-radio-row {
  height: 86px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.guest-card {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  min-width: 360px;
}

.guest-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-neon) 0%, #8338ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 6px 16px var(--accent-neon-glow);
}

.guest-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.guest-greeting {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  font-weight: 700;
}

.guest-name {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
}

.guest-room {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-gold);
}

/* RADIO STATUS CARD */
.radio-status-card {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-lg);
  flex: 1;
  max-width: 520px;
}

.equalizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
  width: 30px;
}

.equalizer-bars .bar {
  width: 4px;
  background: var(--accent-neon);
  border-radius: 2px;
  animation: equalize 1.2s infinite ease-in-out;
}

.equalizer-bars .bar:nth-child(1) { height: 12px; animation-delay: 0.1s; }
.equalizer-bars .bar:nth-child(2) { height: 24px; animation-delay: 0.3s; }
.equalizer-bars .bar:nth-child(3) { height: 16px; animation-delay: 0.15s; }
.equalizer-bars .bar:nth-child(4) { height: 28px; animation-delay: 0.4s; }
.equalizer-bars .bar:nth-child(5) { height: 14px; animation-delay: 0.25s; }

body.audio-muted .equalizer-bars .bar {
  animation: none;
  height: 4px;
  background: var(--text-dim);
}

@keyframes equalize {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

.radio-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.radio-header-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 10px #00ff88;
  animation: pulse-dot 1.5s infinite ease-in-out;
}

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

.radio-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent-neon);
}

.station-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

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

.audio-btn-pill {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.audio-btn-pill:focus, .audio-btn-pill.tv-focused {
  border-color: #fff;
  background: var(--accent-neon);
  box-shadow: 0 0 20px var(--accent-neon-glow);
  transform: scale(1.15);
}

/* REMOTE HINT */
.remote-hint-card {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
}

.hint-keys {
  display: flex;
  gap: 5px;
}

.key-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.key-pill.key-ok {
  background: var(--accent-neon);
  border-color: transparent;
  box-shadow: 0 4px 12px var(--accent-neon-glow);
}

.hint-text {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 500;
}

/* ==========================================================================
   3. MAIN DASHBOARD: 4 VISIBLE MENU TABS
   ========================================================================== */
.dashboard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.categories-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  height: 105px;
}

.nav-tab {
  background: var(--bg-glass-card);
  border: 2px solid var(--border-glass);
  border-radius: 20px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  cursor: pointer;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.nav-tab .tab-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.nav-tab .tab-label {
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.nav-tab .tab-desc {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-tab.active {
  border-color: rgba(255, 26, 83, 0.5);
  background: rgba(255, 26, 83, 0.16);
}

.nav-tab.active .tab-label {
  color: #fff;
}

/* FOCUS STATE ON MENU TABS (HIGH VISIBILITY FOR TV REMOTE) */
.nav-tab:focus, .nav-tab.tv-focused {
  background: var(--accent-neon) !important;
  border-color: #fff !important;
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 0 0 4px #fff, 0 16px 40px var(--accent-neon-glow);
}

.nav-tab:focus .tab-desc, .nav-tab.tv-focused .tab-desc {
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   4. ACTIVE CONTENT DISPLAY AREA
   ========================================================================== */
.content-display-area {
  flex: 1;
  background: var(--bg-glass);
  backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass);
  border-radius: 26px;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.display-panel {
  display: none;
  height: 100%;
  flex-direction: column;
  animation: fadeIn 0.35s ease forwards;
}

.display-panel.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   VIDEOHUB LIVE FRAME (mirrors what the Android TV screens are playing)
   ========================================================================== */
.live-layout {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 28px;
}

.vh-frame {
  position: relative;
  width: 1067px;   /* 16:9 ratio */
  height: 600px;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 26, 83, 0.35), 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 40px rgba(255, 26, 83, 0.18);
  flex-shrink: 0;
  cursor: pointer;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.vh-frame:focus, .vh-frame.tv-focused {
  border-color: #fff;
  transform: scale(1.02);
  box-shadow: 0 0 0 4px var(--accent-neon), 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 50px var(--accent-neon-glow);
}

.vh-media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
  transition: opacity 0.6s ease;
}

.vh-image {
  padding: 0;
}

.vh-image.full-bleed {
  padding: 0;
}

.vh-media.hidden {
  opacity: 0;
  pointer-events: none;
}

.vh-live-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  backdrop-filter: blur(10px);
}

.vh-expand-pill {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(14, 14, 24, 0.85);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(15px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.vh-info {
  flex: 1;
  height: 600px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  justify-content: center;
}

.vh-info > * + * { margin-top: 14px; }

.vh-action-btn {
  margin-top: 20px;
  align-self: flex-start;
  padding: 12px 24px;
  border-radius: 16px;
  background: var(--bg-glass-card);
  border: 2px solid var(--border-glass);
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.22s ease;
}

.vh-action-btn:focus, .vh-action-btn.tv-focused, .vh-action-btn:hover {
  border-color: #fff;
  background: var(--accent-neon);
  box-shadow: 0 0 0 3px #fff, 0 8px 24px var(--accent-neon-glow);
  transform: translateY(-2px);
}

.vh-info-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent-gold);
}

.vh-info h3 {
  font-family: var(--font-title);
  font-size: 30px;
  color: #fff;
  line-height: 1.15;
}

.vh-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.4;
}

.vh-meta {
  display: flex;
  flex-direction: column;
}

.vh-meta div {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
}

.vh-meta span, .vh-device span {
  font-size: 13px;
  color: var(--text-dim);
}

.vh-meta strong {
  font-size: 14px;
  color: #fff;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vh-device {
  margin-top: auto !important;
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.vh-device strong {
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--accent-cyan);
}

.vh-state {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-gold);
}

.vh-state.ok { color: #3ddc84; }
.vh-state.err { color: var(--accent-neon); }

.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.panel-header-row h3 {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.panel-header-row p {
  font-size: 14px;
  color: var(--text-muted);
}

.panel-header-row strong {
  color: var(--accent-neon);
}

.panel-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent-gold);
  background: rgba(244, 162, 97, 0.12);
  border: 1px solid rgba(244, 162, 97, 0.3);
  border-radius: 8px;
  padding: 5px 14px;
}

/* CARDS ROW (ROOM SERVICE, EVENTS, SPOTLIGHTS) */
.cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  flex: 1;
  align-items: stretch;
}

.item-card {
  background: var(--bg-glass-card);
  border: 2px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  outline: none;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.item-card .item-img {
  width: 100%;
  height: 190px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.item-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-neon);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.item-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.item-info h4 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.item-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent-gold);
}

.item-info p {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}

/* FOCUS STATE ON ITEM CARDS */
.item-card:focus, .item-card.tv-focused {
  border-color: #fff;
  background: var(--bg-glass-hover);
  transform: scale(1.05) translateY(-6px);
  box-shadow: 0 0 0 4px var(--border-focus), 0 16px 35px rgba(0, 0, 0, 0.8), 0 0 35px var(--accent-neon-glow);
}

/* ==========================================================================
   CONCEPT HOTEL GROUP TILES (HOTELS ROW)
   ========================================================================== */
.hotels-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  flex: 1;
}

.hotel-tile {
  background: var(--bg-glass-card);
  border: 2px solid var(--border-glass);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  outline: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.hotel-logo-wrap {
  width: 70px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 6px;
  flex-shrink: 0;
}

.hotel-logo-wrap img {
  max-height: 38px;
  max-width: 90%;
  object-fit: contain;
}

.hotel-desc {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  overflow: hidden;
}

.hotel-desc h4 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.hotel-genre {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hotel-tune-pill {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 12px;
  background: var(--accent-neon);
  color: #fff;
  align-self: flex-start;
  margin-top: 2px;
}

.hotel-tune-pill.pill-idle {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
}

.hotel-tile.active {
  border-color: rgba(255, 26, 83, 0.5);
  background: rgba(255, 26, 83, 0.12);
}

/* FOCUS STATE ON HOTEL TILES */
.hotel-tile:focus, .hotel-tile.tv-focused {
  border-color: #fff;
  background: var(--bg-glass-hover);
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 0 0 4px var(--border-focus), 0 14px 30px rgba(0, 0, 0, 0.8), 0 0 30px var(--accent-neon-glow);
}

/* ==========================================================================
   DEBUG PILL & AUTOPLAY BANNER
   ========================================================================== */
.tv-debug-pill {
  position: absolute;
  bottom: 10px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 11px;
  color: var(--text-dim);
  z-index: 999;
  display: flex;
  gap: 8px;
  pointer-events: none;
}

.tv-debug-pill strong {
  color: var(--accent-neon);
}

.audio-unlock-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  cursor: pointer;
  background: rgba(12, 12, 20, 0.95);
  backdrop-filter: blur(35px);
  border: 2px solid var(--accent-neon);
  border-radius: 30px;
  padding: 32px 50px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 0 70px rgba(255, 26, 83, 0.7);
}

.audio-unlock-banner.hidden {
  display: none !important;
}

.unlock-icon {
  font-size: 50px;
}

.unlock-text strong {
  font-size: 24px;
  color: #fff;
}

.unlock-text span {
  font-size: 17px;
  color: var(--text-muted);
}

/* ==========================================================================
   HERO 80% SCREEN CONTAINER VIEW (STARTUP MODE)
   ========================================================================== */
.hero-startup-view {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2.5vh 0;
  background: #07070b;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s ease, visibility 0.35s;
}

.hero-startup-view.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.97);
}

.hero-top-bar {
  width: 80vw;
  max-width: 80vw;
  height: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.hero-romeos-logo {
  height: 50px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 16px rgba(255, 26, 83, 0.4));
}

.hero-top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

/* 80% SCREEN CONTAINER: PRECISELY 80% WIDTH & PROPORTIONED HEIGHT */
.hero-frame-80 {
  width: 80vw;
  height: calc(100vh - 150px);
  max-height: calc(80vw * 0.5625);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: #000;
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 2px rgba(255, 26, 83, 0.45), 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 60px rgba(255, 26, 83, 0.25);
  outline: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s;
}

.hero-frame-80:focus, .hero-frame-80.tv-focused {
  border-color: #fff;
  transform: scale(1.008);
  box-shadow: 0 0 0 4px var(--accent-neon), 0 35px 90px rgba(0, 0, 0, 0.95), 0 0 70px var(--accent-neon-glow);
}

.hero-scheduled-image, .hero-scheduled-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.5s ease;
}

.hero-scheduled-image.hidden, .hero-scheduled-video.hidden {
  display: none !important;
}

/* ==========================================================================
   VIDEO DOWNLOAD IN MEMORY PROGRESS OVERLAY
   ========================================================================== */
.video-download-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  transition: opacity 0.3s ease, visibility 0.3s;
}

.video-download-overlay.hidden {
  display: none !important;
}

.download-card {
  width: 580px;
  background: rgba(14, 14, 24, 0.94);
  border: 2px solid var(--accent-neon);
  border-radius: 24px;
  padding: 28px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 26, 83, 0.4);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-header-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.download-pulse-icon {
  font-size: 36px;
  animation: download-pulse 1.5s infinite ease-in-out;
}

@keyframes download-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.download-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.download-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent-gold);
}

.download-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 440px;
}

.download-progress-track {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.download-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff1a53 0%, #f4a261 100%);
  border-radius: 10px;
  transition: width 0.25s linear;
  box-shadow: 0 0 16px rgba(255, 26, 83, 0.8);
}

.download-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.download-size {
  color: var(--text-muted);
}

.download-percent {
  color: var(--accent-gold);
  font-size: 16px;
  font-weight: 800;
}

.hero-frame-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.55) 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 28px;
}

.hero-live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  backdrop-filter: blur(12px);
}

.hero-radio-pill {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-radius: 30px;
  background: rgba(14, 14, 24, 0.85);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.hero-bottom-bar {
  width: 80vw;
  max-width: 80vw;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-hint-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 26px;
  border-radius: 24px;
  background: var(--bg-glass-card);
  border: 2px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.hero-hint-pill:focus, .hero-hint-pill.tv-focused, .hero-hint-pill:hover {
  border-color: #fff;
  background: var(--bg-glass-hover);
  transform: scale(1.04);
  box-shadow: 0 0 0 3px var(--accent-neon), 0 10px 25px rgba(0,0,0,0.8);
}

.hero-hint-label {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 500;
}

.hero-hint-label strong {
  color: var(--accent-neon);
}
