:root {
    --bc-red: #e50914;
    --bc-red-dark: #b20710;
    --bc-ink: #0f172a;
    --bc-ink-soft: #1e293b;
    --bc-muted: #64748b;
    --bc-muted-light: #94a3b8;
    --bc-page: #f6f7f9;
    --bc-surface: #ffffff;
    --bc-surface-soft: #fbfcfd;
    --bc-border: #e5e7eb;
    --bc-border-dark: #d1d5db;
    --bc-weather-blue: #2563eb;
    --bc-weather-sky: #e0f2fe;
    --bc-weather-warm: #fff7ed;
    --bc-radius: 16px;
    --bc-radius-sm: 11px;
    --bc-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
    --bc-shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body.bc-weather-body {
    background: var(--bc-page);
    color: var(--bc-ink);
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

.bc-weather-page {
    background:
        linear-gradient(180deg, rgba(224, 242, 254, 0.55), rgba(246, 247, 249, 0) 420px),
        var(--bc-page);
    color: var(--bc-ink);
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.bc-weather-shell {
    width: min(calc(100% - 32px), 1360px);
    margin: 0 auto;
    padding: 32px 0 58px;
}

.bc-weather-page a {
    color: inherit;
    text-decoration: none;
}

.bc-weather-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--bc-muted);
    font-size: 13px;
    font-weight: 850;
}

.bc-weather-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bc-weather-breadcrumb a::after {
    content: "/";
    margin-left: 8px;
    color: var(--bc-border-dark);
}

.bc-weather-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 26px;
}

.bc-weather-hero-copy {
    min-height: 264px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    background:
        radial-gradient(circle at top left, rgba(229, 9, 20, 0.10), transparent 34%),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.13), transparent 35%),
        #ffffff;
    padding: 36px;
    box-shadow: var(--bc-shadow-soft);
}

.bc-weather-kicker,
.bc-weather-section-kicker,
.bc-weather-detail-kicker,
.bc-weather-card-city {
    display: inline-flex;
    width: fit-content;
    color: var(--bc-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bc-weather-kicker {
    margin-bottom: 12px;
}

.bc-weather-title {
    margin: 0 0 12px;
    color: var(--bc-ink);
    font-family: "Inter Tight", Inter, Arial, sans-serif;
    font-size: clamp(44px, 5vw, 68px);
    line-height: 0.95;
    letter-spacing: 0;
    font-weight: 950;
}

.bc-weather-intro {
    max-width: 680px;
    margin: 0;
    color: var(--bc-ink-soft);
    font-size: 17px;
}

.bc-weather-hero-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--bc-radius);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, var(--cn-logo-navy, #061b49) 0%, #102a70 52%, var(--cn-logo-blue, #1558d6) 100%);
    color: #ffffff;
    padding: 28px;
    box-shadow: var(--bc-shadow);
}

.bc-weather-hero-card::after {
    content: "";
    position: absolute;
    right: -72px;
    top: -72px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.bc-weather-hero-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.bc-weather-hero-city {
    position: relative;
    z-index: 1;
    margin: 0 0 6px;
    color: #ffffff;
    font-family: "Inter Tight", Inter, Arial, sans-serif;
    font-size: 25px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: 0;
}

.bc-weather-hero-condition {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 700;
}

.bc-weather-hero-temp {
    position: relative;
    z-index: 1;
    margin: 8px 0 18px;
    color: #ffffff;
    font-family: "Inter Tight", Inter, Arial, sans-serif;
    font-size: 66px;
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: 0;
}

.bc-weather-hero-meta {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 9px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 14px;
    font-weight: 750;
}

.bc-weather-hero-meta span,
.bc-weather-hero-meta time {
    color: rgba(255, 255, 255, 0.94);
}

.bc-weather-hero-icon,
.bc-weather-detail-icon {
    position: relative;
    z-index: 1;
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 34px;
    object-fit: contain;
}

.bc-weather-city-nav,
.bc-weather-alert-panel,
.bc-weather-card,
.bc-weather-detail-card,
.bc-weather-side-card,
.bc-weather-forecast-card,
.bc-weather-empty {
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    background: var(--bc-surface);
}

.bc-weather-city-nav {
    margin: 0 0 28px;
    padding: 16px;
    box-shadow: var(--bc-shadow-soft);
}

.bc-weather-city-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.bc-weather-city-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid var(--bc-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--bc-ink);
    font-size: 13px;
    font-weight: 850;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.bc-weather-city-pill:hover,
.bc-weather-city-pill:focus-visible {
    border-color: rgba(229, 9, 20, 0.36);
    color: var(--bc-red);
    transform: translateY(-1px);
}

.bc-weather-city-pill-active {
    border-color: var(--bc-red);
    background: var(--bc-red);
    color: #ffffff;
}

.bc-weather-city-pill-active:hover,
.bc-weather-city-pill-active:focus-visible {
    color: #ffffff;
}

.bc-weather-alert-panel {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin: 0 0 32px;
    padding: 18px 20px;
    border-color: rgba(229, 9, 20, 0.18);
    background: linear-gradient(135deg, #ffffff, #fff5f5);
}

.bc-weather-alert-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(229, 9, 20, 0.10);
    color: var(--bc-red);
    font-size: 20px;
}

.bc-weather-alert-title {
    margin: 0 0 3px;
    color: var(--bc-ink);
    font-family: "Inter Tight", Inter, Arial, sans-serif;
    font-size: 19px;
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: 0;
}

.bc-weather-alert-text {
    margin: 0;
    color: var(--bc-muted);
    font-size: 14px;
}

.bc-weather-section {
    margin-bottom: 38px;
}

.bc-weather-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-top: 15px;
    border-top: 2px solid var(--bc-ink);
}

.bc-weather-section-kicker,
.bc-weather-detail-kicker {
    margin-bottom: 5px;
    font-size: 11px;
}

.bc-weather-section-title,
.bc-weather-detail-title,
.bc-weather-side-title,
.bc-weather-empty-title {
    margin: 0;
    color: var(--bc-ink);
    font-family: "Inter Tight", Inter, Arial, sans-serif;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: 0;
}

.bc-weather-section-title {
    font-size: 31px;
}

.bc-weather-section-text {
    margin: 5px 0 0;
    color: var(--bc-muted);
    font-size: 14px;
}

.bc-weather-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 16px;
}

.bc-weather-card {
    position: relative;
    overflow: hidden;
    min-height: 286px;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.bc-weather-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--bc-red), var(--bc-weather-blue));
    opacity: 0;
}

.bc-weather-card:hover,
.bc-weather-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(229, 9, 20, 0.25);
    box-shadow: var(--bc-shadow);
}

.bc-weather-card-active {
    border-color: rgba(229, 9, 20, 0.42);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.08);
}

.bc-weather-card-active::before {
    opacity: 1;
}

.bc-weather-card-link {
    display: block;
    height: 100%;
    padding: 18px;
}

.bc-weather-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.bc-weather-card-city {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
}

.bc-weather-card-title {
    margin: 0;
    color: var(--bc-ink);
    font-family: "Inter Tight", Inter, Arial, sans-serif;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: 0;
}

.bc-weather-card-condition {
    display: -webkit-box;
    overflow: hidden;
    margin: 6px 0 0;
    color: var(--bc-muted);
    font-size: 13px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bc-weather-card-icon,
.bc-weather-forecast-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--bc-weather-warm);
    color: #f59e0b;
    font-size: 23px;
    object-fit: contain;
}

.bc-weather-card-temp-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.bc-weather-card-temp {
    color: var(--bc-ink);
    font-family: "Inter Tight", Inter, Arial, sans-serif;
    font-size: 48px;
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: 0;
}

.bc-weather-card-feels {
    color: var(--bc-muted);
    font-size: 12px;
    line-height: 1.3;
    text-align: right;
}

.bc-weather-card-metrics {
    display: grid;
    gap: 9px;
}

.bc-weather-card-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius-sm);
    background: var(--bc-surface-soft);
}

.bc-weather-card-label,
.bc-weather-detail-label,
.bc-weather-side-label {
    color: var(--bc-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bc-weather-card-value,
.bc-weather-detail-value,
.bc-weather-side-value {
    color: var(--bc-ink);
    font-size: 13px;
    font-weight: 950;
}

.bc-weather-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 14px;
    color: var(--bc-muted);
    font-size: 12px;
}

.bc-weather-card-source::before {
    content: "/";
    margin-right: 10px;
    color: var(--bc-border-dark);
}

.bc-weather-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: start;
    margin-bottom: 38px;
}

.bc-weather-detail-card,
.bc-weather-side-card {
    box-shadow: var(--bc-shadow-soft);
}

.bc-weather-detail-card {
    padding: 28px;
}

.bc-weather-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.bc-weather-detail-title {
    font-size: 36px;
}

.bc-weather-detail-condition {
    margin: 7px 0 0;
    color: var(--bc-muted);
    font-size: 15px;
}

.bc-weather-detail-icon {
    background: var(--bc-weather-sky);
    color: var(--bc-weather-blue);
}

.bc-weather-detail-main {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding: 22px;
    border-radius: var(--bc-radius);
    background: linear-gradient(135deg, #f8fafc, #eef6ff);
}

.bc-weather-detail-temp {
    color: var(--bc-ink);
    font-family: "Inter Tight", Inter, Arial, sans-serif;
    font-size: 68px;
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: 0;
}

.bc-weather-detail-feels {
    color: var(--bc-muted);
    font-size: 15px;
    font-weight: 850;
}

.bc-weather-detail-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.bc-weather-detail-metric {
    padding: 14px;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius-sm);
    background: var(--bc-surface-soft);
}

.bc-weather-detail-label {
    display: block;
    margin-bottom: 6px;
}

.bc-weather-detail-value {
    display: block;
    font-size: 15px;
}

.bc-weather-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--bc-ink);
    font-size: 14px;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bc-weather-detail-link:hover,
.bc-weather-detail-link:focus-visible {
    color: var(--bc-red);
}

.bc-weather-side-panel {
    display: grid;
    gap: 18px;
}

.bc-weather-side-card {
    padding: 20px;
}

.bc-weather-side-title {
    margin-bottom: 14px;
    font-size: 21px;
}

.bc-weather-side-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--bc-border);
}

.bc-weather-side-row:last-child {
    border-bottom: 0;
}

.bc-weather-side-label {
    font-size: 12px;
}

.bc-weather-side-value {
    text-align: right;
}

.bc-weather-nearby-list {
    display: grid;
    gap: 8px;
}

.bc-weather-nearby-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius-sm);
    background: var(--bc-surface-soft);
    font-size: 14px;
    font-weight: 850;
}

.bc-weather-nearby-link strong {
    color: var(--bc-red);
}

.bc-weather-nearby-link:hover,
.bc-weather-nearby-link:focus-visible {
    border-color: rgba(229, 9, 20, 0.32);
    background: #ffffff;
}

.bc-weather-forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 16px;
}

.bc-weather-forecast-card {
    display: grid;
    gap: 10px;
    min-height: 202px;
    padding: 18px;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.bc-weather-forecast-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: var(--bc-shadow);
}

.bc-weather-forecast-date {
    color: var(--bc-muted);
    font-size: 13px;
    font-weight: 850;
}

.bc-weather-forecast-icon {
    background: var(--bc-weather-sky);
    color: var(--bc-weather-blue);
}

.bc-weather-forecast-condition {
    color: var(--bc-ink);
    font-family: "Inter Tight", Inter, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 950;
}

.bc-weather-forecast-temp {
    color: var(--bc-ink);
    font-size: 15px;
    font-weight: 900;
}

.bc-weather-forecast-rain {
    color: var(--bc-muted);
    font-size: 13px;
}

.bc-weather-empty {
    padding: 36px;
    text-align: center;
}

.bc-weather-empty-title {
    margin: 4px 0 8px;
    font-size: 25px;
}

.bc-weather-empty-text {
    max-width: 560px;
    margin: 0 auto;
    color: var(--bc-muted);
}

.bc-weather-page a:focus-visible,
.bc-weather-page button:focus-visible,
.bc-weather-page input:focus-visible,
.bc-weather-page select:focus-visible {
    outline: 3px solid rgba(229, 9, 20, 0.35);
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .bc-weather-hero,
    .bc-weather-detail-layout {
        grid-template-columns: 1fr;
    }

    .bc-weather-hero-card {
        min-height: 280px;
    }
}

@media (max-width: 860px) {
    .bc-weather-detail-metrics {
        grid-template-columns: 1fr;
    }

    .bc-weather-section-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .bc-weather-shell {
        width: min(calc(100% - 28px), 1360px);
        padding: 22px 0 44px;
    }

    .bc-weather-hero-copy,
    .bc-weather-detail-card {
        padding: 22px;
    }

    .bc-weather-title {
        font-size: 42px;
        line-height: 1;
    }

    .bc-weather-hero-temp,
    .bc-weather-detail-temp {
        font-size: 56px;
    }

    .bc-weather-hero-card {
        padding: 22px;
    }

    .bc-weather-card-grid,
    .bc-weather-forecast-grid {
        grid-template-columns: 1fr;
    }

    .bc-weather-detail-header,
    .bc-weather-detail-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .bc-weather-alert-panel {
        align-items: start;
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 16px;
    }

    .bc-weather-alert-icon {
        width: 38px;
        height: 38px;
    }
}
