/* ===== NTP PAGE ===== */
.ntp-page {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
}
.ntp-page.hidden {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}
.ntp-page.new-tab-enter {
  opacity: 0;
  transform: scale(0.4) translateY(60%);
  pointer-events: none;
  transition: none;
}
.ntp-page.new-tab-animate {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity 0.35s ease-out, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* Wallpaper */
.wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.wallpaper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlays */
.overlay1 {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 12%);
}

.overlay2 {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 350px;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.45) 100%);
}

/* Content layer */
.content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 844px;
}

/* Status Bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px 0 43px;
  height: 54px;
}
.status-bar .time {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ntp-page .status-bar .time,
.ntp-page .status-bar .indicators svg,
.ntp-page .cellular .bar,
.ntp-page .battery-body,
.ntp-page .battery-body::after,
.ntp-page .battery-fill { color: #1a1a1a; fill: #1a1a1a; }
.status-bar .indicators {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Dynamic Island - hidden on this wallpaper */
.dynamic-island {
  display: none;
}

/* Top Row: Profile + Weather + Options */
.top-row {
  display: flex;
  align-items: center;
  padding: 12px 16px 0 12px;
  gap: 8px;
}
.profile-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.profile-icon img {
  width: 100%;
  height: 100%;
}

.weather {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(128,128,128,0.45);
  border-radius: 49px;
  padding: 6px 12px 6px 8px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow:
    0 0.15px 0.45px rgba(0,0,0,0.11),
    0 0.8px 1.8px rgba(0,0,0,0.13);
}
.weather img {
  width: 24px;
  height: 24px;
}
.weather span {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  line-height: 24px;
}

.options-icon {
  margin-left: auto;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.options-icon img {
  width: 100%;
  height: 100%;
}

/* Top Sites */
.top-sites {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 557px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.top-site {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
}
.top-site .logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}
.top-site .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.top-site .title {
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  text-align: center;
  line-height: 16px;
  transition: color 0.3s ease;
}
.top-site .title.dark-text {
  color: #242424;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  left: 0; right: 0;
  top: 666px;
  display: flex;
  justify-content: center;
  padding-top: 10px;
  height: 40px;
}
.scroll-tip {
  display: flex;
  align-items: center;
  gap: 8px;
}
.scroll-tip img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}
.scroll-tip span {
  font-family: var(--font-ui-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.333em;
  letter-spacing: -0.016em;
  color: #fff;
  text-shadow: 0 0 2px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.14);
}

/* NTP Bottom Bar */
.ntp-bottom-bar {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: background 0.3s ease;
}

/* Address Row */
.address-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 6px;
}

.omni-box {
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  border-radius: 21px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10.84px 21.68px rgba(0,0,0,0.05),
    0 41.19px 41.19px rgba(0,0,0,0.04),
    0 91.05px 54.2px rgba(0,0,0,0.04),
    0 162.59px 65.04px rgba(0,0,0,0.03);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.omni-box:active {
  transform: scale(0.98);
}
.omni-left {
  display: flex;
  align-items: center;
  padding-left: 0px;
  flex-shrink: 0;
}
.omni-left img {
  height: 24px;
}

.omni-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.omni-center span {
  font-size: 17px;
  font-weight: 400;
  color: rgba(0,0,0,0.74);
  letter-spacing: -0.025em;
}

.omni-right {
  display: flex;
  align-items: center;
  padding-right: 0px;
  flex-shrink: 0;
}
.omni-right img {
  height: 24px;
}

/* Navigation */
.navi {
  display: flex;
  justify-content: stretch;
}
.nav-btn {
  flex: 1;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.nav-btn img {
  height: 44px;
  width: auto;
}

/* Home Indicator */
.home-indicator {
  display: flex;
  justify-content: center;
  padding: 12px 0 4px;
  height: 34px;
}
.home-indicator-bar {
  width: 134px;
  height: 5px;
  border-radius: 3px;
  opacity: 0.4;
}
.ntp-page .home-indicator-bar { background: #1a1a1a; }

/* Cellular icon */
.cellular {
  display: flex;
  align-items: flex-end;
  gap: 1.6px;
  height: 12px;
}
.cellular .bar {
  width: 3.2px;
  border-radius: 0.5px;
}
.ntp-page .cellular .bar { background: #1a1a1a; }
.cellular .bar:nth-child(1) { height: 4.6px; }
.cellular .bar:nth-child(2) { height: 7px; }
.cellular .bar:nth-child(3) { height: 9.6px; }
.cellular .bar:nth-child(4) { height: 12px; }

/* WiFi icon */
.wifi-icon svg { width: 17px; height: 12px; }

/* Battery icon */
.battery {
  display: flex;
  align-items: center;
  gap: 1px;
}
.battery-body {
  width: 25px;
  height: 13px;
  border-radius: 3px;
  padding: 2px;
  position: relative;
}
.ntp-page .battery-body { border: 1.5px solid #1a1a1a; }
.battery-body::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 1.33px;
  height: 4px;
  border-radius: 0 1px 1px 0;
}
.ntp-page .battery-body::after { background: #1a1a1a; }
.battery-fill {
  width: 100%;
  height: 100%;
  border-radius: 1px;
}
.ntp-page .battery-fill { background: #1a1a1a; }

/* ===== NTP SCROLL CONTAINER ===== */
.ntp-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  pointer-events: none;
  transition: background 0.3s ease;
}
.ntp-status-bar.feed-colors {
  background: #F3F3F3;
}
.ntp-status-bar.feed-colors .status-bar .time,
.ntp-status-bar.feed-colors .status-bar .indicators svg,
.ntp-status-bar.feed-colors .cellular .bar,
.ntp-status-bar.feed-colors .battery-body,
.ntp-status-bar.feed-colors .battery-body::after,
.ntp-status-bar.feed-colors .battery-fill { color: #000; fill: #000; }
.ntp-status-bar.feed-colors .cellular .bar { background: #000; }
.ntp-status-bar.feed-colors .battery-body { border-color: #000; }
.ntp-status-bar.feed-colors .battery-body::after { background: #000; }
.ntp-status-bar.feed-colors .battery-fill { background: #000; }
.ntp-status-bar.feed-colors .wifi-icon path[stroke] { stroke: #000; }

/* White overlay for wallpaper→feed transition */
.overlay-for-feed {
  position: absolute;
  inset: 0;
  background: #F3F3F3;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

/* =============================================
   Interest cards — match feed-card style
   ============================================= */
.interest-cards {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.interest-card {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 8px;
  padding: 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.interest-card:active { opacity: 0.75; }

.nba-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.nba-badge {
  font-family: var(--font-ui-sans);
  font-size: 12px;
  font-weight: 400;
  color: rgba(0,0,0,0.56);
  line-height: 16px;
}
.nba-status {
  font-family: var(--font-ui-sans);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(0,0,0,0.56);
  line-height: 16px;
  margin-left: auto;
}
.nba-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d94c3a;
  box-shadow: 0 0 0 0 rgba(217,76,58,0.55);
  animation: nba-live-pulse 1.6s ease-out infinite;
}
@keyframes nba-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(217,76,58,0.55); }
  80%, 100% { box-shadow: 0 0 0 7px rgba(217,76,58,0); }
}

.nba-card-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.nba-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.nba-team:last-child {
  flex-direction: row-reverse;
  text-align: right;
}
.nba-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.nba-team-name {
  font-family: var(--font-ui-sans);
  font-size: 17px;
  font-weight: 600;
  color: #242424;
  line-height: 22px;
  letter-spacing: -0.17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nba-score {
  font-family: var(--font-ui-sans);
  font-size: 20px;
  font-weight: 600;
  font-feature-settings: 'tnum' 1;
  color: #242424;
  margin-left: auto;
  letter-spacing: -0.2px;
}
.nba-team:last-child .nba-score {
  margin-left: 0;
  margin-right: auto;
}
.nba-at {
  font-size: 12px;
  color: rgba(0,0,0,0.32);
}

/* =============================================
   NBA Hero Card (Figma: Mobile Hero, node 8760:822008)
   ============================================= */
.nba-card-v2 {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  padding: 16px 20px;
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.nba-card-v2:active { opacity: 0.9; }

.nba-v2-header {
  font-size: 12px;
  line-height: 16px;
  color: #4a4543;
  text-align: center;
  margin-bottom: 12px;
  font-weight: 400;
}

.nba-v2-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}
.nba-v2-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 90px;
}
.nba-v2-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.nba-v2-name {
  color: #33302e;
  font-weight: 650;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.nba-v2-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 120px;
  padding-top: 4px;
}
.nba-v2-status {
  font-size: 12px;
  line-height: 16px;
  color: #4a4543;
  font-weight: 700;
  text-align: center;
  width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nba-v2-status.is-live {
  color: #127323;
}
.nba-v2-scores {
  display: flex;
  align-items: center;
  gap: 24px;
  font-feature-settings: 'tnum' 1;
}
.nba-v2-score {
  font-size: 20px;
  line-height: 26px;
  color: #282523;
  font-weight: 400;
  letter-spacing: -0.2px;
}
.nba-v2-dash {
  font-size: 17px;
  line-height: 26px;
  color: #33302e;
  font-weight: 650;
}

.nba-v2-attribution {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
  line-height: 16px;
  color: #4a4543;
  font-weight: 400;
  margin-top: 4px;
}
.nba-v2-record.left { width: 86px; text-align: left; }
.nba-v2-record.right { width: 86px; text-align: right; color: #57514f; }
.nba-v2-series { width: 120px; text-align: center; }

.nba-v2-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 16px 0 12px;
}

.nba-v2-linescores {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.nba-v2-ls-teams {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  padding-bottom: 2px;
}
.nba-v2-ls-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  color: #33302e;
}
.nba-v2-ls-team:nth-child(2) { color: #4a4543; }
.nba-v2-ls-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.nba-v2-ls-table {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-feature-settings: 'tnum' 1;
}
.nba-v2-ls-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 24px;
}
.nba-v2-ls-head {
  font-size: 12px;
  line-height: 16px;
  color: #4a4543;
  font-weight: 400;
}
.nba-v2-ls-cell {
  font-size: 14px;
  line-height: 20px;
  color: #4a4543;
  font-weight: 400;
  text-align: center;
  width: 100%;
}
.nba-v2-ls-cell.strong {
  font-weight: 700;
  color: #33302e;
}
.nba-v2-ls-total .nba-v2-ls-head {
  font-weight: 400;
}

/* =============================================
   Journey Card — follows cm-card layout exactly
   (title + desc + action pill + 93x132 right image)
   ============================================= */
.journey-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 36px;
  padding: 16px 16px 16px 20px;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  overflow: hidden;
  height: 164px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.journey-card:active { opacity: 0.85; }

/* --- Journey modal --- */
.journey-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(30, 25, 20, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.journey-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.journey-modal {
  width: 100%;
  max-width: 520px;
  background: #faf5ef;
  border-radius: 28px 28px 0 0;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: journey-modal-slide 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes journey-modal-slide {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.journey-modal-header {
  padding: 18px 22px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.journey-modal-eyebrow {
  font-size: 12px;
  color: #8a7a6d;
  margin-bottom: 4px;
}
.journey-modal-title {
  font-size: 22px;
  font-weight: 650;
  color: #282523;
  letter-spacing: -0.2px;
}
.journey-modal-sub {
  font-size: 13px;
  color: #57514f;
  margin-top: 2px;
}
.journey-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: #3a332d;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.journey-modal-close:active { opacity: 0.7; }
.journey-modal-body {
  padding: 8px 22px 28px;
  overflow-y: auto;
  flex: 1;
}
.journey-section {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.journey-section:last-child { border-bottom: none; }
.journey-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.journey-section-icon { font-size: 16px; }
.journey-section-label {
  font-size: 14px;
  font-weight: 650;
  color: #33302e;
}
.journey-section-count {
  margin-left: auto;
  font-size: 12px;
  color: #8a7a6d;
  font-feature-settings: 'tnum' 1;
}
.journey-section-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.journey-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.journey-item:active { opacity: 0.6; }
.journey-item-title {
  font-size: 15px;
  color: #282523;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.journey-item-arrow {
  color: #8a7a6d;
  font-size: 13px;
  margin-left: 10px;
  flex-shrink: 0;
}

