body.watch-page-body {
    --watch-bg: #f6f8fb;
    --watch-surface: #ffffff;
    --watch-line: rgba(36, 95, 147, 0.15);
    --watch-text: #102033;
    --watch-muted: #607083;
    --watch-accent: #245f93;
    --watch-accent-strong: #ed1c24;
    --watch-accent-soft: rgba(36, 95, 147, 0.12);
    --watch-live: #ed1c24;
    background: var(--watch-bg);
    color: var(--watch-text);
    overscroll-behavior-y: auto;
}

.watch-page-body .page-shell,
.watch-page-body main {
    background: var(--watch-bg);
}

.watch-page-body main {
    padding-bottom: 0;
}

.watch-page-body .portal-footer {
    display: none !important;
}

.watch-page-body .portal-navbar {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--watch-line);
    box-shadow: none;
}

.watch-page-body .portal-navbar .container {
    max-width: 100%;
    padding-bottom: 0.65rem !important;
    padding-top: 0.65rem !important;
}

.watch-page-body .portal-navbar .navbar-brand {
    align-items: center;
    gap: 0.7rem !important;
    margin-right: 0;
}

.watch-page-body .portal-brand-mark {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--watch-accent);
    height: 2.55rem;
    width: 2.55rem;
}

.watch-page-body .portal-brand-logo img {
    object-fit: contain;
    object-position: left center;
}

.watch-page-body .portal-brand .brand-identity {
    display: grid;
}

.portal-watch-search {
    align-items: center;
    background: #fff;
    border: 1px solid var(--watch-line);
    border-radius: 999px;
    display: none;
    flex: 1 1 40rem;
    height: 2.65rem;
    margin: 0;
    max-width: 44rem;
    overflow: hidden;
}

.portal-watch-search input {
    background: transparent;
    border: 0;
    color: var(--watch-text);
    flex: 1 1 auto;
    font: inherit;
    font-size: 0.92rem;
    height: 100%;
    min-width: 0;
    outline: 0;
    padding: 0 1rem;
}

.portal-watch-search input::placeholder {
    color: var(--watch-muted);
}

.portal-watch-search button {
    align-items: center;
    appearance: none;
    background: var(--watch-accent-soft);
    border: 0;
    border-left: 1px solid var(--watch-line);
    color: var(--watch-accent);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 3.25rem;
    height: 100%;
    justify-content: center;
}

.portal-watch-search:focus-within {
    border-color: rgba(36, 95, 147, 0.35);
    box-shadow: 0 0 0 3px rgba(36, 95, 147, 0.10);
}

.watch-page-body .brand-title {
    color: var(--watch-text);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.watch-page-body .portal-bottom-nav {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--watch-line);
    box-shadow: 0 -12px 28px rgba(24, 40, 36, 0.08);
    display: none;
}

.watch-page-body .portal-bottom-nav a {
    color: var(--watch-muted);
}

.watch-page-body .portal-bottom-nav a.active {
    color: var(--watch-accent);
}

.watch-page-body .portal-bottom-nav a.active i,
.watch-page-body .portal-bottom-nav a.active span {
    color: var(--watch-accent);
}

.watch-page-body .portal-watch-map-toggle {
    display: none;
}

.watch-page {
    padding: 0 0 2rem;
}

.watch-shell {
    margin: 0 auto;
    max-width: 40rem;
}

.watch-player-stack {
    position: relative;
    width: 100%;
    z-index: 4;
}

.watch-player-shell {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 14;
}

.watch-player-frame {
    --watch-thumb: none;
    align-items: stretch;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.36) 100%),
        #050505 var(--watch-thumb) center center / cover no-repeat;
    border: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.watch-player-frame::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.12) 32%, rgba(0, 0, 0, 0.36) 100%);
    content: "";
    inset: 0;
    opacity: 1;
    pointer-events: none;
    position: absolute;
    transition: opacity 0.24s ease;
    z-index: 1;
}

.watch-player-embed,
.watch-player-embed iframe,
.watch-player-placeholder {
    inset: 0;
    position: absolute;
}

.watch-player-embed {
    border-radius: inherit;
    overflow: hidden;
    width: 100%;
    z-index: 0;
}

.watch-player-embed iframe {
    border: 0;
    border-radius: inherit;
    display: block;
    height: 100%;
    width: 100%;
}

.watch-player-embed.is-youtube {
    background: #050505;
    transition: opacity 0.16s ease, visibility 0.16s ease;
}

.watch-player-embed.is-youtube iframe {
    height: 142%;
    left: 50%;
    max-width: none;
    pointer-events: none;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 142%;
}

.watch-player-frame.is-youtube::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.04) 42%, rgba(0, 0, 0, 0.24) 100%);
}

.watch-player-frame.is-youtube .watch-player-controls {
    z-index: 4;
}

.watch-player-frame.is-youtube.is-youtube-paused .watch-player-embed {
    opacity: 0;
    visibility: hidden;
}

.watch-player-placeholder {
    align-items: center;
    background:
        linear-gradient(180deg, rgba(3, 7, 18, 0.3), rgba(3, 7, 18, 0.82)),
        rgba(7, 7, 7, 0.92) var(--watch-thumb) center center / cover no-repeat;
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    font-size: 0.95rem;
    font-weight: 600;
    justify-content: center;
    letter-spacing: 0.01em;
    text-align: center;
}

.watch-player-controls {
    position: absolute;
    z-index: 2;
}

.watch-player-controls {
    align-items: center;
    bottom: 0.8rem;
    display: flex;
    gap: 0.6rem;
    left: 0.9rem;
    opacity: 1;
    right: 0.9rem;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.watch-live-chip {
    align-items: center;
    background: var(--watch-live);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.74rem;
    font-weight: 800;
    justify-content: center;
    letter-spacing: 0.1em;
    line-height: 1;
    min-height: 2.1rem;
    padding: 0 0.72rem;
    text-align: center;
}

.watch-live-chip.is-offline {
    background: rgba(71, 85, 105, 0.92);
}

.watch-player-frame.is-chrome-hidden::before {
    opacity: 0;
}

.watch-player-frame.is-chrome-hidden .watch-player-controls {
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.5rem);
}

.watch-player-frame.is-chrome-hidden .watch-player-embed iframe {
    pointer-events: none;
}

.watch-player-controls .watch-control-button:last-child {
    margin-left: auto;
}

.watch-control-button {
    appearance: none;
    align-items: center;
    backdrop-filter: blur(16px);
    background: rgba(11, 16, 24, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 0.92rem;
    height: 2.7rem;
    justify-content: center;
    padding: 0;
    transition: background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
    width: 2.7rem;
}

.watch-control-button:disabled {
    cursor: default;
    opacity: 0.46;
}

.watch-control-button:not(:disabled):active {
    transform: scale(0.97);
}

.watch-meta-panel,
.watch-map-panel,
.watch-list-panel {
    background: var(--watch-surface);
    border-bottom: 1px solid var(--watch-line);
}

.watch-meta-panel {
    display: grid;
    gap: 0.62rem;
    padding: 0.92rem 1rem 0.95rem;
}

.watch-meta-copy {
    display: grid;
    gap: 0.28rem;
}

.watch-meta-copy h1 {
    color: var(--watch-text);
    font-size: clamp(1.12rem, 4.8vw, 1.42rem);
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.24;
    margin: 0;
}

.watch-meta-copy p {
    color: var(--watch-muted);
    font-size: 0.9rem;
    margin: 0;
}

.watch-meta-line {
    align-items: center;
    color: var(--watch-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    gap: 0.5rem;
}

.watch-meta-map-button {
    align-items: center;
    appearance: none;
    background: var(--watch-accent-soft);
    border: 1px solid rgba(36, 95, 147, 0.20);
    border-radius: 999px;
    color: var(--watch-accent);
    cursor: pointer;
    display: none !important;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    gap: 0.42rem;
    min-height: 2.2rem;
    padding: 0 0.78rem;
}

.watch-meta-map-button i {
    font-size: 0.86rem;
}

.watch-meta-separator {
    color: #9aa6a2;
}

.watch-panel-head {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.95rem 1rem 0.75rem;
}

.watch-panel-head.is-inline {
    padding: 0;
}

.watch-panel-head h2,
.watch-panel-head h3 {
    color: var(--watch-text);
    font-size: 1.18rem;
    font-weight: 700;
    margin: 0 0 0.22rem;
}

.watch-panel-head p {
    color: var(--watch-muted);
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0;
}

.watch-panel-actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.45rem;
}

.watch-panel-button,
.watch-map-show-button {
    appearance: none;
    align-items: center;
    background: transparent;
    border: 1px solid var(--watch-line);
    border-radius: 999px;
    color: var(--watch-text);
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    gap: 0.45rem;
    justify-content: center;
    min-height: 2.35rem;
    min-width: 2.35rem;
    padding: 0 0.72rem;
    text-decoration: none;
}

.watch-panel-button i {
    font-size: 0.9rem;
}

.watch-map-expanded {
    padding: 0 1rem 1rem;
}

.watch-map-canvas {
    border: 1px solid var(--watch-line);
    border-radius: 0.95rem;
    height: clamp(15rem, 44vh, 24rem);
    overflow: hidden;
}

.watch-map-minimized,
.watch-map-hidden {
    padding: 0 1rem 1rem;
}

.watch-map-panel[data-map-mode="minimized"] .watch-panel-head:not(.is-inline),
.watch-map-panel[data-map-mode="hidden"] .watch-panel-head:not(.is-inline) {
    display: none;
}

.watch-map-minimized {
    padding-top: 0.95rem;
}

.watch-map-minimized[hidden],
.watch-map-hidden[hidden] {
    display: none !important;
}

.watch-nearest-current {
    background: var(--watch-surface);
    border: 1px solid var(--watch-line);
    border-radius: 0.9rem;
    display: grid;
    gap: 0.26rem;
    margin-top: 1rem;
    padding: 0.9rem 1rem;
}

.watch-nearest-current strong {
    color: var(--watch-text);
    font-size: 1rem;
    font-weight: 700;
}

.watch-nearest-current span {
    color: var(--watch-muted);
    font-size: 0.88rem;
}

.watch-nearest-list {
    cursor: grab;
    display: flex;
    gap: 0.68rem;
    margin-top: 0.9rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
    touch-action: pan-x;
    user-select: none;
}

.watch-nearest-list[data-dragging="true"] {
    cursor: grabbing;
}

.watch-nearest-list::-webkit-scrollbar {
    display: none;
}

.watch-nearest-card,
.watch-camera-card {
    appearance: none;
    background: var(--watch-surface);
    border: 1px solid var(--watch-line);
    border-radius: 0.82rem;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    width: 100%;
}

.watch-nearest-card {
    display: grid;
    gap: 0.55rem;
    flex: 0 0 16rem;
    padding: 0.9rem 1rem;
}

.watch-nearest-card-head,
.watch-camera-card-head {
    align-items: center;
    display: flex;
    gap: 0.7rem;
    justify-content: space-between;
}

.watch-nearest-card-title,
.watch-camera-card-title {
    color: var(--watch-text);
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.32;
}

.watch-nearest-card-copy,
.watch-camera-card-copy {
    color: var(--watch-muted);
    font-size: 0.8rem;
    line-height: 1.38;
}

.watch-distance-pill {
    background: var(--watch-accent-soft);
    border-radius: 999px;
    color: var(--watch-accent);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.3rem 0.58rem;
    white-space: nowrap;
}

.watch-nearest-empty {
    background: var(--watch-surface);
    border: 1px dashed rgba(36, 95, 147, 0.20);
    border-radius: 1rem;
    color: var(--watch-muted);
    font-size: 0.9rem;
    padding: 1rem;
}

.watch-map-show-button {
    background: var(--watch-accent-soft);
    border-color: rgba(36, 95, 147, 0.24);
    color: var(--watch-accent);
    width: 100%;
}

.watch-list-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0 0 1rem;
}

.watch-filter-rail {
    background: var(--watch-surface);
    border-bottom: 1px solid rgba(36, 95, 147, 0.08);
    cursor: grab;
    display: flex;
    flex: 0 0 auto;
    gap: 0.55rem;
    overflow-x: auto;
    -ms-overflow-style: none;
    padding: 1rem 1rem 0.72rem;
    position: relative;
    scrollbar-width: none;
    touch-action: pan-x;
    z-index: 2;
}

.watch-filter-rail[data-dragging="true"] {
    cursor: grabbing;
}

.watch-filter-rail::-webkit-scrollbar {
    display: none;
}

.watch-filter-chip {
    appearance: none;
    background: #eef2f1;
    border: 0;
    border-radius: 0.55rem;
    color: #52615d;
    cursor: pointer;
    flex: 0 0 auto;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1;
    min-height: 2.12rem;
    padding: 0 0.86rem;
    transition: background-color 0.16s ease, color 0.16s ease;
    white-space: nowrap;
}

.watch-filter-chip.is-active {
    background: var(--watch-text);
    color: #fff;
}

.watch-filter-chip:focus-visible {
    outline: 2px solid rgba(36, 95, 147, 0.35);
    outline-offset: 2px;
}

.watch-list-count {
    color: var(--watch-muted);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.watch-camera-list {
    align-content: start;
    flex: 1 1 auto;
    display: grid;
    gap: 0.55rem;
    min-height: 0;
    overflow-y: auto;
    padding: 0.75rem 1rem 0;
}

.watch-camera-empty {
    border: 1px dashed rgba(36, 95, 147, 0.20);
    border-radius: 0.85rem;
    color: var(--watch-muted);
    font-size: 0.9rem;
    margin: 0 1rem;
    padding: 1rem;
}

.watch-camera-card {
    align-items: start;
    display: grid;
    gap: 0.72rem;
    grid-template-columns: 8.35rem minmax(0, 1fr);
    padding: 0.55rem;
    text-decoration: none;
}

.watch-camera-card.is-active {
    border-color: rgba(36, 95, 147, 0.30);
    box-shadow: inset 0 0 0 1px rgba(36, 95, 147, 0.16);
}

.watch-camera-card-thumb {
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.46)),
        #0d0d0d center center / cover no-repeat;
    border-radius: 0.7rem;
    overflow: hidden;
    position: relative;
}

.watch-camera-card-thumb::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.18)),
        var(--watch-card-thumb, none) center center / cover no-repeat;
    content: "";
    inset: 0;
    position: absolute;
}

.watch-camera-live-badge {
    align-items: center;
    background: var(--watch-live);
    border-radius: 999px;
    bottom: 0.48rem;
    color: #fff;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 800;
    gap: 0.28rem;
    justify-content: center;
    left: 0.48rem;
    letter-spacing: 0.08em;
    line-height: 1;
    min-height: 1.5rem;
    padding: 0 0.52rem;
    position: absolute;
    text-align: center;
    text-transform: uppercase;
    z-index: 1;
}

.watch-camera-live-badge.is-offline {
    background: rgba(71, 85, 105, 0.92);
}

.watch-camera-card-body {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.watch-camera-card-meta {
    color: var(--watch-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.8rem;
    gap: 0.45rem;
    line-height: 1.45;
}

.watch-camera-card-updated {
    color: #8a9692;
    font-size: 0.78rem;
}

.watch-status-dot {
    align-items: center;
    display: inline-flex;
    gap: 0.3rem;
}

.watch-status-dot::before {
    background: currentColor;
    border-radius: 999px;
    content: "";
    height: 0.46rem;
    width: 0.46rem;
}

.watch-status-dot.is-online {
    color: #245f93;
}

.watch-status-dot.is-offline {
    color: #64748b;
}

.watch-map-marker {
    align-items: center;
    background: transparent;
    display: flex;
    justify-content: center;
}

.watch-map-marker span {
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.32);
    display: block;
    height: 0.78rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    width: 0.78rem;
}

.watch-map-marker.is-online span {
    background: #10b981;
}

.watch-map-marker.is-offline span {
    background: #94a3b8;
}

.watch-map-marker.is-active span {
    background: var(--watch-accent);
    box-shadow: 0 0 0 6px rgba(36, 95, 147, 0.18), 0 14px 28px rgba(0, 0, 0, 0.18);
    transform: scale(1.18);
}

.watch-map-popup {
    color: var(--watch-text);
    display: grid;
    gap: 0.36rem;
    max-width: min(13rem, calc(100vw - 4.5rem));
    min-width: 9.25rem;
}

.watch-map-popup strong {
    font-size: 0.78rem;
    line-height: 1.22;
}

.watch-map-popup p {
    color: var(--watch-muted);
    font-size: 0.74rem;
    line-height: 1.35;
    margin: 0;
}

.watch-map-popup-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.watch-map-popup-stack {
    display: grid;
    gap: 0.3rem;
    max-height: min(8.8rem, 28vh);
    overflow-y: auto;
    padding-right: 0.12rem;
}

.watch-map-popup-camera {
    appearance: none;
    background: #f7faf9;
    border: 1px solid var(--watch-line);
    border-radius: 0.55rem;
    color: var(--watch-text);
    cursor: pointer;
    display: grid;
    font-family: inherit;
    gap: 0.1rem;
    min-height: 2.1rem;
    padding: 0.36rem 0.46rem;
    text-align: left;
}

.watch-map-popup-camera span {
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.15;
}

.watch-map-popup-camera small {
    color: var(--watch-muted);
    font-size: 0.6rem;
    font-weight: 700;
}

.watch-map-popup-camera.is-active {
    background: var(--watch-accent-soft);
    border-color: rgba(36, 95, 147, 0.3);
    color: var(--watch-accent);
}

.watch-map-popup-button {
    appearance: none;
    background: var(--watch-accent-soft);
    border: 1px solid rgba(36, 95, 147, 0.22);
    border-radius: 999px;
    color: var(--watch-accent);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    min-height: 2rem;
    padding: 0 0.72rem;
}

.watch-page-body .leaflet-container {
    background: #edf4fb;
    font-family: "Public Sans", Arial, sans-serif;
}

.watch-page-body .leaflet-popup-content-wrapper,
.watch-page-body .leaflet-popup-tip {
    background: #ffffff;
    color: var(--watch-text);
}

.watch-page-body .leaflet-popup-content {
    margin: 0.62rem;
    max-width: min(13rem, calc(100vw - 4.5rem));
}

body.public-mobile-body.watch-page-body .leaflet-popup-content {
    margin: 0.62rem;
    max-width: min(13rem, calc(100vw - 4.5rem));
}

.watch-map-popup.is-stack {
    min-width: 10rem;
}

.watch-map-popup-group-title {
    color: var(--watch-text);
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.2;
    margin: -0.05rem 0 0.3rem;
    max-width: 11.5rem;
}

.watch-map-popup.is-stack .watch-map-popup-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
}

.watch-map-popup.is-stack .watch-map-popup-camera {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    justify-content: center;
    min-height: 1.7rem;
    min-width: 2.35rem;
    padding: 0 0.55rem;
}

.watch-map-popup.is-stack .watch-map-popup-camera span {
    font-size: 0.68rem;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    body.public-mobile-body.watch-page-body .leaflet-popup-content {
        margin: 0.45rem;
        max-width: min(12rem, calc(100vw - 5rem));
    }

    .watch-map-popup {
        max-width: min(12rem, calc(100vw - 5rem));
        min-width: 8.5rem;
    }

    .watch-map-popup.is-stack {
        min-width: 9.2rem;
    }
}

.watch-page-body .leaflet-popup-close-button {
    color: var(--watch-muted) !important;
}

.watch-page-body .leaflet-control-zoom {
    border: 0 !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.watch-page-body .leaflet-control-zoom a {
    background: rgba(23, 23, 23, 0.92) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

@media (min-width: 768px) {
    .watch-page {
        padding: 1rem 1rem 2.5rem;
    }

    .watch-player-frame,
    .watch-meta-panel,
    .watch-map-panel,
    .watch-list-panel {
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 1rem;
    }

    .watch-player-frame {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .watch-meta-panel {
        border-top: 0;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        margin-bottom: 1rem;
    }

    .watch-map-panel,
    .watch-list-panel {
        margin-bottom: 1rem;
    }

    .watch-player-shell {
        top: 0.75rem;
    }

    .watch-camera-list {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1100px) {
    .watch-page-body .portal-watch-search {
        display: inline-flex;
    }

    .watch-map-backdrop {
        z-index: 1060;
    }

    .watch-map-panel {
        z-index: 1065;
    }

    .watch-page-body .portal-navbar,
    .watch-page-body .portal-bottom-nav {
        z-index: 1045;
    }

    .watch-shell {
        align-items: start;
        display: grid;
        gap: 1rem;
        grid-template-areas:
            "player list"
            "map list";
        grid-template-columns: minmax(0, 1fr) 23rem;
        grid-template-rows: auto minmax(0, 1fr);
        height: max(66rem, calc(100vh - 2.5rem));
        max-width: 74rem;
        min-height: 0;
    }

    .watch-player-stack {
        grid-area: player;
    }

    .watch-map-panel {
        grid-area: map;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
        min-height: 34rem;
        overflow: hidden;
    }

    .watch-list-panel {
        align-self: stretch;
        display: flex;
        flex-direction: column;
        grid-area: list;
        height: var(--watch-list-panel-height, calc(100vh - 2.5rem));
        margin-bottom: 0;
        max-height: var(--watch-list-panel-height, calc(100vh - 2.5rem));
        min-height: 0;
        overflow: hidden;
        position: sticky;
        top: 1.25rem;
    }

    .watch-map-minimized {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 26rem;
    }

    .watch-map-expanded {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
    }

    .watch-map-expanded .watch-map-canvas {
        flex: 1 1 auto;
        height: auto;
        min-height: 0;
        width: 100%;
    }

    .watch-nearest-list {
        align-content: start;
        flex: 1 1 auto;
        min-height: 0;
    }

    .watch-camera-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }

    .watch-camera-card {
        grid-template-columns: 9.5rem minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    body.watch-page-body {
        --watch-mobile-meta-height: 5.6rem;
    }

    html:has(.watch-page) {
        height: auto !important;
        min-height: 100%;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: auto !important;
    }

    .watch-page-body,
    .watch-page-body .page-shell {
        height: auto !important;
        min-height: 100vh;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        overscroll-behavior-y: auto !important;
    }

    .watch-page-body main {
        height: auto !important;
        min-height: 100vh;
        overflow: visible !important;
        overscroll-behavior-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .watch-page-body .portal-navbar {
        display: block;
        left: 50%;
        max-width: 430px;
        position: fixed;
        right: auto;
        top: 0;
        transform: translateX(-50%);
        width: 100%;
        z-index: 1050;
    }

    .watch-page-body .portal-navbar-row {
        min-height: var(--watch-mobile-navbar-height, 4rem);
        position: relative;
    }

    .watch-player-stack {
        display: contents;
    }

    .watch-page-body .portal-navbar .container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .watch-page-body .portal-brand {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.2s ease, transform 0.24s ease;
    }

    .watch-page-body .portal-watch-search {
        display: inline-flex;
        left: 0.85rem;
        max-width: none;
        opacity: 0;
        pointer-events: none;
        position: absolute;
        right: 0.85rem;
        top: 50%;
        transform: translate(0.85rem, -50%) scale(0.98);
        transform-origin: right center;
        transition:
            opacity 0.22s ease,
            transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1),
            visibility 0.22s ease;
        visibility: hidden;
        width: auto;
        z-index: 2;
    }

    .watch-page-body.watch-mobile-search-open .portal-brand {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-0.75rem);
    }

    .watch-page-body.watch-mobile-search-open .portal-watch-search {
        opacity: 1;
        pointer-events: auto;
        transform: translate(0, -50%) scale(1);
        visibility: visible;
    }

    .watch-player-shell {
        left: 50%;
        max-width: 430px;
        position: fixed;
        top: var(--watch-mobile-navbar-height, 4rem);
        transform: translateX(-50%);
        width: 100%;
        z-index: 1040;
    }

    .watch-page {
        min-height: 100vh;
        height: auto;
        overflow: visible;
        padding: calc(var(--watch-mobile-navbar-height, 4rem) + min(56.25vw, 241.875px) + var(--watch-mobile-meta-height, 7.6rem)) 0 0;
    }

    .watch-shell {
        min-height: calc(100vh - var(--watch-mobile-navbar-height, 4rem) - min(56.25vw, 241.875px) - var(--watch-mobile-meta-height, 7.6rem) - 4.65rem);
        height: auto;
        max-width: 430px;
        overflow-x: hidden;
        overflow-y: visible;
        overscroll-behavior-y: auto;
        padding-bottom: 6rem;
    }

    .watch-meta-panel {
        border-bottom: 1px solid var(--watch-line);
        gap: 0.34rem;
        left: 50%;
        max-width: 430px;
        min-height: 0;
        overflow: hidden;
        padding: 0.54rem 0.95rem 0.44rem;
        position: fixed;
        top: calc(var(--watch-mobile-navbar-height, 4rem) + min(56.25vw, 241.875px));
        transform: translateX(-50%);
        width: 100%;
        z-index: 1038;
    }

    .watch-meta-copy {
        gap: 0.18rem;
    }

    .watch-meta-copy h1 {
        display: -webkit-box;
        font-size: 1.08rem;
        line-height: 1.16;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .watch-meta-copy p {
        font-size: 0.82rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .watch-meta-line {
        gap: 0.38rem;
    }

    .watch-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .watch-panel-actions {
        flex-wrap: nowrap;
    }

    .watch-panel-button,
    .watch-map-show-button {
        flex: 0 0 auto;
    }

    .watch-camera-card {
        grid-template-columns: 8rem minmax(0, 1fr);
    }

    .watch-filter-rail {
        padding-top: 0.35rem;
    }
}

@media (min-width: 1100px) {
    .watch-page-body .portal-navbar > .container {
        max-width: 104rem !important;
        padding-left: clamp(1rem, 2vw, 2rem) !important;
        padding-right: clamp(1rem, 2vw, 2rem) !important;
    }

    body.watch-map-drawer-open .watch-map-backdrop {
        z-index: 1060;
    }

    body.watch-map-drawer-open .watch-map-panel {
        z-index: 1065;
    }
}

@media (max-width: 420px) {
    .watch-camera-card {
        grid-template-columns: 7.15rem minmax(0, 1fr);
    }
}

/* Watch layout: the map is opened from the center navigation as a bottom drawer. */
.watch-map-backdrop {
    background: rgba(15, 23, 42, 0.38);
    inset: 0;
    opacity: 0;
    position: fixed;
    transition: opacity 0.24s ease;
    z-index: 1035;
}

.watch-map-backdrop:not([hidden]) {
    opacity: 1;
}

.watch-map-panel {
    background: var(--watch-surface);
    border: 1px solid var(--watch-line);
    border-bottom: 0;
    border-radius: 1rem 1rem 0 0;
    bottom: 0;
    box-shadow: 0 -18px 42px rgba(15, 23, 42, 0.16);
    left: 50%;
    margin: 0;
    max-height: min(78vh, 46rem);
    max-width: 76rem;
    overflow: hidden;
    position: fixed;
    transform: translate(-50%, calc(100% + 1rem));
    transition: transform 0.28s ease, visibility 0.28s ease;
    visibility: hidden;
    width: min(100%, 76rem);
    z-index: 1040;
}

.watch-map-panel.is-open {
    transform: translate(-50%, 0);
    visibility: visible;
}

.watch-map-panel .watch-map-expanded {
    display: block;
    padding: 0 1rem 1rem;
}

.watch-map-panel .watch-map-canvas {
    height: min(62vh, 36rem);
}

body.watch-map-drawer-open .portal-bottom-nav {
    border-radius: 0;
    box-shadow: none;
}

.watch-page-body .portal-navbar,
.watch-page-body .portal-bottom-nav {
    z-index: 1045;
}

@media (min-width: 1100px) {
    html:has(.watch-page) {
        height: 100vh;
        overflow: hidden;
    }

    .watch-page-body {
        height: 100vh;
        overflow: hidden;
    }

    .watch-page-body main {
        height: calc(100vh - 5.35rem);
        overflow: hidden;
        padding-bottom: 0;
    }

    .watch-page {
        padding: 1.25rem clamp(1rem, 2.5vw, 2.5rem) 2.5rem;
        height: 100%;
        overflow: hidden;
    }

    .watch-shell {
        align-items: stretch;
        display: grid;
        gap: 1.25rem;
        grid-template-areas: "player list";
        grid-template-columns: minmax(0, 1fr) minmax(22rem, 26rem);
        grid-template-rows: auto;
        height: 100%;
        max-width: 104rem;
        min-height: 0;
    }

    .watch-player-stack {
        display: flex;
        flex-direction: column;
        grid-area: player;
        min-height: 0;
        overflow: hidden;
        width: 100%;
    }

    .watch-player-shell {
        border-radius: 1rem 1rem 0 0;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        position: static;
        width: 100%;
    }

    .watch-player-frame {
        border-radius: 1rem 1rem 0 0;
        height: 100%;
        min-height: 0;
        width: 100%;
    }

    .watch-meta-panel {
        flex: 0 0 auto;
        margin-bottom: 0;
    }

    .watch-list-panel {
        grid-area: list;
        height: 100%;
        margin: 0;
        max-height: none;
        min-height: 0;
        position: static;
    }

    .watch-camera-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }

    .watch-map-panel {
        border: 1px solid var(--watch-line);
        border-radius: 1rem;
        bottom: auto;
        display: block;
        left: 50%;
        max-height: min(86vh, 54rem);
        max-width: min(92vw, 82rem);
        min-height: 0;
        top: 50%;
        transform: translate(-50%, calc(-50% + 1.2rem));
        width: min(92vw, 82rem);
    }

    .watch-map-panel.is-open {
        transform: translate(-50%, -50%);
    }

    .watch-camera-card {
        grid-template-columns: 8.4rem minmax(0, 1fr);
    }

    .watch-map-panel .watch-map-canvas {
        height: min(70vh, 43rem);
    }
}

@media (max-width: 575.98px) {
    body.watch-map-drawer-open {
        overflow: hidden;
    }

    .watch-meta-map-button {
        display: none;
    }

    .watch-map-panel {
        border-bottom: 0;
        border-left: 0;
        border-radius: 1rem 1rem 0 0;
        border-right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        height: calc(
            100dvh
            - var(--watch-map-drawer-top, calc(var(--watch-mobile-navbar-height, 4rem) + min(56.25vw, 241.875px)))
        );
        max-height: none;
        min-height: 22rem;
        top: var(--watch-map-drawer-top, calc(var(--watch-mobile-navbar-height, 4rem) + min(56.25vw, 241.875px)));
        width: 100%;
        z-index: 1060;
    }

    .watch-map-panel .watch-panel-head {
        align-items: flex-start;
        flex-direction: row;
    }

    .watch-map-panel .watch-map-expanded {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
        padding-bottom: 0;
    }

    .watch-map-panel .watch-map-canvas {
        flex: 1 1 auto;
        height: auto;
        min-height: 11rem;
        width: 100%;
    }
}

@media (min-width: 1100px) {
    .watch-page-body .portal-navbar > .container,
    .watch-page-body .portal-navbar .container {
        max-width: 104rem !important;
        padding-left: clamp(1rem, 2.5vw, 2.5rem) !important;
        padding-right: clamp(1rem, 2.5vw, 2.5rem) !important;
    }
}

body.portal-body.public-mobile-body.watch-page-body .portal-navbar > .container,
body.portal-body.public-mobile-body.watch-page-body .portal-navbar .container {
    max-width: 104rem !important;
}

@media (min-width: 1100px) {
    .watch-page-body main {
        height: calc(100vh - 5.35rem);
    }

    .watch-page {
        height: 100%;
        overflow: hidden;
        padding: 0;
    }

    .watch-shell {
        display: grid;
        gap: 0.8rem;
        grid-template-areas:
            "player list"
            "player map";
        grid-template-columns: minmax(0, 1fr) clamp(20rem, 22vw, 25rem);
        grid-template-rows: minmax(0, 1fr) 0;
        height: 100%;
        max-width: none;
        width: 100%;
    }

    body.watch-map-drawer-open .watch-shell {
        grid-template-rows: minmax(0, 1fr) auto;
    }

    .watch-player-stack {
        grid-area: player;
        min-width: 0;
    }

    .watch-player-shell,
    .watch-player-frame {
        border-radius: 0;
    }

    .watch-meta-panel {
        border-radius: 0;
    }

    .watch-list-panel {
        border-radius: 0;
        grid-area: list;
        height: 100%;
        margin: 0;
        min-height: 0;
        overflow: hidden;
    }

    .watch-filter-rail {
        padding: 0.72rem 0.75rem 0.58rem;
    }

    .watch-filter-chip {
        border-radius: 0.48rem;
        font-size: 0.72rem;
        min-height: 1.9rem;
        padding: 0 0.68rem;
    }

    .watch-camera-list {
        flex: 1 1 auto;
        gap: 0.45rem;
        min-height: 0;
        overflow-y: auto;
        padding: 0.58rem 0.75rem 0.75rem;
    }

    .watch-camera-card {
        gap: 0.56rem;
        grid-template-columns: 7.6rem minmax(0, 1fr);
        padding: 0.48rem;
    }

    .watch-camera-card-title {
        font-size: 0.8rem;
        line-height: 1.26;
    }

    .watch-camera-card-meta {
        font-size: 0.72rem;
        line-height: 1.32;
    }

    .watch-camera-card-active {
        font-size: 0.66rem;
    }

    .watch-camera-live-badge {
        font-size: 0.6rem;
        min-height: 1.28rem;
        padding: 0 0.44rem;
    }

    .watch-map-backdrop {
        display: none !important;
    }

    .watch-map-panel {
        align-self: end;
        aspect-ratio: 1 / 1;
        background: var(--watch-surface);
        border: 1px solid var(--watch-line);
        border-radius: 0;
        box-shadow: 0 -16px 32px rgba(15, 23, 42, 0.12);
        bottom: auto;
        display: flex;
        flex-direction: column;
        grid-area: map;
        height: 0;
        left: auto;
        margin: 0;
        max-height: none;
        max-width: none;
        min-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        position: static;
        top: auto;
        transform: translateY(1rem);
        transition: opacity 0.24s ease, transform 0.24s ease, height 0.24s ease;
        visibility: hidden;
        width: 100%;
        z-index: 1;
    }

    .watch-map-panel.is-open {
        height: clamp(20rem, 22vw, 25rem);
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        visibility: visible;
    }

    .watch-map-panel .watch-panel-head {
        align-items: center;
        display: flex;
        flex: 0 0 auto;
        flex-direction: row;
        gap: 0.75rem;
        justify-content: space-between;
        padding: 0.72rem 0.78rem 0.48rem;
    }

    .watch-map-panel .watch-panel-head h2 {
        font-size: 0.95rem;
    }

    .watch-map-panel .watch-panel-head p {
        display: none;
    }

    .watch-map-panel .watch-panel-actions {
        flex: 0 0 auto;
    }

    .watch-map-panel .watch-panel-button {
        height: 2rem;
        width: 2rem;
    }

    .watch-map-panel .watch-map-expanded {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
        padding: 0.75rem;
    }

    .watch-map-panel .watch-map-canvas {
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .watch-camera-card-title {
        font-size: 0.82rem;
    }

    .watch-camera-card-meta {
        font-size: 0.74rem;
    }
}

@media (max-width: 1099.98px) {
    .watch-page-body .portal-sidebar-toggle {
        align-items: center;
        appearance: none;
        background: transparent;
        border: 0;
        border-radius: 999px;
        color: var(--watch-text);
        cursor: pointer;
        display: inline-flex;
        flex: 0 0 auto;
        font-size: 1.08rem;
        height: 2.45rem;
        justify-content: center;
        margin: 0;
        position: relative;
        width: 2.45rem;
        z-index: 1063;
    }

    .watch-page-body .portal-sidebar-toggle:hover,
    .watch-page-body .portal-sidebar-toggle:focus-visible {
        background: rgba(36, 95, 147, 0.08);
        outline: 0;
    }

    .watch-page-body .portal-watch-sidebar {
        background: #ffffff;
        border-right: 1px solid var(--watch-line);
        bottom: 0;
        box-shadow: 18px 0 40px rgba(16, 32, 51, 0.18);
        display: block;
        left: 0;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0.85rem 0.72rem calc(5.2rem + env(safe-area-inset-bottom, 0px));
        position: fixed;
        top: var(--watch-mobile-navbar-height, 4rem);
        transform: translateX(-106%);
        transition: transform 0.2s ease;
        visibility: visible;
        width: min(17.5rem, 82vw);
        z-index: 1061;
    }

    .watch-page-body.watch-sidebar-mobile-open {
        overflow-x: hidden;
    }

    .watch-page-body.watch-sidebar-mobile-open::before {
        background: rgba(16, 32, 51, 0.28);
        content: "";
        inset: 0;
        position: fixed;
        z-index: 1060;
    }

    .watch-page-body.watch-sidebar-mobile-open .portal-navbar {
        z-index: 1062;
    }

    .watch-page-body.watch-sidebar-mobile-open .portal-watch-sidebar {
        transform: translateX(0);
    }

    .watch-page-body .portal-watch-sidebar-nav {
        display: grid;
        gap: 0.2rem;
    }

    .watch-page-body .portal-watch-sidebar-link {
        align-items: center;
        border-radius: 0.75rem;
        color: var(--watch-text) !important;
        display: flex;
        font-size: 0.9rem;
        font-weight: 800;
        gap: 0.75rem;
        min-height: 2.9rem;
        padding: 0 0.85rem;
        text-decoration: none;
    }

    .watch-page-body .portal-watch-sidebar-link i {
        color: #607083 !important;
        flex: 0 0 1.25rem;
        font-size: 1.05rem;
        line-height: 1;
        text-align: center;
    }

    .watch-page-body .portal-watch-sidebar-link span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .watch-page-body .portal-watch-sidebar-link:hover,
    .watch-page-body .portal-watch-sidebar-link:focus-visible,
    .watch-page-body .portal-watch-sidebar-link.active {
        background: var(--watch-accent-soft);
        color: var(--watch-accent) !important;
        outline: 0;
    }

    .watch-page-body .portal-watch-sidebar-link:hover i,
    .watch-page-body .portal-watch-sidebar-link:focus-visible i,
    .watch-page-body .portal-watch-sidebar-link.active i,
    .watch-page-body .portal-watch-sidebar-link:hover span,
    .watch-page-body .portal-watch-sidebar-link:focus-visible span,
    .watch-page-body .portal-watch-sidebar-link.active span {
        color: var(--watch-accent) !important;
    }
}

@media (min-width: 1100px) {
    body.watch-page-body {
        --watch-desktop-gutter: 0.9rem;
        --watch-sidebar-width: 14rem;
        --watch-sidebar-mini-width: 4.5rem;
        background: #f4f7f5;
    }

    .watch-page-body .portal-navbar-desktop,
    .watch-page-body .portal-navbar-links {
        display: flex !important;
    }

    .watch-page-body .portal-navbar > .container.portal-navbar-row,
    .watch-page-body .portal-navbar .container.portal-navbar-row,
    .watch-page-body .portal-navbar > .container-fluid.portal-navbar-row,
    .watch-page-body .portal-navbar .container-fluid.portal-navbar-row {
        column-gap: clamp(0.9rem, 1.6vw, 1.6rem);
        display: grid !important;
        grid-template-columns: minmax(15.5rem, 1fr) minmax(20rem, 38rem) minmax(20rem, 1fr);
        justify-content: stretch !important;
        max-width: none !important;
        min-height: 4rem !important;
        padding-left: clamp(1rem, 2vw, 2rem) !important;
        padding-right: clamp(1rem, 2vw, 2rem) !important;
        width: 100% !important;
    }

    .watch-page-body .portal-sidebar-toggle {
        align-items: center;
        appearance: none;
        background: transparent;
        border: 0;
        border-radius: 999px;
        color: var(--watch-text);
        cursor: pointer;
        display: inline-flex;
        flex: 0 0 auto;
        font-size: 1.05rem;
        height: 2.45rem;
        justify-content: center;
        margin-left: 0;
        margin-right: 0.45rem;
        width: 2.45rem;
    }

    .watch-page-body .portal-navbar .navbar-brand {
        flex: 0 0 auto;
        justify-self: start;
        margin-right: 0;
        min-width: 0;
        max-width: 100%;
    }

    .watch-page-body .portal-watch-search {
        display: inline-flex !important;
        justify-self: center;
        max-width: 38rem;
        min-width: 0;
        width: 100%;
    }

    .watch-page-body .portal-navbar-desktop {
        justify-self: end;
        margin-left: 0;
        max-width: 100%;
        overflow: visible;
    }

    .watch-page-body .portal-navbar-links {
        gap: clamp(0.78rem, 1vw, 1.12rem);
        justify-content: flex-end;
    }

    .watch-page-body .portal-nav-link {
        align-items: center;
        font-size: 0.84rem;
        min-height: 4rem;
    }

    .watch-page-body .portal-watch-map-toggle {
        align-items: center;
        appearance: none;
        background: var(--watch-accent-soft);
        border: 1px solid rgba(36, 95, 147, 0.18);
        border-radius: 999px;
        color: var(--watch-accent);
        cursor: pointer;
        display: inline-flex;
        font-family: inherit;
        font-size: 0.86rem;
        font-weight: 800;
        gap: 0.45rem;
        min-height: 2.35rem;
        padding: 0 0.9rem;
    }

    .watch-page-body .portal-watch-map-toggle:hover,
    .watch-page-body .portal-watch-map-toggle:focus-visible,
    .watch-page-body .portal-watch-map-toggle.active {
        background: rgba(36, 95, 147, 0.18);
        outline: 0;
    }

    .watch-page-body .watch-meta-map-button {
        display: none !important;
    }

    .watch-page-body .portal-sidebar-toggle:hover,
    .watch-page-body .portal-sidebar-toggle:focus-visible {
        background: rgba(36, 95, 147, 0.08);
        outline: 0;
    }

    .watch-page-body .portal-watch-sidebar {
        display: none !important;
    }

    .watch-sidebar-collapsed .portal-watch-sidebar {
        padding-left: 0.25rem;
        padding-right: 0.45rem;
        transform: translateX(0);
        visibility: visible;
        width: var(--watch-sidebar-mini-width);
    }

    .portal-watch-sidebar-nav {
        display: grid;
        gap: 0.2rem;
    }

    .portal-watch-sidebar-link {
        align-items: center;
        border-radius: 0.62rem;
        color: #26332f !important;
        display: flex;
        font-size: 0.88rem;
        font-weight: 700;
        gap: 0.85rem;
        min-height: 2.55rem;
        padding: 0 0.85rem;
        text-decoration: none;
        transition: background-color 0.16s ease, color 0.16s ease;
    }

    .portal-watch-sidebar-link i {
        color: #697772 !important;
        flex: 0 0 1.25rem;
        font-size: 1.05rem;
        line-height: 1;
        text-align: center;
        transition: color 0.16s ease;
    }

    .portal-watch-sidebar-link span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        transition: color 0.16s ease;
        white-space: nowrap;
    }

    .watch-sidebar-collapsed .portal-watch-sidebar-nav {
        gap: 0.15rem;
        justify-items: stretch;
    }

    .watch-sidebar-collapsed .portal-watch-sidebar-link {
        align-items: center;
        border-radius: 0.85rem;
        box-sizing: border-box;
        flex-direction: column;
        gap: 0.32rem;
        height: 4.25rem;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        min-height: 4.25rem;
        padding: 0.5rem 0.2rem;
        width: calc(100% - 0.35rem);
    }

    .watch-sidebar-collapsed .portal-watch-sidebar-link i {
        flex: 0 0 auto;
        font-size: 1.32rem;
    }

    .watch-sidebar-collapsed .portal-watch-sidebar-link span {
        clip: auto;
        display: block;
        font-size: 0.62rem;
        font-weight: 700;
        height: auto;
        line-height: 1.12;
        max-width: 100%;
        overflow: hidden;
        position: static;
        text-align: center;
        text-overflow: ellipsis;
        transform: translateY(0);
        white-space: nowrap;
        width: 100%;
    }

    .portal-watch-sidebar-link:hover,
    .portal-watch-sidebar-link:focus,
    .portal-watch-sidebar-link.active {
        background: var(--watch-accent-soft);
        color: var(--watch-accent) !important;
    }

    .portal-watch-sidebar-link:hover i,
    .portal-watch-sidebar-link:focus i,
    .portal-watch-sidebar-link.active i,
    .portal-watch-sidebar-link:hover span,
    .portal-watch-sidebar-link:focus span,
    .portal-watch-sidebar-link.active span {
        color: var(--watch-accent) !important;
    }

    .watch-page {
        box-sizing: border-box;
        max-width: 100vw;
        padding:
            var(--watch-desktop-gutter)
            var(--watch-desktop-gutter)
            var(--watch-desktop-gutter)
            var(--watch-desktop-gutter);
        transition: none;
    }

    .watch-sidebar-collapsed .watch-page {
        padding-left: var(--watch-desktop-gutter);
    }

    .watch-shell {
        gap: 0.9rem;
        height: 100%;
        max-width: none;
        min-width: 0;
        width: 100%;
    }

    .watch-player-shell,
    .watch-player-frame {
        border-radius: 0.8rem 0.8rem 0 0;
    }

    .watch-meta-panel {
        border-radius: 0 0 0.8rem 0.8rem;
    }

    .watch-list-panel,
    .watch-map-panel {
        border-radius: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    body.watch-page-body {
        --watch-mobile-meta-height: 5.6rem;
    }

    .watch-filter-rail {
        align-items: center;
        min-height: 2.65rem;
        overflow-y: visible;
        padding-bottom: 0.34rem;
        padding-top: 0.18rem;
    }
}

@media (max-width: 575.98px) {
    body.watch-page-body .portal-bottom-nav {
        z-index: 1060;
    }

    body.watch-map-drawer-open .watch-map-panel {
        border-left: 0;
        border-radius: 1rem 1rem 0 0;
        border-right: 0;
        bottom: var(--watch-map-drawer-bottom, calc(4.65rem + env(safe-area-inset-bottom, 0px)));
        height: auto;
        left: 50%;
        max-height: calc(
            100dvh
            - var(--watch-map-drawer-top, calc(var(--watch-mobile-navbar-height, 4rem) + min(56.25vw, 241.875px)))
            - var(--watch-map-drawer-bottom, calc(4.65rem + env(safe-area-inset-bottom, 0px)))
        );
        min-height: 18rem;
        opacity: 1;
        pointer-events: auto;
        position: fixed;
        right: auto;
        top: var(--watch-map-drawer-top, calc(var(--watch-mobile-navbar-height, 4rem) + min(56.25vw, 241.875px)));
        transform: translateX(-50%);
        visibility: visible;
        width: min(100%, 430px);
        z-index: 1055;
    }

    body.watch-map-drawer-open .watch-map-panel .watch-map-expanded {
        flex: 1 1 auto;
        min-height: 0;
    }

    body.watch-map-drawer-open .watch-map-panel .watch-map-canvas {
        height: 100%;
        min-height: 0;
    }
}

.watch-side-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

.watch-side-panel .watch-map-panel,
.watch-side-panel .watch-list-panel {
    aspect-ratio: auto;
    background: var(--watch-surface);
    border: 1px solid var(--watch-line);
    border-radius: 0.9rem;
    box-shadow: none;
    margin: 0;
    max-width: none;
    min-height: 0;
    overflow: hidden;
    position: static;
    transform: none;
    visibility: visible;
    width: 100%;
}

.watch-side-panel .watch-map-panel[hidden],
.watch-side-panel .watch-list-panel[hidden] {
    display: none !important;
}

.watch-side-panel .watch-map-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
    max-height: none;
    opacity: 1;
    pointer-events: auto;
}

.watch-side-panel .watch-list-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
    max-height: none;
    padding-bottom: 1rem;
}

.watch-side-panel .watch-panel-head {
    flex: 0 0 auto;
}

.watch-side-panel .watch-panel-actions {
    display: none;
}

.watch-side-panel .watch-map-panel .watch-panel-head {
    display: none;
}

.watch-side-panel .watch-map-expanded {
    border: 1px solid var(--watch-line);
    border-radius: 0.55rem;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0.75rem;
    overflow: hidden;
    padding: 0;
}

.watch-side-panel .watch-map-canvas {
    border: 0;
    border-radius: inherit;
    flex: 1 1 auto;
    height: 100%;
    min-height: 18rem;
    width: 100%;
}

body:not(.watch-map-drawer-open) .watch-side-panel .watch-map-panel {
    bottom: auto;
    left: auto;
    right: auto;
    top: auto;
}

@media (min-width: 1100px) {
    .watch-side-panel {
        align-self: start;
        grid-area: list;
        height: var(--watch-side-panel-height, auto);
        min-height: 0;
        position: sticky;
        top: 0;
    }

    .watch-side-panel .watch-map-panel,
    .watch-side-panel .watch-list-panel {
        border-radius: 0.85rem;
        height: var(--watch-side-panel-height, auto);
        max-height: var(--watch-side-panel-height, none);
        overflow: hidden;
    }

    .watch-side-panel .watch-map-canvas {
        min-height: 0;
    }
}

@media (max-width: 1099.98px) {
    .watch-side-panel {
        margin: 0 auto;
        max-width: 430px;
    }

    .watch-side-panel .watch-map-panel,
    .watch-side-panel .watch-list-panel {
        border-radius: 0.85rem;
        min-height: 18rem;
    }

    .watch-side-panel .watch-map-canvas {
        height: 18rem;
    }
}

@media (max-width: 575.98px) {
    body.watch-page-body {
        --watch-mobile-navbar-height: 4rem;
        --watch-mobile-bottom-nav-height: calc(3.45rem + env(safe-area-inset-bottom, 0px));
        height: 100dvh;
        overflow: hidden;
    }

    body.watch-page-body .page-shell,
    body.watch-page-body main {
        height: 100dvh !important;
        min-height: 100dvh;
        overflow: hidden !important;
    }

    .watch-page-body .portal-navbar {
        left: 0;
        max-width: none;
        position: fixed !important;
        right: 0;
        top: 0;
        transform: none;
        width: 100%;
        z-index: 1080;
    }

    .watch-page {
        height: 100dvh;
        overflow: hidden;
        padding: 0;
    }

    .watch-shell {
        height: 100dvh;
        max-width: none;
        min-height: 0;
        overflow: hidden;
        padding: 0 !important;
        width: 100%;
    }

    .watch-player-stack {
        height: 0;
        min-height: 0;
        position: static;
        z-index: auto;
    }

    .watch-player-shell {
        left: 0 !important;
        max-width: none;
        position: fixed !important;
        top: var(--watch-mobile-navbar-height, 4rem) !important;
        transform: none !important;
        width: 100%;
        z-index: 1040;
    }

    .watch-meta-panel {
        left: 0;
        max-width: none;
        position: fixed !important;
        right: 0;
        top: calc(var(--watch-mobile-navbar-height, 4rem) + min(56.25vw, 241.875px)) !important;
        transform: none !important;
        width: 100%;
        z-index: 1038;
    }

    .watch-side-panel {
        bottom: var(--watch-mobile-bottom-nav-height);
        height: auto;
        left: 0;
        margin: 0;
        max-width: none;
        min-height: 0;
        overflow: hidden;
        padding: 0;
        position: fixed;
        right: 0;
        top: calc(
            var(--watch-mobile-navbar-height, 4rem)
            + min(56.25vw, 241.875px)
            + var(--watch-mobile-meta-height, 5.6rem)
        );
        width: 100%;
        z-index: 1;
    }

    .watch-side-panel .watch-map-panel,
    .watch-side-panel .watch-list-panel {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        height: 100%;
        left: auto !important;
        max-height: none;
        min-height: 0;
        opacity: 1;
        overflow: hidden;
        padding: 0;
        pointer-events: auto;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        visibility: visible;
        width: 100%;
        z-index: 1;
    }

    .watch-side-panel .watch-panel-head {
        display: none;
    }

    .watch-side-panel .watch-map-expanded {
        border: 0;
        border-radius: 0;
        height: 100%;
        margin: 0;
        min-height: 0;
        padding: 0;
    }

    .watch-side-panel .watch-map-canvas {
        border-left: 0;
        border-radius: 0;
        border-right: 0;
        height: 100%;
        max-height: none;
        min-height: 0;
        width: 100%;
    }

    .watch-side-panel .watch-list-panel {
        display: flex;
        flex-direction: column;
    }

    .watch-side-panel .watch-list-panel .watch-filter-rail {
        background: rgba(248, 250, 249, 0.96);
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
        gap: 0.42rem;
        flex: 0 0 auto;
        min-height: 2.45rem;
        padding: 0.34rem 0.72rem 0.38rem;
        scroll-padding-left: 0.72rem;
    }

    .watch-side-panel .watch-list-panel .watch-filter-chip {
        background: rgba(226, 232, 230, 0.78);
        border: 1px solid rgba(15, 23, 42, 0.04);
        border-radius: 0.48rem;
        color: #34413d;
        flex: 0 0 auto;
        font-size: 0.68rem;
        font-weight: 700;
        min-height: 1.82rem;
        padding: 0 0.62rem;
    }

    .watch-side-panel .watch-list-panel .watch-filter-chip.is-active {
        background: #0f2335;
        border-color: #0f2335;
        color: #fff;
        box-shadow: none;
    }

    .watch-side-panel .watch-list-panel .watch-camera-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 0.48rem 0.72rem 0.72rem;
    }
}
