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

:root {
    --ad-stack-height: calc(20vh + 32px);
    --app-header-height: 72px;
    --settings-panel-height: 232px;
    --settings-top: calc(var(--ad-stack-height) + var(--app-header-height));
    --content-top: calc(var(--settings-top) + var(--settings-panel-height));
    --surface: rgba(12, 18, 38, 0.88);
    --surface-strong: rgba(14, 20, 43, 0.96);
    --surface-soft: rgba(255, 255, 255, 0.055);
    --border: rgba(148, 163, 184, 0.18);
    --border-strong: rgba(148, 163, 184, 0.32);
    --text: #eef4ff;
    --muted: rgba(226, 232, 240, 0.68);
    --accent: #3b82f6;
    --accent-2: #10b981;
}

body {
    background:
        radial-gradient(circle at 18% 10%, rgba(59, 130, 246, 0.26), transparent 28rem),
        radial-gradient(circle at 88% 74%, rgba(236, 72, 153, 0.22), transparent 34rem),
        linear-gradient(180deg, #09111f 0%, #101738 45%, #db3f9f 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    letter-spacing: 0;
}

body.ads-hidden {
    --ad-stack-height: 0px;
}

.ad-shell {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 35;
    height: var(--ad-stack-height);
    overflow: hidden;
    background: rgba(2, 6, 23, 0.94);
    border-bottom: 1px solid var(--border);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

body.ads-hidden .ad-shell {
    pointer-events: none;
    opacity: 0;
    transform: translateY(-100%);
}

.ad-ticker {
    height: 32px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: rgba(9, 17, 31, 0.98);
    color: #dbeafe;
    white-space: nowrap;
}

.ad-ticker-track {
    min-width: 100%;
    animation: tickerMove 18s linear infinite;
    font-size: 0.85rem;
    letter-spacing: 0;
}

@keyframes tickerMove {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

.ad-banner {
    height: 20vh;
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(16, 185, 129, 0.12)),
        rgba(15, 23, 42, 0.88);
}

.ad-banner strong,
.ad-banner span {
    display: block;
}

.ad-banner strong {
    font-size: clamp(1.1rem, 2vw, 1.7rem);
}

.ad-banner span {
    margin-top: 0.35rem;
    color: rgba(226, 232, 240, 0.82);
}

.app-header {
    position: fixed;
    top: var(--ad-stack-height);
    left: 0;
    right: 0;
    z-index: 30;
    min-height: var(--app-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem clamp(1rem, 3vw, 2rem);
    background: rgba(8, 13, 29, 0.88);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px) saturate(1.2);
    transition: top 0.25s ease;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0;
    background: transparent;
}

.brand:hover {
    background: transparent;
    transform: none;
}

.brand-icon {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.28);
}

.brand-copy {
    display: grid;
    gap: 0.05rem;
    min-width: 0;
}

.brand-copy strong {
    color: #f8fbff;
    font-size: clamp(1.1rem, 1.7vw, 1.45rem);
    font-weight: 800;
    line-height: 1;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.app-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

#teleprompter {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--content-top);
    bottom: 0;
    overflow-y: auto;
    padding: clamp(2rem, 6vw, 5rem);
    margin: 0;
    scrollbar-width: none;
    z-index: 1;
}

#teleprompter::-webkit-scrollbar {
    display: none;
}

#scriptContent {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
    line-height: 1.6;
    white-space: pre-wrap;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.24);
}

.settings-panel {
    background: var(--surface-strong);
    backdrop-filter: blur(18px) saturate(1.15);
    position: fixed;
    left: 0;
    right: 0;
    top: var(--settings-top);
    z-index: 20;
    padding: 1rem clamp(1rem, 2vw, 1.35rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s ease, top 0.25s ease;
    max-height: min(48vh, 25rem);
    overflow-y: auto;
}

.settings-panel.bottom {
    top: auto;
    bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
}

.settings-controls {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
}

.position-toggle {
    position: absolute;
    right: 10px;
    top: -40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 21;
    border: 1px solid var(--border-strong);
    min-height: 35px;
}

.settings-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 1rem;
    align-items: end;
    flex: 1;
    min-width: 0;
}

.setting {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 140px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 46px;
}

.status-group {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    align-self: start;
    min-height: 46px;
}

.status {
    color: rgba(238, 244, 255, 0.86);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
    width: 100%;
}

input[type="number"],
input[type="range"],
input[type="email"],
input[type="password"],
input[type="text"],
select,
textarea {
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.68rem 0.78rem;
    font-size: 0.92rem;
    font-weight: 650;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    flex: 1;
    min-width: 60px;
}

input[type="number"]:focus,
input[type="range"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.78);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

select {
    width: 100%;
    appearance: auto;
}

input[type="range"] {
    min-width: 140px;
    accent-color: var(--accent);
}

label {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.functional-btn, a {
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.62rem 1rem;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: fit-content;
    min-height: 42px;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.18);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border-strong);
    box-shadow: none;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.09);
}

.premium-btn {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.premium-btn:hover {
    background: #38bdf8;
}

.functional-btn:hover, a:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(59, 130, 246, 0.25);
}

.functional-btn:active, a:active {
    transform: translateY(0);
}

.functional-btn:disabled {
    background: rgba(148, 163, 184, 0.28);
    color: rgba(255, 255, 255, 0.64);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

#startBtn.active, #recordVideoBtn.active, #recordAudioBtn.active {
    background: #dc2626;
}

#startBtn.active:hover, #recordVideoBtn.active:hover, #recordAudioBtn.active:hover {
    background: #ef4444;
}

#pauseBtn.active {
    background: #dc2626;
}

#pauseBtn.active:hover {
    background: #ef4444;
}

#fontSizeValue {
    min-width: 3rem;
    text-align: center;
}

.highlight {
    border-radius: 4px;
    padding: 2px 4px;
    transition: all 0.2s;
}

.mobile-icon {
    display: inline-block;
    font-size: 1.2rem;
    margin-right: 0.25rem;
}

.btn-text {
    display: inline; /* Visible on desktop */
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 50% 8%, rgba(59, 130, 246, 0.22), transparent 28rem),
        rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(18px) saturate(1.1);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
        rgba(13, 20, 42, 0.96);
    padding: clamp(1rem, 2.2vw, 1.5rem);
    border: 1px solid var(--border);
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.modal-header {
    display: grid;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.modal-kicker {
    color: #93c5fd;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.modal-content h2 {
    color: #e2e8f0;
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    line-height: 1.1;
}

.modal-content textarea {
    width: 100%;
    min-height: 240px;
    margin-bottom: 1rem;
    background: rgba(5, 10, 24, 0.55);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    resize: vertical;
}

.recording-layout-controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.pay-version-section {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 120;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background:
        radial-gradient(circle at 50% 12%, rgba(14, 165, 233, 0.2), transparent 28rem),
        rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(18px) saturate(1.1);
}

.pay-version-section.is-open {
    display: flex;
}

.pay-version-card {
    max-width: 820px;
}

.warning-modal-card {
    max-width: 680px;
}

.warning-modal-card .mock-copy {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
}

.warning-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.plan-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.055);
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.plan-card:hover {
    border-color: rgba(59, 130, 246, 0.42);
    background: rgba(255, 255, 255, 0.075);
    transform: translateY(-2px);
}

.plan-card h3 {
    margin-bottom: 0.5rem;
}

.plan-card p {
    min-height: 3.5rem;
    margin-bottom: 1rem;
    color: rgba(226, 232, 240, 0.82);
    line-height: 1.45;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.mock-copy {
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.45;
}

.mock-error {
    min-height: 1.2rem;
    margin: 0.7rem 0;
    color: #fecaca;
    font-size: 0.85rem;
}

.mock-account-summary {
    display: grid;
    gap: 0.35rem;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
}

.mock-account-summary p {
    color: rgba(226, 232, 240, 0.72);
}

.mock-badge {
    justify-self: start;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.18);
    color: #bae6fd;
    font-size: 0.75rem;
    font-weight: 700;
}

.mock-notice {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 200;
    transform: translateX(-50%);
    max-width: min(92vw, 520px);
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: rgba(11, 18, 38, 0.96);
    color: #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.mock-notice.is-hiding {
    opacity: 0;
    transform: translate(-50%, 8px);
}

.preview-container {
    position: fixed;
    top: calc(var(--settings-top) + 1rem);
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
    pointer-events: none;
}

#videoPreview, #cameraPreview {
    width: 220px;
    height: 165px;
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    display: none;
    background: #020617;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    pointer-events: auto;
}

/* Recording Mode Modal Styles */
.recording-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.recording-option-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1.2rem 1rem;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
}

.recording-option-card:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.recording-option-card.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
}

.recording-option-card .card-icon {
    font-size: 2.2rem;
}

.recording-option-card .card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #f1f5f9;
}

.recording-option-card .card-desc {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.3;
}

.modal-subsettings {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.modal-subsettings .subsetting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.modal-subsettings label {
    font-size: 0.88rem;
    color: #94a3b8;
}

.modal-subsettings select {
    background: #050a18;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    color: #e2e8f0;
    outline: none;
    cursor: pointer;
    min-width: 160px;
    font-size: 0.85rem;
}

#audioPreview {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 200px;
    height: 50px;
    border: 2px solid rgba(74, 85, 104, 0.5);
    border-radius: 8px;
    z-index: 1000;
    background: #000;
}

#browser-warning {
    display: none;
    background: #7f1d1d;
    color: #fee2e2;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    position: fixed;
    top: calc(var(--settings-top) + 1rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    max-width: 90%;
}

#focusContainer {
    position: fixed;
    top: calc(var(--settings-top) + 1rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    text-align: center;
}

#focusWords {
    display: none;
    min-width: 200px;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    font-size: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#exitFocusBtn {
    margin-top: 1rem;
    display: none;
    background: #dc2626;
}

#exitFocusBtn:hover {
    background: #ef4444;
}

.color-options {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    min-height: 46px;
}

.color-options label {
    font-size: 0.85rem;
    font-weight: bold;
    color: #e2e8f0;
    margin-right: 0.5rem;
    white-space: nowrap;
}

.color-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%; /* Круглая форма */
    border: 2px solid rgba(255, 255, 255, 0.62);
    background-color: var(--bg-color);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.color-btn:hover {
    transform: scale(1.1);
    border-color: #ffffff;
}

.color-btn.selected {
    border-color: #ffffff;
    transform: scale(1.12);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16), 0 10px 22px rgba(0, 0, 0, 0.22);
}

input[type="color"] {
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    min-height: 0;
}

#accountForm {
    display: grid;
    gap: 0.85rem;
}

input[type="color"]::-webkit-color-swatch {
    border-radius: 50%;
    border: none;
}

input[type="color"]::-moz-color-swatch {
    border-radius: 50%;
    border: none;
}

:fullscreen #teleprompter,
:-webkit-full-screen #teleprompter {
    margin: 6rem 1rem 4rem;
    padding: 1rem;
    max-height: calc(100vh - 10rem);
}

:fullscreen .settings-panel,
:-webkit-full-screen .settings-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    transform: none;
    z-index: 20;
}

:fullscreen .buttons,
:-webkit-full-screen .buttons {
    justify-content: center;
    gap: 0.75rem;
}

:fullscreen #browser-warning,
:-webkit-full-screen #browser-warning {
    top: 6rem;
    z-index: 30;
}

:fullscreen #videoPreview,
:-webkit-full-screen #videoPreview {
    top: 80px;
    right: 20px;
}

:fullscreen #audioPreview,
:-webkit-full-screen #audioPreview {
    top: 80px;
    left: 20px;
}

@media (max-width: 768px) {
    :root {
        --app-header-height: 100px;
    }

    .ad-banner {
        min-height: 92px;
        padding: 0.75rem 1rem;
    }

    .app-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .recording-layout-controls,
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .settings-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.75rem;
        top: auto;
        bottom: 0;
        transform: translateY(0);
        max-height: 46vh;
    }

    .settings-panel.top {
        top: var(--settings-top);
        bottom: auto;
    }

    .position-toggle {
        top: auto;
        bottom: -40px;
        right: 10px;
    }

    .settings-panel.top .position-toggle {
        top: -40px;
        bottom: auto;
    }

    .settings-controls {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .settings-group {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        width: 100%;
        gap: 0.75rem;
    }

    .setting {
        flex-direction: column;
        flex: 1;
        min-width: 120px;
    }

    .status-group {
        flex-direction: row;
        align-items: center;
        width: 100%;
        gap: 0.5rem;
        justify-content: center;
    }

    .buttons {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .functional-btn, a {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        min-height: 35px; /* Functional buttons height */
    }

    .btn-text {
        display: none; /* Hide text on mobile */
    }

    #teleprompter {
        top: calc(var(--ad-stack-height) + var(--app-header-height) + 1rem);
        bottom: calc(var(--settings-panel-height) + 0.5rem);
        padding: 1.25rem;
    }

    .settings-panel.top + #teleprompter {
        top: var(--content-top);
        bottom: 0;
    }

    #browser-warning {
        top: auto;
        bottom: 6.5rem;
    }

    .settings-panel.top ~ #browser-warning {
        top: 5rem;
        bottom: auto;
    }

    #videoPreview {
        width: 120px;
        height: 90px;
        top: calc(var(--settings-top) + 0.5rem);
        right: 10px;
    }

    #audioPreview {
        width: 120px;
        height: 40px;
        top: 10px;
        left: 10px;
    }

    :fullscreen #teleprompter,
    :-webkit-full-screen #teleprompter {
        margin: 5rem 0.5rem 3rem;
        padding: 0.5rem;
    }

    :fullscreen .settings-panel,
    :-webkit-full-screen .settings-panel {
        padding: 0.5rem;
    }

    :fullscreen #videoPreview,
    :-webkit-full-screen #videoPreview {
        top: 60px;
        right: 10px;
        width: 100px;
        height: 75px;
    }

    :fullscreen #audioPreview,
    :-webkit-full-screen #audioPreview {
        top: 60px;
        left: 10px;
        width: 100px;
        height: 35px;
    }

    .color-options label {
        font-size: 0.8rem;
    }

    .color-btn {
        width: 28px;
        height: 28px;
    }

    input[type="color"] {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .brand-copy small {
        display: none;
    }

    .setting {
        min-width: 100px;
    }

    input[type="range"] {
        min-width: 80px;
    }

    .buttons {
        gap: 0.25rem;
    }

    .functional-btn, a {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
        min-height: 35px; /* Functional buttons height */
    }

    .color-options label {
        font-size: 0.75rem;
    }
}

.app-footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.45);
}

.app-footer a {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    display: inline !important;
    color: #60a5fa !important;
    font-weight: 600;
    font-size: inherit !important;
    text-decoration: none;
    transition: color 0.18s ease;
}

.app-footer a:hover {
    color: #93c5fd !important;
    text-decoration: underline !important;
}
