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

body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background-color: #000000;
color: #ffffff;
overflow-x: hidden;
}

#compositeCanvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}

.main-layout {
position: relative;
z-index: 2;
width: 320px;
margin: 20px;
display: flex;
flex-direction: column;
gap: 15px;
}

header #mainLogo {
width: 100%;
display: block;
height: auto;
}

.subtitle {
color: #888;
font-size: 0.8rem;
margin-top: 4px;
margin-bottom: 6px;
}

#unlockBtn {
width: 100%;
background: #222;
border: 1px solid #444;
color: white;
padding: 12px 15px;
font-size: 1rem;
font-weight: bold;
cursor: pointer;
border-radius: 4px;
display: block;
text-align: center;
line-height: 1.2;
}

#unlockBtn:hover {
background: #333;
}

#masterSliderLabel {
font-size: 0.85rem;
color: #aaa;
}

#masterSlider {
width: 100%;
accent-color: #0055ff;
}

.accordion {
width: 100%;
border: 1px solid #2d2d2d;
background: rgba(20, 20, 20, 0.8);
border-radius: 4px;
overflow: hidden;
}

.accordion-toggle {
width: 100%;
background: #1c1c1c;
border: none;
color: white;
padding: 12px 15px;
text-align: center;
font-size: 1rem;
font-weight: bold;
cursor: pointer;
outline: none;
}

.accordion-toggle:hover {
background: #252525;
}

.accordion-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.25s ease-out;
}

.mobile-station-switcher {
display: none;
}

.mobile-station-switcher.single-station {
display: none !important;
}

.mobile-stations-viewport {
display: block;
width: 100%;
position: relative;
overflow: hidden;
}

.mobile-stations-track {
display: block;
width: 100%;
position: relative;
}

.station-container {
border-bottom: 1px solid #2d2d2d;
background: rgba(10, 10, 10, 0.5);
}

.station-container:last-child {
border-bottom: none;
}

.station-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 15px;
cursor: pointer;
user-select: none;
background: rgba(25, 25, 25, 0.4);
}

.station-header:hover {
background: rgba(35, 35, 35, 0.6);
}

.header-left {
display: flex;
align-items: center;
gap: 10px;
}

.station-toggle {
width: 16px;
height: 16px;
accent-color: #00ff66;
cursor: pointer;
margin: 0;
flex: 0 0 auto;
}

.station-title {
font-size: 0.95rem;
font-weight: bold;
}

.caret-icon {
transition: transform 0.2s ease;
font-size: 10px;
color: #666;
}

.station-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.25s ease-out;
}

.station-content.disabled-station {
opacity: 0.15;
pointer-events: none;
}

.stream-control {
padding: 10px 15px;
border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stream-control:last-child {
border-bottom: none;
}

.stream-control label {
display: block;
font-size: 0.85rem;
color: #bbb;
margin-bottom: 4px;
}

.controls-row {
display: flex;
align-items: center;
gap: 8px;
}

.controls-row input[type="range"] {
flex: 1;
accent-color: #0055ff;
}

.mute-btn, .solo-btn {
background: #2a2a2a;
border: 1px solid #444;
color: #fff;
width: 24px;
height: 24px;
border-radius: 3px;
font-size: 0.7rem;
font-weight: bold;
cursor: pointer;
}

.mute-btn.active { background: #ff3333 !important; border-color: #ff3333; }
.solo-btn.active { background: #ffcc00 !important; border-color: #ffcc00; color: #000; }

.controls-row input:disabled {
opacity: 0.3;
}

.project-info-btn {
width: 100%;
background: #1c1c1c;
border: 1px solid #2d2d2d;
color: white;
padding: 12px 15px;
text-align: center;
font-size: 1rem;
font-weight: bold;
cursor: pointer;
border-radius: 4px;
outline: none;
text-decoration: none;
}

.project-info-btn:hover {
background: #252525;
}

.accordion button,
button.accordion-toggle {
-webkit-appearance: none;
appearance: none;
}

.meteo-grid {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 8px 12px;
}

.kv {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 12px;
padding: 2px 0;
}

.kv:first-child {
padding-top: 9px;
border-top: 1px solid #fff;
justify-content: flex-start;
}

.kv:last-child {
border-bottom: 1px solid #fff;
margin-bottom: 9px;
}

.kv > :first-child {
text-align: left;
}

.kv > :last-child {
margin-left: auto;
text-align: right;
white-space: nowrap;
}

.kv:first-child > :last-child {
margin-left: 0;
text-align: left;
}

.kv i {
margin-right: 6px;
color: #0ff;
}

.meteo-loading, .meteo-error {
color: #6b7280;
font-size: .95rem;
}

@media (max-width: 768px) {
.main-layout {
width: min(360px, calc(100vw - 24px));
margin: 12px auto;
gap: 12px;
}

#unlockBtn,
.accordion-toggle,
.station-header {
padding: 14px 16px;
font-size: 1.0625rem;
line-height: 1.2;
min-height: 44px;
}

#masterSliderLabel,
.stream-control label,
.kv,
.meteo-loading,
.meteo-error {
font-size: 0.95rem;
}

.subtitle {
font-size: 0.78rem;
margin-top: 4px;
margin-bottom: 8px;
}

.station-toggle {
width: 20px;
height: 20px;
}

.station-title {
font-size: 1rem;
}

.header-left {
gap: 12px;
}

.stream-control {
padding: 12px 16px;
}

.controls-row {
gap: 10px;
}

.controls-row input[type="range"] {
min-height: 28px;
}

.mute-btn, .solo-btn {
width: 32px;
height: 32px;
font-size: 0.8rem;
}

.caret-icon {
font-size: 12px;
}

.mobile-station-switcher {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 12px 16px;
border-bottom: 1px solid rgba(255,255,255,0.08);
background: rgba(10, 10, 10, 0.35);
}

.mobile-station-arrow {
width: 36px;
height: 36px;
border: 1px solid #444;
border-radius: 4px;
background: #222;
color: #fff;
font-size: 1.35rem;
line-height: 1;
cursor: pointer;
flex: 0 0 auto;
}

.mobile-station-arrow:disabled {
opacity: 0.35;
cursor: default;
}

.mobile-station-name {
flex: 1;
text-align: center;
font-size: 1rem;
font-weight: bold;
}

.mobile-stations-track > .station-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
border-bottom: none;
background: transparent;
opacity: 0;
pointer-events: none;
transform: translateX(100%);
transition: transform 0.28s ease, opacity 0.28s ease;
}

.mobile-stations-track > .station-container.mobile-active-station {
opacity: 1;
pointer-events: auto;
position: relative;
transform: translateX(0);
}

.mobile-stations-track > .station-container.mobile-before {
opacity: 0;
transform: translateX(-100%);
}

.mobile-stations-track > .station-container.mobile-after {
opacity: 0;
transform: translateX(100%);
}

.mobile-stations-track > .station-container.mobile-exit-left {
opacity: 0;
transform: translateX(-100%);
}

.mobile-stations-track > .station-container.mobile-exit-right {
opacity: 0;
transform: translateX(100%);
}

.station-header {
display: none;
}

.station-content {
max-height: none !important;
overflow: visible;
transition: none;
}

.station-content.disabled-station {
opacity: 1;
pointer-events: auto;
}
}
