2032 lines
35 KiB
CSS
2032 lines
35 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
--bg: #f4f7fb;
|
|
--panel: #ffffff;
|
|
--panel-soft: #f7fafc;
|
|
--ink: #172033;
|
|
--muted: #667085;
|
|
--line: #dfe6ef;
|
|
--accent: #0f2742;
|
|
--brand: #0f766e;
|
|
--brand-soft: #e4f5f1;
|
|
--gold: #c98a12;
|
|
--danger: #b42318;
|
|
--control-surface: #f1eee7;
|
|
--control-surface-hover: #e8e1d6;
|
|
--control-surface-active: #ddd4c7;
|
|
--control-border: rgba(67, 56, 45, 0.10);
|
|
--control-ink: #33413c;
|
|
--control-muted: #746b60;
|
|
--primary-solid: #2f4b45;
|
|
--primary-solid-hover: #263f3a;
|
|
--primary-solid-active: #203631;
|
|
--primary-soft-shadow: 0 10px 22px rgba(47, 75, 69, 0.16);
|
|
--danger-soft: #fdecec;
|
|
--danger-soft-hover: #f9dddd;
|
|
--danger-ink: #9f2f35;
|
|
--focus-ring: 0 0 0 3px rgba(47, 125, 99, 0.18);
|
|
--shadow: 0 12px 30px rgba(25, 37, 59, 0.08);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
background: var(--bg);
|
|
color: var(--ink);
|
|
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
}
|
|
|
|
.auth-page {
|
|
min-height: 100vh;
|
|
background:
|
|
radial-gradient(circle at 20% 10%, rgba(15, 118, 110, 0.10), transparent 28%),
|
|
radial-gradient(circle at 80% 20%, rgba(15, 39, 66, 0.08), transparent 30%),
|
|
#f7fafc;
|
|
}
|
|
|
|
.auth-shell {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 24px;
|
|
padding: 24px 14px;
|
|
position: relative;
|
|
}
|
|
|
|
.auth-card {
|
|
width: min(100%, 420px);
|
|
padding: 34px 30px 24px;
|
|
border: 1px solid rgba(15, 23, 42, 0.08);
|
|
border-radius: 24px;
|
|
background: rgba(255, 255, 255, 0.82);
|
|
box-shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
|
|
backdrop-filter: blur(18px);
|
|
}
|
|
|
|
.auth-heading {
|
|
text-align: center;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.auth-heading h1 {
|
|
margin: 0;
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.auth-heading p {
|
|
margin: 8px 0 0;
|
|
color: rgba(23, 32, 51, 0.52);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.auth-form {
|
|
display: grid;
|
|
gap: 15px;
|
|
}
|
|
|
|
.auth-form label {
|
|
display: grid;
|
|
gap: 8px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.auth-form input {
|
|
min-height: 48px;
|
|
border-radius: 12px;
|
|
padding: 0 14px;
|
|
background: rgba(248, 250, 252, 0.92);
|
|
border-color: #dbe3ec;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.auth-form button[type="submit"] {
|
|
min-height: 50px;
|
|
margin-top: 4px;
|
|
border: 0;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.auth-message {
|
|
margin: 14px 0 0;
|
|
padding: 10px 12px;
|
|
border-radius: 12px;
|
|
color: #155e75;
|
|
background: #ecfeff;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.auth-message.error {
|
|
color: var(--danger);
|
|
background: #fef3f2;
|
|
}
|
|
|
|
.auth-links {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-top: 18px;
|
|
color: rgba(23, 32, 51, 0.34);
|
|
}
|
|
|
|
.auth-links button {
|
|
min-height: 24px;
|
|
border: 0;
|
|
padding: 0;
|
|
color: rgba(23, 32, 51, 0.56);
|
|
background: transparent;
|
|
text-decoration: underline;
|
|
text-underline-offset: 4px;
|
|
}
|
|
|
|
.auth-links button:hover {
|
|
color: var(--ink);
|
|
background: transparent;
|
|
}
|
|
|
|
.auth-footer {
|
|
position: absolute;
|
|
bottom: 18px;
|
|
color: rgba(23, 32, 51, 0.45);
|
|
font-size: 12px;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
select,
|
|
textarea {
|
|
font: inherit;
|
|
}
|
|
|
|
button {
|
|
min-height: 34px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 7px;
|
|
padding: 0 11px;
|
|
color: var(--ink);
|
|
background: #fff;
|
|
cursor: pointer;
|
|
}
|
|
|
|
button:hover {
|
|
border-color: #b8c0cc;
|
|
background: #f9fafb;
|
|
}
|
|
|
|
button:disabled {
|
|
color: #a4acb8;
|
|
background: #eef1f4;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.primary-link,
|
|
#adminSubmitBtn,
|
|
#processAiSubtitlesBtn,
|
|
.auth-form button[type="submit"],
|
|
.login-form button,
|
|
.admin-form button[type="submit"],
|
|
.activation-code-form button[type="submit"],
|
|
.practice-answer-row button {
|
|
border-color: var(--primary-solid);
|
|
color: #fffdf8;
|
|
background: var(--primary-solid);
|
|
box-shadow: var(--primary-soft-shadow);
|
|
font-weight: 800;
|
|
transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
|
|
}
|
|
|
|
.primary-link:hover,
|
|
#adminSubmitBtn:hover,
|
|
#processAiSubtitlesBtn:hover,
|
|
.auth-form button[type="submit"]:hover,
|
|
.login-form button:hover,
|
|
.admin-form button[type="submit"]:hover,
|
|
.activation-code-form button[type="submit"]:hover,
|
|
.practice-answer-row button:hover {
|
|
border-color: var(--primary-solid-hover);
|
|
color: #fffdf8;
|
|
background: var(--primary-solid-hover);
|
|
box-shadow: 0 12px 26px rgba(47, 75, 69, 0.20);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.primary-link:active,
|
|
#adminSubmitBtn:active,
|
|
#processAiSubtitlesBtn:active,
|
|
.auth-form button[type="submit"]:active,
|
|
.login-form button:active,
|
|
.admin-form button[type="submit"]:active,
|
|
.activation-code-form button[type="submit"]:active,
|
|
.practice-answer-row button:active {
|
|
border-color: var(--primary-solid-active);
|
|
background: var(--primary-solid-active);
|
|
box-shadow: 0 6px 14px rgba(47, 75, 69, 0.14);
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.primary-link:focus-visible,
|
|
#adminSubmitBtn:focus-visible,
|
|
#processAiSubtitlesBtn:focus-visible,
|
|
.auth-form button[type="submit"]:focus-visible,
|
|
.login-form button:focus-visible,
|
|
.admin-form button[type="submit"]:focus-visible,
|
|
.activation-code-form button[type="submit"]:focus-visible,
|
|
.practice-answer-row button:focus-visible {
|
|
outline: none;
|
|
box-shadow: var(--primary-soft-shadow), var(--focus-ring);
|
|
}
|
|
|
|
.primary-link:disabled,
|
|
#adminSubmitBtn:disabled,
|
|
#processAiSubtitlesBtn:disabled,
|
|
.auth-form button[type="submit"]:disabled,
|
|
.login-form button:disabled,
|
|
.admin-form button[type="submit"]:disabled,
|
|
.activation-code-form button[type="submit"]:disabled,
|
|
.practice-answer-row button:disabled {
|
|
border-color: #d8d2c8;
|
|
color: #9b9388;
|
|
background: #e8e2d8;
|
|
box-shadow: none;
|
|
transform: none;
|
|
}
|
|
|
|
input,
|
|
select,
|
|
textarea {
|
|
width: 100%;
|
|
border: 1px solid var(--line);
|
|
border-radius: 7px;
|
|
color: var(--ink);
|
|
background: #fff;
|
|
outline: none;
|
|
}
|
|
|
|
input,
|
|
select {
|
|
min-height: 34px;
|
|
padding: 0 10px;
|
|
}
|
|
|
|
textarea {
|
|
min-height: 72px;
|
|
padding: 9px 10px;
|
|
resize: vertical;
|
|
}
|
|
|
|
input:focus,
|
|
select:focus,
|
|
textarea:focus {
|
|
border-color: var(--brand);
|
|
box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
|
|
}
|
|
|
|
.topbar {
|
|
height: 62px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 18px;
|
|
padding: 0 18px;
|
|
border-bottom: 1px solid var(--line);
|
|
background: rgba(255, 255, 255, 0.9);
|
|
backdrop-filter: blur(14px);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 20;
|
|
}
|
|
|
|
.brand,
|
|
.top-actions,
|
|
.login-form,
|
|
.user-menu,
|
|
.library-strip,
|
|
.tag-filters,
|
|
.tabs,
|
|
.video-actions,
|
|
.recording-controls,
|
|
.sentence-controls,
|
|
.study-side-actions,
|
|
.lesson-meta,
|
|
.recording-line {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.brand {
|
|
gap: 10px;
|
|
min-width: 250px;
|
|
}
|
|
|
|
.brand h1 {
|
|
margin: 0;
|
|
font-size: 17px;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.top-actions {
|
|
flex: 1;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.library-strip {
|
|
flex: 1;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
min-width: 260px;
|
|
}
|
|
|
|
.search-input {
|
|
max-width: 250px;
|
|
}
|
|
|
|
.tag-filters {
|
|
gap: 6px;
|
|
max-width: 420px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.chip {
|
|
min-height: 32px;
|
|
border: 1px solid transparent;
|
|
border-radius: 999px;
|
|
padding: 0 15px;
|
|
color: var(--control-ink);
|
|
background: var(--control-surface);
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
|
|
font-size: 12px;
|
|
font-weight: 750;
|
|
white-space: nowrap;
|
|
transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
|
|
}
|
|
|
|
.chip:hover {
|
|
border-color: var(--control-border);
|
|
background: var(--control-surface-hover);
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 8px 18px rgba(47, 64, 57, 0.09);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.chip.active {
|
|
color: #fffdf8;
|
|
border-color: var(--primary-solid);
|
|
background: var(--primary-solid);
|
|
box-shadow: var(--primary-soft-shadow);
|
|
}
|
|
|
|
.login-form,
|
|
.user-menu {
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.login-form input {
|
|
width: 150px;
|
|
}
|
|
|
|
.user-menu {
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.study-shell {
|
|
display: grid;
|
|
grid-template-columns: minmax(680px, 1.18fr) minmax(440px, 0.82fr);
|
|
gap: 16px;
|
|
height: calc(100vh - 62px);
|
|
padding: 14px 16px 76px;
|
|
}
|
|
|
|
.left-stage {
|
|
min-width: 0;
|
|
min-height: 0;
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
|
|
.lesson-rail,
|
|
.video-panel,
|
|
.transcript-panel {
|
|
background: var(--panel);
|
|
border: 1px solid #dce5ee;
|
|
border-radius: 8px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.lesson-rail {
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
display: grid;
|
|
grid-template-rows: auto minmax(0, 1fr);
|
|
}
|
|
|
|
.rail-heading {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 12px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.rail-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.rail-heading span {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.icon-button.admin-entry {
|
|
min-height: 28px;
|
|
border-radius: 6px;
|
|
padding: 0 8px;
|
|
color: var(--muted);
|
|
background: var(--panel);
|
|
border-color: var(--line);
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.icon-button.admin-entry:hover {
|
|
color: var(--ink);
|
|
border-color: var(--brand);
|
|
background: var(--brand-soft);
|
|
}
|
|
|
|
.video-list {
|
|
overflow: auto;
|
|
padding: 8px;
|
|
}
|
|
|
|
.video-item {
|
|
width: 100%;
|
|
min-height: 0;
|
|
display: block;
|
|
text-align: left;
|
|
padding: 10px;
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
border-radius: 7px;
|
|
}
|
|
|
|
.video-item:hover,
|
|
.video-item.active {
|
|
border-color: #b9dcd5;
|
|
background: var(--brand-soft);
|
|
}
|
|
|
|
.video-item strong,
|
|
.video-item span,
|
|
.video-item small {
|
|
display: block;
|
|
}
|
|
|
|
.video-item strong {
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.video-item span,
|
|
.video-item small {
|
|
margin-top: 4px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.video-progress {
|
|
color: var(--brand);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.video-panel {
|
|
min-width: 0;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
display: grid;
|
|
grid-template-rows: minmax(520px, 1fr) auto auto;
|
|
}
|
|
|
|
.video-frame {
|
|
position: relative;
|
|
min-height: 520px;
|
|
background: #0b1220;
|
|
}
|
|
|
|
video {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
background: #0b1220;
|
|
}
|
|
|
|
.empty-video {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: grid;
|
|
place-content: center;
|
|
gap: 8px;
|
|
color: #e6e9ef;
|
|
text-align: center;
|
|
padding: 24px;
|
|
}
|
|
|
|
.empty-video span {
|
|
color: #aab2bf;
|
|
}
|
|
|
|
.tool-row {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
align-items: center;
|
|
gap: 16px;
|
|
min-height: 71px;
|
|
padding: 14px 16px;
|
|
border-top: 1px solid var(--line);
|
|
background: #fff;
|
|
overflow: visible;
|
|
}
|
|
|
|
.recording-controls {
|
|
justify-content: flex-start;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.sentence-controls {
|
|
justify-content: center;
|
|
gap: 10px;
|
|
min-width: 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.study-side-actions {
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
min-width: 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.tool-row button {
|
|
min-width: 54px;
|
|
min-height: 38px;
|
|
border-radius: 10px;
|
|
border-color: #d8e2ec;
|
|
background: #f8fafc;
|
|
font-weight: 650;
|
|
white-space: nowrap;
|
|
transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
|
|
}
|
|
|
|
.tool-row button:disabled {
|
|
border-color: #e2e8f0;
|
|
color: #98a2b3;
|
|
background: #f1f5f9;
|
|
box-shadow: none;
|
|
transform: none;
|
|
}
|
|
|
|
.tool-row button:hover {
|
|
border-color: #b9dcd5;
|
|
background: var(--brand-soft);
|
|
box-shadow: 0 8px 20px rgba(15, 118, 110, 0.1);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.right-practice-view {
|
|
min-height: 0;
|
|
overflow: auto;
|
|
padding: 14px;
|
|
background: #fbfdfd;
|
|
}
|
|
|
|
.practice-mode-bar {
|
|
flex-wrap: wrap;
|
|
gap: 5px;
|
|
}
|
|
|
|
.practice-mode-bar .tab {
|
|
min-height: 32px;
|
|
border: 1px solid transparent;
|
|
border-radius: 999px;
|
|
padding: 0 13px;
|
|
color: #344054;
|
|
background: #eef4f6;
|
|
font-weight: 750;
|
|
}
|
|
|
|
.practice-mode-bar .tab:hover {
|
|
border-color: #b9dcd5;
|
|
background: var(--brand-soft);
|
|
}
|
|
|
|
.practice-mode-bar .tab.active {
|
|
color: #fff;
|
|
border-color: var(--accent);
|
|
background: var(--accent);
|
|
}
|
|
|
|
.practice-body {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.right-practice-view .practice-body {
|
|
min-height: 100%;
|
|
align-content: start;
|
|
gap: 12px;
|
|
}
|
|
|
|
.practice-prompt {
|
|
min-height: 118px;
|
|
display: grid;
|
|
align-content: center;
|
|
gap: 7px;
|
|
padding: 16px;
|
|
border: 1px solid #dde7ef;
|
|
border-radius: 8px;
|
|
background: #ffffff;
|
|
}
|
|
|
|
.practice-label {
|
|
color: var(--brand);
|
|
font-size: 12px;
|
|
font-weight: 850;
|
|
}
|
|
|
|
.practice-primary,
|
|
.practice-secondary,
|
|
.practice-feedback {
|
|
margin: 0;
|
|
}
|
|
|
|
.practice-primary {
|
|
color: #172033;
|
|
font-size: 16px;
|
|
line-height: 1.45;
|
|
font-weight: 750;
|
|
}
|
|
|
|
.practice-secondary {
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.practice-answer-row {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
gap: 9px;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.practice-answer-row textarea {
|
|
min-height: 58px;
|
|
resize: vertical;
|
|
}
|
|
|
|
.practice-answer-row button {
|
|
min-width: 76px;
|
|
min-height: 42px;
|
|
align-self: start;
|
|
}
|
|
|
|
.practice-feedback {
|
|
min-height: 20px;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.practice-feedback.is-correct {
|
|
color: #047857;
|
|
font-weight: 750;
|
|
}
|
|
|
|
.practice-feedback.is-incorrect,
|
|
.practice-feedback.is-empty,
|
|
.practice-feedback.is-missing-reference {
|
|
color: var(--danger);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.practice-feedback.is-muted {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.sentence-controls button {
|
|
min-width: 76px;
|
|
color: #0f2742;
|
|
border-color: #c8d7e6;
|
|
background: #ffffff;
|
|
font-size: 15px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.sentence-controls #replayBtn {
|
|
color: #fff;
|
|
border-color: var(--accent);
|
|
background: var(--accent);
|
|
}
|
|
|
|
.sentence-controls #replayBtn:hover {
|
|
border-color: #1e3a5f;
|
|
background: #1e3a5f;
|
|
box-shadow: 0 10px 24px rgba(15, 39, 66, 0.2);
|
|
}
|
|
|
|
.sentence-controls #replayBtn:disabled {
|
|
border-color: #d8e2ec;
|
|
color: #98a2b3;
|
|
background: #e8eef5;
|
|
}
|
|
|
|
.study-side-actions .toggle {
|
|
min-height: 42px;
|
|
padding: 0 14px;
|
|
border: 1px solid #c8d7e6;
|
|
border-radius: 999px;
|
|
color: #0f2742;
|
|
background: #f8fafc;
|
|
font-size: 14px;
|
|
font-weight: 800;
|
|
transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
|
|
}
|
|
|
|
.study-side-actions .toggle:hover {
|
|
border-color: #b9dcd5;
|
|
background: var(--brand-soft);
|
|
box-shadow: 0 8px 20px rgba(15, 118, 110, 0.1);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.study-side-actions .toggle input {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.study-side-actions #favoriteBtn {
|
|
min-width: 68px;
|
|
color: #0f2742;
|
|
background: #fff;
|
|
}
|
|
|
|
.subtitle-card {
|
|
display: grid;
|
|
align-content: center;
|
|
gap: 8px;
|
|
min-height: 116px;
|
|
padding: 18px 28px;
|
|
border-top: 1px solid var(--line);
|
|
background: #f8fbfb;
|
|
}
|
|
|
|
.subtitle-card p {
|
|
margin: 0;
|
|
text-align: center;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
#primarySubtitle {
|
|
font-size: 22px;
|
|
font-weight: 750;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
#secondarySubtitle {
|
|
color: #667085;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.lesson-meta {
|
|
justify-content: space-between;
|
|
gap: 14px;
|
|
padding: 13px 16px;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
|
|
.lesson-meta h2 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.lesson-meta p {
|
|
margin: 4px 0 0;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.video-actions {
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.recording-line {
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
min-height: 42px;
|
|
padding: 8px 16px;
|
|
border-top: 1px solid var(--line);
|
|
color: var(--muted);
|
|
background: var(--panel-soft);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.recording-status-danger {
|
|
color: var(--danger);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.toggle {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.toggle input {
|
|
width: auto;
|
|
min-height: 0;
|
|
}
|
|
|
|
.transcript-panel {
|
|
min-width: 0;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
display: grid;
|
|
grid-template-rows: auto minmax(0, 1fr);
|
|
}
|
|
|
|
.transcript-toolbar {
|
|
display: grid;
|
|
gap: 10px;
|
|
padding: 12px 14px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.transcript-title {
|
|
display: grid;
|
|
gap: 3px;
|
|
}
|
|
|
|
.transcript-title strong {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.transcript-title span {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.tabs {
|
|
gap: 2px;
|
|
}
|
|
|
|
.tab {
|
|
min-height: 30px;
|
|
padding: 0 11px;
|
|
border-color: transparent;
|
|
background: transparent;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.tab.active {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
}
|
|
|
|
.transcript-list {
|
|
min-height: 0;
|
|
overflow: auto;
|
|
padding: 10px 12px 24px;
|
|
}
|
|
|
|
.line-button {
|
|
width: 100%;
|
|
min-height: 0;
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
align-items: start;
|
|
gap: 10px;
|
|
text-align: left;
|
|
border: 1px solid transparent;
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
padding: 13px 10px;
|
|
}
|
|
|
|
.line-jump {
|
|
min-height: 0;
|
|
display: grid;
|
|
grid-template-columns: 54px minmax(0, 1fr);
|
|
gap: 10px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
text-align: left;
|
|
}
|
|
|
|
.line-jump:hover {
|
|
background: transparent;
|
|
border-color: transparent;
|
|
}
|
|
|
|
.line-button:hover,
|
|
.line-button.active {
|
|
background: #f4fbf9;
|
|
border-color: var(--line);
|
|
}
|
|
|
|
.line-button.active {
|
|
border-color: #b9dcd5;
|
|
box-shadow: inset 4px 0 0 var(--brand);
|
|
}
|
|
|
|
.line-button.is-practiced {
|
|
background: #f7fdf9;
|
|
border-color: #ccebdd;
|
|
}
|
|
|
|
.line-button.is-difficult {
|
|
background: #fffaf0;
|
|
box-shadow: inset 3px 0 0 var(--gold);
|
|
}
|
|
|
|
.line-button.active.is-difficult {
|
|
box-shadow: inset 3px 0 0 var(--gold);
|
|
}
|
|
|
|
.line-time {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-variant-numeric: tabular-nums;
|
|
padding-top: 3px;
|
|
}
|
|
|
|
.line-primary {
|
|
margin: 0;
|
|
line-height: 1.5;
|
|
font-weight: 650;
|
|
}
|
|
|
|
.line-secondary {
|
|
margin: 5px 0 0;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.line-status {
|
|
display: flex;
|
|
gap: 5px;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
}
|
|
|
|
.line-status-button {
|
|
min-height: 26px;
|
|
padding: 0 7px;
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.line-status-button.practiced.active {
|
|
color: #047857;
|
|
border-color: #9bd8c0;
|
|
background: #ecfdf5;
|
|
}
|
|
|
|
.line-status-button.difficult.active {
|
|
color: #92400e;
|
|
border-color: #f5c56f;
|
|
background: #fffbeb;
|
|
}
|
|
|
|
.line-primary mark,
|
|
.line-secondary mark {
|
|
background: rgba(201, 138, 18, 0.18);
|
|
color: #7a4d00;
|
|
border-radius: 3px;
|
|
padding: 0 2px;
|
|
}
|
|
|
|
.empty-state {
|
|
padding: 18px;
|
|
color: var(--muted);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.admin-form {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 9px;
|
|
}
|
|
|
|
.admin-form textarea {
|
|
grid-row: span 2;
|
|
}
|
|
|
|
.file-input {
|
|
min-height: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 1px dashed #cbd5e1;
|
|
border-radius: 10px;
|
|
color: var(--muted);
|
|
background: #f8fafc;
|
|
cursor: pointer;
|
|
padding: 0 13px;
|
|
transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
|
|
}
|
|
|
|
.file-input:hover {
|
|
border-color: #94a3b8;
|
|
color: #334155;
|
|
background: #f1f5f9;
|
|
}
|
|
|
|
.file-input span {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.file-input.is-selected {
|
|
border-color: #3182ce;
|
|
color: #1d4f7a;
|
|
background: #eff6ff;
|
|
box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.1);
|
|
}
|
|
|
|
.file-input input {
|
|
display: none;
|
|
}
|
|
|
|
.admin-page {
|
|
min-height: 100vh;
|
|
background: #f8fafc;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.admin-topbar {
|
|
gap: 16px;
|
|
}
|
|
|
|
.admin-topbar h1 {
|
|
margin: 0;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.admin-topbar p {
|
|
margin: 4px 0 0;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.admin-shell {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 55fr) minmax(360px, 45fr);
|
|
align-items: start;
|
|
gap: 28px;
|
|
padding: 28px 36px 44px;
|
|
}
|
|
|
|
.admin-panel,
|
|
.admin-locked {
|
|
background: #fff;
|
|
border: 1px solid #edf2f7;
|
|
border-radius: 12px;
|
|
box-shadow: 0 22px 55px rgba(15, 23, 42, 0.07);
|
|
}
|
|
|
|
.admin-panel {
|
|
padding: 24px;
|
|
}
|
|
|
|
.admin-form-heading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.admin-panel h2,
|
|
.admin-locked h2 {
|
|
margin: 0 0 12px;
|
|
font-size: 17px;
|
|
}
|
|
|
|
.admin-form-heading h2 {
|
|
margin: 0;
|
|
}
|
|
|
|
.admin-locked {
|
|
max-width: 520px;
|
|
margin: 48px auto;
|
|
}
|
|
|
|
.admin-page .admin-form {
|
|
grid-template-columns: 1fr;
|
|
gap: 12px;
|
|
}
|
|
|
|
.admin-page .admin-form textarea {
|
|
grid-row: auto;
|
|
}
|
|
|
|
.admin-page .admin-form input[type="text"],
|
|
.admin-page .admin-form input[type="url"],
|
|
.admin-page .admin-form textarea {
|
|
border-color: #e2e8f0;
|
|
border-radius: 10px;
|
|
padding: 11px 13px;
|
|
background: #fff;
|
|
transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
|
|
}
|
|
|
|
.admin-page .admin-form input[type="text"],
|
|
.admin-page .admin-form input[type="url"] {
|
|
min-height: 44px;
|
|
}
|
|
|
|
.admin-page .admin-form textarea {
|
|
min-height: 104px;
|
|
}
|
|
|
|
.admin-page .admin-form input[type="text"]:focus,
|
|
.admin-page .admin-form input[type="url"]:focus,
|
|
.admin-page .admin-form textarea:focus {
|
|
border-color: #3182ce;
|
|
box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.14);
|
|
background: #ffffff;
|
|
}
|
|
|
|
.admin-subtitle-editor {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.admin-ai-panel,
|
|
.admin-ai-panel h3,
|
|
.admin-ai-panel p {
|
|
margin: 0;
|
|
}
|
|
|
|
.admin-ai-panel {
|
|
display: grid;
|
|
gap: 12px;
|
|
padding: 16px;
|
|
border: 1px solid #ddd6fe;
|
|
border-radius: 12px;
|
|
background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
|
|
}
|
|
|
|
.admin-ai-panel h3 {
|
|
color: #312e81;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.admin-ai-panel p {
|
|
color: #5b5f7a;
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.admin-ai-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.admin-ai-report {
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.admin-subtitle-section {
|
|
display: grid;
|
|
gap: 8px;
|
|
padding: 10px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: var(--panel-soft);
|
|
}
|
|
|
|
.admin-subtitle-heading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
}
|
|
|
|
.admin-subtitle-heading h3 {
|
|
margin: 0;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.admin-subtitle-heading span {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.admin-subtitle-cues {
|
|
display: grid;
|
|
gap: 7px;
|
|
max-height: 320px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.admin-subtitle-cue {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
align-items: start;
|
|
gap: 8px;
|
|
padding: 8px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 7px;
|
|
background: var(--panel);
|
|
}
|
|
|
|
.admin-subtitle-cue strong {
|
|
display: block;
|
|
font-size: 12px;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.admin-subtitle-cue p {
|
|
margin: 4px 0 0;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.admin-list-heading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.admin-list-heading h2 {
|
|
margin: 0;
|
|
}
|
|
|
|
.admin-message {
|
|
margin: 0 0 12px;
|
|
padding: 10px 12px;
|
|
border: 1px solid #b7e4d8;
|
|
border-radius: 6px;
|
|
color: #047857;
|
|
background: #ecfdf5;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.admin-message.error {
|
|
border-color: #fecaca;
|
|
color: var(--danger);
|
|
background: #fef2f2;
|
|
}
|
|
|
|
.admin-video-list {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.admin-video-item {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 14px;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 10px;
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.admin-video-item.is-editing {
|
|
border-color: #93c5fd;
|
|
background: #eff6ff;
|
|
}
|
|
|
|
.admin-video-item h3 {
|
|
margin: 0 0 6px;
|
|
font-size: 15px;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.admin-video-meta,
|
|
.admin-video-subtitles {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.admin-video-subtitles {
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.admin-video-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.admin-user-list,
|
|
.activation-code-list {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.admin-user-item,
|
|
.activation-code-item {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 13px;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 10px;
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.admin-user-item h3,
|
|
.activation-code-item h3 {
|
|
margin: 0 0 5px;
|
|
font-size: 14px;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.admin-user-item p,
|
|
.activation-code-item p {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.activation-code-form {
|
|
display: grid;
|
|
grid-template-columns: 110px auto;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.danger-action {
|
|
min-height: 34px;
|
|
border: 1px solid rgba(159, 47, 53, 0.10);
|
|
border-radius: 10px;
|
|
padding: 0 12px;
|
|
color: var(--danger-ink);
|
|
background: var(--danger-soft);
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
|
|
font-size: 13px;
|
|
font-weight: 800;
|
|
transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
|
|
}
|
|
|
|
.danger-action:hover {
|
|
border-color: rgba(159, 47, 53, 0.16);
|
|
color: #84262c;
|
|
background: var(--danger-soft-hover);
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 8px 18px rgba(159, 47, 53, 0.08);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.danger-action:active {
|
|
background: #f4cccc;
|
|
box-shadow: inset 0 1px 2px rgba(159, 47, 53, 0.14);
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.danger-action:focus-visible {
|
|
outline: none;
|
|
box-shadow: 0 0 0 3px rgba(159, 47, 53, 0.14);
|
|
}
|
|
|
|
.danger-action:disabled {
|
|
border-color: rgba(159, 47, 53, 0.08);
|
|
color: #aa8e8f;
|
|
background: #f2e4e2;
|
|
box-shadow: none;
|
|
transform: none;
|
|
}
|
|
|
|
.secondary-action {
|
|
min-height: 34px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 1px solid transparent;
|
|
border-radius: 10px;
|
|
padding: 0 12px;
|
|
color: var(--control-muted);
|
|
background: rgba(241, 238, 231, 0.88);
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
|
|
font-size: 13px;
|
|
font-weight: 750;
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
|
|
}
|
|
|
|
.secondary-action:hover {
|
|
color: var(--control-ink);
|
|
border-color: var(--control-border);
|
|
background: var(--control-surface-hover);
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 8px 18px rgba(47, 64, 57, 0.08);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.secondary-action:active {
|
|
background: var(--control-surface-active);
|
|
box-shadow: inset 0 1px 2px rgba(47, 64, 57, 0.12);
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.chip:focus-visible,
|
|
.secondary-action:focus-visible {
|
|
outline: none;
|
|
box-shadow: var(--focus-ring);
|
|
}
|
|
|
|
.primary-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 36px;
|
|
border: 1px solid var(--primary-solid);
|
|
border-radius: 8px;
|
|
padding: 0 12px;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.home-page {
|
|
min-height: 100vh;
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.home-topbar .brand {
|
|
min-width: 180px;
|
|
}
|
|
|
|
.home-search {
|
|
max-width: 360px;
|
|
}
|
|
|
|
.home-shell {
|
|
display: grid;
|
|
grid-template-columns: 280px minmax(0, 1fr);
|
|
gap: 32px;
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 32px 40px 56px;
|
|
}
|
|
|
|
.home-dashboard,
|
|
.home-library {
|
|
min-width: 0;
|
|
}
|
|
|
|
.home-dashboard {
|
|
align-self: start;
|
|
position: sticky;
|
|
top: 94px;
|
|
display: grid;
|
|
gap: 14px;
|
|
}
|
|
|
|
.home-dashboard-title {
|
|
padding: 18px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 16px;
|
|
background: #fff;
|
|
box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
|
|
}
|
|
|
|
.home-dashboard-title span,
|
|
.home-plan-card strong,
|
|
.home-plan-card small {
|
|
display: block;
|
|
}
|
|
|
|
.home-dashboard-title span {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.home-plan-card {
|
|
display: grid;
|
|
gap: 6px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.home-plan-card strong {
|
|
color: #0f2742;
|
|
font-size: 22px;
|
|
line-height: 1.15;
|
|
}
|
|
|
|
.home-plan-card small {
|
|
color: #667085;
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.home-metrics {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.home-metric {
|
|
min-height: 82px;
|
|
display: grid;
|
|
grid-template-columns: 38px minmax(0, 1fr) auto;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 14px;
|
|
text-align: left;
|
|
border-color: #edf1f6;
|
|
border-radius: 16px;
|
|
background: #fff;
|
|
box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
|
|
transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
|
|
}
|
|
|
|
.home-metric:hover {
|
|
transform: translateY(-2px);
|
|
border-color: #cbd5e1;
|
|
background: #ffffff;
|
|
box-shadow: 0 20px 44px rgba(15, 23, 42, 0.09);
|
|
}
|
|
|
|
.home-metric-icon {
|
|
width: 34px;
|
|
height: 34px;
|
|
display: grid;
|
|
place-items: center;
|
|
border-radius: 10px;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.home-metric-copy,
|
|
.home-metric-label {
|
|
display: block;
|
|
min-width: 0;
|
|
}
|
|
|
|
.home-metric-label {
|
|
font-weight: 800;
|
|
}
|
|
|
|
.home-metric strong {
|
|
color: #0f2742;
|
|
font-size: 28px;
|
|
line-height: 1;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.home-metric small {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.home-metric.tone-blue .home-metric-icon {
|
|
color: #087ea4;
|
|
background: #e6f7fb;
|
|
}
|
|
|
|
.home-metric.tone-green .home-metric-icon {
|
|
color: #047857;
|
|
background: #e9f9f0;
|
|
}
|
|
|
|
.home-metric.tone-slate .home-metric-icon {
|
|
color: #475467;
|
|
background: #eef2f7;
|
|
}
|
|
|
|
.home-metric.tone-rose .home-metric-icon {
|
|
color: #be123c;
|
|
background: #fff1f4;
|
|
}
|
|
|
|
.home-metric.tone-amber .home-metric-icon {
|
|
color: #9a5c00;
|
|
background: #fff7df;
|
|
}
|
|
|
|
.home-metric.active {
|
|
border-color: #a7c7e8;
|
|
background: #eef7ff;
|
|
box-shadow: 0 18px 42px rgba(37, 99, 235, 0.11);
|
|
}
|
|
|
|
.home-metric.active small {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.home-heading {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 16px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.home-heading h2 {
|
|
margin: 0;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.home-heading p {
|
|
margin: 6px 0 0;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.home-categories {
|
|
display: flex;
|
|
gap: 10px;
|
|
overflow-x: auto;
|
|
padding: 2px 0 18px;
|
|
}
|
|
|
|
.home-status {
|
|
min-height: 22px;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.home-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 24px;
|
|
}
|
|
|
|
.home-card {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
border: 1px solid #edf1f6;
|
|
border-radius: 16px;
|
|
background: #fff;
|
|
box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
|
|
transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
|
|
}
|
|
|
|
.home-card:hover {
|
|
transform: translateY(-4px);
|
|
border-color: #d6dee9;
|
|
box-shadow: 0 26px 60px rgba(15, 23, 42, 0.12);
|
|
}
|
|
|
|
.home-card-link {
|
|
display: block;
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.home-card:hover .home-cover {
|
|
filter: saturate(1.08);
|
|
}
|
|
|
|
.home-cover {
|
|
position: relative;
|
|
min-height: 180px;
|
|
display: grid;
|
|
align-content: space-between;
|
|
padding: 16px;
|
|
color: #fff;
|
|
background: #e5eaf1;
|
|
}
|
|
|
|
.home-cover-image {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
opacity: 0;
|
|
transition: transform 220ms ease, opacity 160ms ease;
|
|
}
|
|
|
|
.home-cover.has-image::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.46));
|
|
}
|
|
|
|
.home-cover.has-image .home-cover-image {
|
|
opacity: 1;
|
|
}
|
|
|
|
.home-card:hover .home-cover.has-image .home-cover-image {
|
|
transform: scale(1.03);
|
|
}
|
|
|
|
.home-favorite {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
z-index: 2;
|
|
min-height: 28px;
|
|
border-color: rgba(255, 255, 255, 0.38);
|
|
color: #fff;
|
|
background: rgba(17, 24, 39, 0.3);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.home-favorite:hover,
|
|
.home-favorite.active {
|
|
color: #111827;
|
|
background: #fff;
|
|
border-color: #fff;
|
|
}
|
|
|
|
.home-cover.tone-1 {
|
|
background: linear-gradient(135deg, #0f766e, #1d6f8f);
|
|
}
|
|
|
|
.home-cover.tone-2 {
|
|
background: linear-gradient(135deg, #2563eb, #0f766e);
|
|
}
|
|
|
|
.home-cover.tone-3 {
|
|
background: linear-gradient(135deg, #475569, #2563eb);
|
|
}
|
|
|
|
.home-cover.tone-4 {
|
|
background: linear-gradient(135deg, #9a5c00, #be6b21);
|
|
}
|
|
|
|
.home-cover.tone-5 {
|
|
background: linear-gradient(135deg, #334155, #0f766e);
|
|
}
|
|
|
|
.home-cover-badge {
|
|
position: relative;
|
|
z-index: 2;
|
|
width: fit-content;
|
|
max-width: calc(100% - 86px);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
border: 1px solid rgba(255, 255, 255, 0.34);
|
|
border-radius: 999px;
|
|
padding: 4px 8px;
|
|
background: rgba(255, 255, 255, 0.14);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.home-cover strong {
|
|
position: relative;
|
|
z-index: 2;
|
|
font-size: 34px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.home-cover.has-image strong {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.home-card-body {
|
|
padding: 18px;
|
|
}
|
|
|
|
.home-card-body h3 {
|
|
margin: 0;
|
|
color: #1a202c;
|
|
font-size: 18px;
|
|
font-weight: 850;
|
|
line-height: 1.42;
|
|
}
|
|
|
|
.home-card-meta,
|
|
.home-card-subtitles,
|
|
.home-progress {
|
|
margin: 6px 0 0;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.home-card-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.home-card-tags span {
|
|
border-radius: 999px;
|
|
padding: 3px 7px;
|
|
color: #334155;
|
|
background: #eef2f7;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.home-card-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 14px;
|
|
margin: 16px 0 0;
|
|
padding-top: 14px;
|
|
border-top: 1px dashed #d7dee8;
|
|
}
|
|
|
|
.home-card-stats div {
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
|
|
.home-card-stats dt,
|
|
.home-card-stats dd {
|
|
margin: 0;
|
|
}
|
|
|
|
.home-card-stats dt {
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.home-card-stats dd {
|
|
color: #1a202c;
|
|
font-weight: 800;
|
|
font-size: 13px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.home-progress {
|
|
color: var(--brand);
|
|
font-weight: 700;
|
|
}
|
|
|
|
@media (max-width: 1180px) {
|
|
.study-shell {
|
|
grid-template-columns: 1fr;
|
|
height: auto;
|
|
}
|
|
|
|
.transcript-panel {
|
|
min-height: 520px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 860px) {
|
|
.topbar,
|
|
.top-actions,
|
|
.library-strip,
|
|
.login-form {
|
|
height: auto;
|
|
align-items: stretch;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.topbar {
|
|
padding: 12px;
|
|
}
|
|
|
|
.study-shell {
|
|
padding-top: 12px;
|
|
}
|
|
|
|
.tool-row {
|
|
grid-template-columns: 1fr;
|
|
justify-items: stretch;
|
|
gap: 10px;
|
|
}
|
|
|
|
.recording-controls,
|
|
.sentence-controls,
|
|
.study-side-actions {
|
|
justify-content: center;
|
|
}
|
|
|
|
.admin-form {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 560px) {
|
|
.study-shell {
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
}
|
|
|
|
.video-panel {
|
|
grid-template-rows: minmax(360px, 1fr) auto auto;
|
|
}
|
|
|
|
.video-frame {
|
|
min-height: 360px;
|
|
}
|
|
|
|
.practice-answer-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.practice-answer-row button {
|
|
width: 100%;
|
|
}
|
|
|
|
.tool-row {
|
|
padding: 12px;
|
|
}
|
|
|
|
.sentence-controls button {
|
|
flex: 1 1 84px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.admin-topbar {
|
|
height: auto;
|
|
align-items: stretch;
|
|
padding: 12px;
|
|
}
|
|
|
|
.admin-shell {
|
|
grid-template-columns: 1fr;
|
|
padding: 12px;
|
|
}
|
|
|
|
.admin-video-item {
|
|
grid-template-columns: 1fr;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.admin-video-actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.danger-action,
|
|
.admin-video-actions .secondary-action {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.home-shell {
|
|
grid-template-columns: 1fr;
|
|
gap: 20px;
|
|
padding: 18px 14px 32px;
|
|
}
|
|
|
|
.home-dashboard {
|
|
position: static;
|
|
}
|
|
|
|
.home-metrics {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.home-heading {
|
|
align-items: stretch;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.home-search {
|
|
max-width: none;
|
|
}
|
|
|
|
.home-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 18px;
|
|
}
|
|
}
|