:root {
  --bg-1: #040505;
  --bg-2: #09100d;
  --text-main: #fbfdfc;
  --text-muted: #dfe8e3;
  --accent: #8df266;
  --ok: #8df266;
  --warn: #facc15;
  --card: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, #15352b 0%, #0a1612 24%, var(--bg-1) 48%, #000000 100%);
  color: var(--text-main);
  font-family: "Aptos", "Segoe UI", Tahoma, Arial, sans-serif;
}

#tv-root {
  width: 100vw;
  height: 100vh;
  padding: 2.5vh 3vw 1.5vh;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1.5vh;
}

.slide {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 1vh 1.2vw;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

.slide.is-transitioning {
  opacity: 0.14;
  transform: translateY(8px);
}

#footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 2.1vh;
  color: var(--text-muted);
}

.big-clock {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
}

.big-clock .time {
  font-size: 15vh;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--text-main);
}

.big-clock .date {
  margin-top: 1.5vh;
  font-size: 5vh;
  color: #9af57f;
  font-weight: 700;
}

.clock-layout {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(220px, 19vw) 1fr minmax(220px, 19vw);
  gap: 2vw;
  align-items: center;
}

.clock-side {
  background: rgba(5, 8, 7, 0.82);
  border: 1px solid rgba(141, 242, 102, 0.16);
  border-radius: 12px;
  padding: 1.2vh 0.9vw;
}

.weather-side-title {
  font-size: 1.95vh;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #b8f3d8;
  margin-bottom: .8vh;
}

.sun-item {
  font-size: 2.7vh;
  line-height: 1.35;
  color: #f0fdf4;
}

.weather-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: .7vh;
}

.weather-card {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: .8vh .7vw;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: .5vw;
}

.weather-day {
  font-size: 2.05vh;
  font-weight: 700;
  color: #dcfce7;
  min-width: 8.6vh;
}

.weather-icon {
  font-size: 2.8vh;
  line-height: 1;
}

.weather-temp {
  font-size: 2.2vh;
  color: #f0fdf4;
  text-align: right;
  font-weight: 700;
}

.weather-empty {
  font-size: 2vh;
  color: var(--text-muted);
}

.analog-clock-wrap {
  gap: 2vh;
}

.clock-face {
  width: min(58vh, 78vw);
  height: min(58vh, 78vw);
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 36% 34%, rgba(214,255,237,0.24) 0%, rgba(173,255,224,0.14) 20%, rgba(16,52,44,0.68) 66%, rgba(4,18,14,0.96) 100%);
  border: 0.7vh solid rgba(217,246,231,0.35);
  box-shadow:
    inset 0 0 0 0.45vh rgba(255,255,255,0.08),
    inset 0 -1.6vh 2.8vh rgba(3,17,13,0.45),
    0 2.2vh 6vh rgba(0,0,0,0.42);
}

.clock-face::before,
.clock-face::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.clock-face::before {
  inset: 2.2%;
  border: 0.2vh solid rgba(232,255,245,0.24);
  box-shadow: inset 0 0 1.8vh rgba(208,255,230,0.12);
}

.clock-face::after {
  inset: 0;
  background: radial-gradient(circle at 28% 24%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.08) 16%, rgba(255,255,255,0) 38%);
}

.clock-ticks {
  position: absolute;
  inset: 0;
}

.tick {
  position: absolute;
  width: 0.25vh;
  height: 2.5vh;
  background: rgba(236,255,246,0.5);
  transform-origin: 50% 50%;
  border-radius: 999px;
  box-shadow: 0 0 .25vh rgba(206,255,233,0.22);
}

.tick.major {
  width: 0.5vh;
  height: 4.7vh;
  background: rgba(244,255,250,0.95);
  box-shadow: 0 0 .45vh rgba(230,255,244,0.4);
}

.clock-numbers {
  position: absolute;
  inset: 0;
}

.clock-number {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 3.35vh;
  font-weight: 800;
  color: rgba(243,255,249,0.95);
  text-shadow: 0 .15vh .4vh rgba(0,0,0,0.48), 0 0 .5vh rgba(179,247,221,0.22);
  line-height: 1;
}

.hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: 50% 100%;
  border-radius: 999px;
  box-shadow: 0 0.25vh 0.8vh rgba(0,0,0,0.42);
}

.hour-hand {
  width: 1.02vh;
  height: 25%;
  background: linear-gradient(to top, #f1f5f9 0%, #ffffff 100%);
}

.minute-hand {
  width: 0.72vh;
  height: 35%;
  background: linear-gradient(to top, #d1d5db 0%, #f3f4f6 100%);
}

.second-hand {
  width: 0.35vh;
  height: 40%;
  background: #62f2c1;
  box-shadow: 0 0 .8vh rgba(98,242,193,0.55);
}

.clock-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.35vh;
  height: 2.35vh;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b8ffe7 0%, #62f2c1 42%, #1aa97f 100%);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 .35vh rgba(98,242,193,.22), 0 0 1.2vh rgba(98,242,193,.35);
}

.analog-date {
  font-size: 3.8vh !important;
  margin-top: .2vh !important;
  text-transform: capitalize;
  letter-spacing: .01em;
}

.emergency {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 2vh;
}

.emergency .warning {
  font-size: 7vh;
  color: #ffb1b1;
  font-weight: 800;
}



.ann-image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1vh;
  height: 100%;
}

.ann-image-grid.one-item {
  grid-template-columns: 1fr;
}

.ann-image-grid.two-items {
  grid-template-columns: 1fr 1fr;
}

.ann-image-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: .6vh;
  padding: 0;
  overflow: hidden;
}

.ann-image-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(3, 5, 5, 0.9);
  min-height: 0;
}

.ann-image-meta {
  display: flex;
  flex-direction: column;
  gap: .35vh;
  padding: .2vh .2vw .3vh;
  background: rgba(4, 6, 6, 0.62);
  border-radius: 8px;
}

.ann-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border-left: 0;
}

.ann-text-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.2vh 1vw;
}

.ann-title {
  font-size: 4.8vh;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .55vh;
  color: #f3ffd8;
}

.ann-title-compact {
  margin-bottom: .2vh;
  line-height: 1.06;
}

.ann-body {
  font-size: 4.2vh;
  line-height: 1.24;
  white-space: pre-line;
  overflow-wrap: anywhere;
  color: #f7fbf8;
}

.ann-image-grid.one-item .ann-text-card .ann-title {
  font-size: clamp(4.1vh, 5vh, 6.2vh);
  margin-bottom: 1.3vh;
  max-width: 94%;
}

.ann-image-grid.one-item .ann-text-card .ann-body {
  font-size: clamp(2.9vh, 3.8vh, 4.6vh);
  line-height: 1.3;
  max-width: 94%;
}

.quote-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 1.2vh;
  padding: 1vh 1vw;
}

.quote-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 1vh 1vw;
}

.quote-text {
  font-size: 8vh;
  max-width: 94%;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fbfffd;
}

.quote-author {
  font-size: 3.6vh;
  color: var(--text-muted);
  letter-spacing: .02em;
}

.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1vh;
  height: 100%;
}

.works-grid.two-items {
  grid-template-columns: 1fr 1fr;
}

.work-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: .6vh;
  padding: 0;
  overflow: hidden;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
  background: transparent;
  min-height: 0;
  transform: scale(1.08);
  transform-origin: center center;
}

.work-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: .35vh;
  padding: .15vh 0 .25vh;
  background: transparent;
  border-radius: 0;
}

.work-title {
  font-size: 3.15vh;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #f0fff6;
}

.work-desc,
.work-author {
  font-size: 2.15vh;
  color: var(--text-muted);
  line-height: 1.24;
}


@media (max-width: 1200px) {
  .clock-layout {
    grid-template-columns: 1fr;
    gap: 1.2vh;
  }

  .big-clock.analog-clock-wrap {
    order: 1;
  }

  .clock-side.left { order: 2; }
  .clock-side.right { order: 3; }
}

.clock-brand {
  position: absolute;
  top: 0.6vh;
  left: 0.4vw;
  width: clamp(84px, 9vw, 140px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  pointer-events: none;
  z-index: 3;
}

.clock-brand-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1.2vh 2.2vh rgba(0, 0, 0, 0.28));
}

@media (max-width: 1100px) {
  .clock-brand {
    width: clamp(72px, 11vw, 110px);
    top: 0.3vh;
    left: 0.2vw;
  }
}

.video-slide {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1vh;
}

.video-caption {
  font-size: 2.3vh;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: .03em;
}

.tv-local-video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(8, 10, 10, 0.76);
  box-shadow: 0 1.2vh 3vh rgba(0, 0, 0, 0.38);
}
