/* Cotangent Minimalist Screenshot Style */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300&family=Roboto:wght@100;300&display=swap');
body, html, #app, .cotangent-root {
  cursor: auto !important;
}
body, html, * {
  cursor: auto !important;
}
body {
    margin: 0;
    padding: 0;
    background: #fff;
    color: #222;
    font-family: 'Roboto', 'Inter', 'Segoe UI', Arial, sans-serif; /* minimalist, ultra-thin */
    font-weight: 100;
    min-height: 100vh;
    cursor: auto; /* Revert cursor to system default for the whole page */
}
.ctg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 18px 0 18px;
    background: #fff;
}
.ctg-title {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: #222;
    font-family: 'Roboto', 'Inter', 'Segoe UI', Arial, sans-serif; /* more minimalist, ultra-thin */
    text-transform: lowercase;
}
.ctg-status {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ctg-dot {
    width: 8px;
    height: 8px;
    background: #00e676;
    border-radius: 50%;
    display: inline-block;
    margin-right: 2px;
    box-shadow: 0 0 4px #00e67699;
    border: none; /* Remove any outline or border */
    outline: none; /* Remove any outline */
}
.ctg-ready {
    font-size: 1rem;
    color: #888;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    text-transform: lowercase;
    font-weight: 400;
}
.ctg-gear {
    background: none;
    border: none;
    padding: 0 0 0 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: filter 0.15s;
}
.ctg-gear:hover svg {
    filter: brightness(0.7);
}
.ctg-divider {
    width: 100vw;
    height: 1.5px;
    background: #f3f3f3;
    margin-top: 10px;
    margin-bottom: 0;
}
.ctg-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    position: relative;
    width: 100vw;
    height: calc(100vh - 80px);
    box-sizing: border-box;
}
#ferrofluid-canvas {
    display: block;
    margin: 0 auto;
    background: #fff;
    border-radius: 0;
    border: none;
    width: 400px !important;
    height: 420px !important;
    max-width: 98vw;
    max-height: 80vw;
    aspect-ratio: auto;
    z-index: 1;
}
.ctg-freq-card {
    position: fixed;
    right: 24px;
    bottom: 88px; /* above audio bar */
    top: auto;
    left: auto;
    background: #fff;
    border-radius: 14px;
    border: 1.2px solid #eee;
    padding: 18px 22px 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 140px;
    z-index: 1002;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ctg-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #888;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    text-transform: lowercase;
    font-weight: 400;
}
.ctg-bar {
    flex: 1;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin-left: 8px;
    min-width: 60px;
    max-width: 120px;
    transition: width 0.2s, background 0.2s;
}
.ctg-bar-bass { background: #bbb; }
.ctg-bar-mid { background: #bbb; }
.ctg-bar-treble { background: #bbb; }
.ctg-sample-rate {
    font-size: 0.95rem;
    color: #aaa;
    margin-top: 8px;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    text-transform: lowercase;
    font-weight: 400;
}
.ctg-settings-panel {
    position: fixed;
    top: 56px;
    right: 24px;
    min-width: 240px;
    background: #fff;
    border-radius: 16px;
    border: 1.2px solid #eee;
    padding: 24px 28px 20px 28px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 18px;
}
.ctg-settings-open {
    display: flex !important;
}
.ctg-settings-title {
    font-size: 1.1rem;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #222;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}
.ctg-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.ctg-slider-row label {
    font-size: 1rem;
    color: #888;
    min-width: 90px;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    text-transform: lowercase;
    font-weight: 400;
}
.ctg-slider-row input[type="range"] {
    flex: 1;
    accent-color: #2979ff;
    height: 2px;
    background: #eee;
    border-radius: 2px;
}
.ctg-slider-row span {
    font-size: 0.98rem;
    color: #aaa;
    min-width: 36px;
    text-align: right;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-weight: 400;
}
.ctg-audio-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    background: #fff;
    border-top: 1.2px solid #eee;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    z-index: 1002;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}
.ctg-audio-play {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 10px 0 0;
    height: 100%;
    transition: filter 0.15s;
}
.ctg-audio-play:hover svg {
    filter: brightness(0.7);
}
.ctg-audio-play-icon, .ctg-audio-pause-icon {
    width: 22px;
    height: 22px;
}
.ctg-audio-filename {
    font-size: 1.08rem;
    color: #333;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 60vw;
}
.ctg-audio-time {
    font-size: 0.98rem;
    color: #888;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    margin-left: auto;
    min-width: 90px;
    text-align: right;
    letter-spacing: 0.01em;
    font-weight: 400;
}
.ctg-audio-progress-container {
    flex: 1;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin: 0 18px;
    align-self: center;
    position: relative;
    overflow: hidden;
    min-width: 60px;
    max-width: 400px;
    display: flex;
}
.ctg-audio-progress-bar {
    height: 100%;
    background: #222;
    border-radius: 2px;
    width: 0%;
    transition: width 0.2s linear;
}
.ctg-upload-card {
    position: fixed;
    left: 24px;
    bottom: 88px; /* Move higher to avoid covering the play bar */
    top: auto;
    transform: none;
    background: #fff;
    border-radius: 14px;
    border: 1.2px solid #eee;
    padding: 0;
    min-width: 56px;
    z-index: 1002;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ctg-upload-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #222;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    text-transform: lowercase;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 14px;
    background: none;
    border: none;
    font-weight: 400;
}
.ctg-upload-btn svg {
    display: inline-block;
}
.ctg-upload-btn span {
    width: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 0.18s, max-width 0.18s, opacity 0.18s;
    display: inline-block;
    white-space: nowrap;
    padding: 0;
    margin: 0;
}
.ctg-upload-btn:hover span {
    width: auto;
    max-width: 100px;
    opacity: 1;
    padding-left: 6px;
}
@media (max-width: 800px) {
    .ctg-main {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: auto;
    }
    #ferrofluid-canvas {
        margin-top: 18vw;
    }
    .ctg-freq-card {
        right: 2vw;
        bottom: 88px;
        left: auto;
        top: auto;
        min-width: 120px;
        padding: 10px 8px;
    }
    .ctg-settings-panel {
        right: 2vw;
        top: 56px;
        min-width: 20vw;
        padding: 18px 8vw 16px 8vw;
    }
    .ctg-audio-bar {
        padding: 0 8vw;
        height: 44px;
    }
}
@media (min-width: 801px) {
    .ctg-main {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: center;
        min-height: 70vh;
        height: calc(100vh - 80px);
        position: relative;
        width: 100vw;
        box-sizing: border-box;
    }
    .ctg-freq-card {
        position: fixed;
        right: 24px;
        bottom: 88px; /* above audio bar */
        top: auto;
        left: auto;
        background: #fff;
        border-radius: 14px;
        border: 1.2px solid #eee;
        padding: 18px 22px 18px 22px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-width: 140px;
        z-index: 1002;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        margin-bottom: 30px;
    }
    #ferrofluid-canvas {
        margin-left: 470px;
        margin-bottom: 20px;
    }
}
