 :root {
  --bg: #040506;
  --panel: rgba(18, 21, 29, 0.44);
  --panel-strong: rgba(10, 12, 18, 0.58);
  --panel-border: rgba(255, 255, 255, 0.10);
  --text: #f7f8fb;
  --muted: #d0d5e1;
  --soft: #9ea8bb;
  --gold: #d7b56d;
  --gold-soft: #f0d79f;
  --white-glow: rgba(255,255,255,0.22);
  --ticker-height: 86px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(215,181,109,0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(255,255,255,0.06), transparent 18%),
    #050608;
}

.hero-media {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--ticker-height));
  display: flex;
  align-items: center;       /* vertical */
  justify-content: flex-end; /* Right */
}

.media-stage {
  position: relative;
  width: 100%; /*Possition */
  height: 100%; /*Possition */
  margin-right: 2%;
	
	padding: 6px;
	
	border-radius: 32px;
  overflow: hidden;
	isolation: isolate;
	
  display: flex;
  align-items: center;     /* vertical */
  justify-content: center; /* horizontal */

	box-shadow: 0 20px 60px rgba(0,0,0,0.6);
 	
  background:
    radial-gradient(circle at 20% 25%, rgba(215,181,109,0.12), transparent 24%),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.10), transparent 16%),
    linear-gradient(135deg, #060709 0%, #0a0c11 50%, #040506 100%);
}

.media-item {
  position: absolute;

  max-width: 100%;
  max-height: 100%;

  width: auto;
  height: auto;

  object-fit: contain;

  opacity: 1;
  transition: opacity 1200ms ease;
}

.media-item.hidden {
  opacity: 0;
  pointer-events: none;
}

.media-stage {
  background:
    radial-gradient(circle at 20% 25%, rgba(215,181,109,0.12), transparent 24%),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.10), transparent 16%),
    linear-gradient(135deg, #060709 0%, #0a0c11 50%, #040506 100%);
}

.media-item {
  object-fit: cover;
  opacity: 1;
  transition: opacity 1200ms ease;
  transform: scale(1.01);
}

.media-item.hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-overlay {
	display: none !important;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2,2,4,0.45) 0%, rgba(2,2,4,0.10) 30%, rgba(2,2,4,0.76) 100%),
    linear-gradient(90deg, rgba(2,2,4,0.56) 0%, rgba(2,2,4,0.16) 58%, rgba(2,2,4,0.50) 100%);
  pointer-events: none;
}

.edge-glow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 320px;
  pointer-events: none;
  z-index: 1;
}

.edge-glow-left {
  left: -100px;
  background: radial-gradient(circle at left center, rgba(215,181,109,0.18), transparent 62%);
}

.edge-glow-right {
  right: -100px;
  background: radial-gradient(circle at right center, rgba(255,255,255,0.12), transparent 58%);
}

.glass-panel {
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03)),
    var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding: 34px 42px 0;
}

.brand-block {
  max-width: 60%;
  padding: 24px 28px 26px;
  border-radius: var(--radius-xl);
}

.brand-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #140f06;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 0 24px rgba(215,181,109,0.20);
}

#screen-title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.04em;
}

#screen-subtitle {
  margin: 14px 0 0;
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.32rem);
  line-height: 1.52;
}

.weather-card {
   transform: scale(0.75); 
	width: min(390px, 34vw);
  min-width: 340px;
  padding: 24px 26px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.weather-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(215,181,109,0.08), transparent 40%);
  pointer-events: none;
}

.weather-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.weather-city {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.weather-date {
  margin-top: 8px;
  color: var(--soft);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.weather-time {
  margin-top: 4px;
  color: #eef2fa;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.weather-body {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.weather-icon-wrap {
  min-width: 122px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.weather-emoji {
  font-size: 6.6rem;
  line-height: 1;
  filter: drop-shadow(0 16px 30px rgba(255,255,255,0.14));
  transform-origin: center;
}

.weather-main {
  display: flex;
  flex-direction: column;
}

.weather-temp {
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.weather-desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
}

.weather-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--soft);
  font-size: 0.92rem;
}

.weather-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.weather-loading,
.weather-error {
  color: var(--muted);
  font-size: 1rem;
}

.content-zone {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 36px;
  z-index: 3;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.content-card {
  width: min(450px, 50vw);
  padding: 30px 32px;
  border-radius: var(--radius-xl);
}

.content-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(215,181,109,0.12);
  border: 1px solid rgba(215,181,109,0.18);
  color: var(--gold-soft);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#featured-title {
  margin: 0;
  font-size: clamp(1.9rem, 2.8vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

#featured-text {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.65;
  max-width: 90%;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.cta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-weight: 600;
}

.ticker-shell {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  height: var(--ticker-height);
  background: rgba(7, 8, 11, 0.96);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -16px 40px rgba(0,0,0,0.25);
}

.ticker-label {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #120f09;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

.ticker-window {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.ticker-track {
  position: absolute;
  left: 100%;
  display: inline-flex;
  align-items: center;
  gap: 56px;
  height: 100%;
  white-space: nowrap;
  animation: ticker-scroll 34s linear infinite;
  will-change: transform;
  padding-right: 56px;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 600;
}

.ticker-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 0 5px rgba(240,215,159,0.12);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 100vw)); }
}

@media (max-width: 1100px) {
  .top-bar { padding: 26px 24px 0; }
  .content-zone { left: 24px; right: 24px; bottom: 24px; }
  .brand-block { max-width: 100%; }
}

@media (max-width: 860px) {
  .top-bar { flex-direction: column; align-items: stretch; }
  .weather-card { width: 100%; min-width: auto; }
  .content-card { width: 100%; }
}


.weather-icon-sunny {
  animation: weatherPulseSun 3.1s ease-in-out infinite;
}

.weather-icon-cloudy {
  animation: weatherFloatCloud 4.4s ease-in-out infinite;
}

.weather-icon-rainy {
  animation: weatherTiltRain 2.6s ease-in-out infinite;
}

.weather-icon-snowy {
  animation: weatherSnowPulse 3.4s ease-in-out infinite;
}

.weather-icon-stormy {
  animation: weatherFlashStorm 2.1s ease-in-out infinite;
}

.weather-icon-foggy {
  animation: weatherDriftFog 4.8s ease-in-out infinite;
}

@keyframes weatherPulseSun {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 16px 28px rgba(255, 196, 82, 0.22));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 18px 38px rgba(255, 196, 82, 0.36));
  }
}

@keyframes weatherFloatCloud {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes weatherTiltRain {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(5px); }
}

@keyframes weatherSnowPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.07); }
}

@keyframes weatherFlashStorm {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 16px 28px rgba(255,255,255,0.12));
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 18px 40px rgba(255,255,255,0.26));
    opacity: 0.82;
  }
}

@keyframes weatherDriftFog {
  0%, 100% { transform: translateX(0); opacity: 0.96; }
  50% { transform: translateX(6px); opacity: 0.82; }
}


.ui-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.top-bar,
.content-card {
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
