:root {
    --bg-base: #06080d;
    --glass-bg: rgba(12, 16, 26, 0.68);
    --glass-border: rgba(255, 255, 255, 0.11);
    --glass-highlight: rgba(255, 255, 255, 0.18);
    --text-main: #f4f7fb;
    --text-muted: #9aa7bd;
    --accent: #38bdf8;
    --accent-2: #818cf8;
    --danger: #f87171;
    --radius-lg: 18px;
    --radius-md: 12px;
    --bg-brightness: 100%;
    --bg-saturate: 105%;
    --vignette-opacity: 0.35;
    --media-fit: cover;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg-base);
    color: var(--text-main);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

/* Canli Arka Plan Sahnesi */
#stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #04060a;
}

#procedural-canvas,
.stage-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: var(--media-fit);
    filter: brightness(var(--bg-brightness)) saturate(var(--bg-saturate));
    opacity: 0;
    transition: opacity 0.85s ease;
    pointer-events: none;
}

#procedural-canvas.active,
.stage-media.active {
    opacity: 1;
}

#vignette-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        circle at center,
        transparent 45%,
        rgba(0, 0, 0, var(--vignette-opacity)) 100%
    );
}

/* Ortak Cam Panel Stili */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* Chrome UI gorunurluk ve Ambient mod gecisi */
.chrome-ui {
    transition: opacity 0.45s ease, transform 0.45s ease;
}

body.ambient-mode .chrome-ui {
    opacity: 0;
    pointer-events: none;
}

body.ambient-mode #top-bar {
    transform: translateY(-20px);
}

body.ambient-mode #player-dock,
body.ambient-mode #showcase-drawer {
    transform: translateY(24px);
}

body.ambient-mode.idle-cursor {
    cursor: none;
}

/* Ekran Modu Saat ve Bilgi Katmani */
#ambient-hud {
    position: fixed;
    z-index: 2;
    pointer-events: none;
    transition: all 0.45s ease;
    text-shadow: 0 6px 28px rgba(0, 0, 0, 0.65);
}

#ambient-hud.hud-bottom-left {
    left: 36px;
    bottom: 96px;
}

body.ambient-mode #ambient-hud.hud-bottom-left {
    bottom: 36px;
}

#ambient-hud.hud-top-left {
    left: 36px;
    top: 96px;
}

body.ambient-mode #ambient-hud.hud-top-left {
    top: 36px;
}

#ambient-hud.hud-top-right {
    right: 36px;
    top: 96px;
    text-align: right;
}

body.ambient-mode #ambient-hud.hud-top-right {
    top: 36px;
}

#ambient-hud.hud-top-right .hud-badges-row,
#ambient-hud.hud-center .hud-badges-row {
    justify-content: center;
}

#ambient-hud.hud-top-right .hud-badges-row {
    justify-content: flex-end;
}

#ambient-hud.hud-center {
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    text-align: center;
}

#ambient-hud.hud-hidden {
    opacity: 0;
}

.hud-clock {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    font-weight: 200;
    letter-spacing: -0.03em;
    line-height: 1;
}

.clock-size-sm .hud-clock {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.clock-size-lg .hud-clock {
    font-size: clamp(3.8rem, 8.5vw, 7rem);
}

.clock-style-neon .hud-clock {
    font-weight: 600;
    color: #ffffff;
    text-shadow:
        0 0 12px var(--accent),
        0 0 28px var(--accent),
        0 0 54px var(--accent-2);
}

/* Dijital Cam Kart Saat */
.hud-flip-clock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.flip-card {
    display: inline-grid;
    place-items: center;
    min-width: 78px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(8, 12, 22, 0.65);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    font-size: clamp(2.1rem, 4.5vw, 3.6rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.clock-size-sm .flip-card {
    min-width: 58px;
    padding: 8px 10px;
    font-size: 1.8rem;
}

.clock-size-lg .flip-card {
    min-width: 102px;
    padding: 16px 18px;
    font-size: clamp(3rem, 6vw, 4.8rem);
}

.flip-sec-card {
    color: var(--accent);
}

.flip-sep {
    font-size: 2rem;
    opacity: 0.65;
    font-weight: 300;
}

/* Analog Minimal Saat */
.hud-analog-clock {
    width: 132px;
    height: 132px;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.5));
}

.clock-size-sm .hud-analog-clock {
    width: 96px;
    height: 96px;
}

.clock-size-lg .hud-analog-clock {
    width: 176px;
    height: 176px;
}

.analog-face {
    fill: rgba(8, 12, 22, 0.55);
    stroke: rgba(255, 255, 255, 0.22);
    stroke-width: 2;
}

.analog-ring {
    fill: none;
    stroke: var(--accent);
    stroke-opacity: 0.32;
    stroke-width: 1.5;
    stroke-dasharray: 2 10.55;
}

.analog-hand {
    stroke-linecap: round;
    transform-origin: 60px 60px;
}

.analog-hand.hour {
    stroke: #f8fafc;
    stroke-width: 3.4;
}

.analog-hand.min {
    stroke: #e2e8f0;
    stroke-width: 2.3;
}

.analog-hand.sec {
    stroke: var(--accent);
    stroke-width: 1.4;
}

.analog-pivot {
    fill: var(--accent);
}

.hud-date {
    margin-top: 6px;
    font-size: 0.98rem;
    color: rgba(244, 247, 251, 0.8);
    letter-spacing: 0.04em;
    text-transform: capitalize;
}

.hud-note {
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.hud-badges-row {
    margin-top: 12px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hud-now-playing,
.hud-pomodoro,
.hud-widget-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(8, 12, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    font-size: 0.82rem;
    color: rgba(244, 247, 251, 0.92);
}

/* Ambiyans Ritim Cubuklari */
.hud-visualizer {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(8, 12, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hud-visualizer span {
    width: 3px;
    height: 6px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    animation: vizBar 1.25s ease-in-out infinite alternate;
}

.hud-visualizer span:nth-child(2) { animation-delay: 0.15s; }
.hud-visualizer span:nth-child(3) { animation-delay: 0.35s; }
.hud-visualizer span:nth-child(4) { animation-delay: 0.08s; }
.hud-visualizer span:nth-child(5) { animation-delay: 0.45s; }
.hud-visualizer span:nth-child(6) { animation-delay: 0.22s; }
.hud-visualizer span:nth-child(7) { animation-delay: 0.52s; }
.hud-visualizer span:nth-child(8) { animation-delay: 0.18s; }
.hud-visualizer span:nth-child(9) { animation-delay: 0.40s; }
.hud-visualizer span:nth-child(10) { animation-delay: 0.28s; }

@keyframes vizBar {
    0% { height: 4px; opacity: 0.55; }
    100% { height: 15px; opacity: 1; }
}

/* Widget Modali Switch ve Satirlar */
.widget-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.widget-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.widget-toggle-row > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.widget-toggle-row strong {
    font-size: 0.88rem;
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    transition: background 0.2s ease;
}

.switch .slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s ease;
}

.switch input:checked + .slider {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.switch input:checked + .slider::before {
    transform: translateX(18px);
}

.hud-pomodoro {
    pointer-events: auto;
}

.hud-pomodoro span {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.06em;
}

.hud-pomodoro button {
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    width: 22px;
    height: 22px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.72rem;
    display: grid;
    place-items: center;
}

.hud-pomodoro button:hover {
    background: rgba(255, 255, 255, 0.24);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 10px #34d399;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}

/* Ust Bar */
#top-bar {
    position: fixed;
    top: 18px;
    left: 18px;
    right: 18px;
    z-index: 10;
    border-radius: var(--radius-lg);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #050811;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
    transition: background 0.8s ease;
}

.brand-text h1 {
    font-size: 0.96rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.badge {
    display: inline-block;
    margin-top: 2px;
    font-size: 0.72rem;
    color: var(--accent);
    opacity: 0.95;
    transition: color 0.8s ease;
}

.search-wrap {
    flex: 1;
    max-width: 280px;
}

.search-wrap input,
.form-row input,
.form-row select {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 12px;
    color: var(--text-main);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.search-wrap input:focus,
.form-row input:focus,
.form-row select:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

select option {
    background: #101624;
    color: var(--text-main);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Butonlar */
.btn {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 8px 13px;
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-main);
    transition: transform 0.15s, background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #060911;
    font-weight: 600;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.13);
}

.btn-mini {
    padding: 5px 10px;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.mini-select {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 4px 8px;
    color: var(--text-main);
    font-size: 0.76rem;
    outline: none;
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.icon-btn-main {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #050811;
    border: none;
    font-weight: 700;
}

/* Galeri Cekmecesi */
#showcase-drawer {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 88px;
    z-index: 9;
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    max-height: min(46vh, 410px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

#showcase-drawer.collapsed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.category-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.pill {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.pill:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.pill.active {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--accent);
    color: #ffffff;
}

.drawer-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.79rem;
    color: var(--text-muted);
}

.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 12px;
    overflow-y: auto;
    padding-right: 4px;
}

.wallpaper-grid::-webkit-scrollbar {
    width: 6px;
}

.wallpaper-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

/* Wallpaper Kartlari */
.wp-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    aspect-ratio: 16 / 9;
}

.wp-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.28);
}

.wp-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18), 0 12px 26px rgba(0, 0, 0, 0.5);
}

.wp-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #0b101b;
}

.wp-hover-video {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.wp-card:hover .wp-hover-video.playing {
    opacity: 1;
}

.wp-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.52) 0%, transparent 42%, rgba(0,0,0,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px 10px;
}

.wp-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.wp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.wp-kind-tag {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
}

.wp-card-actions {
    display: flex;
    gap: 4px;
}

.wp-mini-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: rgba(0, 0, 0, 0.58);
    color: #e2e8f0;
    cursor: pointer;
    font-size: 0.75rem;
    display: grid;
    place-items: center;
    transition: background 0.15s, color 0.15s;
}

.wp-mini-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.wp-mini-btn.fav-active {
    color: #fbbf24;
}

.wp-mini-btn.offline-ready {
    color: #34d399;
    background: rgba(16, 185, 129, 0.24);
}

.offline-stats-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.offline-stats-box div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.offline-stats-box strong {
    font-size: 1.05rem;
    color: var(--accent);
}

.wp-mini-btn.delete:hover {
    background: rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

.wp-card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.wp-title {
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-meta {
    font-size: 0.69rem;
    color: rgba(226, 232, 240, 0.78);
}

.wp-stats {
    font-size: 0.68rem;
    color: rgba(226, 232, 240, 0.75);
    white-space: nowrap;
}

/* Alt Kontrol Cubugu */
#player-dock {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 10;
    border-radius: var(--radius-lg);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.dock-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}

.now-info {
    margin-left: 6px;
    min-width: 0;
}

.now-title {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 195px;
}

.now-sub {
    font-size: 0.73rem;
    color: var(--text-muted);
}

.dock-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 390px;
}

.time-label {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 36px;
    text-align: center;
}

input[type="range"] {
    accent-color: var(--accent);
    cursor: pointer;
}

#seek-bar {
    flex: 1;
    height: 4px;
}

.dock-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.compact-select {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.77rem;
    color: var(--text-muted);
}

.compact-select select {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 5px 7px;
    color: var(--text-main);
    font-size: 0.77rem;
    outline: none;
}

.volume-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

#volume-slider {
    width: 64px;
}

/* Ekran Modu Cikis Pili */
#ambient-exit-pill {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 12;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--text-main);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.35s ease, transform 0.2s ease;
}

#ambient-exit-pill kbd {
    background: rgba(255, 255, 255, 0.14);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.74rem;
}

body.ambient-mode.idle-cursor #ambient-exit-pill {
    opacity: 0;
    pointer-events: none;
}

/* Surukle-Birak Alani */
#drop-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(6, 10, 18, 0.82);
    backdrop-filter: blur(12px);
    display: grid;
    place-items: center;
    padding: 24px;
}

.drop-box {
    border: 2px dashed var(--accent);
    border-radius: 26px;
    padding: 56px 42px;
    text-align: center;
    max-width: 520px;
    background: rgba(56, 189, 248, 0.08);
}

.drop-icon {
    font-size: 2.6rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.drop-box p {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.94rem;
}

/* Modaller */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(4, 6, 12, 0.72);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    padding: 20px;
}

.modal-card {
    width: 100%;
    max-width: 540px;
    border-radius: 20px;
    overflow: hidden;
}

.modal-card-sm {
    max-width: 400px;
}

.modal-header,
.modal-footer {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-footer {
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: flex-end;
    gap: 10px;
}

.modal-header h2 {
    font-size: 1.02rem;
    font-weight: 600;
}

.modal-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 72vh;
    overflow-y: auto;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

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

.inline-row input {
    flex: 1;
}

.upload-drop-area {
    border: 1.5px dashed rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 24px 18px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s, background 0.2s;
}

.upload-drop-area:hover {
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.07);
}

.upload-summary {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-size: 0.85rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row label {
    font-size: 0.81rem;
    color: var(--text-muted);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.83rem;
    color: var(--text-main);
    cursor: pointer;
}

.ambient-preset-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.preset-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    padding: 11px 12px;
    border-radius: 11px;
    cursor: pointer;
    font-size: 0.84rem;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.11);
}

.preset-btn.active {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.14);
}

.remote-box {
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.remote-pad {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-bar-bg {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.2s ease;
}

.muted {
    color: var(--text-muted);
    font-size: 0.81rem;
}

.error-text {
    color: var(--danger);
    font-size: 0.82rem;
}

/* Toast Bildirimleri */
#toast-container {
    position: fixed;
    top: 84px;
    right: 20px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(12, 17, 29, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    color: var(--text-main);
    font-size: 0.84rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.25s ease;
}

.toast.error {
    border-color: rgba(248, 113, 113, 0.5);
    color: #fecaca;
}

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

.hidden {
    display: none !important;
}

@media (max-width: 980px) {
    #top-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    .search-wrap {
        order: 3;
        max-width: none;
        width: 100%;
    }
    #player-dock {
        flex-wrap: wrap;
        gap: 10px;
    }
    .dock-progress {
        order: 3;
        max-width: none;
        width: 100%;
    }
    #showcase-drawer {
        bottom: 138px;
    }
    .two-col {
        grid-template-columns: 1fr;
    }
}
