/* Online file converter (/file-converter/, lib/file_converter_page.php, js/file-converter.js). Builds on subtitle-tools.css. */

.fc-tool { max-width: 980px; margin: 0 auto 32px; }
.fc-stage { position: relative; border-radius: 22px; padding: 32px 24px 24px; color: #e5e7eb;
    background: radial-gradient(circle at 50% 18%, rgba(239, 68, 68, .14), transparent 45%),
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 28px 28px, #1c1c20;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .25); }

/* From -> to boxes */
.fc-pick { position: relative; display: flex; align-items: center; justify-content: center; gap: 18px; }
.fc-box { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 140px; height: 140px;
    border-radius: 18px; border: 1px solid rgba(255, 255, 255, .22); background: linear-gradient(180deg, #34343a, #26262b); color: #fff; cursor: pointer;
    transition: border-color .15s, box-shadow .15s; }
.fc-box:hover, .fc-box[aria-expanded="true"] { border-color: rgba(255, 255, 255, .45); }
.fc-box:focus-visible { outline: 3px solid #fca5a5; outline-offset: 2px; }
.fc-box .fa:first-child { font-size: 34px; color: #f3f4f6; }
.fc-box-label { font-size: 20px; letter-spacing: .02em; }
.fc-caret { position: absolute; right: 12px; bottom: 8px; font-size: 18px; color: #d1d5db; }
.fc-box-to { border-color: rgba(239, 68, 68, .55); box-shadow: 0 0 0 1px rgba(239, 68, 68, .2), 0 0 30px rgba(239, 68, 68, .12); }
.fc-box-to .fa:first-child, .fc-box-to .fc-box-label { color: #fca5a5; }
.fc-to { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #9ca3af; }
.fc-to small { letter-spacing: .3em; font-size: 12px; }
.fc-swap { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; color: #f87171;
    background: rgba(239, 68, 68, .14); border: 1px solid rgba(239, 68, 68, .4); position: relative; }
.fc-swap::before, .fc-swap::after { content: ""; position: absolute; top: 50%; width: 36px; height: 1px; background: rgba(239, 68, 68, .55); }
.fc-swap::before { right: 100%; }
.fc-swap::after { left: 100%; }

/* The format menu (like the screenshot: search, groups on the left, formats on the right) */
.fc-menu { position: absolute; top: calc(100% + 10px); z-index: 30; width: 440px; max-width: calc(100vw - 32px); background: #fff; color: #1f2937;
    border-radius: 10px; border: 1px solid #e5e7eb; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); overflow: hidden; text-align: left; }
.fc-menu-to { left: calc(50% + 12px); }
.fc-menu-from { right: calc(50% + 12px); }
.fc-search { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #e5e7eb; background: #f9fafb; }
.fc-search .fa { color: #9ca3af; }
.fc-search input { flex: 1; border: 0; background: transparent; outline: 0; font-size: 16px; min-width: 0; }
.fc-menu-body { display: flex; min-height: 190px; max-height: 320px; }
.fc-cats { list-style: none; margin: 0; padding: 6px 0; width: 160px; flex: none; background: #f3f4f6; border-right: 1px solid #e5e7eb; }
.fc-cats button { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; background: transparent; padding: 10px 16px; font-size: 16px; color: #374151; cursor: pointer; }
.fc-cats button.on { background: #fff; font-weight: 600; }
.fc-grid { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: start; padding: 10px; overflow-y: auto; }
.fc-grid button { border: 1px solid #e5e7eb; background: #f9fafb; border-radius: 3px; padding: 9px 4px; font-weight: 600; font-size: 14px; color: #374151; cursor: pointer; }
.fc-grid button:hover, .fc-grid button:focus-visible { border-color: #b91c1c; outline: 0; }
.fc-grid button.on { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.fc-none { grid-column: 1 / -1; font-size: 14px; color: #6b7280; margin: 6px; }

/* Drop zone and files */
.fc-drop { margin: 26px auto 0; max-width: 620px; border: 2px dashed rgba(255, 255, 255, .25); border-radius: 16px; padding: 22px 16px; text-align: center; cursor: default; transition: border-color .15s, background .15s; }
.fc-drop.over, .fc-drop:focus-visible { border-color: #f87171; background: rgba(239, 68, 68, .08); outline: 0; }
.fc-drop > .fa { font-size: 30px; color: #f87171; }
.fc-drop p { margin: 8px 0 4px; font-size: 17px; }
.fc-drop small { color: #9ca3af; }
.fc-choose { display: inline-block; margin: 0; padding: 6px 16px; border-radius: 999px; background: #dc2626; color: #fff; font-weight: 600; cursor: pointer; }
.fc-choose:hover { background: #b91c1c; }
.fc-stage.has-files .fc-drop { padding: 12px 16px; }
.fc-stage.has-files .fc-drop > .fa, .fc-stage.has-files .fc-drop small { display: none; }

.fc-files { margin-top: 18px; background: #fff; color: #1f2937; border-radius: 14px; overflow: hidden; }
.fc-files[hidden], .fc-bar[hidden], .fc-jobs[hidden] { display: none !important; }
.fc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 150px 28px; gap: 8px 14px; align-items: center; padding: 12px 16px; border-top: 1px solid #eef0f4; }
.fc-row:first-child { border-top: 0; }
.fc-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fc-name > .fa { font-size: 22px; color: #6b7280; flex: none; }
.fc-name span { min-width: 0; }
.fc-name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-name small { color: #6b7280; }
.fc-row-to { display: flex; align-items: center; gap: 8px; }
.fc-row-to > span { color: #6b7280; font-size: 14px; }
.fc-row-to select { width: 110px; }
.fc-state { font-size: 14px; text-align: right; min-width: 0; }
.fc-ok { color: #15803d; font-weight: 600; }
.fc-prog { height: 8px; border-radius: 99px; background: #e5e7eb; overflow: hidden; margin-bottom: 2px; }
.fc-prog span { display: block; height: 100%; background: linear-gradient(90deg, #dc2626, #f97316); transition: width .2s linear; }
.fc-del { font-size: 24px; }
.fc-opts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 10px 12px; background: #f9fafb; border-radius: 10px; }
.fc-opts label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: #374151; }
.fc-opts select { width: auto; }
.fc-opts input { width: 80px; }
.fc-hint { width: 100%; margin: 0; font-size: 13px; color: #6b7280; }

.fc-bar { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: center; text-align: center; }
.fc-bar .st-muted { color: #9ca3af; }
.fc-bar .st-error { color: #fca5a5; margin: 0; }
.fc-total { width: 100%; margin: 0; font-size: 18px; }
.fc-bar .btn-link { color: #fca5a5; }

.fc-jobs { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--sv-line, #e4e9f2); border-radius: 16px; background: #fff; }
.fc-jobs h3 { font-size: 19px; margin: 0 0 4px; }
.fc-jobs ul { list-style: none; margin: 10px 0 0; padding: 0; }
.fc-jobs li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 10px 0; border-top: 1px solid #eef0f4; }
.fc-job-name { min-width: 0; flex: 1 1 260px; }
.fc-job-name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Formats section */
.fc-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fc-fgroup { border: 1px solid var(--sv-line, #e4e9f2); border-radius: 14px; padding: 16px 18px; background: #fff; }
.fc-fgroup h3 { font-size: 18px; margin: 0 0 8px; }
.fc-fgroup dl { margin: 0; }
.fc-fgroup dt { margin-top: 8px; }
.fc-fgroup dd { margin: 0; font-size: 14px; color: var(--sv-muted, #556179); }
.fc-in-list { margin-top: 16px; font-size: 15px; color: var(--sv-muted, #556179); }

@media (max-width: 767px) {
    .fc-stage { padding: 22px 12px 16px; border-radius: 16px; }
    .fc-pick { gap: 10px; }
    .fc-box { width: 104px; height: 104px; gap: 6px; }
    .fc-box .fa:first-child { font-size: 26px; }
    .fc-box-label { font-size: 17px; }
    .fc-swap { width: 38px; height: 38px; }
    .fc-swap::before, .fc-swap::after { width: 10px; }
    .fc-menu, .fc-menu-to, .fc-menu-from { left: 50%; right: auto; transform: translateX(-50%); width: 100%; }
    .fc-cats { width: 104px; }
    .fc-cats button { padding: 10px; font-size: 15px; }
    .fc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fc-row { grid-template-columns: minmax(0, 1fr) 28px; }
    .fc-row-to { grid-column: 1; }
    .fc-state { grid-column: 1 / -1; text-align: left; }
    .fc-del { grid-row: 1; grid-column: 2; }
    .fc-formats { grid-template-columns: 1fr; }
}

/* The converter right under a short hero, as on the converter sites. */
.fc-page .st-hero { padding-top: 28px; padding-bottom: 30px; margin-bottom: 22px; }
.fc-page .st-hero .lead { max-width: 760px; margin-bottom: 0; }
