:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #f97316;
    --secondary-dark: #ea580c;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --text-light: #1f2937;
    --text-dark: #f9fafb;
    --text-muted-light: #6b7280;
    --text-muted-dark: #9ca3af;
    --border-light: #e5e7eb;
    --border-dark: #374151;
    --card-light: #ffffff;
    --card-dark: #1f2937;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --header-height: 4rem;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
}

@font-face {
    font-family: 'Inter var';
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
    src: url('/assets/fonts/inter-var.woff2') format('woff2');
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-light);
    font-size: 1rem;
    overflow-x: hidden;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.dark {
    color: var(--text-dark);
    background-color: var(--bg-dark);
}

body.preload * {
    transition: none !important;
}

img, svg {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style-type: none;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 0.875rem;
    line-height: 1.5;
    cursor: pointer;
}

.btn svg {
    margin-right: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    border: 1px solid transparent;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-light);
}

.dark .btn-outline {
    color: var(--text-dark);
    border-color: var(--border-dark);
}

.btn-outline:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary);
    border-color: var(--primary);
}

.dark .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dark header {
    background-color: rgba(31, 41, 55, 0.95);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.25rem;
    gap: 0.5rem;
}

.dark .logo a {
    color: var(--text-dark);
}

.logo svg {
    color: var(--primary);
}

nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
}

.nav-list a {
    position: relative;
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 0;
}

.dark .nav-list a {
    color: var(--text-dark);
}

.nav-list a:hover, 
.nav-list a.active {
    color: var(--primary);
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-container {
    position: relative;
}

.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: var(--text-muted-light);
}

.dark .search-toggle {
    color: var(--text-muted-dark);
}

.search-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

.dark .search-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.search-form {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    padding: 0.5rem;
    background-color: var(--card-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(0.5rem);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 50;
}

.dark .search-form {
    background-color: var(--card-dark);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.search-form.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form form {
    display: flex;
    align-items: center;
}

.search-form input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    outline: none;
    background-color: transparent;
}

.dark .search-form input {
    border-color: var(--border-dark);
}

.search-form input:focus {
    border-color: var(--primary);
}

.search-form button {
    padding: 0.5rem;
    color: var(--text-muted-light);
}

.dark .search-form button {
    color: var(--text-muted-dark);
}

.lang-selector {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    color: var(--text-muted-light);
    font-weight: 500;
    font-size: 0.875rem;
}

.dark .lang-toggle {
    color: var(--text-muted-dark);
}

.lang-toggle:hover {
    color: var(--primary);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    background-color: var(--card-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(0.5rem);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 50;
    padding: 0.5rem 0;
}

.dark .lang-dropdown {
    background-color: var(--card-dark);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.lang-dropdown button:hover,
.lang-dropdown button.active {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

.dark .lang-dropdown button:hover,
.dark .lang-dropdown button.active {
    background-color: rgba(255, 255, 255, 0.05);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: var(--text-muted-light);
}

.dark .theme-toggle {
    color: var(--text-muted-dark);
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

.dark .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

.dark .sun-icon {
    display: none;
}

.dark .moon-icon {
    display: block;
}

/* Menu toggle for mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 1.5rem;
    height: 1.25rem;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 0.125rem;
    background-color: var(--text-light);
    border-radius: 0.125rem;
    transition: var(--transition);
}

.dark .menu-toggle span {
    background-color: var(--text-dark);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(to right, rgba(37, 99, 235, 0.1), rgba(249, 115, 22, 0.1));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dark .hero {
    background: linear-gradient(to right, rgba(37, 99, 235, 0.2), rgba(249, 115, 22, 0.2));
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-muted-light);
}

.dark .hero p {
    color: var(--text-muted-dark);
}

.live-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.live-now .pulse-dot {
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--danger);
    border-radius: 50%;
    position: relative;
}

.live-now .pulse-dot::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--danger);
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0.8;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.viewer-count {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.dark .viewer-count {
    background-color: rgba(255, 255, 255, 0.1);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

.category-filter {
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid var(--border-light);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.dark .category-filter {
    background-color: var(--card-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.category-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-filter.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Featured Webcam */
.featured-webcam {
    padding: 2rem 0;
}

.webcam-player-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.webcam-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: black;
    position: relative;
}

.webcam-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.webcam-info-overlay .location {
    display: none;
}

.trending-webcams {
    padding: 3rem 0;
    background-color: var(--bg-light);
}

.dark .trending-webcams {
    background-color: var(--bg-dark);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.webcam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.webcam-grid.list-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.webcam-card {
    background-color: var(--card-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dark .webcam-card {
    background-color: var(--card-dark);
}

.webcam-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.webcam-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.webcam-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    will-change: transform;
}

.webcam-card:hover .webcam-thumbnail img {
    transform: scale(1.05);
}

.webcam-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.webcam-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.webcam-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.webcam-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.webcam-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted-light);
    font-size: 0.875rem;
}

.dark .webcam-location {
    color: var(--text-muted-dark);
}

.webcam-viewers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted-light);
    font-size: 0.875rem;
}

.dark .webcam-viewers {
    color: var(--text-muted-dark);
}

.view-more-btn {
    display: flex;
    justify-content: center;
    margin: 1rem 0 2rem;
}

.load-more-btn {
    background-color: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-light);
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.dark .load-more-btn {
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.load-more-btn:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.view-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.25rem;
    border-radius: var(--radius);
}

.dark .view-toggle {
    background-color: rgba(255, 255, 255, 0.05);
}

.view-btn {
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted-light);
}

.dark .view-btn {
    color: var(--text-muted-dark);
}

.view-btn.active {
    background-color: var(--card-light);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.dark .view-btn.active {
    background-color: var(--card-dark);
}

.quick-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.quick-category-btn {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: var(--card-light);
    border: 1px solid var(--border-light);
    color: var(--text-light);
    transition: all 0.2s ease;
}

.dark .quick-category-btn {
    background-color: var(--card-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.quick-category-btn:hover,
.quick-category-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background-color: var(--card-light);
    border: 1px solid var(--border-light);
    font-weight: 500;
}

.dark .pagination-btn {
    background-color: var(--card-dark);
    border-color: var(--border-dark);
}

.pagination-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Channel Switcher Styles */
.channel-switcher-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 15px;
}

.channel-control-container {
    display: flex;
    align-items: center;
    width: 100%;
    background: linear-gradient(to right, #1a1a1a, #333, #1a1a1a);
    border-radius: 8px;
    border: 1px solid #444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    padding: 6px 10px;
}

.playback-controls-container {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 3px;
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.control-btn:active {
    transform: translateY(0);
}

.auto-play-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    width: auto;
    padding: 0 10px;
    background-color: var(--primary);
    margin-left: 6px;
}

.auto-play-btn:hover {
    background-color: var(--primary-dark);
}

.auto-play-btn.active {
    background-color: var(--danger, #e74c3c);
}

.auto-play-btn.active:hover {
    background-color: var(--danger-dark, #c0392b);
}

.next-channel-btn svg {
    margin-left: 2px;
}

.prev-channel-btn svg {
    margin-right: 2px;
}

.current-channel-display {
    flex-grow: 1;
    margin-left: 12px;
    padding: 8px 12px;
    font-family: 'Digital-7', monospace, sans-serif;
    font-size: 1.1rem;
    color: #0ff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
    background-color: #111;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8);
}

@keyframes channelChange {
    0% { opacity: 0; transform: translateY(-5px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 1; transform: translateY(0); }
}

.channel-change-animation {
    animation: channelChange 1.5s ease-out;
}

.webcam-player-container {
    max-height: 60vh;
    overflow: hidden;
}

.webcam-player {
    max-height: 53vh;
}

.webcam-info-overlay {
    padding: 8px;
    display: flex;
    flex-direction: column;
}

/* Map Webcam Overlay Styles */
.map-webcam-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.map-webcam-container {
    width: 80%;
    max-width: 900px;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: default;
}

.map-webcam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.map-webcam-header h3 {
    margin: 0;
    font-size: 18px;
}

.map-webcam-close {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--danger, #e74c3c);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.map-webcam-close:hover {
    background-color: var(--danger-dark, #c0392b);
}

.map-webcam-player {
    width: 100%;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.map-webcam-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.map-webcam-info {
    padding: 12px 16px;
    display: flex;
    align-items: center;
}

.map-webcam-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.map-webcam-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
}

.categories-above-map {
    margin-bottom: 20px;
}

.highlighted-marker .marker-content {
    background-color: #e74c3c !important;
    border-color: #c0392b !important;
}

@keyframes pulsate {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.pulse-marker .marker-content {
    animation: pulsate 1.5s ease-out infinite;
}

.dark .next-channel-btn {
    background-color: var(--primary-dark);
}

.dark .next-channel-btn:hover {
    background-color: var(--primary);
}

.dark .current-channel-display {
    background-color: #1a1a1a;
}

.dark .channel-control-container {
    background: linear-gradient(to right, #222, #444, #222);
    border-color: #555;
}

/* Toast and Spinner Styles */
.loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary);
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@font-face {
    font-family: 'Digital-7';
    src: url('data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAAm0AA4AAAAAEQQAAAlhAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAghIIBBEICrMQqTgLFAABNgIkA0wEIAWUdAc5G5wNEdWk2UL2FwnGTiCmMZhoRZAoMBRJoijw/yK478bUoBfP+f+6vc+bmfcWNWqmU9XxqfhQiUR6NjKJjxHqYKc36KYj+lZ99bL1l6/wF71hTiQSImMjMaMJlkGEqJAIkUjE2/qfnZ2XZcO5u9tLnUwWc4NJ34Pg8h9J7v8HAEvefCsqb9hbKtfGCKqHLVzAWcABBB9W1nST5Ndk9Ib/bUPb0JJZrY2XkbdC1g9QJtVDlBKpDApTjCozx7Dt6lIQAYSPn8wEEIcjgAUOgA84L3EGADuHuSuYoAYw4ODXc0H0BIBSAEwQADwQSKDiMOLAuXXQCl59t3l07LnVyO4ksRcvRhq+cEDM/0Y9EUu+JLpVzIh3lLZDYsF7kUjUJzV+yO9zkmGILoxpZ5o1Qr+UPRPe7zFPRbqPxIPRwYhNHInTi9PT05N8l3nAPk+e82Oq+vWWt53ttsb3fJ8ffHPVHt+q/t2a2x39ewXrM+5I13Cv0e+nGxo+9BhsV4Zx0Wkec2QYA0lfPbY6PekNUfWMUOSzHPYYSPlOZRiAYRlA/KrYhjFo7hYEu77fTqK34o/cKn8q8OAqRsRDPL6Pk+LHOPR2RNHJKjZk4GIfHhw0Vd5c/k7lq1Dvy0D4lZL3dFBc9/75+vLdnFeSYxb/XM2d1H/Q2Aupwf6jZZXH5PfE2HNnq4r/OBYZKr8fTFdFDvOu/fKotujuqdqiJ+LcMfHowKRrfE9t4T11tW6RHxWnzMXifCw1drLYkfNznEVSZ7Fd4tEtcf+p088qT1XUnq2r9XtC94r9dw6Jh/eU3lMlnj27bkT0dVw8eFg891BcfFocr6qs/OnKlpDrBtBWnjlSVXcbGRSPHxGPj5Vd6bh4aOyxRvfEE4fvqHO/D77vr3UbcYt7RXJ4SHUeNfuZeOygeOyD1JHDIrd8vPTS2nh4Uuzxnyt8JL44IF47deLSFffI4OW1DaGRAfFAd8GxYuHxoXNHPeJtmvB4aHyY/Sj8EThx/7qRQXHdYFGh66c0JIb/UQ9xP/jOqRPXDg6I4mA88uvj6bNHBu5f86NyQZ93e6j4+tHD/wYOBQ6dUP7b2B0dOXyvGHbH4qp7cfcZGXSJx/LPl7w97rrr9p+7w+LhY+Lxw+I55/XPK/8WF5M5pysPiicOiqodjy+YEc/eVy8eEI8cF4+5H4hXB3b0srlZf/+JqqrHlYSq3DW06JTfU+XFdIecR886f/qf/f7gB3E+qDzYfNDH/3+3xz0iD4OPQxUHaw66jfOH1x1W+8SldUOVw6efnK0+1jRa/0R34v37ouGtHj1xZLAy1bA0+HGEDx0aOPTf0GDfYM/Bdw/6zVw+E75xruvg0R+NesMEFO8bGBzY33ew92Cn93x3YrZrMLDpPxgYKvv0GU+Onhx6z3Gk7IftCR60pQd/eGLg/R/f5xtV7vC+wXdDsUMj+w4f9IYd44dKKj/59IOdpXu/OR') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .webcam-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }
    
    .quick-categories {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .quick-category-btn {
        scroll-snap-align: start;
        flex: 0 0 auto;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
    }
    
    .auto-play-btn {
        padding: 0 6px;
    }
    
    .auto-play-btn span {
        font-size: 0.7rem;
    }
    
    .current-channel-display {
        font-size: 0.9rem;
        padding: 4px 8px;
        margin-left: 8px;
    }
    
    .map-webcam-container {
        width: 95%;
    }
    
    .map-webcam-close span {
        display: none;
    }
    
    .map-webcam-close {
        padding: 6px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .channel-control-container {
        padding: 4px;
    }
    
    .playback-controls-container {
        gap: 3px;
        padding: 2px;
    }
}

@media (max-width: 480px) {
    .webcam-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .webcam-title {
        font-size: 0.875rem;
    }
}
/* Mobile Menu Fixes */
@media (max-width: 768px) {
    .header-wrapper {
        position: relative;
    }
    
    .nav-list {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--card-light);
        box-shadow: var(--shadow);
        z-index: 100;
        padding: 1rem;
        gap: 1rem;
    }
    
    .dark .nav-list {
        background-color: var(--card-dark);
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-list a {
        padding: 0.5rem;
        width: 100%;
        display: block;
    }
    
    .menu-toggle {
        display: flex;
        margin-right: 1rem;
    }
    
    .header-actions {
        position: absolute;
        right: 1rem;
    }
    
    /* Fix for language selector positioning */
    .lang-selector {
        position: static;
    }
    
    .lang-dropdown {
        right: 0;
        left: auto;
        width: 150px;
    }
}

@media (max-width: 480px) {
    .logo a span {
        display: none;
    }
    
    .header-actions {
        display: flex;
        align-items: center;
        position: static;
    }
    
    .menu-toggle {
        margin-left: auto;
        margin-right: 0.5rem;
    }
    
    /* Compact the header actions */
    .search-toggle, .theme-toggle, .lang-toggle {
        width: 2rem;
        height: 2rem;
    }
    
    .search-toggle svg, .theme-toggle svg, .lang-toggle svg {
        width: 16px;
        height: 16px;
    }
    
    .lang-toggle span {
        font-size: 0.75rem;
    }
}