:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #101113;
  color: #f6f2ea;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: #f6f2ea;
  background:
    radial-gradient(circle at 18% 0%, rgba(39, 111, 191, 0.18), transparent 32%),
    linear-gradient(135deg, #101113 0%, #17191d 48%, #1b211d 100%);
}

.screen {
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(10px, 1.1vw, 18px);
  padding: clamp(14px, 1.8vw, 28px);
  overflow: hidden;
}

.topbar,
.layout {
  width: min(100%, 1840px);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

h1 {
  margin: 0;
  color: #fffaf0;
  font-size: clamp(34px, 3.7vw, 70px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.clock {
  min-width: clamp(160px, 15vw, 260px);
  text-align: right;
}

.clock span {
  display: block;
  color: #fffaf0;
  font-size: clamp(34px, 3.8vw, 72px);
  font-weight: 800;
  line-height: 0.95;
}

.clock small {
  color: #c8c3b8;
  font-size: clamp(14px, 1.1vw, 22px);
}

.layout {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(300px, 48%) minmax(0, 1fr);
  gap: clamp(14px, 1.5vw, 24px);
}

.featured,
.feed-item {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  overflow: hidden;
}

.featured {
  min-height: 0;
  height: 100%;
  width: min(100%, 1180px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(360px, 45%) minmax(0, 1fr);
}

.featured-media {
  position: relative;
  min-height: 0;
  background:
    linear-gradient(135deg, rgba(47, 125, 50, 0.36), rgba(31, 111, 235, 0.28)),
    #202329;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
}

.meta-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(28, 31, 34, 0.82);
  color: #f3eee5;
  font-size: clamp(13px, 0.9vw, 17px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(8px);
}

.meta-part {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.meta-part i {
  flex: 0 0 auto;
  font-size: 0.95em;
  line-height: 1;
}

.featured-body {
  min-height: 0;
  padding: clamp(18px, 1.7vw, 30px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 14px;
  overflow: hidden;
}

.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d7d1c4;
  font-size: clamp(14px, 1vw, 20px);
  font-weight: 750;
}

.featured h2 {
  margin: 0;
  color: #fffaf0;
  font-size: clamp(24px, 1.75vw, 34px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.featured p {
  min-height: 0;
  margin: 0;
  color: #d8d2c6;
  font-size: clamp(17px, 1.08vw, 22px);
  line-height: 1.36;
  display: block;
  overflow: hidden;
}

.feed {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 0.9vw, 16px);
}

.feed-item {
  position: relative;
  min-height: 0;
  padding: clamp(10px, 0.8vw, 15px);
  display: grid;
  grid-template-rows: minmax(92px, 46%) auto auto;
  align-content: start;
  gap: 8px;
}

.feed-item.is-active {
  border-color: rgba(107, 188, 255, 0.85);
  background: rgba(107, 188, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(107, 188, 255, 0.22),
    0 16px 42px rgba(0, 0, 0, 0.28);
  animation: activeCard 420ms ease both;
}

.feed-item.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  height: 4px;
  width: 100%;
  background: #6bbcff;
  transform-origin: left center;
  animation: activeProgress 14s linear both;
}

.feed-media {
  min-height: 0;
  border-radius: 6px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(47, 125, 50, 0.28), rgba(31, 111, 235, 0.22)),
    #111316;
}

.feed-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.feed-item h3 {
  margin: 0;
  color: #6bbcff;
  font-size: clamp(16px, 1vw, 20px);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.feed-item .meta {
  gap: 8px;
  font-size: clamp(11px, 0.72vw, 14px);
}

.placeholder {
  min-height: 100%;
  display: grid;
  place-items: center;
  color: #c8c3b8;
  font-size: clamp(20px, 1.8vw, 34px);
}

.fade-in {
  animation: fadeIn 420ms ease both;
}

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

@keyframes activeCard {
  from {
    transform: translateY(4px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes activeProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .screen {
    min-height: 100svh;
  }

  .topbar {
    align-items: flex-start;
  }

  .layout {
    grid-template-rows: auto auto;
  }

  .featured {
    grid-template-columns: 1fr;
    grid-template-rows: 250px auto;
  }

  .feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
