
.sfm-app {
    max-width: 760px;
    margin: 0 auto;
    font-family: Roboto, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #161616;
}
.sfm-list { display: grid; gap: 14px; }
.sfm-meditation-card {
    border: 1px solid #e1e1e1;
    border-radius: 18px;
    padding: 18px 20px;
    background: #fff;
}
.sfm-meditation-card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.sfm-meditation-card p { margin: 0 0 14px; color: #666; line-height: 1.65; }
.sfm-card-meta { color: #777; font-size: .95rem; margin-bottom: 14px; }

.sfm-session-view {
    position: relative;
    padding: 16px 8px 18px;
}
.sfm-session-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.sfm-menu-btn {
    min-width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #222;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    padding: 0;
    border-radius: 50%;
}
.sfm-menu-btn:focus-visible { outline: 2px solid #2f8f57; outline-offset: 2px; }

.sfm-timer-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 25vh;
    margin: -8px 0 34px;
    text-align: center;
}
.sfm-timer {
    font-family: "Noto Serif KR", serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 1;
    color: #4169E1;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    display: inline-block;
    min-width: 5.2ch;
    white-space: nowrap;
    text-align: center;
}

.sfm-player-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin: 22px 0 10px;
}
.sfm-session-head {
    flex: 1;
    min-width: 0;
    text-align: left;
}
.sfm-session-head h2 {
    margin: 0;
    font-family: Roboto, "Noto Sans KR", sans-serif;
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.2;
}
.sfm-code {
    margin-top: 6px;
    font-family: Roboto, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #555;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.sfm-inline-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.sfm-inline-btn {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(185,185,185,.92);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 6px 16px rgba(0,0,0,.10);
    color: #fff;
    padding: 0;
}
.sfm-inline-btn:focus-visible { outline: 2px solid #2f8f57; outline-offset: 3px; }
.sfm-play-icon {
    display: block;
    width: 0;
    height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 17px solid rgba(255,255,255,.98);
    margin-left: 4px;
}
.sfm-pause-icon { display: flex; gap: 6px; }
.sfm-pause-icon i {
    display: block;
    width: 6px;
    height: 22px;
    border-radius: 3px;
    background: rgba(255,255,255,.98);
}

.sfm-progress-wrap {
    display: flex;
    flex-direction: column;
    margin: 12px 0 22px;
}
.sfm-progress-track {
    order: 1;
    position: relative;
    height: 3px;
    border-radius: 999px;
    background: #d6d6d6;
    overflow: visible;
}
.sfm-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    border-radius: 999px;
    background: #2f8f57;
    transition: width .2s linear;
}
.sfm-alarm-markers { position: absolute; inset: 0; pointer-events: none; }
.sfm-alarm-marker {
    position: absolute;
    top: -3px;
    width: 1px;
    height: 9px;
    border-radius: 0;
    background: #ffffff;
    transform: translateX(-0.5px);
    box-shadow: 0 0 0 0.5px rgba(0,0,0,.08);
}

.sfm-reading-block {
    margin: 28px 0 14px;
    text-align: left;
}
.sfm-readings {
    margin: 0;
    padding-left: 1.5em;
}
.sfm-readings li {
    margin-bottom: 12px;
    line-height: 1.8;
    font-size: 1rem;
}

.sfm-finish-wrap { margin: 16px 0 8px; }
.sfm-finish {
    min-width: 92px;
    min-height: 40px;
    border: 1px solid #9aa0aa;
    border-radius: 16px;
    background: #fff;
    color: #222;
    font-size: .96rem;
    cursor: pointer;
}

.sfm-record-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0 8px;
}
.sfm-record-save,
.sfm-record-cancel {
    min-width: 132px;
    min-height: 48px;
    border: 0;
    border-radius: 18px;
    padding: 10px 18px;
    background: #e7edf8;
    color: #1f67c2;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(31,103,194,.05);
}
.sfm-record-save:hover,
.sfm-record-cancel:hover {
    filter: brightness(.98);
}

.sfm-status {
    min-height: 24px;
    margin-top: 12px;
    color: #555;
    text-align: center;
}

.sfm-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.28);
    z-index: 9998;
}
.sfm-popup {
    position: fixed;
    right: 18px;
    top: 70px;
    width: min(320px, calc(100vw - 36px));
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(0,0,0,.18);
    padding: 16px 16px 14px;
    text-align: left;
    z-index: 9999;
}
.sfm-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}
.sfm-popup-close {
    width: 32px;
    height: 32px;
    border: 0;
    background: #f1f1f1;
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}
.sfm-popup-section + .sfm-popup-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #ececec;
}
.sfm-popup-label {
    font-size: .92rem;
    color: #666;
    margin-bottom: 8px;
}
.sfm-popup-purpose {
    color: #222;
    line-height: 1.72;
    font-size: .98rem;
}
.sfm-switch-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .98rem;
    color: #444;
    cursor: pointer;
}
.sfm-switch-wrap input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.sfm-switch {
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #bdbdbd;
    position: relative;
    transition: background .2s ease;
}
.sfm-switch::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s ease;
}
.sfm-switch-wrap input:checked + .sfm-switch { background: #2f8f57; }
.sfm-switch-wrap input:checked + .sfm-switch::after { transform: translateX(20px); }
.sfm-switch-wrap input:focus-visible + .sfm-switch { outline: 2px solid #2f8f57; outline-offset: 3px; }

@media (max-width: 480px) {
    .sfm-app { padding: 0 6px; }
    .sfm-session-view { padding-left: 2px; padding-right: 2px; }
    .sfm-timer-wrap { min-height: 22vh; margin-bottom: 30px; }
    .sfm-timer { font-size: clamp(4.3rem, 22vw, 6.5rem); }
    .sfm-player-row { gap: 12px; }
    .sfm-session-head h2 { font-size: 1.45rem; }
    .sfm-code { font-size: .94rem; }
    .sfm-inline-btn { width: 54px; height: 54px; }
    .sfm-popup {
        right: 12px;
        top: 60px;
        width: calc(100vw - 24px);
    }
}

.sfm-toggle.is-playing .sfm-play-icon {
    width: auto;
    height: auto;
    border: 0;
    margin: 0;
    display: flex;
    gap: 6px;
}
.sfm-toggle.is-playing .sfm-play-icon::before,
.sfm-toggle.is-playing .sfm-play-icon::after {
    content: "";
    display: block;
    width: 6px;
    height: 23px;
    border-radius: 3px;
    background: rgba(255,255,255,.98);
}

.sfm-reading-reveal {
    opacity: 0;
    transform: translateY(-18px);
    max-height: 0;
    overflow: hidden;
}
.sfm-reading-reveal.is-visible {
    animation: sfmWipeDown .8s ease forwards;
    max-height: 1000px;
}
@keyframes sfmWipeDown {
    0% {
        opacity: 0;
        transform: translateY(-18px);
        clip-path: inset(0 0 100% 0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(0 0 0 0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .sfm-reading-reveal,
    .sfm-reading-reveal.is-visible {
        animation: none;
        opacity: 1;
        transform: none;
        clip-path: none;
        max-height: none;
    }
}


/* ===== v0.1.9 overrides ===== */
.sfm-timer {
    font-family: "Roboto Condensed", Roboto, Arial, sans-serif !important;
    font-weight: 500 !important;
    font-size: 22px !important;
    color: #4169E1 !important;
}

.sfm-progress-wrap {
    display: block !important;
    width: 100% !important;
    margin: 12px 0 22px !important;
}

.sfm-progress-track {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 3px !important;
    background: #d6d6d6 !important;
    border-radius: 999px !important;
    overflow: visible !important;
}

.sfm-progress-fill {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background: #2f8f57 !important;
    border-radius: 999px !important;
    transform: scaleX(0);
    transform-origin: left center !important;
    transition: transform .18s linear !important;
    z-index: 1 !important;
}

.sfm-progress-labels {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 7px 0 0 !important;
    padding: 0 !important;
    font-family: "Roboto Condensed", Roboto, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #555 !important;
}
.sfm-progress-labels .sfm-elapsed-time {
    margin-right: auto !important;
    text-align: left !important;
}
.sfm-progress-labels .sfm-end-time {
    margin-left: auto !important;
    text-align: right !important;
}

.sfm-alarm-markers {
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
    pointer-events: none !important;
}
.sfm-alarm-marker {
    position: absolute !important;
    top: -2px !important;
    width: 3px !important;
    height: 7px !important;
    background: #fff !important;
    transform: translateX(-1.5px) !important;
    z-index: 4 !important;
    box-shadow: none !important;
}

.sfm-reading-block {
    margin: 30px 0 14px !important;
    text-align: left !important;
    opacity: 1 !important;
    transform: none !important;
    max-height: none !important;
    overflow: visible !important;
    clip-path: none !important;
}

.sfm-read-aloud-badge {
    display: inline-block;
    margin: 0 0 16px 0;
    padding: 4px 10px;
    border: 1px solid #555;
    border-radius: 999px;
    color: #444;
    background: transparent;
    font-family: Roboto, "Noto Sans KR", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(-8px);
    clip-path: inset(0 0 100% 0);
}

.sfm-reading-block .sfm-readings {
    opacity: 0;
    transform: translateY(-10px);
    clip-path: inset(0 0 100% 0);
}

.sfm-reading-block.show-badge .sfm-read-aloud-badge {
    animation: sfmWipeBadge .55s ease forwards;
}
.sfm-reading-block.show-readings .sfm-readings {
    animation: sfmWipeReadings .8s ease forwards;
}

@keyframes sfmWipeBadge {
    from { opacity: 0; transform: translateY(-8px); clip-path: inset(0 0 100% 0); }
    to { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
}
@keyframes sfmWipeReadings {
    from { opacity: 0; transform: translateY(-10px); clip-path: inset(0 0 100% 0); }
    to { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
    .sfm-read-aloud-badge,
    .sfm-reading-block .sfm-readings {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        animation: none !important;
    }
}


/* ===== v0.2.0 typography and controls ===== */

/* Remaining time: Roboto Condensed 400 */
.sfm-timer {
    font-family: "Roboto Condensed", Roboto, Arial, sans-serif !important;
    font-weight: 400 !important;
}

/* Timeline: plain Roboto */
.sfm-progress-labels,
.sfm-progress-labels .sfm-elapsed-time,
.sfm-progress-labels .sfm-end-time {
    font-family: Roboto, Arial, sans-serif !important;
    font-weight: 400 !important;
}

/* Read aloud label: slightly larger and rounded-rectangle, not pill */
.sfm-read-aloud-badge {
    font-size: 13px !important;
    padding: 4px 9px !important;
    border: 1px solid #555 !important;
    border-radius: 6px !important;
}

/* Reading text and ordered-list numbers: plain Roboto */
.sfm-readings,
.sfm-readings li {
    font-family: Roboto, "Noto Sans KR", Arial, sans-serif !important;
    font-weight: 400 !important;
}
.sfm-readings li::marker {
    font-family: Roboto, Arial, sans-serif !important;
    font-weight: 400 !important;
}

/* Play/stop control: darker gray */
.sfm-inline-btn {
    background: #666 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 5px 14px rgba(0,0,0,.12) !important;
}

/* Record buttons: tighter around text */
.sfm-record-actions {
    gap: 8px !important;
}
.sfm-record-save,
.sfm-record-cancel {
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    height: auto !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    font-size: .95rem !important;
    line-height: 1.25 !important;
}

/* No separate Finish control in the simplified play/stop flow */
.sfm-finish-wrap {
    display: none !important;
}


/* ===== v0.2.1 fixes ===== */

/* Remaining time: responsive size for mobile/desktop */
.sfm-timer {
    font-family: "Roboto Condensed", Roboto, Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: clamp(3.8rem, 11vw, 5rem) !important;
    line-height: 1 !important;
}

/* Hidden elements must actually stay hidden.
   Earlier .sfm-record-actions { display:flex } overrode the HTML hidden state. */
.sfm-record-actions[hidden],
.sfm-finish-wrap[hidden],
.sfm-popup[hidden],
.sfm-popup-backdrop[hidden] {
    display: none !important;
}

/* Only show record actions when JS removes hidden */
.sfm-record-actions:not([hidden]) {
    display: flex !important;
}

@media (max-width: 600px) {
    .sfm-timer {
        font-size: clamp(3.8rem, 17vw, 4.6rem) !important;
    }
}


/* ===== v0.2.2 list and record page ===== */
.sfm-list {
    display: block !important;
}

.sfm-meditation-list-item {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
    background: transparent;
}

.sfm-meditation-title-link {
    display: inline-block;
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #161616;
    font-family: Roboto, "Noto Sans KR", sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.sfm-meditation-title-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sfm-meditation-list-meta {
    font-family: Roboto, Arial, sans-serif;
    font-size: .95rem;
    font-weight: 300;
    color: #666;
    line-height: 1.5;
}

.sfm-status > div + div {
    margin-top: 5px;
}

.sfm-status a {
    color: #4169E1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sfm-records-page {
    max-width: 760px;
    margin: 0 auto;
    font-family: Roboto, "Noto Sans KR", sans-serif;
}

.sfm-records-title {
    margin: 0 0 24px;
    font-size: 1.5rem;
    font-weight: 400;
}

.sfm-record-item {
    padding: 14px 0;
    border-bottom: 1px solid #e6e6e6;
}

.sfm-record-item-title {
    font-size: 1.05rem;
    font-weight: 400;
}

.sfm-record-item-meta {
    margin-top: 5px;
    color: #666;
    font-size: .92rem;
    font-weight: 300;
}


/* ===== v0.2.3 list/player split ===== */
.sfm-list-page .sfm-meditation-title-link {
    text-decoration: none;
}

.sfm-list-page .sfm-meditation-title-link:hover,
.sfm-list-page .sfm-meditation-title-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sfm-list-page .sfm-meditation-list-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: .42rem;
    row-gap: .2rem;
}

.sfm-meta-dot {
    color: #999;
}

.sfm-entry-count {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    white-space: nowrap;
}

.sfm-fa-play {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .78em;
    line-height: 1;
}

@media (max-width: 600px) {
    .sfm-list-page .sfm-meditation-list-item {
        margin-bottom: 20px;
    }
}

/* ===== v0.2.5 layout / typography ===== */
/* List titles and the selected Silence Time title use medium weight. */
.sfm-list-page .sfm-meditation-title-link,
.sfm-player-page .sfm-session-head h2 {
    font-weight: 500 !important;
}

/* Remaining time keeps the current responsive size; only the face changes to Lora. */
.sfm-player-page .sfm-timer {
    font-family: "Lora", Georgia, serif !important;
    font-weight: 400 !important;
}

/* With the more-menu removed, use the upper space for the clock. */
.sfm-player-page .sfm-session-view {
    padding-top: 0 !important;
}
.sfm-player-page .sfm-timer-wrap {
    min-height: 14vh !important;
    margin: 0 0 14px !important;
    padding-top: 0 !important;
    flex-direction: column !important;
    gap: 9px !important;
}

/* Compact, explicit mid-session notification toggle. */
.sfm-mid-alarm-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: Roboto, Arial, sans-serif;
    font-size: .78rem;
    line-height: 1;
    color: #555;
}
.sfm-mid-alarm-toggle {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}
.sfm-mid-alarm-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.sfm-mid-alarm-button {
    width: 46px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-family: Roboto, Arial, sans-serif;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .01em;
    transition: background-color .16s ease, color .16s ease;
}
.sfm-mid-alarm-toggle input:checked + .sfm-mid-alarm-button {
    background: #FFD400;
    color: #111;
}
.sfm-mid-alarm-toggle input:focus-visible + .sfm-mid-alarm-button {
    outline: 2px solid #111;
    outline-offset: 2px;
}
.sfm-mid-alarm-toggle input:disabled + .sfm-mid-alarm-button {
    opacity: .6;
    cursor: default;
}

/* Purpose is part of the reading flow, not a hidden settings popup. */
.sfm-purpose-line {
    display: flex;
    align-items: baseline;
    gap: .55rem;
    margin: 0 0 14px;
    font-family: Roboto, "Noto Sans KR", Arial, sans-serif;
    line-height: 1.6;
}
.sfm-purpose-label {
    flex: 0 0 auto;
    font-size: .82rem;
    font-weight: 500;
    color: #555;
}
.sfm-purpose-text {
    min-width: 0;
    font-size: .98rem;
    font-weight: 400;
    color: #333;
}
.sfm-purpose-text:empty::after {
    content: "-";
    color: #999;
}

/* The removed three-dot menu no longer reserves any visual space. */
.sfm-session-topbar,
.sfm-menu-btn {
    display: none !important;
}

@media (max-width: 600px) {
    .sfm-player-page .sfm-timer-wrap {
        min-height: 12vh !important;
        margin-bottom: 12px !important;
        gap: 8px !important;
    }
    .sfm-purpose-line {
        gap: .45rem;
        margin-bottom: 12px;
    }
}


/* ===== v0.2.7 player refinement ===== */
/* Pull the clock slightly upward while keeping the player compact. */
.sfm-player-page .sfm-session-view {
    padding-top: 0 !important;
}
.sfm-player-page .sfm-timer-wrap {
    min-height: 0 !important;
    margin: -14px 0 18px !important;
    padding-top: 0 !important;
    gap: 12px !important;
}

/* Lora clock: minutes dark gray, seconds light gray. */
.sfm-player-page .sfm-timer {
    font-family: "Lora", Georgia, serif !important;
    font-weight: 400 !important;
    color: inherit !important;
}
.sfm-player-page .sfm-timer-min {
    color: #4a4a4a;
}
.sfm-player-page .sfm-timer-sep {
    color: #858585;
}
.sfm-player-page .sfm-timer-sec {
    color: #aaaaaa;
}

/* Toggle sits alone between clock and title; no visible label. */
.sfm-mid-alarm-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0 !important;
    margin: 0 !important;
}
.sfm-mid-alarm-label {
    display: none !important;
}
.sfm-mid-alarm-button {
    width: auto !important;
    min-width: 36px !important;
    height: 22px !important;
    padding: 0 5px !important;
    border-radius: 7px !important;
    font-size: .64rem !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

/* Give the title a little more air below the timer/toggle group. */
.sfm-player-page .sfm-player-row {
    margin-top: 16px !important;
}

/* Purpose content appears directly, without a '목적' label. */
.sfm-player-page .sfm-purpose-line,
.sfm-player-page .sfm-purpose-text {
    display: block;
}
.sfm-player-page .sfm-purpose-label {
    display: none !important;
}
.sfm-player-page .sfm-purpose-text {
    margin: 0 0 14px !important;
    font-family: Roboto, "Noto Sans KR", Arial, sans-serif;
    font-size: .98rem;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
}

@media (max-width: 600px) {
    .sfm-player-page .sfm-timer-wrap {
        margin-top: -10px !important;
        margin-bottom: 16px !important;
        gap: 11px !important;
    }
    .sfm-player-page .sfm-player-row {
        margin-top: 14px !important;
    }
}


/* ===== v0.3.0 timer typography / vertical layout ===== */
/* Hide the WP title/header and release its vertical space on the player page. */
body:has(.sfm-player-page) .entry-title,
body:has(.sfm-player-page) .entry-header {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Move the timer upward into the released title space. */
.sfm-player-page .sfm-session-view {
    padding-top: 0 !important;
}
.sfm-player-page .sfm-timer-wrap {
    min-height: 0 !important;
    margin: -34px 0 0 !important;
    padding: 0 !important;
    gap: 10px !important;
}

/* Barlow Semi Condensed clock, one dark-gray color throughout. */
.sfm-player-page .sfm-timer,
.sfm-player-page .sfm-timer-min,
.sfm-player-page .sfm-timer-sep,
.sfm-player-page .sfm-timer-sec {
    font-family: "Barlow Semi Condensed", Roboto, Arial, sans-serif !important;
    font-weight: 400 !important;
    color: #4a4a4a !important;
}

/* Keep the compact ON/OFF control close to the timer. */
.sfm-player-page .sfm-mid-alarm-control {
    margin: 0 !important;
}

/* Real spacing between ON/OFF and the selected meditation title. */
.sfm-player-page .sfm-player-row {
    margin-top: 40px !important;
    margin-bottom: 10px !important;
}

@media (max-width: 600px) {
    .sfm-player-page .sfm-timer-wrap {
        margin-top: -28px !important;
        gap: 9px !important;
    }
    .sfm-player-page .sfm-player-row {
        margin-top: 36px !important;
    }
}


/* ===== v0.3.1 timer-only upward adjustment ===== */
/* Keep the ON/OFF control where it is; move only the clock upward to open the space between clock and toggle. */
.sfm-player-page .sfm-timer {
    transform: translateY(-18px) !important;
}

@media (max-width: 600px) {
    .sfm-player-page .sfm-timer {
        transform: translateY(-16px) !important;
    }
}


/* ===== v0.3.2 ON-centered 70px vertical spacing ===== */
/* Keep the whole player group high, but give the ON/OFF control generous air above and below. */
.sfm-player-page .sfm-timer {
    transform: none !important;
}

.sfm-player-page .sfm-timer-wrap {
    gap: 70px !important;
    margin-bottom: 0 !important;
}

.sfm-player-page .sfm-player-row {
    margin-top: 70px !important;
}

@media (max-width: 600px) {
    .sfm-player-page .sfm-timer {
        transform: none !important;
    }
    .sfm-player-page .sfm-timer-wrap {
        gap: 70px !important;
        margin-bottom: 0 !important;
    }
    .sfm-player-page .sfm-player-row {
        margin-top: 70px !important;
    }
}


/* ===== v0.3.3 responsive vertical rhythm ===== */
/* Keep the top compact without negative positioning. */
body:has(.sfm-player-page) .entry-content {
    margin-top: clamp(0rem, 0.25vw, 0.2rem) !important;
}
.sfm-player-page,
.sfm-player-page .sfm-session-view {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.sfm-player-page .sfm-timer-wrap {
    margin-top: 0 !important;
    padding-top: clamp(0rem, 0.25vw, 0.2rem) !important;
    /* Approx. 44px on phones, scaling smoothly to about 65px on desktop. */
    gap: clamp(2.75rem, 5.5vw, 4.0625rem) !important;
    margin-bottom: 0 !important;
}
.sfm-player-page .sfm-player-row {
    /* Match the space below the ON/OFF control to the space above it. */
    margin-top: clamp(2.75rem, 5.5vw, 4.0625rem) !important;
}


/* ===== v0.3.4 responsive spacing / OFF border / timer separator ===== */
/* Keep the ON/OFF control centered in an airy 60–65px responsive vertical rhythm. */
.sfm-player-page .sfm-timer-wrap {
    gap: clamp(3.75rem, 4.2vw, 4.0625rem) !important; /* 60px -> 65px */
}
.sfm-player-page .sfm-player-row {
    margin-top: clamp(3.75rem, 4.2vw, 4.0625rem) !important; /* 60px -> 65px */
}

/* OFF: white fill with a dark-gray outline. Keep the same 1px box size when ON. */
.sfm-player-page .sfm-mid-alarm-button {
    box-sizing: border-box;
    border: 1px solid #555 !important;
    background: #fff;
    color: #111;
}
.sfm-player-page .sfm-mid-alarm-toggle input:checked + .sfm-mid-alarm-button {
    border-color: transparent !important;
    background: #FFD400;
    color: #111;
}

/* Visually render the clock as “분 : 초” without inserting fragile text spaces. */
.sfm-player-page .sfm-timer-sep {
    display: inline-block;
    margin-inline: clamp(.10em, .18vw, .16em);
}
