/* Sense-inspired visual theme: soft glassmorphism, pastel wellness palette. */
:root {
  color-scheme: light;
  --background: #e9e8e8;
  --surface: rgb(255 255 255 / 48%);
  --surface-strong: rgb(255 255 255 / 72%);
  --text: #202027;
  --muted: #72727c;
  --border: rgb(255 255 255 / 76%);
  --accent: #ff7f6f;
  --accent-soft: rgb(255 199 208 / 42%);
  --warning-soft: #ffe1c0;
  --shadow: 0 22px 54px rgb(95 85 110 / 13%), inset 0 1px 0 rgb(255 255 255 / 62%);
}

* {
  border-radius: 28px !important;
}

body {
  background:
    radial-gradient(circle at 20% 100%, rgb(255 154 126 / 50%), transparent 34rem),
    radial-gradient(circle at 72% 100%, rgb(185 154 244 / 46%), transparent 36rem),
    radial-gradient(circle at 88% 8%, rgb(154 223 232 / 28%), transparent 22rem),
    var(--background);
  color: var(--text);
  font-family:
    Inter,
    "SF Pro Display",
    "Helvetica Neue",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

h1 {
  font-size: clamp(1.85rem, 4vw, 3.35rem);
  letter-spacing: -0.055em;
  line-height: 0.96;
}

h2 {
  font-size: 1.02rem;
}

.lede {
  color: var(--muted);
  font-size: 0.95rem;
}

.status {
  color: var(--muted);
  font-size: 0.86rem;
}

.mobile-menu-button,
.mobile-search-button {
  border: 1px solid var(--border);
  background: rgb(255 255 255 / 68%);
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 760;
  line-height: 1;
  box-shadow: 0 10px 24px rgb(95 85 110 / 10%), inset 0 1px 0 rgb(255 255 255 / 72%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mobile-menu-button:hover,
.mobile-menu-button:focus-visible,
.mobile-search-button:hover,
.mobile-search-button:focus-visible,
.mobile-search-button[aria-expanded="true"] {
  border-color: rgb(255 255 255 / 92%);
  background: rgb(255 255 255 / 82%);
  color: var(--accent);
  outline: 2px solid rgb(255 127 111 / 28%);
  outline-offset: 2px;
}

.theme-switcher {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.theme-select {
  border: 1px solid var(--border);
  border-radius: 999px !important;
  background: rgb(255 255 255 / 68%);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 680;
  box-shadow: 0 10px 24px rgb(95 85 110 / 8%), inset 0 1px 0 rgb(255 255 255 / 72%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.theme-select:focus-visible {
  border-color: rgb(255 255 255 / 92%);
  outline: 2px solid rgb(255 127 111 / 30%);
  outline-offset: 2px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 34px !important;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.flag-button {
  border: 0;
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
}

.flag-button:hover,
.flag-button:focus-visible {
  background: rgb(255 255 255 / 54%);
  outline: 2px solid rgb(255 127 111 / 28%);
  outline-offset: 1px;
}

.search {
  border: 1px solid var(--border);
  border-radius: 999px !important;
  background: rgb(255 255 255 / 68%);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 72%);
}

.search-results {
  border: 1px solid var(--border);
  background: rgb(255 255 255 / 48%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 62%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.search-results-heading h2 {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.search-results-heading span,
.show-result-time,
.show-result-meta {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.show-result {
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--text);
}

.show-result:hover,
.show-result:focus-visible,
.show-result.current {
  border-color: var(--accent);
  background: rgb(255 255 255 / 62%);
  outline: 2px solid rgb(255 127 111 / 22%);
  outline-offset: 1px;
}

.show-result-title {
  font-size: 0.87rem;
  font-weight: 760;
}

.country-group h3 {
  border-bottom: 1px solid rgb(255 255 255 / 58%);
  background: rgb(255 255 255 / 52%);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 720;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.channel-choice {
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--text);
}

.channel-choice.selected {
  border-color: var(--accent);
  background: rgb(255 255 255 / 62%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%);
}

.channel-name {
  font-size: 0.87rem;
  font-weight: 650;
}

.logo {
  border-radius: 16px !important;
  background: rgb(255 255 255 / 78%);
}

.secondary-button {
  border: 1px solid var(--border);
  border-radius: 999px !important;
  background: rgb(255 255 255 / 64%);
  color: var(--muted);
  font-weight: 680;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 72%);
}

.secondary-button:hover {
  border-color: rgb(255 255 255 / 92%);
  color: var(--accent);
  background: rgb(255 255 255 / 80%);
}

.empty-state {
  border: 1px dashed rgb(255 255 255 / 78%);
  border-radius: 28px !important;
  color: var(--muted);
  background:
    radial-gradient(circle at 22% 88%, rgb(255 195 155 / 38%), transparent 30%),
    radial-gradient(circle at 78% 14%, rgb(185 154 244 / 28%), transparent 34%),
    rgb(255 255 255 / 38%);
}

.guide-meta {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.schedule-wrap {
  border: 1px solid var(--border);
  border-radius: 30px !important;
  background: rgb(255 255 255 / 55%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.schedule-header {
  border-bottom: 1px solid rgb(255 255 255 / 68%);
  background: rgb(255 255 255 / 68%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.time-header,
.guide-channel-heading {
  border-left: 1px solid rgb(255 255 255 / 58%);
}

.time-header {
  border-left: 0;
  background: rgb(255 255 255 / 48%);
}

.guide-channel-heading {
  font-weight: 820;
}

.guide-channel-flag {
  font-size: 1rem;
  line-height: 1;
}

.guide-channel-name {
  font-size: 0.88rem;
  line-height: 1.12;
}

.remove-channel-button {
  border: 1px solid var(--border);
  border-radius: 999px !important;
  background: rgb(255 255 255 / 62%);
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 760;
  line-height: 1;
}

.remove-channel-button:hover,
.remove-channel-button:focus-visible {
  border-color: rgb(255 255 255 / 92%);
  color: var(--accent);
  outline: none;
}

.schedule-body {
  background: linear-gradient(
    to right,
    rgb(255 255 255 / 42%) 0 var(--time-column),
    transparent var(--time-column)
  );
}

.time-axis {
  border-right: 1px solid rgb(255 255 255 / 58%);
  background: rgb(255 255 255 / 42%);
}

.time-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.time-grid span {
  border-top: 1px solid rgb(255 255 255 / 54%);
}

.schedule-column {
  border-left: 1px solid rgb(255 255 255 / 52%);
}

.schedule-column:first-child {
  border-left: 0;
}

.current-time-line {
  border-top: 2px solid var(--accent);
}

.current-time-line span {
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ff7f6f, #f5a1c3);
  color: white;
  font-size: 0.68rem;
  font-weight: 850;
  box-shadow: 0 8px 18px rgb(255 127 111 / 24%);
}

.program-block {
  border: 1px solid rgb(255 255 255 / 76%);
  border-radius: 20px !important;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 72%), rgb(255 255 255 / 48%)),
    radial-gradient(circle at 18% 100%, rgb(255 195 155 / 30%), transparent 45%);
  box-shadow: 0 12px 30px rgb(95 85 110 / 9%), inset 0 1px 0 rgb(255 255 255 / 70%);
}

.program-block:hover,
.program-block:focus-visible {
  border-color: rgb(255 255 255 / 94%);
  box-shadow: 0 18px 36px rgb(255 127 111 / 15%), inset 0 1px 0 rgb(255 255 255 / 78%);
  outline: none;
}

.program-block.current {
  border-color: rgb(255 255 255 / 92%);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 76%), rgb(255 255 255 / 50%)),
    radial-gradient(circle at 20% 88%, rgb(255 127 111 / 32%), transparent 36%),
    radial-gradient(circle at 80% 12%, rgb(185 154 244 / 26%), transparent 40%);
}

.program-time {
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 850;
}

.program-title {
  font-weight: 820;
  line-height: 1.18;
}

.program-subtitle {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.program-tags span {
  border: 1px solid rgb(255 255 255 / 76%);
  border-radius: 999px !important;
  background: rgb(255 255 255 / 62%);
  color: #d86660;
  font-size: 0.66rem;
  font-weight: 760;
}

.program-description {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.program-description summary {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 780;
}

.program-dialog {
  border: 1px solid var(--border);
  border-radius: 32px !important;
  background: rgb(255 255 255 / 76%);
  color: var(--text);
  box-shadow: 0 34px 92px rgb(70 60 85 / 28%), inset 0 1px 0 rgb(255 255 255 / 72%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.program-dialog::backdrop {
  background: rgb(32 32 39 / 28%);
  backdrop-filter: blur(6px);
}

.program-dialog-image {
  background:
    radial-gradient(circle at 20% 80%, rgb(255 190 130 / 80%), transparent 24%),
    radial-gradient(circle at 72% 35%, rgb(125 227 164 / 70%), transparent 28%),
    linear-gradient(135deg, #f9d3be, #edf7f4);
}

.program-dialog-kicker,
.program-dialog-subtitle,
.program-dialog-description,
.program-detail-row dt {
  color: var(--muted);
}

.program-dialog-kicker {
  font-size: 0.82rem;
  font-weight: 760;
}

.program-dialog h2 {
  font-size: clamp(1.35rem, 4vw, 2rem);
  letter-spacing: -0.04em;
}

.program-dialog-subtitle {
  font-weight: 680;
}

.program-detail-row dt {
  font-size: 0.78rem;
  font-weight: 760;
}

.program-detail-row dd {
  font-weight: 680;
}

.program-dialog-description {
  line-height: 1.45;
}

.program-dialog-close {
  color: var(--text);
}

.empty-program {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  * {
    border-radius: 16px !important;
  }

  h1 {
    font-size: clamp(1.5rem, 8vw, 2.15rem);
  }

  .mobile-menu-button {
    border-radius: 16px !important;
  }

  .theme-select,
  .secondary-button,
  .search,
  .remove-channel-button,
  .program-tags span,
  .current-time-line span {
    border-radius: 999px !important;
  }

  .panel {
    border-radius: 18px !important;
    box-shadow: 0 14px 34px rgb(95 85 110 / 11%), inset 0 1px 0 rgb(255 255 255 / 58%);
  }

  .schedule-wrap {
    border-radius: 16px !important;
  }

  .program-block {
    border-radius: 12px !important;
  }

  .program-dialog {
    border-radius: 20px !important;
  }
}
