/* Transcript Timestamp Remover — page styles (uses the --vs-* tokens from /assets/styles.css). */

.vs-ttr-hero {
    padding: 40px 0 28px;
}

.vs-ttr-crumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--vs-text-muted);
}

.vs-ttr-crumbs a {
    color: var(--vs-gold);
    font-weight: 500;
}

.vs-ttr-crumbs a:hover {
    color: var(--vs-gold-hover);
}

.vs-ttr-intro {
    max-width: 640px;
    margin: 18px auto 0;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--vs-text);
}

.vs-ttr-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.vs-ttr-badges li {
    padding: 6px 14px;
    border: 1px solid var(--vs-border);
    border-radius: 999px;
    background: var(--vs-surface);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--vs-navy);
}

/* --- Tool card --- */

.vs-ttr-tool {
    padding: 0 0 56px;
}

.vs-ttr-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.vs-ttr-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "input"
        "options"
        "output";
    gap: 20px;
    padding: 24px;
    background: var(--vs-surface);
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius);
    box-shadow: var(--vs-shadow);
}

.vs-ttr-panel--input { grid-area: input; }
.vs-ttr-options      { grid-area: options; }
.vs-ttr-panel--output { grid-area: output; }

@media (min-width: 900px) {
    .vs-ttr-card {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "options options"
            "input output";
        padding: 28px;
        gap: 24px;
    }
}

.vs-ttr-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    border-radius: var(--vs-radius-sm);
}

.vs-ttr-panel.is-dragging .vs-ttr-textarea {
    border-color: var(--vs-gold);
    background: var(--vs-gold-glow);
}

.vs-ttr-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    min-height: 24px;
}

.vs-ttr-label {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--vs-navy);
}

.vs-ttr-format {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--vs-gold-light);
    color: var(--vs-gold-hover);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

/* 16px text keeps iOS Safari from zooming into the field on focus. */
.vs-ttr-textarea {
    width: 100%;
    min-height: 260px;
    padding: 14px 16px;
    border: 1.5px solid var(--vs-border);
    border-radius: var(--vs-radius-sm);
    background: var(--vs-bg);
    color: var(--vs-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 16px;
    line-height: 1.55;
    resize: vertical;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.vs-ttr-panel--output .vs-ttr-textarea {
    font-family: 'Outfit', sans-serif;
    background: var(--vs-surface);
}

.vs-ttr-textarea:focus {
    outline: none;
    border-color: var(--vs-gold);
    box-shadow: 0 0 0 3px var(--vs-gold-glow);
}

@media (min-width: 900px) {
    .vs-ttr-textarea {
        min-height: 380px;
        font-size: 0.95rem;
    }
}

.vs-ttr-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.vs-ttr-row-label {
    margin-left: 4px;
    font-size: 0.85rem;
    color: var(--vs-text-muted);
}

.vs-ttr-chip,
.vs-ttr-file {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1.5px solid var(--vs-border);
    border-radius: 10px;
    background: var(--vs-surface);
    color: var(--vs-navy);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.vs-ttr-chip:hover,
.vs-ttr-file:hover,
.vs-ttr-file:focus-within {
    border-color: var(--vs-gold);
    color: var(--vs-gold-hover);
}

.vs-ttr-chip:disabled {
    opacity: 0.45;
    cursor: default;
    border-color: var(--vs-border);
    color: var(--vs-navy);
}

.vs-ttr-file {
    position: relative;
    background: var(--vs-navy);
    border-color: var(--vs-navy);
    color: #FFFFFF;
}

.vs-ttr-file:hover,
.vs-ttr-file:focus-within {
    background: var(--vs-navy-deep);
    color: #FFFFFF;
}

.vs-ttr-file input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.vs-ttr-chip--quiet {
    border-color: transparent;
    background: transparent;
    color: var(--vs-text-muted);
}

/* --- Options --- */

.vs-ttr-options {
    padding: 14px 16px;
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius-sm);
    background: var(--vs-warm);
}

.vs-ttr-options legend {
    padding: 0 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--vs-navy);
}

.vs-ttr-option-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px 16px;
}

@media (min-width: 560px) {
    .vs-ttr-option-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
    .vs-ttr-option-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.vs-ttr-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    font-size: 0.92rem;
    color: var(--vs-text);
    cursor: pointer;
}

.vs-ttr-option input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--vs-gold);
    cursor: pointer;
}

/* --- Output --- */

.vs-ttr-stats {
    margin: 0;
    min-height: 1.5em;
    font-size: 0.88rem;
    color: var(--vs-text-muted);
}

.vs-ttr-noscript {
    padding: 14px 16px;
    border-left: 3px solid var(--vs-gold);
    border-radius: var(--vs-radius-sm);
    background: var(--vs-gold-glow);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* --- CTA under the result --- */

.vs-ttr-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 28px auto 0;
    max-width: 640px;
    text-align: center;
}

.vs-ttr-cta p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--vs-text);
}

/* --- Formats table and related links --- */

.vs-ttr-formats code {
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--vs-warm);
    font-size: 0.85em;
    white-space: nowrap;
}

.vs-ttr-related {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.vs-ttr-related li {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius-sm);
    background: var(--vs-surface);
}

.vs-ttr-related li::before {
    display: none;
}

@media (max-width: 600px) {
    .vs-ttr-hero { padding: 28px 0 20px; }
    .vs-ttr-wrap { padding: 0 16px; }
    .vs-ttr-card { padding: 16px; gap: 16px; }
    .vs-ttr-textarea { min-height: 200px; }
    .vs-ttr-cta .vs-btn-primary { width: 100%; justify-content: center; }
}
