* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Theme - Apple Style */
    --bg-primary-light: #fbfbfd;
    --bg-secondary-light: rgba(255, 255, 255, 0.8);
    --bg-tertiary-light: rgba(255, 255, 255, 0.6);
    --text-primary-light: #1d1d1f;
    --text-secondary-light: #86868b;
    --text-tertiary-light: #a1a1a6;
    --accent-light: #0071e3;
    --accent-hover-light: #0077ed;
    --border-light: rgba(0, 0, 0, 0.05);
    --shadow-light: rgba(0, 0, 0, 0.02);
    --shadow-hover-light: rgba(0, 0, 0, 0.06);
    --glass-light: rgba(255, 255, 255, 0.7);
    
    /* Dark Theme - Apple Style */
    --bg-primary-dark: #000000;
    --bg-secondary-dark: rgba(28, 28, 30, 0.8);
    --bg-tertiary-dark: rgba(44, 44, 46, 0.6);
    --text-primary-dark: #f5f5f7;
    --text-secondary-dark: #a1a1a6;
    --text-tertiary-dark: #6e6e73;
    --accent-dark: #0a84ff;
    --accent-hover-dark: #409cff;
    --border-dark: rgba(255, 255, 255, 0.08);
    --shadow-dark: rgba(0, 0, 0, 0.4);
    --shadow-hover-dark: rgba(10, 132, 255, 0.2);
    --glass-dark: rgba(28, 28, 30, 0.7);
}

[data-theme="light"] {
    --bg-primary: var(--bg-primary-light);
    --bg-secondary: var(--bg-secondary-light);
    --bg-tertiary: var(--bg-tertiary-light);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --text-tertiary: var(--text-tertiary-light);
    --accent: var(--accent-light);
    --accent-hover: var(--accent-hover-light);
    --border: var(--border-light);
    --shadow: var(--shadow-light);
    --shadow-hover: var(--shadow-hover-light);
    --glass: var(--glass-light);
}

[data-theme="dark"] {
    --bg-primary: var(--bg-primary-dark);
    --bg-secondary: var(--bg-secondary-dark);
    --bg-tertiary: var(--bg-tertiary-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --text-tertiary: var(--text-tertiary-dark);
    --accent: var(--accent-dark);
    --accent-hover: var(--accent-hover-dark);
    --border: var(--border-dark);
    --shadow: var(--shadow-dark);
    --shadow-hover: var(--shadow-hover-dark);
    --glass: var(--glass-dark);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.47059;
    min-height: 100vh;
    padding: 0;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1;
    text-rendering: optimizeLegibility;
}

/* Apple-style Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 12px 0;
    background: rgba(251, 251, 253, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .main-header {
    background: rgba(0, 0, 0, 0.72);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    text-decoration: none;
    color: var(--text-primary);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    width: 150px;
}

.logo:hover {
    opacity: 0.7;
}

.logo-text {
    font-family: 'Science Gothic', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.011em;
    color: var(--text-primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: 150px;
    justify-content: flex-end;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.011em;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--text-primary);
    font-weight: 500;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.search-toggle,
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-toggle:hover,
.theme-toggle:hover {
    background: var(--bg-tertiary);
}

.search-toggle:active,
.theme-toggle:active {
    transform: scale(0.95);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

body > div.container > main {
    display: flex;
    flex-direction: column;
}

/* Homepage hero card specific styles - 700px height constraint */
body > div.container > main > section.hero#heroSection {
    min-height: 700px;
    max-height: 700px;
    margin-top: 32px;
    margin-bottom: -10px;
    overflow: hidden;
}

.page-title {
    font-size: 3rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-primary);
    letter-spacing: -0.022em;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-icon {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero {
    background: var(--bg-secondary);
    border-radius: 32px;
    padding: 40px 64px;
    margin-top: 32px;
    margin-bottom: 64px;
    box-shadow: 0 4px 24px var(--shadow);
    border: 0.5px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.city-hero-controls {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.city-toggle-numbers {
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 0.5px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transform: scale(1);
    animation: buttonAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes buttonAppear {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.city-toggle-numbers:hover:not(.disabled) {
    background: var(--bg-secondary);
    border-color: var(--accent);
    transform: scale(1.08);
}

.city-toggle-numbers:active:not(.disabled) {
    transform: scale(0.95);
}

.city-toggle-numbers.disabled,
.city-toggle-numbers:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    transform: scale(0.9);
}

.screensaver-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 0.5px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    flex-shrink: 0;
}

.screensaver-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    transform: scale(1.05);
}

.screensaver-toggle:active {
    transform: scale(0.95);
}

.screensaver-toggle svg {
    width: 20px;
    height: 20px;
}

/* Screensaver Mode */
body.screensaver-mode {
    overflow: hidden;
}

body.screensaver-mode .main-header,
body.screensaver-mode .container > footer,
body.screensaver-mode .hero #infoGrid,
body.screensaver-mode .hero .info-grid,
body.screensaver-mode .hero .local-time-info,
body.screensaver-mode .search-section {
    display: none;
}

body.screensaver-mode .hero {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

body.screensaver-mode .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Hide page title on home page (inside hero-content) */
body.screensaver-mode .hero-content .page-title {
    display: none;
}

/* Show page title on city pages (directly in hero, not in hero-content) */
body.screensaver-mode .hero > .page-title {
    display: block !important;
    font-size: 2.5rem;
    margin-bottom: 48px;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.022em;
}

body.screensaver-mode .time-display {
    font-size: 12rem;
    margin-bottom: 48px;
}

body.screensaver-mode .date-display {
    font-size: 3rem;
    margin-bottom: 24px;
}

body.screensaver-mode .day-display {
    font-size: 1.5rem;
    margin-bottom: 48px;
}

/* Hide day display on city pages in screensaver mode */
body.screensaver-mode .hero > .day-display {
    display: none;
}

body.screensaver-mode .screensaver-toggle {
    top: 32px;
    right: 32px;
}

.hero-screensaver-footer {
    display: none;
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

body.screensaver-mode .hero-screensaver-footer {
    display: flex;
}

.hero-screensaver-logo {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.hero-screensaver-logo:hover {
    opacity: 0.8;
}

.hero-screensaver-logo .logo-text {
    font-family: 'Science Gothic', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.011em;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
}

.hero-screensaver-copyright {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.6;
    transition: opacity 0.3s ease, color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
    text-transform: lowercase;
    color: var(--text-tertiary);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    opacity: 0.5;
}

.time-display {
    font-size: 7.5rem;
    font-weight: 200;
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.05em;
    line-height: 1.1;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-feature-settings: "tnum";
}

.city-time-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    min-height: 200px;
}

.city-time-container:has(#cityAnalogClock[style*="display: block"]) {
    min-height: 380px;
    margin-bottom: 24px;
}

.city-time-container .time-display {
    margin-bottom: 0;
}

#cityAnalogClock {
    display: none;
}

#cityAnalogClock .analog-clock-face {
    width: 360px;
    height: 360px;
}

/* Scale clock hands and numbers for larger city page clock */
#cityAnalogClock .clock-hour-hand {
    width: 4px;
    height: 90px;
    margin-left: -2px;
    margin-top: -90px;
}

#cityAnalogClock .clock-minute-hand {
    width: 3px;
    height: 120px;
    margin-left: -1.5px;
    margin-top: -120px;
}

#cityAnalogClock .clock-second-hand {
    width: 1.5px;
    height: 140px;
    margin-left: -0.75px;
    margin-top: -140px;
}

#cityAnalogClock .clock-second-hand::after {
    width: 10px;
    height: 10px;
}

#cityAnalogClock .clock-center {
    width: 12px;
    height: 12px;
    box-shadow: 0 0 0 3px var(--bg-primary);
}

#cityAnalogClock .clock-number {
    font-size: 1.5rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

/* Hide numbers when hide-numbers class is applied */
#cityAnalogClock .analog-clock-face.hide-numbers .clock-number {
    opacity: 0;
    pointer-events: none;
}

/* Style for hour markers (lines) when numbers are hidden */
/* Use the same transform positions as numbers by inheriting their classes */
#cityAnalogClock .clock-hour-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 18px;
    background: var(--text-primary);
    opacity: 0.7;
    border-radius: 1px;
    z-index: 6;
    transform-origin: center bottom;
}

/* Apply the exact same transforms as numbers, then rotate to point outward */
/* The line's bottom center will be at the number's center position */
#cityAnalogClock .clock-hour-marker.clock-12 {
    transform: translate(-50%, -50%) translateY(-120px) rotate(0deg);
}

#cityAnalogClock .clock-hour-marker.clock-1 {
    transform: translate(-50%, -50%) translate(60px, -104px) rotate(30deg);
}

#cityAnalogClock .clock-hour-marker.clock-2 {
    transform: translate(-50%, -50%) translate(104px, -60px) rotate(60deg);
}

#cityAnalogClock .clock-hour-marker.clock-3 {
    transform: translate(-50%, -50%) translate(120px, 0) rotate(90deg);
}

#cityAnalogClock .clock-hour-marker.clock-4 {
    transform: translate(-50%, -50%) translate(104px, 60px) rotate(120deg);
}

#cityAnalogClock .clock-hour-marker.clock-5 {
    transform: translate(-50%, -50%) translate(60px, 104px) rotate(150deg);
}

#cityAnalogClock .clock-hour-marker.clock-6 {
    transform: translate(-50%, -50%) translate(0, 120px) rotate(180deg);
}

#cityAnalogClock .clock-hour-marker.clock-7 {
    transform: translate(-50%, -50%) translate(-60px, 104px) rotate(210deg);
}

#cityAnalogClock .clock-hour-marker.clock-8 {
    transform: translate(-50%, -50%) translate(-104px, 60px) rotate(240deg);
}

#cityAnalogClock .clock-hour-marker.clock-9 {
    transform: translate(-50%, -50%) translate(-120px, 0) rotate(270deg);
}

#cityAnalogClock .clock-hour-marker.clock-10 {
    transform: translate(-50%, -50%) translate(-104px, -60px) rotate(300deg);
}

#cityAnalogClock .clock-hour-marker.clock-11 {
    transform: translate(-50%, -50%) translate(-60px, -104px) rotate(330deg);
}

/* Adjust number positions for larger clock - moved further out */
#cityAnalogClock .clock-12 {
    transform: translate(-50%, -50%) translateY(-120px);
}

#cityAnalogClock .clock-1 {
    transform: translate(-50%, -50%) translate(60px, -104px);
}

#cityAnalogClock .clock-2 {
    transform: translate(-50%, -50%) translate(104px, -60px);
}

#cityAnalogClock .clock-3 {
    transform: translate(-50%, -50%) translate(120px, 0);
}

#cityAnalogClock .clock-4 {
    transform: translate(-50%, -50%) translate(104px, 60px);
}

#cityAnalogClock .clock-5 {
    transform: translate(-50%, -50%) translate(60px, 104px);
}

#cityAnalogClock .clock-6 {
    transform: translate(-50%, -50%) translate(0, 120px);
}

#cityAnalogClock .clock-7 {
    transform: translate(-50%, -50%) translate(-60px, 104px);
}

#cityAnalogClock .clock-8 {
    transform: translate(-50%, -50%) translate(-104px, 60px);
}

#cityAnalogClock .clock-9 {
    transform: translate(-50%, -50%) translate(-120px, 0);
}

#cityAnalogClock .clock-10 {
    transform: translate(-50%, -50%) translate(-104px, -60px);
}

#cityAnalogClock .clock-11 {
    transform: translate(-50%, -50%) translate(-60px, -104px);
}

/* Adjust hour markers for larger city clock */
#cityAnalogClock .analog-clock-face::before {
    width: 3px;
    height: 3px;
    box-shadow: 
        /* 12 o'clock */
        0 -126px 0 0 var(--text-tertiary),
        /* 1 o'clock */
        63px -109px 0 0 var(--text-tertiary),
        /* 2 o'clock */
        109px -63px 0 0 var(--text-tertiary),
        /* 3 o'clock */
        126px 0 0 0 var(--text-tertiary),
        /* 4 o'clock */
        109px 63px 0 0 var(--text-tertiary),
        /* 5 o'clock */
        63px 109px 0 0 var(--text-tertiary),
        /* 6 o'clock */
        0 126px 0 0 var(--text-tertiary),
        /* 7 o'clock */
        -63px 109px 0 0 var(--text-tertiary),
        /* 8 o'clock */
        -109px 63px 0 0 var(--text-tertiary),
        /* 9 o'clock */
        -126px 0 0 0 var(--text-tertiary),
        /* 10 o'clock */
        -109px -63px 0 0 var(--text-tertiary),
        /* 11 o'clock */
        -63px -109px 0 0 var(--text-tertiary);
}

#cityAnalogClock .analog-clock-logo {
    top: 30%;
}

#cityAnalogClock .analog-clock-logo .logo-text {
    font-size: 0.75rem;
}

/* Reduce spacing between city name and analog clock */
.hero:has(#cityAnalogClock[style*="display: block"]) .page-title {
    margin-bottom: 24px;
}

.time-seconds {
    color: var(--text-tertiary);
    opacity: 0.7;
}

.date-display {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: -0.013em;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.day-display {
    font-size: 0.8125rem;
    text-align: center;
    margin-bottom: 64px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 400;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
     justify-content: center;
}

.info-item {
    background: var(--bg-tertiary);
    padding: 28px 24px;
    border-radius: 20px;
    border: 0.5px solid var(--border);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: relative;
    flex: 0 1 auto;
    min-width: 200px;
}

.info-item.timezone-item {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.info-item.timezone-item > .label {
    width: auto;
}

.info-item.timezone-item > .value {
    width: auto;
    text-align: right;
}

.info-item:hover {
    border-color: var(--accent);
}

.info-item .label {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.info-item .value {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 400;
    letter-spacing: -0.011em;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: right;
    flex: 1;
}

.local-time-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 1200px;
    margin: 32px auto 0;
    padding: 0;
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.local-time-label {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.local-time-value {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 400;
    letter-spacing: -0.011em;
    font-variant-numeric: tabular-nums;
}

.world-clock {
    background: var(--bg-secondary);
    border-radius: 32px;
    padding: 64px 48px;
    margin-bottom: 64px;
    box-shadow: 0 4px 24px var(--shadow);
    border: 0.5px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: relative;
    overflow: hidden;
}

.world-clock::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    opacity: 0.5;
}

.world-clock h2 {
    font-size: 1.375rem;
    margin-bottom: 48px;
    text-align: center;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.011em;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Screensaver Page */
body.screensaver-page-active {
    overflow: hidden;
}

body.screensaver-page-active .container {
    padding: 0;
    max-width: 100%;
}

.screensaver-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 32px;
    padding: 80px 64px;
    margin-top: 32px;
    margin-bottom: 64px;
    box-shadow: 0 4px 24px var(--shadow);
    border: 0.5px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    justify-content: center;
}

.screensaver-page.fullscreen-active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    border-radius: 0;
    z-index: 1000;
    background: var(--bg-primary);
    box-shadow: none;
    border: none;
}

.screensaver-footer {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.screensaver-logo {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.screensaver-logo:hover {
    opacity: 0.8;
}

.screensaver-logo .logo-text {
    font-family: 'Science Gothic', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.011em;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    display: block;
}

.screensaver-copyright {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.6;
    transition: opacity 0.3s ease, color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
    text-transform: lowercase;
}

body.screensaver-page-active.fullscreen-active .main-header {
    display: none;
}

body.fullscreen-active .screensaver-controls {
    display: none !important;
}

.screensaver-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin: 32px auto 24px;
    padding: 0;
    width: 100%;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.screensaver-add-city {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 0.5px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    flex-shrink: 0;
}

.screensaver-add-city:hover:not(:disabled) {
    border-color: var(--accent);
    background: var(--bg-secondary);
    transform: scale(1.05);
    color: var(--accent);
}

.screensaver-add-city:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.screensaver-add-city svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.screensaver-page.fullscreen-active .screensaver-controls,
.screensaver-page.fullscreen-active .screensaver-fullscreen {
    display: none;
}

.screensaver-page.fullscreen-active .screensaver-city-actions {
    display: none;
}

.screensaver-select {
    padding: 10px 16px;
    border: 0.5px solid var(--border);
    border-radius: 12px;
    background: var(--glass);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.screensaver-select:hover {
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.screensaver-select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.screensaver-toggle-seconds {
    padding: 10px 16px;
    border-radius: 12px;
    border: 0.5px solid var(--border);
    background: var(--glass);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    white-space: nowrap;
    font-weight: 500;
}

.screensaver-toggle-seconds:hover {
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.screensaver-fullscreen {
    padding: 12px 20px;
    border-radius: 12px;
    border: 0.5px solid var(--border);
    background: var(--glass);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: inherit;
    white-space: nowrap;
}

.screensaver-fullscreen:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.screensaver-fullscreen svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.screensaver-fullscreen span {
    letter-spacing: -0.011em;
}

.screensaver-content {
    display: flex;
    transition: font-family 0.3s ease;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.screensaver-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: all 0.3s ease;
}

.screensaver-single.hide-seconds .screensaver-time {
    font-size: 10rem;
}

.screensaver-multiple {
    display: flex;
    flex-direction: column;
    gap: 64px;
    width: 100%;
    max-width: min(1400px, 100vw);
    padding: 0;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-sizing: border-box;
}

.screensaver-page:not(.fullscreen-active) .screensaver-multiple {
    gap: 32px;
}

.screensaver-page:not(.fullscreen-active) {
    padding-bottom: 120px;
}

.screensaver-city-row {
    display: grid;
    grid-template-columns: 30% 40% 30%;
    gap: 64px;
    width: 100%;
    max-width: 1600px;
    align-items: center;
    justify-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
    transition: gap 0.3s ease;
}

.screensaver-page:not(.fullscreen-active) .screensaver-city-row {
    gap: 48px;
}

.screensaver-city-row.hide-seconds {
    gap: 48px;
}

.screensaver-city-card-name {
    font-size: 3.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.011em;
    text-align: right;
    white-space: nowrap;
    text-transform: uppercase;
    justify-self: end;
    grid-column: 1;
    padding-right: 32px;
}

.screensaver-city-card-time {
    font-size: 12rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.95);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.05em;
    font-feature-settings: "tnum";
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    text-align: center;
    grid-column: 2;
    justify-self: center;
    width: 100%;
    min-width: 600px;
    max-width: 800px;
}

.screensaver-city-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
    position: relative;
    grid-column: 3;
    justify-self: start;
    padding-left: 32px;
    min-width: 200px;
}

.screensaver-city-card-date {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: -0.013em;
    text-align: left;
    line-height: 1;
    width: 100%;
}

.screensaver-city-card-day {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 400;
    text-align: left;
    width: 100%;
}

.screensaver-city-actions {
    position: absolute;
    top: -12px;
    right: -40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.screensaver-city-row:hover .screensaver-city-actions {
    opacity: 1;
}

.screensaver-city-move-up,
.screensaver-city-move-down,
.screensaver-city-delete {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.screensaver-city-move-up:hover {
    background: rgba(100, 200, 255, 0.2);
    border-color: rgba(100, 200, 255, 0.4);
}

.screensaver-city-move-down:hover {
    background: rgba(100, 200, 255, 0.2);
    border-color: rgba(100, 200, 255, 0.4);
}

.screensaver-city-delete:hover {
    background: rgba(255, 100, 100, 0.2);
    border-color: rgba(255, 100, 100, 0.4);
}

.screensaver-city-name {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: -0.011em;
    margin-bottom: 32px;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.screensaver-time {
    font-size: 12rem;
    font-weight: 200;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.05em;
    line-height: 1.1;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-feature-settings: "tnum";
    margin-bottom: 48px;
}

.screensaver-date {
    font-size: 3rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: -0.013em;
    margin-bottom: 24px;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.screensaver-day {
    font-size: 1.5rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 400;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 32px;
    text-align: center;
}

/* Color Themes */
.screensaver-page.color-default {
    background: var(--bg-primary);
}

.screensaver-page.color-default .screensaver-time,
.screensaver-page.color-default .screensaver-city-card-time {
    color: var(--text-primary);
}

.screensaver-page.color-default .screensaver-city-name,
.screensaver-page.color-default .screensaver-city-card-name {
    color: var(--text-primary);
}

.screensaver-page.color-default .screensaver-date,
.screensaver-page.color-default .screensaver-city-card-date {
    color: var(--text-secondary);
}

.screensaver-page.color-default .screensaver-day,
.screensaver-page.color-default .screensaver-city-card-day {
    color: var(--text-tertiary);
}

.screensaver-page.color-default .screensaver-city-card-right {
    color: var(--text-secondary);
}

.screensaver-page.color-default .screensaver-logo .logo-text {
    color: var(--text-primary);
}

.screensaver-page.color-default .screensaver-copyright {
    color: var(--text-tertiary);
}

.screensaver-page.color-default .screensaver-select,
.screensaver-page.color-default .screensaver-fullscreen {
    border: 0.5px solid var(--border);
    background: var(--glass);
    color: var(--text-primary);
}

.screensaver-page.color-default .screensaver-select:hover,
.screensaver-page.color-default .screensaver-fullscreen:hover {
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.screensaver-page.color-default .screensaver-select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.screensaver-page.color-default .screensaver-toggle-seconds {
    border: 0.5px solid var(--border);
    background: var(--glass);
    color: var(--text-primary);
}

.screensaver-page.color-default .screensaver-toggle-seconds:hover {
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.screensaver-page.color-blue {
    background: #0a1628;
}

.screensaver-page.color-blue .screensaver-time,
.screensaver-page.color-blue .screensaver-city-card-time {
    color: #4a9eff;
}

.screensaver-page.color-blue .screensaver-city-name,
.screensaver-page.color-blue .screensaver-city-card-name {
    color: #6bb0ff;
}

.screensaver-page.color-blue .screensaver-date,
.screensaver-page.color-blue .screensaver-city-card-date {
    color: #8cc5ff;
}

.screensaver-page.color-blue .screensaver-day,
.screensaver-page.color-blue .screensaver-city-card-day {
    color: #a8d4ff;
}

.screensaver-page.color-blue .screensaver-city-card-right {
    color: #8cc5ff;
}

.screensaver-page.color-blue .screensaver-logo .logo-text {
    color: #4a9eff;
}

.screensaver-page.color-blue .screensaver-copyright {
    color: #a8d4ff;
}

.screensaver-page.color-blue .screensaver-select,
.screensaver-page.color-blue .screensaver-fullscreen {
    border: 0.5px solid rgba(74, 158, 255, 0.3);
    background: rgba(74, 158, 255, 0.1);
    color: #4a9eff;
}

.screensaver-page.color-blue .screensaver-select:hover,
.screensaver-page.color-blue .screensaver-fullscreen:hover {
    border-color: rgba(74, 158, 255, 0.5);
    background: rgba(74, 158, 255, 0.2);
}

.screensaver-page.color-blue .screensaver-select option {
    background: #0a1628;
    color: #ffffff;
}

.screensaver-page.color-blue .screensaver-toggle-seconds {
    border: 0.5px solid rgba(74, 158, 255, 0.3);
    background: rgba(74, 158, 255, 0.1);
    color: #4a9eff;
}

.screensaver-page.color-blue .screensaver-toggle-seconds:hover {
    border-color: rgba(74, 158, 255, 0.5);
    background: rgba(74, 158, 255, 0.2);
}

.screensaver-page.color-purple {
    background: #1a0a28;
}

.screensaver-page.color-purple .screensaver-time,
.screensaver-page.color-purple .screensaver-city-card-time {
    color: #a78bfa;
}

.screensaver-page.color-purple .screensaver-city-name,
.screensaver-page.color-purple .screensaver-city-card-name {
    color: #c4b5fd;
}

.screensaver-page.color-purple .screensaver-date,
.screensaver-page.color-purple .screensaver-city-card-date {
    color: #ddd6fe;
}

.screensaver-page.color-purple .screensaver-day,
.screensaver-page.color-purple .screensaver-city-card-day {
    color: #e9d5ff;
}

.screensaver-page.color-purple .screensaver-city-card-right {
    color: #ddd6fe;
}

.screensaver-page.color-purple .screensaver-logo .logo-text {
    color: #a78bfa;
}

.screensaver-page.color-purple .screensaver-copyright {
    color: #e9d5ff;
}

.screensaver-page.color-purple .screensaver-select,
.screensaver-page.color-purple .screensaver-fullscreen {
    border: 0.5px solid rgba(167, 139, 250, 0.3);
    background: rgba(167, 139, 250, 0.1);
    color: #a78bfa;
}

.screensaver-page.color-purple .screensaver-select:hover,
.screensaver-page.color-purple .screensaver-fullscreen:hover {
    border-color: rgba(167, 139, 250, 0.5);
    background: rgba(167, 139, 250, 0.2);
}

.screensaver-page.color-purple .screensaver-select option {
    background: #1a0a28;
    color: #ffffff;
}

.screensaver-page.color-purple .screensaver-toggle-seconds {
    border: 0.5px solid rgba(167, 139, 250, 0.3);
    background: rgba(167, 139, 250, 0.1);
    color: #a78bfa;
}

.screensaver-page.color-purple .screensaver-toggle-seconds:hover {
    border-color: rgba(167, 139, 250, 0.5);
    background: rgba(167, 139, 250, 0.2);
}

.screensaver-page.color-green {
    background: #0a2818;
}

.screensaver-page.color-green .screensaver-time,
.screensaver-page.color-green .screensaver-city-card-time {
    color: #4ade80;
}

.screensaver-page.color-green .screensaver-city-name,
.screensaver-page.color-green .screensaver-city-card-name {
    color: #86efac;
}

.screensaver-page.color-green .screensaver-date,
.screensaver-page.color-green .screensaver-city-card-date {
    color: #bbf7d0;
}

.screensaver-page.color-green .screensaver-day,
.screensaver-page.color-green .screensaver-city-card-day {
    color: #d1fae5;
}

.screensaver-page.color-green .screensaver-city-card-right {
    color: #bbf7d0;
}

.screensaver-page.color-green .screensaver-logo .logo-text {
    color: #4ade80;
}

.screensaver-page.color-green .screensaver-copyright {
    color: #d1fae5;
}

.screensaver-page.color-green .screensaver-select,
.screensaver-page.color-green .screensaver-fullscreen {
    border: 0.5px solid rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.screensaver-page.color-green .screensaver-select:hover,
.screensaver-page.color-green .screensaver-fullscreen:hover {
    border-color: rgba(74, 222, 128, 0.5);
    background: rgba(74, 222, 128, 0.2);
}

.screensaver-page.color-green .screensaver-select option {
    background: #0a2818;
    color: #ffffff;
}

.screensaver-page.color-green .screensaver-toggle-seconds {
    border: 0.5px solid rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.screensaver-page.color-green .screensaver-toggle-seconds:hover {
    border-color: rgba(74, 222, 128, 0.5);
    background: rgba(74, 222, 128, 0.2);
}

.screensaver-page.color-orange {
    background: #28180a;
}

.screensaver-page.color-orange .screensaver-time,
.screensaver-page.color-orange .screensaver-city-card-time {
    color: #fb923c;
}

.screensaver-page.color-orange .screensaver-city-name,
.screensaver-page.color-orange .screensaver-city-card-name {
    color: #fdba74;
}

.screensaver-page.color-orange .screensaver-date,
.screensaver-page.color-orange .screensaver-city-card-date {
    color: #fed7aa;
}

.screensaver-page.color-orange .screensaver-day,
.screensaver-page.color-orange .screensaver-city-card-day {
    color: #ffedd5;
}

.screensaver-page.color-orange .screensaver-city-card-right {
    color: #fed7aa;
}

.screensaver-page.color-orange .screensaver-logo .logo-text {
    color: #fb923c;
}

.screensaver-page.color-orange .screensaver-copyright {
    color: #ffedd5;
}

.screensaver-page.color-orange .screensaver-select,
.screensaver-page.color-orange .screensaver-fullscreen {
    border: 0.5px solid rgba(251, 146, 60, 0.3);
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
}

.screensaver-page.color-orange .screensaver-select:hover,
.screensaver-page.color-orange .screensaver-fullscreen:hover {
    border-color: rgba(251, 146, 60, 0.5);
    background: rgba(251, 146, 60, 0.2);
}

.screensaver-page.color-orange .screensaver-select option {
    background: #28180a;
    color: #ffffff;
}

.screensaver-page.color-orange .screensaver-toggle-seconds {
    border: 0.5px solid rgba(251, 146, 60, 0.3);
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
}

.screensaver-page.color-orange .screensaver-toggle-seconds:hover {
    border-color: rgba(251, 146, 60, 0.5);
    background: rgba(251, 146, 60, 0.2);
}

.screensaver-page.color-red {
    background: #280a0a;
}

.screensaver-page.color-red .screensaver-time,
.screensaver-page.color-red .screensaver-city-card-time {
    color: #f87171;
}

.screensaver-page.color-red .screensaver-city-name,
.screensaver-page.color-red .screensaver-city-card-name {
    color: #fca5a5;
}

.screensaver-page.color-red .screensaver-date,
.screensaver-page.color-red .screensaver-city-card-date {
    color: #fecaca;
}

.screensaver-page.color-red .screensaver-day,
.screensaver-page.color-red .screensaver-city-card-day {
    color: #fee2e2;
}

.screensaver-page.color-red .screensaver-city-card-right {
    color: #fecaca;
}

.screensaver-page.color-red .screensaver-logo .logo-text {
    color: #f87171;
}

.screensaver-page.color-red .screensaver-copyright {
    color: #fee2e2;
}

.screensaver-page.color-red .screensaver-select,
.screensaver-page.color-red .screensaver-fullscreen {
    border: 0.5px solid rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

.screensaver-page.color-red .screensaver-select:hover,
.screensaver-page.color-red .screensaver-fullscreen:hover {
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(248, 113, 113, 0.2);
}

.screensaver-page.color-red .screensaver-select option {
    background: #280a0a;
    color: #ffffff;
}

.screensaver-page.color-red .screensaver-toggle-seconds {
    border: 0.5px solid rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

.screensaver-page.color-red .screensaver-toggle-seconds:hover {
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(248, 113, 113, 0.2);
}

.screensaver-page.color-pink {
    background: #280a1a;
}

.screensaver-page.color-pink .screensaver-time,
.screensaver-page.color-pink .screensaver-city-card-time {
    color: #f472b6;
}

.screensaver-page.color-pink .screensaver-city-name,
.screensaver-page.color-pink .screensaver-city-card-name {
    color: #f9a8d4;
}

.screensaver-page.color-pink .screensaver-date,
.screensaver-page.color-pink .screensaver-city-card-date {
    color: #fbcfe8;
}

.screensaver-page.color-pink .screensaver-day,
.screensaver-page.color-pink .screensaver-city-card-day {
    color: #fce7f3;
}

.screensaver-page.color-pink .screensaver-city-card-right {
    color: #fbcfe8;
}

.screensaver-page.color-pink .screensaver-logo .logo-text {
    color: #f472b6;
}

.screensaver-page.color-pink .screensaver-copyright {
    color: #fce7f3;
}

.screensaver-page.color-pink .screensaver-select,
.screensaver-page.color-pink .screensaver-fullscreen {
    border: 0.5px solid rgba(244, 114, 182, 0.3);
    background: rgba(244, 114, 182, 0.1);
    color: #f472b6;
}

.screensaver-page.color-pink .screensaver-select:hover,
.screensaver-page.color-pink .screensaver-fullscreen:hover {
    border-color: rgba(244, 114, 182, 0.5);
    background: rgba(244, 114, 182, 0.2);
}

.screensaver-page.color-pink .screensaver-select option {
    background: #280a1a;
    color: #ffffff;
}

.screensaver-page.color-pink .screensaver-toggle-seconds {
    border: 0.5px solid rgba(244, 114, 182, 0.3);
    background: rgba(244, 114, 182, 0.1);
    color: #f472b6;
}

.screensaver-page.color-pink .screensaver-toggle-seconds:hover {
    border-color: rgba(244, 114, 182, 0.5);
    background: rgba(244, 114, 182, 0.2);
}

.screensaver-page.color-cyan {
    background: #0a2828;
}

.screensaver-page.color-cyan .screensaver-time,
.screensaver-page.color-cyan .screensaver-city-card-time {
    color: #22d3ee;
}

.screensaver-page.color-cyan .screensaver-city-name,
.screensaver-page.color-cyan .screensaver-city-card-name {
    color: #67e8f9;
}

.screensaver-page.color-cyan .screensaver-date,
.screensaver-page.color-cyan .screensaver-city-card-date {
    color: #a5f3fc;
}

.screensaver-page.color-cyan .screensaver-day,
.screensaver-page.color-cyan .screensaver-city-card-day {
    color: #cffafe;
}

.screensaver-page.color-cyan .screensaver-city-card-right {
    color: #a5f3fc;
}

.screensaver-page.color-cyan .screensaver-logo .logo-text {
    color: #22d3ee;
}

.screensaver-page.color-cyan .screensaver-copyright {
    color: #cffafe;
}

.screensaver-page.color-cyan .screensaver-select,
.screensaver-page.color-cyan .screensaver-fullscreen {
    border: 0.5px solid rgba(34, 211, 238, 0.3);
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
}

.screensaver-page.color-cyan .screensaver-select:hover,
.screensaver-page.color-cyan .screensaver-fullscreen:hover {
    border-color: rgba(34, 211, 238, 0.5);
    background: rgba(34, 211, 238, 0.2);
}

.screensaver-page.color-cyan .screensaver-select option {
    background: #0a2828;
    color: #ffffff;
}

.screensaver-page.color-cyan .screensaver-toggle-seconds {
    border: 0.5px solid rgba(34, 211, 238, 0.3);
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
}

.screensaver-page.color-cyan .screensaver-toggle-seconds:hover {
    border-color: rgba(34, 211, 238, 0.5);
    background: rgba(34, 211, 238, 0.2);
}

.screensaver-page.color-yellow {
    background: #28280a;
}

.screensaver-page.color-yellow .screensaver-time,
.screensaver-page.color-yellow .screensaver-city-card-time {
    color: #facc15;
}

.screensaver-page.color-yellow .screensaver-city-name,
.screensaver-page.color-yellow .screensaver-city-card-name {
    color: #fde047;
}

.screensaver-page.color-yellow .screensaver-date,
.screensaver-page.color-yellow .screensaver-city-card-date {
    color: #fef08a;
}

.screensaver-page.color-yellow .screensaver-day,
.screensaver-page.color-yellow .screensaver-city-card-day {
    color: #fef9c3;
}

.screensaver-page.color-yellow .screensaver-city-card-right {
    color: #fef08a;
}

.screensaver-page.color-yellow .screensaver-logo .logo-text {
    color: #facc15;
}

.screensaver-page.color-yellow .screensaver-copyright {
    color: #fef9c3;
}

.screensaver-page.color-yellow .screensaver-select,
.screensaver-page.color-yellow .screensaver-fullscreen {
    border: 0.5px solid rgba(250, 204, 21, 0.3);
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
}

.screensaver-page.color-yellow .screensaver-select:hover,
.screensaver-page.color-yellow .screensaver-fullscreen:hover {
    border-color: rgba(250, 204, 21, 0.5);
    background: rgba(250, 204, 21, 0.2);
}

.screensaver-page.color-yellow .screensaver-select option {
    background: #28280a;
    color: #ffffff;
}

.screensaver-page.color-yellow .screensaver-toggle-seconds {
    border: 0.5px solid rgba(250, 204, 21, 0.3);
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
}

.screensaver-page.color-yellow .screensaver-toggle-seconds:hover {
    border-color: rgba(250, 204, 21, 0.5);
    background: rgba(250, 204, 21, 0.2);
}

.screensaver-page.color-black {
    background: #000000;
}

.screensaver-page.color-black .screensaver-time,
.screensaver-page.color-black .screensaver-city-card-time {
    color: #ffffff;
}

.screensaver-page.color-black .screensaver-city-name,
.screensaver-page.color-black .screensaver-city-card-name {
    color: #e5e5e5;
}

.screensaver-page.color-black .screensaver-date,
.screensaver-page.color-black .screensaver-city-card-date {
    color: #cccccc;
}

.screensaver-page.color-black .screensaver-day,
.screensaver-page.color-black .screensaver-city-card-day {
    color: #b3b3b3;
}

.screensaver-page.color-black .screensaver-city-card-right {
    color: #cccccc;
}

.screensaver-page.color-black .screensaver-logo .logo-text {
    color: #ffffff;
}

.screensaver-page.color-black .screensaver-copyright {
    color: #b3b3b3;
}

.screensaver-page.color-black .screensaver-select,
.screensaver-page.color-black .screensaver-fullscreen {
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.screensaver-page.color-black .screensaver-select:hover,
.screensaver-page.color-black .screensaver-fullscreen:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

.screensaver-page.color-black .screensaver-select option {
    background: #000000;
    color: #ffffff;
}

.screensaver-page.color-black .screensaver-toggle-seconds {
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.screensaver-page.color-black .screensaver-toggle-seconds:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

.world-clock-page {
    margin-top: 32px;
    padding-bottom: 30px;
}

.world-clock-page .page-title {
    margin-bottom: 64px;
}

.world-clock-page > .clock-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.continent-section .clock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.clock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.continent-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 0.5px solid var(--border);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.continent-nav.sticky-nav {
    position: sticky;
    top: 60px;
    z-index: 999;
    margin-bottom: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
    background: rgba(251, 251, 253, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 10px 32px;
    max-width: 100%;
    justify-content: center;
}

[data-theme="dark"] .continent-nav.sticky-nav {
    background: rgba(0, 0, 0, 0.72);
    border-top-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}


.continent-nav-item {
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.011em;
    white-space: nowrap;
}

.continent-nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.continent-nav-item:active {
    transform: scale(0.98);
}

.continent-section {
    margin-bottom: 64px;
    scroll-margin-top: 140px;
}

.continent-section:last-child {
    margin-bottom: 34px;
}

.continent-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.011em;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 0.5px solid var(--border);
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.clock-item {
    background: var(--bg-tertiary);
    padding: 32px 24px;
    border-radius: 20px;
    border: 0.5px solid var(--border);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: relative;
    cursor: pointer;
}

.clock-item:hover {
    border-color: var(--accent);
}

.clock-item .city-name {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #FF3B30;
    letter-spacing: -0.011em;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.clock-item .city-time {
    font-size: 2.25rem;
    font-weight: 200;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.022em;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-feature-settings: "tnum";
}

.clock-item .city-time .time-seconds {
    color: var(--text-tertiary);
    opacity: 0.7;
}

.clock-item .city-day {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Clock Type Selector - iOS Tab Style */
.clock-type-selector,
.city-clock-type-selector {
    display: inline-flex;
    gap: 0;
    justify-content: center;
    margin: 0 auto 32px;
    padding: 4px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 0.5px solid var(--border);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: relative;
}

.world-clock-page .clock-type-selector {
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 0 auto 32px;
}

.city-clock-type-selector {
    margin: 0;
    display: inline-flex;
    flex-shrink: 0;
}

/* Hide city controls in fullscreen mode */
body.screensaver-mode .city-hero-controls {
    display: none !important;
}

.clock-type-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px 24px;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    z-index: 1;
    user-select: none;
}

.clock-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.clock-type-option span {
    position: relative;
    z-index: 2;
}

.clock-type-option:has(input[type="radio"]:checked) {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.clock-type-option:hover:not(:has(input[type="radio"]:checked)) {
    color: var(--text-primary);
}

/* Analog Clock Styles - iOS Style */
.analog-clock-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px 0;
    min-height: 180px;
}

.analog-clock-face {
    width: 180px;
    height: 180px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1.5px solid var(--border);
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Hour markers - iOS style small dots using box-shadow */
.analog-clock-face::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--text-tertiary);
    opacity: 0.3;
    box-shadow: 
        /* 12 o'clock */
        0 -84px 0 0 var(--text-tertiary),
        /* 1 o'clock */
        42px -73px 0 0 var(--text-tertiary),
        /* 2 o'clock */
        73px -42px 0 0 var(--text-tertiary),
        /* 3 o'clock */
        84px 0 0 0 var(--text-tertiary),
        /* 4 o'clock */
        73px 42px 0 0 var(--text-tertiary),
        /* 5 o'clock */
        42px 73px 0 0 var(--text-tertiary),
        /* 6 o'clock */
        0 84px 0 0 var(--text-tertiary),
        /* 7 o'clock */
        -42px 73px 0 0 var(--text-tertiary),
        /* 8 o'clock */
        -73px 42px 0 0 var(--text-tertiary),
        /* 9 o'clock */
        -84px 0 0 0 var(--text-tertiary),
        /* 10 o'clock */
        -73px -42px 0 0 var(--text-tertiary),
        /* 11 o'clock */
        -42px -73px 0 0 var(--text-tertiary);
}

.clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-primary);
    z-index: 25;
    box-shadow: 0 0 0 2px var(--bg-primary);
}

.analog-clock-logo {
    position: absolute;
    top: 32%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    pointer-events: none;
}

.analog-clock-logo .logo-text {
    font-family: 'Science Gothic', sans-serif;
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.011em;
    color: var(--text-primary);
    opacity: 0.7;
    white-space: nowrap;
    display: block;
    text-align: center;
    line-height: 1;
}

.clock-hour-hand,
.clock-minute-hand,
.clock-second-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: bottom center;
    transition: transform 0.05s cubic-bezier(0.4, 0, 0.2, 1);
}

.clock-hour-hand {
    width: 3px;
    height: 45px;
    background: var(--text-primary);
    margin-left: -1.5px;
    margin-top: -45px;
    z-index: 20;
    border-radius: 1.5px 1.5px 0 0;
}

.clock-minute-hand {
    width: 2px;
    height: 60px;
    background: var(--text-primary);
    margin-left: -1px;
    margin-top: -60px;
    z-index: 21;
    border-radius: 1px 1px 0 0;
}

.clock-second-hand {
    width: 1px;
    height: 70px;
    background: #FF3B30;
    margin-left: -0.5px;
    margin-top: -70px;
    z-index: 22;
}

.clock-second-hand::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF3B30;
}

.clock-number {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    z-index: 5;
    letter-spacing: -0.01em;
    line-height: 1;
    top: 50%;
    left: 50%;
    transform-origin: center;
}

/* Position all 12 numbers around the clock */
.clock-12 {
    transform: translate(-50%, -50%) translateY(-82px);
}

.clock-1 {
    transform: translate(-50%, -50%) translate(41px, -71px);
}

.clock-2 {
    transform: translate(-50%, -50%) translate(71px, -41px);
}

.clock-3 {
    transform: translate(-50%, -50%) translate(82px, 0);
}

.clock-4 {
    transform: translate(-50%, -50%) translate(71px, 41px);
}

.clock-5 {
    transform: translate(-50%, -50%) translate(41px, 71px);
}

.clock-6 {
    transform: translate(-50%, -50%) translate(0, 82px);
}

.clock-7 {
    transform: translate(-50%, -50%) translate(-41px, 71px);
}

.clock-8 {
    transform: translate(-50%, -50%) translate(-71px, 41px);
}

.clock-9 {
    transform: translate(-50%, -50%) translate(-82px, 0);
}

.clock-10 {
    transform: translate(-50%, -50%) translate(-71px, -41px);
}

.clock-11 {
    transform: translate(-50%, -50%) translate(-41px, -71px);
}

/* Search Modal - Apple Style Fullscreen */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-modal.active {
    display: block;
    opacity: 1;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
}

.search-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 32px;
    max-width: 800px;
    margin: 0 auto;
    animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.search-modal-close {
    position: absolute;
    top: 60px;
    right: 60px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.search-modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: scale(1.05);
}

.search-modal-close svg {
    width: 20px;
    height: 20px;
}

.search-modal-title {
    display: none;
}

.search-modal-box {
    width: 100%;
    max-width: 600px;
    position: relative;
    margin-bottom: 0;
}

.search-modal-box input {
    width: 100%;
    padding: 24px 24px 24px 64px;
    border: none;
    border-bottom: 2px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: 300;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.022em;
    outline: none;
}

.search-modal-box input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.5;
    font-weight: 300;
}

.search-modal-box input:focus {
    border-bottom-color: var(--accent);
}

.search-modal-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.4;
}

.search-modal-box input:focus ~ *,
.search-modal-box input:focus + * {
    opacity: 0.6;
}

.search-modal-box button {
    display: none;
}

/* Search Suggestions - Apple Style */
.search-suggestions {
    position: absolute;
    top: calc(100% + 24px);
    left: 0;
    right: 0;
    background: transparent;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10001;
    display: none;
    animation: suggestionsFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes suggestionsFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-suggestion-item {
    padding: 20px 0;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: 300;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 0.5px solid var(--border);
    letter-spacing: -0.011em;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 64px;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item::before {
    content: '';
    position: absolute;
    left: 0;
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
    transition: opacity 0.2s;
}

.search-suggestion-item:hover,
.search-suggestion-item.selected {
    color: var(--text-primary);
    transform: translateX(8px);
}

.search-suggestion-item:hover::before,
.search-suggestion-item.selected::before {
    opacity: 0.6;
}

.search-modal-box {
    position: relative;
}

.search-section {
    display: none;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    opacity: 0.5;
}

.search-section h2 {
    font-size: 1.375rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.011em;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto 32px;
}

.search-box input {
    flex: 1;
    padding: 18px 24px;
    border: 0.5px solid var(--border);
    border-radius: 20px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 1.0625rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    letter-spacing: -0.011em;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.search-box input::placeholder {
    color: var(--text-tertiary);
}

.search-box input:focus {
    border-color: var(--accent);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.1);
}

.search-box button {
    padding: 18px 36px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    font-size: 1.0625rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    letter-spacing: -0.011em;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(10, 132, 255, 0.2);
}

.search-box button:hover {
    background: var(--accent-hover);
}

.search-box button:active {
    transform: translateY(0);
}

.search-result {
    text-align: center;
    padding: 48px 32px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 0.5px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.search-result.active {
    border-color: var(--accent);
    background: var(--bg-secondary);
    box-shadow: 0 8px 32px var(--shadow-hover);
}

.search-result .result-city {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: -0.011em;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-result .result-time {
    font-size: 3rem;
    font-weight: 200;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.033em;
    margin-bottom: 12px;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-feature-settings: "tnum";
}

.search-result .result-time .time-seconds {
    color: var(--text-tertiary);
    opacity: 0.7;
}

.search-result .result-day {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 400;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Footer */
.main-footer {
    margin-top: 96px;
    padding: 80px 0 32px;
    background: #000000;
    border-top: 0.5px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    left: 0;
    right: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    text-decoration: none;
    margin-bottom: 16px;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo .logo-text {
    font-family: 'Science Gothic', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.011em;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 320px;
    letter-spacing: -0.011em;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.011em;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.011em;
    display: inline-block;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
    letter-spacing: -0.011em;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide footer in screensaver mode */
body.screensaver-mode .main-footer {
    display: none;
}

@media (max-width: 768px) {
    .search-modal-content {
        padding: 60px 24px;
    }
    
    .search-modal-close {
        top: 32px;
        right: 32px;
    }
    
    .search-modal-box input {
        font-size: 2rem;
        padding: 20px 20px 20px 56px;
    }
    
    .search-suggestion-item {
        font-size: 1.25rem;
        padding: 16px 0;
        padding-left: 56px;
    }
    
    .header-container {
        padding: 0 20px;
    }

    .main-nav {
        display: none;
    }

    .page-title {
        font-size: 2rem;
    }

    .container {
        padding: 32px 20px;
    }

    .time-display {
        font-size: 5rem;
    }

    .hero {
        padding: 64px 40px;
        margin-top: 24px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .clock-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .continent-nav {
        top: 60px;
        padding: 20px;
        gap: 8px;
    }

    .continent-nav.sticky-nav {
        top: 60px;
        padding: 8px 20px;
    }

    .continent-nav-item {
        padding: 8px 16px;
        font-size: 0.875rem;
    }

    .continent-section {
        margin-bottom: 48px;
        scroll-margin-top: 40px;
    }

    .continent-title {
        font-size: 1.25rem;
        margin-bottom: 24px;
    }

    .world-clock,
    .search-section {
        padding: 48px 32px;
    }
}

/* Time Zone Map Page */
.time-zone-map-page {
    margin-top: 32px;
    margin-bottom: 64px;
}

.map-controls {
    margin-bottom: 24px;
}

.map-search-container {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.map-search-input {
    flex: 1;
    min-width: 300px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 0.5px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.map-search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-tertiary);
}

.clear-pins-btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: 0.5px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.clear-pins-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
}

.time-zone-map-container {
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px var(--shadow);
    border: 0.5px solid var(--border);
    background: var(--bg-secondary);
    margin-bottom: 32px;
}

.map-pins-list {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 24px var(--shadow);
    border: 0.5px solid var(--border);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.map-pins-list h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.011em;
}

.map-popup {
    text-align: center;
    min-width: 200px;
}

.map-popup h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.011em;
}

.map-popup-time {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.022em;
}

.map-popup-timezone {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.map-popup-offset {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.map-popup-link {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-popup-link:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Leaflet overrides for theme */
[data-theme="dark"] .leaflet-container {
    background: var(--bg-primary-dark);
}

[data-theme="dark"] .leaflet-popup-content-wrapper {
    background: var(--bg-secondary-dark);
    color: var(--text-primary-dark);
    border-radius: 12px;
}

[data-theme="dark"] .leaflet-popup-tip {
    background: var(--bg-secondary-dark);
}

[data-theme="light"] .leaflet-container {
    background: var(--bg-primary-light);
}

@media (max-width: 768px) {
    .time-zone-map-container {
        height: 400px;
    }
    
    .map-search-container {
        flex-direction: column;
    }
    
    .map-search-input {
        width: 100%;
        margin-bottom: 12px;
    }
    
    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-description {
        max-width: 100%;
        margin: 0 auto;
    }

    .footer-nav {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .time-display {
        font-size: 4rem;
    }

    .clock-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 56px 32px;
    }

    .world-clock,
    .search-section {
        padding: 40px 24px;
    }

    .search-result .result-time {
        font-size: 2.25rem;
    }

    body.screensaver-mode .time-display {
        font-size: 6rem;
    }

    body.screensaver-mode .date-display {
        font-size: 2rem;
    }

    body.screensaver-mode .day-display {
        font-size: 1.125rem;
    }

    body.screensaver-mode .screensaver-toggle {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .screensaver-city-name {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .screensaver-time {
        font-size: 6rem;
    }

    .screensaver-date {
        font-size: 2rem;
    }

    .screensaver-day {
        font-size: 1.125rem;
        margin-bottom: 24px;
    }

    .screensaver-controls {
        margin-top: 24px;
        margin-bottom: 32px;
        flex-direction: column;
        gap: 8px;
    }

    .screensaver-add-city {
        width: 40px;
        height: 40px;
    }

    .screensaver-select {
        font-size: 0.875rem;
        padding: 8px 12px;
    }

    .screensaver-fullscreen {
        padding: 10px 16px;
        font-size: 0.875rem;
    }

    .screensaver-fullscreen svg {
        width: 16px;
        height: 16px;
    }

    .screensaver-multiple {
        gap: 48px;
        padding: 0 20px;
    }

    .screensaver-city-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 24px;
    }

    .screensaver-city-card-name {
        grid-column: 1;
        grid-row: 1;
        font-size: 1.5rem;
        text-align: center;
    }

    .screensaver-city-card-time {
        grid-column: 1;
        grid-row: 2;
        font-size: 6rem;
    }

    .screensaver-city-card-right {
        grid-column: 1;
        grid-row: 3;
        align-items: center;
        text-align: center;
    }

    .screensaver-city-card-date {
        font-size: 2rem;
        text-align: center;
    }

    .screensaver-city-card-day {
        font-size: 1.125rem;
        text-align: center;
    }
    
    .planner-form {
        padding: 24px;
    }
    
    .date-inputs {
        flex-direction: column;
        gap: 12px;
    }
    
    .location-input-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .location-input {
        width: 100%;
    }
    
    .timetable-table {
        overflow-x: auto;
    }
}

/* Meeting Planner Page */
.meeting-planner-page {
    margin-top: 32px;
    margin-bottom: 64px;
}

.page-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-weight: 400;
    letter-spacing: -0.011em;
}

.planner-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.planner-tab {
    padding: 16px 32px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.011em;
}

.planner-tab:hover {
    color: var(--text-primary);
}

.planner-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.planner-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
    position: relative;
}

.planner-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.planner-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.planner-step.active .step-number {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

.planner-step.active .step-label {
    color: var(--accent);
    font-weight: 600;
}

.planner-form {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 4px 24px var(--shadow);
    border: 0.5px solid var(--border);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    margin-bottom: 32px;
}

.planner-form h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.011em;
}

.date-selection {
    margin-bottom: 48px;
}

.date-inputs {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-input-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.date-select {
    padding: 12px 16px;
    border-radius: 12px;
    border: 0.5px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
}

.date-select:hover {
    border-color: var(--accent);
}

.date-select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.today-btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: 0.5px solid var(--accent);
    background: var(--accent);
    color: white;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.today-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.locations-selection {
    margin-bottom: 32px;
}

.locations-selection h3 {
    margin-bottom: 24px;
}

#locationsContainer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.location-input-group {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.location-input-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 100px;
}

.location-input-wrapper {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.location-input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    border: 0.5px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 0.5px solid var(--border);
    border-radius: 12px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 24px var(--shadow);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.location-suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 0.5px solid var(--border);
}

.location-suggestion-item:last-child {
    border-bottom: none;
}

.location-suggestion-item:hover,
.location-suggestion-item.selected {
    background: var(--bg-tertiary);
    color: var(--accent);
}

.location-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.location-input.location-valid {
    border-color: #10b981;
}

.location-input.location-invalid {
    border-color: #ef4444;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.location-search-btn,
.remove-location-btn {
    padding: 12px 20px;
    border-radius: 12px;
    border: 0.5px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.location-search-btn:hover {
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.remove-location-btn {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.remove-location-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.add-city-btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: 0.5px solid var(--border);
    background: transparent;
    color: var(--accent);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-city-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
}

.planner-actions {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.show-timetable-btn {
    padding: 16px 48px;
    border-radius: 12px;
    border: none;
    background: #10b981;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.011em;
}

.show-timetable-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.timetable-results {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 4px 24px var(--shadow);
    border: 0.5px solid var(--border);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    margin-top: 32px;
}

.timetable-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 32px;
    letter-spacing: -0.022em;
}

.timetable-table {
    overflow-x: auto;
}

.timetable-table table {
    width: 100%;
    border-collapse: collapse;
}

.timetable-table th,
.timetable-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.timetable-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
    letter-spacing: -0.011em;
}

.timetable-table td {
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
}

.timetable-table tr:hover {
    background: var(--bg-tertiary);
}

.timetable-table tr.time-past {
    background: rgba(239, 68, 68, 0.1);
}

.timetable-table tr.time-past td {
    color: #ef4444;
    opacity: 0.7;
}

.timetable-table tr.time-current {
    background: rgba(234, 179, 8, 0.2);
}

.timetable-table tr.time-current td {
    color: #eab308;
    font-weight: 600;
}

.timetable-table tr.time-future {
    background: rgba(16, 185, 129, 0.1);
}

.timetable-table tr.time-future td {
    color: #10b981;
}

/* Calculators Page */
.calculators-page {
    margin-top: 32px;
    margin-bottom: 64px;
}

.calculator-form {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 4px 24px var(--shadow);
    border: 0.5px solid var(--border);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.date-inputs-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.date-input-group-full h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.011em;
}

.today-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.today-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.calculator-options {
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 0.5px solid var(--border);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
}

.calculator-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.calculate-btn {
    padding: 16px 48px;
    border-radius: 12px;
    border: none;
    background: #10b981;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.011em;
}

.calculate-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.calculator-results {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
    border-radius: 20px;
    padding: 32px;
    margin-top: 32px;
}

.results-content {
    color: var(--text-primary);
}

.results-description {
    margin-bottom: 24px;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.results-description p {
    margin-bottom: 8px;
}

.results-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.results-main {
    margin-bottom: 32px;
}

.results-days {
    font-size: 3rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 16px;
    letter-spacing: -0.022em;
}

.results-explanation {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.results-alternative h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.011em;
}

.results-alternative ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.results-alternative li {
    padding: 8px 0;
    font-size: 0.9375rem;
    color: var(--text-primary);
    border-bottom: 0.5px solid var(--border);
}

.results-alternative li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .date-inputs-section {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .calculator-form {
        padding: 32px 24px;
    }
    
    .results-days {
        font-size: 2rem;
    }
}

/* Calendar Page */
.calendar-page {
    margin-top: 32px;
    margin-bottom: 64px;
}

.calendar-controls {
    display: flex;
    gap: 32px;
    align-items: flex-end;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.calendar-control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

#calendarPageMonthGroup {
    display: none;
}

.calendar-control-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.calendar-select {
    padding: 12px 20px;
    border-radius: 12px;
    border: 0.5px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.calendar-select:hover {
    border-color: var(--accent);
}

.calendar-select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-tertiary);
}

.year-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 12px 20px;
    border: 0.5px solid var(--border);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    width: 100%;
    height: 48px;
    box-sizing: border-box;
}

.year-nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 0.5px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    flex-shrink: 0;
}

.year-nav-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--accent);
}

.year-display {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    text-align: center;
    letter-spacing: -0.011em;
}

.calendar-container {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 4px 24px var(--shadow);
    border: 0.5px solid var(--border);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.calendar-month {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 24px;
    border: 0.5px solid var(--border);
}

.month-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.011em;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.day-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 0.5px solid var(--border);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 4px;
}

.calendar-day:hover:not(.empty) {
    background: var(--bg-tertiary);
    border-color: var(--accent);
    transform: scale(1.05);
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.calendar-day.today {
    background: rgba(10, 132, 255, 0.1);
    border-color: var(--accent);
}

.calendar-day.today .day-number {
    color: var(--accent);
    font-weight: 700;
}

.calendar-day.holiday {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.calendar-day.holiday .day-number {
    color: #ef4444;
    font-weight: 600;
}

.day-number {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.holiday-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    margin-top: 2px;
}

.holiday-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8125rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 0.5px solid var(--border);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.holiday-tooltip small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 4px;
    white-space: normal;
    max-width: 200px;
}

.calendar-day.holiday:hover .holiday-tooltip {
    opacity: 1;
}

.holidays-list {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 4px 24px var(--shadow);
    border: 0.5px solid var(--border);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    margin-top: 48px;
}

.holidays-list h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 32px;
    letter-spacing: -0.022em;
}

.holidays-month-group {
    margin-bottom: 32px;
}

.holidays-month-group:last-child {
    margin-bottom: 0;
}

.holidays-month-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.011em;
}

.holidays-month-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.holiday-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 0.5px solid var(--border);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.holiday-item:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    transform: translateX(4px);
}

.holiday-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.holiday-name {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.011em;
}

.holiday-name-en {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-style: italic;
}

@media (max-width: 768px) {
    .calendar-controls {
        flex-direction: column;
        gap: 20px;
    }
    
    .calendar-select {
        width: 100%;
    }
    
    .calendar-container {
        padding: 24px;
    }
    
    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Home Page - New Layout */
.home-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
    margin-bottom: 48px;
    margin-left: 0;
    margin-right: 0;
    align-items: start;
    width: 100%;
}

.home-column {
    display: flex;
    flex-direction: column;
}

.home-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px var(--shadow);
    border: 0.5px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.home-card:hover {
    box-shadow: 0 4px 16px var(--shadow-hover);
    transform: translateY(-2px);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.011em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

/* Current Time Card */
.current-time-display {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.022em;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.current-time-display .time-seconds {
    opacity: 0.6;
    font-weight: 500;
}

.current-date-display {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 400;
}

.current-location {
    margin-bottom: 20px;
}

.current-location a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.current-location a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.home-search-box {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.home-search-input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    border: 0.5px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.home-search-btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: 0.5px solid var(--border);
    background: var(--accent);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-search-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.home-links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-link-item {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 4px 0;
}

.home-link-item:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Time Zones Card */
.home-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.home-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 0.5px solid transparent;
}

.home-menu-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--border);
    transform: translateX(4px);
}

.home-menu-item svg {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.home-menu-item:hover svg {
    color: var(--accent);
}

.home-more-btn {
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    border: 0.5px solid var(--border);
    background: transparent;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-more-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
}

/* Calendar Card */
.calendar-date-display {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.011em;
}

.calendar-options {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent);
}

.calendar-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.calendar-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calendar-month-group {
    display: none;
}

.calendar-input-group label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 0.5px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-select:hover {
    border-color: var(--accent);
}

.home-select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.home-view-calendar-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 16px;
}

.home-view-calendar-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
}


/* News Section */
.home-news-section {
    margin-top: 64px;
    margin-bottom: 64px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 32px;
    letter-spacing: -0.022em;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    border: 0.5px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.news-card:hover {
    box-shadow: 0 4px 16px var(--shadow-hover);
    transform: translateY(-4px);
}

.news-thumbnail {
    width: 100%;
    height: 180px;
    background: var(--bg-tertiary);
    background-image: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.011em;
}

.news-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .home-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-layout {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .current-time-display {
        font-size: 2.5rem;
    }
}
