:root {
    --weather-primary: #3498db;
    --weather-secondary: #2c3e50;
    --weather-success: #28a745;
    --weather-warning: #ffc107;
    --weather-danger: #dc3545;
    --weather-border: #dee2e6;
    --weather-bg-light: #f8f9fa;
    --weather-text-dark: #343a40;
    --weather-text-light: #6c757d;
    --weather-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --weather-shadow: 0 2px 8px rgba(0,0,0,0.06);
    --weather-radius: 8px;
    --current-bg: linear-gradient(135deg, #4facfe 0%, #38aef8 100%);
    --current-text: white;
}
.weather_body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    padding-top: 60px;
    min-height: 100vh;
    margin: 0;
}
.weather_main-container {
    padding: 5px;
    max-width: 1400px;
    margin: 0 auto;
}
.weather_card {
    border: none;
    border-radius: var(--weather-radius);
    box-shadow: var(--weather-shadow);
    margin-bottom: 5px;
    background: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.weather_card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.weather_card-header {
    background: linear-gradient(135deg, #449aff, #b9dafb);
    color: white;
    border-bottom: none;
    padding: 8px 12px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--weather-radius) var(--weather-radius) 0 0;
    font-size: 1rem;
}
.weather_card-body {
    padding: 8px 12px;
}
.weather_current-container {
    background: var(--current-bg);
    border-radius: var(--weather-radius);
    padding: 10px;
    color: var(--current-text);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
}
.weather_current-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.weather_current-icon {
    margin-bottom: 5px;
}
.weather_icon-large {
    width: 160px;
    height: 160px;
    display: block;
    object-fit: contain;
}
.weather_temperature-range {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.weather_description {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    opacity: 0.95;
}
.weather_location {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
}
.weather_current-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.weather_detail-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 5px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
}
.weather_detail-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
}
.weather_detail-icon {
    width: 60px;
    height: auto;
    display: block;
    margin: 0 auto 4px;
    object-fit: contain;
}
.weather_detail-label {
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.9;
    margin-bottom: 2px;
}
.weather_detail-value {
    font-size: 1.1rem;
    font-weight: 700;
}
.weather_search-container {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0;
    flex-wrap: nowrap;
    position: relative;
}
.weather_search-input-container {
    position: relative;
    flex: 1;
    min-width: 0;
}
.weather_search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--weather-border);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    box-sizing: border-box;
    height: 38px;
    transition: all 0.2s ease;
    background: white;
}
.weather_search-input:focus {
    outline: none;
    border-color: var(--weather-primary);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}
.weather_search-btn {
    padding: 8px 12px;
    background: #0b73f8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    height: 38px;
    box-sizing: border-box;
    font-weight: 700;
    font-size: 14px;
}
.weather_search-btn:hover {
    background: #2980b9;
}
.weather_location-btn {
    padding: 8px 12px;
    background: var(--weather-success);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    height: 38px;
    box-sizing: border-box;
    font-weight: 700;
    font-size: 14px;
}
.weather_location-btn:hover {
    background: #218838;
}
.weather_search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--weather-primary);
    border-radius: 4px;
    box-shadow: var(--weather-shadow);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10000;
    display: none;
    margin-top: 2px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}
.weather_search-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--weather-border);
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 600;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.weather_search-item:hover {
    background: var(--weather-primary);
    color: white;
}
.weather_search-item:last-child {
    border-bottom: none;
}
.weather_hourly-container {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 5px 0;
    margin-bottom: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--weather-primary) transparent;
}
.weather_hourly-container::-webkit-scrollbar {
    height: 4px;
}
.weather_hourly-container::-webkit-scrollbar-track {
    background: transparent;
}
.weather_hourly-container::-webkit-scrollbar-thumb {
    background: var(--weather-primary);
    border-radius: 2px;
}
.weather_hourly-item {
    flex: 0 0 auto;
    text-align: center;
    padding: 8px 6px;
    background: white;
    border: 1px solid var(--weather-border);
    border-radius: 4px;
    min-width: 70px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}
.weather_hourly-item:hover {
    border-color: var(--weather-primary);
    transform: translateY(-2px);
}
.weather_hourly-time {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--weather-text-dark);
    margin-bottom: 4px;
}
.weather_hourly-icon {
    width: 40px;
    height: 40px;
    margin: 4px auto;
    display: block;
    object-fit: contain;
}
.weather_hourly-temp {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--weather-text-dark);
}
.weather_daily-container {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 4px;
    background: white;
}
.weather_daily-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    background: white;
}
.weather_daily-header {
    background: linear-gradient(135deg, #4998ff, #6ea8ff);
    border-bottom: none;
    white-space: nowrap;
}
.weather_daily-header th {
    padding: 10px 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
    width: 14%;
}
.weather_daily-header th:last-child {
    border-right: none;
}
.weather_daily-row {
    border-bottom: 1px solid var(--weather-border);
    background: white;
    transition: all 0.2s ease;
}
.weather_daily-row:hover {
    background: var(--weather-bg-light);
}
.weather_daily-cell {
    padding: 8px 6px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-right: 1px solid var(--weather-border);
    width: 14%;
    transition: all 0.1s ease;
    font-weight: 600;
}
.weather_daily-cell:last-child {
    border-right: none;
}
.weather_daily-date {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--weather-text-dark);
}
.weather_daily-icon {
    width: 40px;
    height: 40px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    flex-shrink: 0;
}
.weather_daily-condition {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--weather-text-dark);
}
.weather_daily-temps {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
}
.weather_daily-temp-range {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--weather-text-dark);
}
.weather_daily-details {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--weather-text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}
.weather-daily-detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.weather-daily-detail-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}
.weather_loading {
    text-align: center;
    padding: 30px 10px;
    color: var(--weather-text-light);
    font-size: 0.95rem;
    font-weight: 600;
}
.weather_spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--weather-border);
    border-top: 2px solid var(--weather-primary);
    border-radius: 50%;
    animation: weather_spin 1s linear infinite;
    margin: 0 auto 8px;
}
@keyframes weather_spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.weather_error {
    text-align: center;
    padding: 20px 10px;
    color: var(--weather-danger);
    background: #f8d7da;
    border-radius: 4px;
    margin: 5px 0;
    border-left: 3px solid var(--weather-danger);
    font-size: 0.95rem;
    font-weight: 600;
}
.weather_note {
    text-align: center;
    padding: 10px;
    color: var(--weather-success);
    background: #d4edda;
    border-radius: 4px;
    margin: 5px 0;
    font-size: 0.9rem;
    font-weight: 600;
    border-left: 3px solid var(--weather-success);
}
@media (max-width: 450px) {
    .weather_current-container {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
    }
    .weather_current-right {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .weather_icon-large {
        width: 140px;
        height: 140px;
    }
    .weather_temperature-range {
        font-size: 3rem;
    }
    .weather_description {
        font-size: 1.2rem;
    }
    .weather_detail-card {
        padding: 4px;
    }
    .weather_detail-icon {
        width: 50px;
    }
    .weather_detail-value {
        font-size: 1rem;
    }
    .weather_daily-table {
        min-width: 450px;
    }
    .weather_daily-header th {
        padding: 8px 4px;
        font-size: 0.85rem;
    }
    .weather_daily-cell {
        padding: 6px 3px;
        font-size: 0.8rem;
    }
}
@media (max-width: 1024px) {
    .weather_current-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .weather_current-right {
        grid-template-columns: repeat(2, 1fr);
    }
    .weather_daily-container {
        overflow-x: auto;
    }
    .weather_daily-table {
        min-width: 600px;
    }
}
@media (max-width: 820px) {
    .weather_body {
        margin: 0;
    }
    .weather_main-container {
        padding: 5px;
    }
    .weather_search-container {
        flex-wrap: nowrap;
        gap: 4px;
    }
    .weather_search-input {
        padding: 6px 10px;
        height: 34px;
        font-size: 13px;
    }
    .weather_search-btn {
        padding: 6px 10px;
        height: 34px;
        font-size: 13px;
    }
    .weather_location-btn {
        padding: 6px 10px;
        height: 34px;
        font-size: 13px;
    }
    .weather_temperature-range {
        font-size: 2.8rem;
    }
    .weather_daily-table {
        min-width: 550px;
    }
}
@media (max-width: 768px) {
    .weather_main-container {
        padding: 5px;
    }
    .weather_card-header {
        padding: 6px 8px;
        font-size: 0.9rem;
    }
    .weather_card-body {
        padding: 6px 8px;
    }
    .weather_current-container {
        padding: 8px;
    }
    .weather_temperature-range {
        font-size: 2.5rem;
    }
    .weather_description {
        font-size: 1.1rem;
    }
    .weather_icon-large {
        width: 120px;
        height: 120px;
    }
    .weather_hourly-item {
        min-width: 65px;
        padding: 6px 4px;
    }
    .weather_daily-table {
        min-width: 500px;
    }
    .weather_daily-cell {
        padding: 5px 3px;
    }
    .weather_daily-header th {
        padding: 7px 4px;
        font-size: 0.8rem;
    }
}
@media (max-width: 480px) {
    .weather_search-container {
        gap: 3px;
    }
    .weather_search-input {
        padding: 5px 8px;
        height: 32px;
        font-size: 12px;
    }
    .weather_search-btn {
        padding: 5px 8px;
        height: 32px;
        font-size: 12px;
    }
    .weather_location-btn {
        padding: 5px 8px;
        height: 32px;
        font-size: 12px;
    }
    .weather_current-right {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    .weather_detail-card {
        padding: 3px;
    }
    .weather_detail-icon {
        width: 40px;
    }
    .weather_daily-table {
        min-width: 420px;
    }
    .weather_daily-cell {
        padding: 4px 2px;
        font-size: 0.75rem;
    }
    .weather_daily-header th {
        padding: 6px 3px;
        font-size: 0.75rem;
    }
    .weather_daily-icon {
        width: 32px;
        height: 32px;
    }
    .weather_icon-large {
        width: 110px;
        height: 110px;
    }
}
.weather_hidden {
    display: none !important;
}
.weather_text-center {
    text-align: center;
}
.weather_mt-2 {
    margin-top: 8px;
}
.weather_mb-2 {
    margin-bottom: 8px;
}
.weather_fade-in {
    animation: weatherFadeIn 0.3s ease-in;
}
@keyframes weatherFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.weather-code-display {
    display: inline-block;
    padding: 2px 6px;
    background: var(--weather-bg-light);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--weather-text-dark);
    border: 1px solid var(--weather-border);
}