:root {
  --cctv-bg: #070b14;
  --cctv-surface: #0f1b2d;
  --cctv-surface-raised: #15243a;
  --cctv-border: #24344b;
  --cctv-text: #f8fafc;
  --cctv-muted: #a8b5c7;
  --cctv-blue: #38bdf8;
  --cctv-blue-strong: #0ea5e9;
  --cctv-green: #22c55e;
  --cctv-amber: #f59e0b;
  --cctv-red: #ef4444;
  --cctv-shadow: 0 18px 48px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }

html { background: var(--cctv-bg); }

body.cctv-app {
  min-width: 0;
  margin: 0;
  color: var(--cctv-text);
  background:
    radial-gradient(circle at 12% -8%, rgba(14, 165, 233, .18), transparent 28rem),
    radial-gradient(circle at 88% 0, rgba(34, 197, 94, .08), transparent 24rem),
    var(--cctv-bg);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.cctv-app a { color: inherit; }

.cctv-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #07111f;
  background: #fff;
  border-radius: 10px;
  transform: translateY(-150%);
}

.cctv-skip-link:focus { transform: translateY(0); }

.cctv-container {
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
}

.cctv-appbar {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(36, 52, 75, .82);
  background: rgba(7, 11, 20, .88);
  backdrop-filter: blur(16px);
}

.cctv-appbar__inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cctv-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--cctv-text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}

.cctv-brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #06111c;
  background: var(--cctv-blue);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(56, 189, 248, .26);
}

.cctv-brand__mark .bi { font-size: 18px; }

.cctv-top-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.cctv-top-nav__link,
.cctv-icon-button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--cctv-muted);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.cctv-top-nav__link { padding: 0 12px; }
.cctv-top-nav__link:hover,
.cctv-top-nav__link.is-active,
.cctv-icon-button:hover {
  color: var(--cctv-text);
  border-color: var(--cctv-border);
  background: var(--cctv-surface);
}

.cctv-icon-button {
  flex: 0 0 auto;
  background: transparent;
  font-size: 19px;
}

.cctv-main { padding: 28px 0 96px; }

.cctv-page-header,
.cctv-section { margin-bottom: 32px; }

.cctv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--cctv-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cctv-page-title {
  max-width: 760px;
  margin: 0;
  color: var(--cctv-text);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.16;
}

.cctv-page-description {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--cctv-muted);
  font-size: 16px;
}

.cctv-hero {
  padding: clamp(24px, 5vw, 48px);
  overflow: hidden;
  border: 1px solid var(--cctv-border);
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(15, 27, 45, .95), rgba(15, 27, 45, .76)),
    radial-gradient(circle at 88% 18%, rgba(56, 189, 248, .28), transparent 18rem),
    var(--cctv-surface);
  box-shadow: var(--cctv-shadow);
}

.cctv-search {
  display: flex;
  min-height: 56px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--cctv-border);
  border-radius: 14px;
  background: rgba(7, 11, 20, .68);
}

.cctv-search__icon {
  display: grid;
  width: 52px;
  place-items: center;
  color: var(--cctv-muted);
}

.cctv-search input {
  min-width: 0;
  flex: 1;
  color: var(--cctv-text);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
}

.cctv-search input::placeholder { color: #77879b; }

.cctv-search button,
.cctv-button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: #04131f;
  border: 0;
  border-radius: 10px;
  background: var(--cctv-blue);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}

.cctv-search button { margin: 5px; }
.cctv-search button:hover,
.cctv-button:hover { background: #7dd3fc; }

.cctv-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.cctv-section__title {
  margin: 0;
  color: var(--cctv-text);
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -.035em;
}

.cctv-section__copy {
  margin: 4px 0 0;
  color: var(--cctv-muted);
  font-size: 14px;
}

.cctv-section__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--cctv-blue);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.cctv-hub-grid,
.cctv-grid { display: grid; gap: 12px; }
.cctv-hub-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.cctv-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }

.cctv-hub-card {
  position: relative;
  display: flex;
  min-height: 188px;
  align-items: end;
  overflow: hidden;
  border: 1px solid var(--cctv-border);
  border-radius: 18px;
  background: var(--cctv-surface);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .2);
  text-decoration: none;
}

.cctv-hub-card__image,
.cctv-hub-card__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cctv-hub-card__fallback { background: linear-gradient(145deg, #123454, #0f1b2d); }
.hub-ocean .cctv-hub-card__fallback { background: linear-gradient(145deg, #0d4c65, #0f1b2d); }
.hub-mountain .cctv-hub-card__fallback { background: linear-gradient(145deg, #27465d, #0f1b2d); }
.hub-city .cctv-hub-card__fallback { background: linear-gradient(145deg, #473252, #0f1b2d); }

.cctv-hub-card::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(180deg, rgba(3, 8, 16, .04) 24%, rgba(3, 8, 16, .9) 100%);
}

.cctv-hub-card__body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 18px;
}

.cctv-hub-card__icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--cctv-blue);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  background: rgba(7, 11, 20, .45);
}

.cctv-hub-card__name { display: block; font-size: 20px; font-weight: 800; }
.cctv-hub-card__description { display: block; margin-top: 4px; color: #d6e0ec; font-size: 13px; }
.cctv-hub-card__count { display: block; margin-top: 10px; color: var(--cctv-blue); font-size: 13px; font-weight: 800; }

.cctv-card {
  display: block;
  overflow: hidden;
  color: var(--cctv-text);
  border: 1px solid var(--cctv-border);
  border-radius: 16px;
  background: var(--cctv-surface);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.cctv-card:hover {
  border-color: rgba(56, 189, 248, .72);
  background: var(--cctv-surface-raised);
  transform: translateY(-2px);
}

.cctv-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #02060b;
}

.cctv-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.cctv-card:hover .cctv-card__media img { transform: scale(1.03); }

.cctv-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  color: #eaf4ff;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(3, 8, 16, .76);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.cctv-status::before {
  width: 7px;
  height: 7px;
  content: '';
  border-radius: 50%;
  background: #94a3b8;
}

.status-online::before { background: var(--cctv-green); box-shadow: 0 0 10px var(--cctv-green); }
.status-unstable::before { background: var(--cctv-amber); }
.status-offline::before { background: var(--cctv-red); }
.status-checking::before { background: #94a3b8; }

.cctv-card .cctv-status { position: absolute; top: 10px; left: 10px; }

.cctv-card__title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.cctv-card__media-type {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  color: #f8fbff;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(2, 11, 24, .78);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.cctv-card__media-type.media-youtube { color: #fff2f2; border-color: rgba(255, 85, 85, .6); background: rgba(145, 19, 29, .9); }
.cctv-card__media-type.media-snapshot { color: #e4f7ff; border-color: rgba(56, 189, 248, .55); background: rgba(6, 74, 112, .9); }
.cctv-card__media-type.media-live { color: #e8fff0; border-color: rgba(34, 197, 94, .5); background: rgba(15, 93, 53, .88); }

.cctv-card__body { padding: 13px 14px 14px; }
.cctv-card__title {
  min-width: 0;
  flex: 1 1 auto;
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: var(--cctv-text);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cctv-card__meta,
.cctv-card__updated {
  display: block;
  margin-top: 7px;
  color: var(--cctv-muted);
  font-size: 12px;
}

.cctv-card__updated { color: #8192a7; }

.cctv-ad-slot {
  display: grid;
  min-height: 120px;
  margin: 34px 0;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(36, 52, 75, .7);
  border-radius: 14px;
  background: rgba(15, 27, 45, .58);
}

.cctv-ad-slot .adsbygoogle { width: 100%; min-height: 100px; }

.cctv-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--cctv-muted);
  font-size: 13px;
}

.cctv-breadcrumb a { color: var(--cctv-muted); text-decoration: none; }
.cctv-breadcrumb a:hover { color: var(--cctv-blue); }

.cctv-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.cctv-summary__item {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 5px 10px;
  color: var(--cctv-muted);
  border: 1px solid var(--cctv-border);
  border-radius: 999px;
  background: rgba(15, 27, 45, .72);
  font-size: 13px;
}

.cctv-filterbar {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--cctv-border);
  border-radius: 16px;
  background: var(--cctv-surface);
}

.cctv-filterbar__search { display: flex; min-height: 48px; overflow: hidden; border: 1px solid var(--cctv-border); border-radius: 10px; }
.cctv-filterbar input,
.cctv-filterbar select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--cctv-text);
  border: 1px solid var(--cctv-border);
  border-radius: 10px;
  outline: 0;
  background: #0a1321;
  font-size: 15px;
}

.cctv-filterbar__search input { border: 0; background: transparent; }
.cctv-filterbar__controls { display: grid; gap: 8px; }
.cctv-filterbar__actions { display: flex; gap: 8px; }

.cctv-button--secondary {
  color: var(--cctv-text);
  border: 1px solid var(--cctv-border);
  background: transparent;
}
.cctv-button--secondary:hover { background: var(--cctv-surface-raised); }

.cctv-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.cctv-pagination a,
.cctv-pagination span {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--cctv-muted);
  border: 1px solid var(--cctv-border);
  border-radius: 10px;
  background: var(--cctv-surface);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.cctv-pagination .is-current { color: #04131f; border-color: var(--cctv-blue); background: var(--cctv-blue); }

.cctv-detail-grid { display: grid; gap: 18px; }

.cctv-player-card,
.cctv-info-card {
  overflow: hidden;
  border: 1px solid var(--cctv-border);
  border-radius: 18px;
  background: var(--cctv-surface);
}

.cctv-player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #02060b;
}

.cctv-player-stage__poster,
.cctv-player-stage__snapshot,
.cctv-player-stage__youtube,
.cctv-player-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cctv-player-stage__poster { z-index: 0; filter: brightness(.72); }
.cctv-player-stage__snapshot { object-fit: cover; }
.cctv-player-stage__snapshot[hidden] { display: none; }
.cctv-player-stage__youtube { z-index: 1; border: 0; background: #02060b; }
.cctv-player-stage__youtube[hidden] { display: none; }
.cctv-player-stage video[hidden] { display: none; }

.cctv-player-stage__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  background: linear-gradient(180deg, rgba(2, 6, 11, .08), rgba(2, 6, 11, .54));
}

.cctv-player-stage__overlay.is-playing {
  pointer-events: none;
  background: transparent;
}

.cctv-player-stage__play {
  display: inline-flex;
  min-width: 148px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #03111d;
  border: 0;
  border-radius: 999px;
  background: var(--cctv-blue);
  font-size: 15px;
  font-weight: 800;
}

.cctv-player-stage__notice {
  display: block;
  margin-top: 12px;
  color: #e6eef8;
  font-size: 13px;
}

.cctv-player-card__footer { padding: 15px 16px; color: var(--cctv-muted); font-size: 14px; }
.cctv-player-card__source-link { display: inline-flex; min-height: 32px; align-items: center; color: var(--cctv-blue); font-weight: 800; text-decoration: none; }
.cctv-player-card__source-link:focus-visible { outline: 2px solid var(--cctv-blue); outline-offset: 3px; border-radius: 4px; }

.cctv-info-card { padding: 20px; }
.cctv-info-card__name { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
.cctv-info-list { display: grid; gap: 12px; margin: 18px 0 0; }
.cctv-info-list__row { display: grid; gap: 3px; padding-bottom: 12px; border-bottom: 1px solid rgba(36, 52, 75, .78); }
.cctv-info-list__row:last-child { padding-bottom: 0; border-bottom: 0; }
.cctv-info-list dt { color: #8192a7; font-size: 12px; font-weight: 700; }
.cctv-info-list dd { margin: 0; color: var(--cctv-text); font-size: 14px; }
.cctv-info-list a { color: var(--cctv-blue); }

.cctv-detail-copy {
  padding: 20px;
  border: 1px solid var(--cctv-border);
  border-radius: 18px;
  background: var(--cctv-surface);
}

.cctv-detail-copy h2 { margin: 0 0 10px; font-size: 20px; font-weight: 800; }
.cctv-detail-copy p { margin: 0; color: var(--cctv-muted); white-space: pre-line; }

.cctv-empty {
  padding: 36px 20px;
  color: var(--cctv-muted);
  border: 1px dashed var(--cctv-border);
  border-radius: 16px;
  text-align: center;
}

.cctv-footer {
  padding: 28px 0 94px;
  border-top: 1px solid var(--cctv-border);
  color: var(--cctv-muted);
  background: #050911;
  font-size: 13px;
}

.cctv-footer__inner { display: flex; flex-direction: column; gap: 12px; }
.cctv-footer__links { display: flex; flex-wrap: wrap; gap: 12px; }
.cctv-footer a { color: #c4d0de; text-decoration: none; }
.cctv-footer a:hover { color: var(--cctv-blue); }

.cctv-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 68px;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid rgba(83, 112, 143, .88);
  background: rgba(24, 40, 61, .98);
  backdrop-filter: blur(16px);
}

.cctv-bottom-nav a {
  display: flex;
  min-height: 60px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #8192a7;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.cctv-bottom-nav .bi { font-size: 18px; }
.cctv-bottom-nav a.is-active { color: var(--cctv-blue); }

:focus-visible {
  outline: 3px solid rgba(56, 189, 248, .9);
  outline-offset: 3px;
}

@media (min-width: 360px) {
  .cctv-hub-grid,
  .cctv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .cctv-container { width: min(100% - 48px, 1200px); }
  .cctv-main { padding-top: 44px; }
  .cctv-top-nav { display: flex; }
  .cctv-bottom-nav { display: none; }
  .cctv-footer { padding-bottom: 32px; }
  .cctv-hub-grid,
  .cctv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .cctv-filterbar { grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(150px, 1fr)) auto; align-items: end; }
  .cctv-filterbar__controls { display: contents; }
  .cctv-filterbar__actions { min-height: 44px; }
  .cctv-detail-grid { grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr); align-items: start; }
}

@media (min-width: 1100px) {
  .cctv-hub-grid,
  .cctv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cctv-hub-card { min-height: 220px; }
  .cctv-ad-slot { min-height: 250px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Waffle-style mobile app shell: keep the same compact experience on desktop. */
.cctv-container {
  width: min(100% - 24px, 600px);
}

.cctv-top-nav {
  display: none !important;
}

.cctv-appbar__inner {
  min-height: 62px;
  justify-content: center;
}

.cctv-main {
  padding-top: 20px;
  padding-bottom: 104px;
}

.cctv-bottom-nav {
  right: auto;
  left: 50%;
  display: grid !important;
  width: min(100%, 620px);
  border: 1px solid rgba(83, 112, 143, .88);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, .34);
  transform: translateX(-50%);
}

.cctv-footer {
  padding-bottom: 100px;
}

@media (min-width: 768px) {
  .cctv-container {
    width: min(100% - 32px, 600px);
  }

  .cctv-main {
    padding-top: 28px;
    padding-bottom: 104px;
  }

  .cctv-bottom-nav {
    display: grid;
  }

  .cctv-footer {
    padding-bottom: 100px;
  }

  .cctv-hub-grid,
  .cctv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cctv-hub-card {
    min-height: 188px;
  }

  .cctv-filterbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cctv-filterbar__controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cctv-filterbar__actions {
    min-height: 44px;
  }

  .cctv-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* CCTV cards stay full-width so every preview keeps a true video-like 16:9 shape. */
.cctv-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px;
}

/* Compact app-list cards: keep a real 16:9 preview without turning each card into a full-screen video. */
.cctv-card {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  align-items: start;
}

.cctv-card__media {
  align-self: start;
}

.cctv-card__body {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 10px 12px;
}

.cctv-card__title {
  display: block;
  min-height: 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cctv-card__meta,
.cctv-card__updated {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.25;
}

/* Mobile-only flat directory redesign. */
html { background: #000; }
body.cctv-app {
  --cctv-bg: #000;
  --cctv-surface: #080808;
  --cctv-surface-raised: #0d0d0d;
  --cctv-border: #242424;
  --cctv-text: #f5f7fa;
  --cctv-muted: #9aa3ad;
  margin: 0;
  background: #000 !important;
  color: var(--cctv-text);
  font-size: 14px;
  line-height: 1.5;
}

body.cctv-app * { border-radius: 0 !important; }
body.cctv-app a { cursor: pointer; }

.cctv-container {
  width: min(100%, 520px) !important;
  margin: 0 auto;
  padding-right: 14px;
  padding-left: 14px;
}

.cctv-appbar {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid #1f1f1f;
  background: #000;
  box-shadow: none;
}

.cctv-appbar__inner { position: relative; min-height: 80px; }
.cctv-brand { gap: 0; font-size: 15px; font-weight: 800; }
.cctv-brand__logo { display: block; width: 220px; height: auto; }
.cctv-brand__mark { width: 26px; height: 26px; font-size: 13px; box-shadow: none; }
.cctv-header-search { position: absolute; top: 50%; right: 0; display: grid; width: 44px; height: 44px; place-items: center; color: #dbe6ed; font-size: 17px; text-decoration: none; transform: translateY(-50%); }
.cctv-header-search:hover,
.cctv-header-search:focus-visible { color: #38bdf8; background: #0d171e; outline: 2px solid #6fd4ff; outline-offset: -2px; }
.cctv-main { padding-top: 10px !important; padding-bottom: 78px !important; background: #000; }

.cctv-breadcrumb { margin: 0 0 10px; color: #7e8791; font-size: 11px; }
.cctv-breadcrumb a { color: #aeb7c0; }
.cctv-page-header { margin: 0 0 18px; }
.cctv-page-title { margin: 3px 0 5px; font-size: 24px !important; line-height: 1.25; letter-spacing: -.5px; }
.cctv-page-description { margin: 0; color: var(--cctv-muted); font-size: 13px; line-height: 1.55; }
.cctv-eyebrow { font-size: 10px; letter-spacing: .04em; }
.cctv-section { margin-top: 22px; }
.cctv-section__title { font-size: 18px; }
.cctv-section__copy { font-size: 12px; }
.cctv-section__heading { margin-bottom: 10px; }
.cctv-section__link { font-size: 12px; }

.cctv-home-head { padding: 8px 0 18px; border-bottom: 1px solid #202020; }
.cctv-home-head h1,
.cctv-flat-page-head h1 { margin: 0; font-size: 24px; font-weight: 850; line-height: 1.25; letter-spacing: -.5px; }
.cctv-home-head p,
.cctv-flat-page-head p { margin: 5px 0 0; color: var(--cctv-muted); font-size: 13px; }
.cctv-flat-page-head { padding: 2px 0 16px; border-bottom: 1px solid #202020; }

.cctv-home-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 1px solid #202020; border-left: 1px solid #202020; }
.cctv-home-stats span { min-height: 48px; padding: 8px; color: #8f99a3; border-right: 1px solid #202020; border-bottom: 1px solid #202020; font-size: 10px; }
.cctv-home-stats strong { display: block; color: #f6f8fa; font-size: 17px; line-height: 1.1; }
.cctv-flat-stats { display: flex; gap: 14px; margin-top: 10px; color: #a6afb8; font-size: 11px; }

.cctv-flat-section { margin-top: 22px; }
.cctv-flat-heading { display: flex; min-height: 30px; align-items: center; justify-content: space-between; margin-bottom: 8px; border-bottom: 1px solid #242424; }
.cctv-flat-heading h2 { margin: 0 0 7px; font-size: 17px; font-weight: 800; }
.cctv-flat-heading a,
.cctv-flat-heading span { margin-bottom: 7px; color: #8fbdda; font-size: 11px; text-decoration: none; }

.cctv-search-form { position: relative; margin-top: 14px; }
.cctv-search-form__row { display: grid; grid-template-columns: minmax(0, 1fr) 64px; min-height: 44px; border: 1px solid #3a4f60; background: #080c10; }
.cctv-search-form__row input { min-width: 0; min-height: 44px; padding: 0 11px; color: #f5f7fa; border: 0; outline: 0; background: transparent; font-size: 14px; }
.cctv-search-form__row input::placeholder { color: #75818b; }
.cctv-search-form__row input:focus { box-shadow: inset 0 0 0 2px #6fd4ff; }
.cctv-search-form__row button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 5px; color: #02131d; border: 0; border-left: 1px solid #3a4f60; background: #38bdf8; font-size: 11px; font-weight: 800; }
.cctv-search-form__row button:hover,
.cctv-search-form__row button:focus-visible { background: #8bdcff; outline: 2px solid #fff; outline-offset: -2px; }
.cctv-search-suggestions { position: absolute; top: 48px; right: 0; left: 0; z-index: 20; border: 1px solid #3a4f60; background: #0a0f14; box-shadow: 0 10px 24px rgba(0, 0, 0, .55); }
.cctv-search-suggestions[hidden] { display: none; }
.cctv-search-suggestions ul { margin: 0; padding: 0; list-style: none; }
.cctv-search-suggestions li { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 44px; align-items: center; border-bottom: 1px solid #242d34; }
.cctv-search-suggestions li:last-child { border-bottom: 0; }
.cctv-search-suggestions li a { display: flex; min-width: 0; min-height: 44px; align-items: center; padding: 8px 10px; overflow: hidden; color: #f0f5f8; font-size: 12px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.cctv-search-suggestions li > span { padding: 8px 10px 8px 4px; color: #84919b; font-size: 10px; white-space: nowrap; }
.cctv-search-suggestions li a:hover,
.cctv-search-suggestions li a:focus-visible { color: #fff; background: #13212b; outline: 2px solid #6fd4ff; outline-offset: -2px; }
.cctv-search-hint { margin: 18px 0; color: #8a959f; font-size: 12px; }
.cctv-search-recent[hidden] { display: none; }
.cctv-search-recent__clear { min-width: 44px; min-height: 32px; margin-bottom: 5px; padding: 4px 7px; color: #98a5af; border: 1px solid #303e49; background: #080c10; font-size: 10px; }
.cctv-search-recent__clear:hover,
.cctv-search-recent__clear:focus-visible { color: #fff; border-color: #6fd4ff; background: #13212b; outline: 2px solid #fff; outline-offset: -2px; }
.cctv-search-recent__list { display: flex; flex-wrap: wrap; gap: 6px; }
.cctv-search-recent__list a { display: inline-flex; min-height: 36px; align-items: center; padding: 7px 10px; color: #d7e9f3; border: 1px solid #2e4b5d; background: #0a1217; font-size: 11px; text-decoration: none; }
.cctv-search-recent__list a:hover,
.cctv-search-recent__list a:focus-visible { color: #fff; border-color: #6fd4ff; background: #13212b; outline: 2px solid #6fd4ff; outline-offset: -2px; }
.cctv-search-popular { margin-top: 22px; }
.cctv-search-results { margin-top: 22px; }
.cctv-search-result-list { border-top: 1px solid #282828; }
.cctv-search-result { display: grid; grid-template-columns: 42% minmax(0, 1fr); min-height: 90px; align-items: stretch; color: #edf2f6; border-bottom: 1px solid #282828; background: #050505; text-decoration: none; }
.cctv-search-result:hover,
.cctv-search-result:focus-visible { color: #fff; background: #101010; outline: 2px solid #6fd4ff; outline-offset: -2px; }
.cctv-search-result__media { display: block; min-height: 90px; background: #000; }
.cctv-search-result__media img { display: block; width: 100%; height: 100%; min-height: 90px; object-fit: cover; }
.cctv-search-result__body { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 10px 12px; }
.cctv-search-result__body strong { overflow: hidden; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.cctv-search-result__body span { display: block; margin-top: 4px; overflow: hidden; color: #8d99a3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.cctv-category-list { border-top: 1px solid #292929; }
.cctv-category-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 14px; min-height: 58px; align-items: center; gap: 8px; padding: 8px 4px; color: #eef2f6; border-bottom: 1px solid #292929; background: #050505; text-decoration: none; }
.cctv-category-row:hover,
.cctv-category-row:focus-visible { color: #fff; background: #101010; outline: 2px solid var(--cctv-blue); outline-offset: -2px; }
.cctv-category-row__icon { display: grid; width: 28px; height: 28px; place-items: center; color: var(--cctv-blue); font-size: 14px; }
.cctv-category-row__body { min-width: 0; }
.cctv-category-row__body strong { display: block; overflow: hidden; font-size: 14px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.cctv-category-row__body small { display: block; margin-top: 2px; overflow: hidden; color: #818b95; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.cctv-category-row__count { color: #b8c1ca; font-size: 11px; font-variant-numeric: tabular-nums; }
.cctv-category-row__arrow { color: #646d76; font-size: 10px; }
.cctv-category-row.is-compact { min-height: 50px; }

.cctv-map-callout { display: grid; grid-template-columns: 28px minmax(0, 1fr) 14px; min-height: 60px; align-items: center; gap: 9px; margin-top: 18px; padding: 8px 6px; color: #f2f6fa; border-top: 1px solid #313131; border-bottom: 1px solid #313131; background: #0b0b0b; text-decoration: none; }
.cctv-map-callout > i:first-child { color: var(--cctv-blue); font-size: 17px; text-align: center; }
.cctv-map-callout strong { display: block; font-size: 14px; }
.cctv-map-callout small { display: block; margin-top: 2px; color: #8e98a2; font-size: 10px; }

.cctv-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
.cctv-card { grid-template-columns: 38% minmax(0, 1fr) !important; min-height: 108px; border: 1px solid #222; background: #070707; box-shadow: none; transition: background-color .16s ease, border-color .16s ease; }
.cctv-card:hover { border-color: #3a5669; background: #0d0d0d; transform: none; }
.cctv-card__media { align-self: stretch; aspect-ratio: auto; min-height: 106px; }
.cctv-card__media img { min-height: 100%; }
.cctv-card:hover .cctv-card__media img { transform: none; }
.cctv-card__body { padding: 9px 10px !important; }
.cctv-card__title { font-size: 14px !important; line-height: 1.3 !important; }
.cctv-card__meta,
.cctv-card__updated { margin-top: 3px !important; font-size: 10px !important; }
.cctv-card__media-type { min-height: 20px; padding: 2px 5px; border-width: 1px; font-size: 9px; }
.cctv-status { min-height: 22px; padding: 2px 6px; font-size: 9px; }
.cctv-card .cctv-status { top: 6px; left: 6px; }

.cctv-text-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 12px;
  min-height: 58px;
  align-items: center;
  gap: 8px;
  padding: 8px 6px 8px 10px;
  color: #edf2f6;
  border: 1px solid #242424;
  background: #070707;
  text-decoration: none;
}
.cctv-text-row:hover,
.cctv-text-row:focus-visible { color: #fff; border-color: #3a5669; background: #0d0d0d; outline: 2px solid #6fd4ff; outline-offset: -2px; }
.cctv-text-row__body { min-width: 0; }
.cctv-text-row__name { display: block; overflow: hidden; font-size: 13px; font-weight: 800; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.cctv-text-row__meta { display: block; margin-top: 3px; overflow: hidden; color: #89949e; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.cctv-text-row__status { position: static !important; min-width: 48px; justify-content: center; margin: 0; white-space: nowrap; }
.cctv-text-row__arrow { color: #68737d; font-size: 11px; }

.cctv-summary { gap: 5px; margin-top: 8px; }
.cctv-summary__item { min-height: 28px; padding: 5px 8px; font-size: 10px; }
.cctv-player-card,
.cctv-info-card,
.cctv-detail-copy,
.cctv-hub-card,
.cctv-filterbar,
.cctv-empty { border-color: #262626; background: #080808; box-shadow: none; }
.cctv-info-card { padding: 14px; }
.cctv-info-card__name { font-size: 17px; }
.cctv-nearby-travel { margin-top: 14px; padding-top: 14px; border-top: 1px solid #282828; }
.cctv-nearby-travel h3 { margin: 0 0 8px; color: #dce4ea; font-size: 13px; font-weight: 800; }
.cctv-nearby-travel__list { border-top: 1px solid #282828; }
.cctv-nearby-travel__list a { display: grid; grid-template-columns: 72px minmax(0, 1fr) 14px; min-height: 58px; align-items: center; gap: 8px; color: #e8edf1; border-bottom: 1px solid #282828; text-decoration: none; }
.cctv-nearby-travel__list a:hover,
.cctv-nearby-travel__list a:focus-visible { color: #fff; background: #101010; outline: 2px solid #6fd4ff; outline-offset: -2px; }
.cctv-nearby-travel__thumbnail { display: grid; width: 64px; height: 44px; place-items: center; overflow: hidden; color: #8b96a0; border: 1px solid #303030; background: #111; }
.cctv-nearby-travel__thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cctv-nearby-travel__thumbnail i { font-size: 14px; }
.cctv-nearby-travel__list span { min-width: 0; }
.cctv-nearby-travel__list strong,
.cctv-nearby-travel__list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cctv-nearby-travel__list strong { font-size: 12px; line-height: 1.25; }
.cctv-nearby-travel__list small { margin-top: 3px; color: #89949e; font-size: 10px; line-height: 1.2; }
.cctv-nearby-travel__list > a > i { color: #6f7b85; font-size: 10px; }
.cctv-player-card__footer { padding: 10px 12px; font-size: 11px; }
body.cctv-app .cctv-player-stage__play { width: 52px; min-width: 52px; height: 52px; min-height: 52px; padding: 0; border-radius: 50% !important; font-size: 24px; }
.cctv-player-stage__play .bi { font-size: 28px; }
.cctv-detail-copy { padding: 14px; font-size: 13px; }

.cctv-pagination { gap: 0; margin-top: 16px; border-top: 1px solid #282828; border-left: 1px solid #282828; }
.cctv-pagination a,
.cctv-pagination span { min-width: 40px; min-height: 40px; border-right: 1px solid #282828; border-bottom: 1px solid #282828; background: #070707; font-size: 12px; }

.cctv-map-categories { display: flex; overflow-x: auto; margin: 10px 0; border-top: 1px solid #242424; border-bottom: 1px solid #242424; scrollbar-width: none; }
.cctv-map-categories::-webkit-scrollbar { display: none; }
.cctv-map-categories a { flex: 0 0 auto; min-height: 38px; padding: 9px 10px; color: #b7c0c9; border-right: 1px solid #242424; font-size: 11px; text-decoration: none; }
.cctv-map-categories a.is-active { color: #fff; background: #10202b; box-shadow: inset 0 -2px 0 #38bdf8; }
.cctv-map-layout { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 8px; }
.cctv-map-layout .cctv-map-categories { display: flex; flex-direction: column; overflow: visible; margin: 12px 0 0; border: 1px solid #242424; }
.cctv-map-layout .cctv-map-categories a { display: flex; min-height: 44px; align-items: center; justify-content: center; padding: 7px 4px; border-right: 0; border-bottom: 1px solid #242424; font-size: 10px; line-height: 1.2; text-align: center; white-space: normal; }
.cctv-map-layout .cctv-map-categories a:last-child { border-bottom: 0; }
.cctv-map-layout .cctv-map-categories a.is-active { box-shadow: inset -2px 0 0 #38bdf8; }
.cctv-map { height: 56svh; min-height: 410px; border: 1px solid #2a2a2a; background: #050505; }
.cctv-map .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.56) contrast(1.35); }
.cctv-region-map-shell { margin: 12px 0 0; border: 1px solid #2a2a2a; background: #000; }
.cctv-region-map__toolbar { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 8px 0 10px; border-bottom: 1px solid #242424; }
.cctv-region-map__toolbar p { margin: 0; overflow: hidden; color: #c4ccd4; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.cctv-region-map__reset { display: inline-flex; min-width: 60px; min-height: 36px; align-items: center; justify-content: center; gap: 5px; color: #cceaff; border: 1px solid #365268; background: #0b1116; font-size: 11px; }
.cctv-region-map__reset:hover,
.cctv-region-map__reset:focus-visible { color: #fff; border-color: #67c6f0; background: #10202b; outline: none; }
.cctv-region-map__canvas { position: relative; width: min(100%, 380px); margin: 0 auto; aspect-ratio: 400 / 520; overflow: hidden; background: #000; }
.cctv-region-map { display: block; width: 100%; height: 100%; background: #000; }
.cctv-region-map__base { fill: none; stroke: #aeb7c0; stroke-width: 3.5; stroke-linecap: round; opacity: .42; }
.cctv-region-map__region { fill: rgba(56, 189, 248, 0); stroke: #5d7388; stroke-width: .9; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .18s ease, stroke .18s ease, opacity .18s ease; }
.cctv-region-map__region:hover,
.cctv-region-map__region:focus-visible { fill: rgba(56, 189, 248, .2); stroke: #8edcff; stroke-width: 1.4; outline: none; }
.cctv-region-map__region.is-selected { fill: rgba(56, 189, 248, .3); stroke: #c4f0ff; stroke-width: 1.6; }
.cctv-region-map__camera { display: none; cursor: pointer; }
.cctv-region-map__camera.is-visible { display: block; pointer-events: none; }
.cctv-region-map-shell.is-region-selected .cctv-region-map__camera.is-visible { pointer-events: auto; }
.cctv-region-map__camera-hit { fill: transparent; }
.cctv-region-map__camera-dot { fill: #f0525b; stroke: #000; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.cctv-region-map__camera:hover .cctv-region-map__camera-dot,
.cctv-region-map__camera:focus-visible .cctv-region-map__camera-dot { fill: #fff; stroke: #f0525b; stroke-width: 2; outline: none; }
.cctv-region-map__popup { position: absolute; top: 8px; left: 8px; z-index: 10; display: grid; grid-template-columns: 88px minmax(0, 1fr); width: min(220px, calc(100% - 16px)); min-height: 72px; border: 1px solid #57768d; background: #080c10; box-shadow: 0 8px 24px rgba(0, 0, 0, .68); }
.cctv-region-map__popup[hidden] { display: none; }
.cctv-region-map__popup-thumbnail { display: block; min-height: 70px; background: #141414; }
.cctv-region-map__popup-thumbnail img { display: block; width: 100%; height: 100%; min-height: 70px; object-fit: cover; }
.cctv-region-map__popup-copy { display: flex; min-width: 0; min-height: 70px; flex-direction: column; justify-content: center; padding: 10px 30px 10px 10px; color: #f3f7fa; text-decoration: none; }
.cctv-region-map__popup-copy strong { overflow: hidden; font-size: 13px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.cctv-region-map__popup-copy span { display: block; margin-top: 3px; overflow: hidden; color: #98a5b1; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.cctv-region-map__popup-thumbnail:hover,
.cctv-region-map__popup-thumbnail:focus-visible,
.cctv-region-map__popup-copy:hover,
.cctv-region-map__popup-copy:focus-visible { background: #13202a; color: #d9f3ff; outline: 2px solid #6fd4ff; outline-offset: -2px; }
.cctv-region-map__popup-close { position: absolute; z-index: 2; top: 0; right: 0; display: grid; width: 32px; height: 32px; place-items: center; color: #aab5be; border: 0; border-left: 1px solid #31414e; border-bottom: 1px solid #31414e; background: #10171d; font-size: 11px; }
.cctv-region-map__popup-close:hover,
.cctv-region-map__popup-close:focus-visible { color: #fff; background: #263847; outline: 2px solid #6fd4ff; outline-offset: -2px; }
.cctv-detail-location { display: grid; grid-template-columns: minmax(0, 1fr) 160px; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #282828; }
.cctv-detail-location__copy h3 { margin: 0; color: #dce4ea; font-size: 13px; font-weight: 800; }
.cctv-detail-location__copy p { margin: 4px 0 0; color: #88939d; font-size: 10px; line-height: 1.45; }
.cctv-detail-location__map { display: block; width: 160px; aspect-ratio: 400 / 520; border: 1px solid #2d3945; background: #030303; }
.cctv-detail-location__base { fill: none; stroke: #9aa5ae; stroke-width: 3.5; stroke-linecap: round; opacity: .42; }
.cctv-detail-location__marker { fill: #38bdf8; stroke: #eefbff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.cctv-detail-location--pending { grid-template-columns: minmax(0, 1fr); min-height: 58px; }
.cctv-map-japan-link { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; margin-top: 10px; padding: 8px 0; color: #b9dffa; border-bottom: 1px solid #282828; font-size: 12px; text-decoration: none; }
.cctv-map-note { margin: 6px 0 0; color: #78828c; font-size: 10px; }
.cctv-map-marker { display: grid; place-items: center; border: 1px solid #d4f4ff; background: #38bdf8; box-shadow: 0 0 0 2px rgba(0, 0, 0, .75); }
.cctv-map-marker span { display: block; width: 6px; height: 6px; background: #04101a; }
.cctv-map-marker.media-youtube { border-color: #ffd7d7; background: #e6424f; }
.cctv-map-popup { min-width: 150px; }
.cctv-map-popup a { display: block; color: #050505; font-size: 13px; font-weight: 800; }
.cctv-map-popup span { display: block; margin-top: 3px; color: #4f5963; font-size: 10px; }
.cctv-map-link-list { border-top: 1px solid #282828; }
.cctv-map-link-list a { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 4px; color: #edf2f6; border-bottom: 1px solid #282828; text-decoration: none; }
.cctv-map-link-list strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.cctv-map-link-list span { flex: 0 0 auto; color: #79838d; font-size: 9px; }

.cctv-sitemap-list { display: grid; border-top: 1px solid #282828; }
.cctv-sitemap-list a { min-height: 42px; padding: 10px 4px; color: #dbe2e8; border-bottom: 1px solid #282828; font-size: 12px; text-decoration: none; }

.cctv-bottom-nav {
  left: 50%;
  width: min(100%, 520px);
  min-height: 62px;
  border: 0;
  border-top: 1px solid #303030;
  background: #070707;
  box-shadow: none;
  transform: translateX(-50%);
}
.cctv-bottom-nav a { min-height: 62px; padding: 7px 2px 5px; color: #929ca5; border-top: 2px solid transparent; font-size: 9px; }
.cctv-bottom-nav a i { font-size: 17px; }
.cctv-bottom-nav a.is-active { color: #fff; border-top-color: var(--cctv-blue); background: #0d0d0d; }

.cctv-footer { padding: 18px 0 78px; border-top: 1px solid #1d1d1d; background: #000; font-size: 10px; }
.cctv-footer__inner { color: #707982; }
.cctv-ad-slot { min-height: 100px; margin: 22px 0; border-color: #191919; background: #030303; }

@media (min-width: 1px) {
  .cctv-container { width: min(100%, 520px) !important; }
  .cctv-hub-grid,
  .cctv-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .cctv-detail-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Browser-saved CCTV favorites */
.cctv-card {
  position: relative;
  display: block !important;
}

.cctv-card__link {
  display: grid;
  min-height: 106px;
  grid-template-columns: 38% minmax(0, 1fr);
  color: inherit;
  text-decoration: none;
}

.cctv-card__link:focus-visible {
  outline: 2px solid var(--cctv-blue);
  outline-offset: -3px;
}

.cctv-card__link .cctv-card__media {
  align-self: stretch;
  min-height: 106px;
}

.cctv-card__link .cctv-card__body {
  padding-right: 52px !important;
}

.cctv-text-row {
  position: relative;
  display: block;
}

.cctv-text-row__link {
  display: grid;
  min-height: 58px;
  grid-template-columns: minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 8px;
  padding: 8px 50px 8px 10px;
  color: inherit;
  text-decoration: none;
}

.cctv-text-row__link:focus-visible {
  outline: 2px solid var(--cctv-blue);
  outline-offset: -3px;
}

.cctv-favorite-toggle {
  position: absolute;
  z-index: 3;
  top: 6px;
  right: 6px;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  color: #dbe7f0;
  border: 1px solid rgba(219, 231, 240, .3);
  border-radius: 50%;
  background: rgba(3, 8, 16, .76);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .24);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.cctv-favorite-toggle:hover {
  color: #fff;
  border-color: rgba(251, 113, 133, .86);
  background: rgba(136, 19, 55, .88);
  transform: scale(1.05);
}

.cctv-favorite-toggle.is-active {
  color: #fecdd3;
  border-color: rgba(251, 113, 133, .9);
  background: #9f1239;
}

.cctv-favorite-toggle--text {
  top: 10px;
  right: 8px;
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.cctv-favorite-toggle--detail {
  position: static;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.cctv-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cctv-detail-title-row .cctv-page-title { min-width: 0; }

.cctv-favorite-toast {
  position: fixed;
  z-index: 70;
  bottom: 82px;
  left: 50%;
  max-width: min(calc(100% - 32px), 420px);
  padding: 10px 14px;
  color: #f8fafc;
  border: 1px solid rgba(56, 189, 248, .45);
  border-radius: 12px;
  background: rgba(8, 18, 32, .96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .38);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transform: translateX(-50%);
}

.cctv-favorites-head__title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cctv-favorites-head__title > i {
  color: #fb7185;
  font-size: 22px;
}

.cctv-favorites-head__title h1 { margin: 0; }

.cctv-favorites-count {
  display: inline-block;
  margin-top: 10px;
  color: #fbcfe8;
  font-size: 12px;
  font-weight: 800;
}

.cctv-favorites-clear {
  min-height: 32px;
  padding: 4px 8px;
  color: #d7e0e8;
  border: 1px solid #39434d;
  border-radius: 7px;
  background: #101010;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.cctv-favorites-clear:hover { color: #fff; border-color: #687787; }

.cctv-sitemap-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #292929;
  border-left: 1px solid #292929;
}

.cctv-sitemap-menu a {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #e7edf2;
  border-right: 1px solid #292929;
  border-bottom: 1px solid #292929;
  background: #050505;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.cctv-sitemap-menu a:hover,
.cctv-sitemap-menu a:focus-visible { color: #fff; background: #101010; }
.cctv-sitemap-menu i { color: var(--cctv-blue); font-size: 16px; }

.cctv-sitemap-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cctv-sitemap-list a:hover,
.cctv-sitemap-list a:focus-visible { color: #fff; background: #101010; }
.cctv-sitemap-list a > i { flex: 0 0 auto; color: #65717b; font-size: 10px; }

@media (max-width: 359px) {
  .cctv-favorite-toggle { width: 36px; height: 36px; }
  .cctv-card__link .cctv-card__body { padding-right: 48px !important; }
}
