:root {
  --ink: #07142f;
  --muted: #5b6780;
  --line: #d9e1ed;
  --soft-line: #edf1f7;
  --blue: #075bd8;
  --blue-dark: #061f45;
  --blue-soft: #eaf3ff;
  --paper: #ffffff;
  --wash: #f6f8fb;
  --green: #16863d;
  --amber: #c68400;
  --purple: #6240a8;
  --rose: #c23d55;
  --sky: #11709b;
  --shadow: 0 18px 55px rgba(8, 20, 48, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--wash);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
  min-width: 320px;
}

button,
select,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.topbar,
.area-nav,
main,
.site-footer {
  max-width: 1380px;
  margin: 0 auto;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 76px;
  padding: 0 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.clock-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 4px solid var(--blue-dark);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 58%, rgba(7, 91, 216, 0.16) 59%),
    #fff;
  box-shadow: inset 0 0 0 1px #c4d2e8;
  position: relative;
}

.clock-mark::before,
.clock-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  background: var(--blue-dark);
  border-radius: 3px;
  transform-origin: bottom center;
}

.clock-mark::before {
  height: 12px;
  transform: translate(-50%, -100%) rotate(0deg);
}

.clock-mark::after {
  height: 9px;
  transform: translate(-50%, -100%) rotate(88deg);
}

.clock-mark span {
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  z-index: 1;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2.4vw, 2.5rem);
  font-size: 0.94rem;
  font-weight: 600;
}

.main-nav a,
.area-nav a {
  color: #14213d;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.icon-text,
.menu-button,
.login,
.play-button,
.duration-tabs button,
.side-card button,
.time-card {
  border: 0;
  cursor: pointer;
}

.icon-text {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  background: transparent;
  padding: 0.7rem;
}

.login {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.72rem 1.5rem;
  font-weight: 700;
}

.menu-button {
  display: none;
  background: transparent;
  color: var(--ink);
  padding: 0.55rem;
}

.area-nav {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 2rem;
  border-top: 1px solid var(--soft-line);
}

.area-nav::-webkit-scrollbar {
  display: none;
}

.area-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 50px;
  padding: 0 1rem;
  border-bottom: 4px solid transparent;
  font-weight: 650;
  white-space: nowrap;
}

.area-nav a.active {
  color: var(--blue);
  border-color: var(--blue);
}

main {
  padding: 1.5rem 2rem 7rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(430px, 1fr) minmax(260px, 290px);
  gap: 2rem;
  align-items: start;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}

.hero-image {
  min-height: 260px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(7, 20, 47, 0.58)),
    linear-gradient(135deg, #90b9d9 0%, #dbe9f4 35%, #9eb482 36%, #506b39 60%, #9a382f 61%, #d78451 75%, #283d62 76%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.4) 8% 8.4%, transparent 8.4% 16%),
    linear-gradient(180deg, #b65539 0 31%, #7b2e2b 32% 50%, #315b72 51% 52%, #1a4a6f 53%);
  clip-path: polygon(0 70%, 12% 47%, 25% 56%, 39% 29%, 52% 55%, 68% 39%, 81% 57%, 100% 42%, 100% 100%, 0 100%);
  opacity: 0.92;
}

.hero-image::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background:
    radial-gradient(ellipse at 30% 35%, rgba(255, 255, 255, 0.85) 0 2%, transparent 3%),
    linear-gradient(180deg, #1d6b7d 0, #244e71 48%, #163b5b 100%);
}

.photo-caption {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  z-index: 2;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 0.35rem;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
.hero-copy h2,
.news-section > h2,
.section-heading h2,
.time-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.06;
}

h1 {
  margin-bottom: 0.6rem;
  font-size: clamp(3.2rem, 6.2vw, 5.5rem);
  letter-spacing: 0;
}

.date-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  color: #273650;
  font-size: 1.03rem;
}

.date-line span {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}

.hero-copy h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
}

.listen-row {
  display: grid;
  grid-template-columns: auto minmax(300px, 1fr);
  gap: clamp(1rem, 3vw, 5rem);
  align-items: center;
  margin-top: 1rem;
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 50px;
  padding: 0 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, #0b69f0, #0048bd);
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(7, 91, 216, 0.23);
}

.play-button svg {
  fill: currentColor;
  stroke: none;
}

.duration-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-width: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.duration-tabs button {
  min-height: 42px;
  color: var(--ink);
  background: #fff;
  border-left: 1px solid var(--line);
  font-weight: 700;
}

.duration-tabs button:first-child {
  border-left: 0;
}

.duration-tabs .selected {
  color: #fff;
  background: var(--blue-dark);
}

.progress-ring {
  --size: 92px;
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  margin-top: 0.8rem;
  position: relative;
}

.progress-ring i,
.mini-ring::before {
  position: absolute;
  display: block;
  content: "";
  border-radius: 999px;
}

.progress-ring i {
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #dce7f6;
  transform: rotate(calc(var(--n) * 30deg)) translateY(-38px);
}

.progress-ring i:nth-child(1) { --n: 0; background: #075bd8; }
.progress-ring i:nth-child(2) { --n: 1; background: #2d7ee7; }
.progress-ring i:nth-child(3) { --n: 2; background: #6aa4ee; }
.progress-ring i:nth-child(4) { --n: 3; background: #a4c8f4; }
.progress-ring i:nth-child(5) { --n: 4; }
.progress-ring i:nth-child(6) { --n: 5; }
.progress-ring i:nth-child(7) { --n: 6; }
.progress-ring i:nth-child(8) { --n: 7; }
.progress-ring i:nth-child(9) { --n: 8; }
.progress-ring i:nth-child(10) { --n: 9; background: #9dc4f2; }
.progress-ring i:nth-child(11) { --n: 10; background: #438be9; }
.progress-ring i:nth-child(12) { --n: 11; background: #075bd8; }

.side-panel {
  display: grid;
  gap: 0.8rem;
}

.side-card,
.mobile-city-card,
.news-card,
.time-section,
.time-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.side-card {
  padding: 1.1rem;
}

.side-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.side-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.side-heading svg {
  color: var(--blue-dark);
  width: 1.45rem;
  height: 1.45rem;
}

select,
input {
  width: 100%;
  min-height: 45px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 0.9rem;
  outline: none;
}

.side-card p,
.mobile-city-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.reminder-card input {
  margin: 0.7rem 0;
}

.reminder-card button {
  width: 100%;
  min-height: 40px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 800;
}

.ranking-card ol {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
}

.ranking-card a {
  color: var(--blue);
}

.mobile-city-card {
  display: none;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 1rem 0 0.7rem;
}

.section-heading h2,
.time-section h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.section-heading a {
  color: var(--blue);
  font-weight: 800;
}

.section-heading a::after {
  content: " ->";
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.news-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  min-height: 132px;
  padding: 0.95rem;
}

.news-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
}

.news-icon.blue { color: #075bd8; background: #eaf3ff; }
.news-icon.green { color: var(--green); background: #e9f7df; }
.news-icon.amber { color: var(--amber); background: #fff2c6; }
.news-icon.purple { color: var(--purple); background: #f0e9ff; }
.news-icon.rose { color: var(--rose); background: #ffe8eb; }
.news-icon.sky { color: var(--sky); background: #e5f6fb; }

.news-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  line-height: 1.25;
}

.news-card p {
  margin-bottom: 0.7rem;
  color: #1d2b45;
  font-size: 0.9rem;
}

.news-card footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.time-section {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 1.2rem;
  align-items: stretch;
  margin-top: 2rem;
  padding: 1.1rem;
}

.time-section p {
  margin-bottom: 0;
  color: var(--muted);
}

.time-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.time-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-areas:
    "ring title"
    "ring text"
    "ring link";
  gap: 0.1rem 1rem;
  min-height: 110px;
  padding: 1rem;
  text-align: left;
}

.time-card.active {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.mini-ring {
  grid-area: ring;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) 0 68%, #dce7f6 68% 100%);
  mask: radial-gradient(circle, transparent 48%, #000 50%);
}

.blue-ring { --ring-color: #075bd8; }
.green-ring { --ring-color: #278d53; }
.violet-ring { --ring-color: #6240a8; }

.time-card strong {
  grid-area: title;
  color: var(--ink);
}

.time-card small {
  grid-area: text;
  color: var(--muted);
  font-size: 0.86rem;
}

.time-card em {
  grid-area: link;
  color: var(--blue);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 800;
  margin-top: 0.3rem;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem 2rem 2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer .brand {
  color: var(--ink);
  font-size: 1.1rem;
}

.site-footer .clock-mark {
  width: 30px;
  height: 30px;
  border-width: 3px;
}

.site-footer p {
  margin: 0;
  font-size: 0.84rem;
}

.bottom-nav {
  display: none;
}

@media (max-width: 1120px) {
  .main-nav,
  .login,
  .icon-text span {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-image,
  .side-panel {
    display: none;
  }

  .mobile-city-card {
    display: grid;
    grid-template-columns: auto minmax(150px, 220px);
    gap: 0.4rem 1rem;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem;
  }

  .mobile-city-card p {
    grid-column: 1 / -1;
  }

  .mobile-city-card .side-heading {
    margin: 0;
  }

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

  .time-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    background: #fff;
    padding-bottom: 76px;
  }

  .site-header {
    position: static;
  }

  .topbar {
    min-height: 86px;
    padding: 0 1.1rem;
    gap: 0.8rem;
  }

  .brand {
    font-size: clamp(1.3rem, 7vw, 1.85rem);
  }

  .clock-mark {
    width: 44px;
    height: 44px;
  }

  .area-nav {
    padding: 0 1rem;
  }

  .area-nav a {
    min-height: 56px;
    padding: 0 1.05rem;
    font-size: 1rem;
  }

  main {
    padding: 1.5rem 1rem 2rem;
  }

  .hero-shell {
    gap: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .title-row {
    grid-template-columns: minmax(0, 1fr) 76px;
  }

  h1 {
    font-size: clamp(2.6rem, 13vw, 3.6rem);
    line-height: 1;
  }

  .progress-ring {
    --size: 74px;
    margin-top: 0.6rem;
  }

  .progress-ring i {
    width: 7px;
    height: 7px;
    transform: rotate(calc(var(--n) * 30deg)) translateY(-30px);
  }

  .date-line {
    flex-wrap: wrap;
    font-size: 1rem;
  }

  .hero-copy h2 {
    font-size: 1.7rem;
  }

  .lead {
    font-size: 1rem;
  }

  .listen-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .play-button {
    justify-self: start;
    min-height: 58px;
    padding: 0 1.25rem;
    font-size: 1.05rem;
  }

  .duration-tabs {
    min-width: 0;
    width: 100%;
  }

  .duration-tabs button {
    min-height: 50px;
    font-size: 1rem;
  }

  .mobile-city-card {
    grid-template-columns: minmax(0, 1fr) minmax(132px, 210px);
    margin-top: 1.35rem;
  }

  .section-heading {
    margin-top: 1.5rem;
  }

  .section-heading h2 {
    font-size: 1.55rem;
  }

  .section-heading a {
    white-space: nowrap;
  }

  .news-grid,
  .time-options {
    grid-template-columns: 1fr;
  }

  .news-card {
    grid-template-columns: 76px 1fr;
    min-height: 132px;
    padding: 0.85rem;
  }

  .news-icon {
    width: 62px;
    height: 62px;
  }

  .news-icon svg {
    width: 2rem;
    height: 2rem;
  }

  .news-card h3 {
    font-size: 1.06rem;
  }

  .news-card p {
    font-size: 0.95rem;
  }

  .time-section,
  .site-footer {
    display: none;
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 76px;
    padding: 0.45rem 0.3rem 0.65rem;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }

  .bottom-nav a {
    display: grid;
    place-items: center;
    gap: 0.15rem;
    color: #17213a;
    font-size: 0.8rem;
    font-weight: 650;
  }

  .bottom-nav a.active {
    color: var(--blue);
  }

  .bottom-nav svg {
    width: 1.55rem;
    height: 1.55rem;
  }
}

@media (max-width: 430px) {
  .topbar {
    min-height: 76px;
  }

  .clock-mark {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: clamp(2.2rem, 12.4vw, 3rem);
  }

  .title-row {
    grid-template-columns: minmax(0, 1fr) 62px;
  }

  .progress-ring {
    --size: 58px;
  }

  .progress-ring i {
    width: 6px;
    height: 6px;
    transform: rotate(calc(var(--n) * 30deg)) translateY(-24px);
  }

  .mobile-city-card {
    grid-template-columns: 1fr;
  }

  .news-card {
    grid-template-columns: 58px 1fr;
  }

  .news-icon {
    width: 50px;
    height: 50px;
  }

  .news-icon svg {
    width: 1.55rem;
    height: 1.55rem;
  }
}
