/* Materiály: sdílené barvy, písmo a tlačítka ze style.css. */
.materials .mat-icon { width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; }
.mat-hero { padding: clamp(32px, 6vh, 64px) 0 40px; border-bottom: 1px solid var(--border); }
.mat-back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: .9rem; margin-bottom: 30px; }
.mat-back:hover { color: var(--brand); }
.mat-hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; font-weight: 900; letter-spacing: -1.5px; margin-bottom: 16px; }
.mat-course { color: var(--text-2); font-size: 1.05rem; line-height: 1.6; }
.mat-content { padding-top: 28px; padding-bottom: clamp(60px, 8vw, 96px); }
.mat-breadcrumb { flex-wrap: wrap; gap: 10px; margin-bottom: 32px; font-size: .85rem; line-height: 1.6; }
.mat-breadcrumb a, .mat-current { display: inline-flex; align-items: center; gap: 7px; overflow-wrap: anywhere; }
.mat-current { color: var(--text-2); }
.mat-breadcrumb .mat-icon { width: 18px; height: 18px; }
.mat-breadcrumb .page-breadcrumb-sep .mat-icon { width: 13px; height: 13px; }
.mat-section-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.mat-section-heading h2 { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 800; overflow-wrap: anywhere; min-width: 0; }
.mat-section-heading h2 > .mat-icon { color: var(--brand); width: 28px; height: 28px; }
.mat-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(46,196,160,.12); color: var(--text-2); font-size: .75rem; font-weight: 600; }
.mat-badge .mat-icon { width: 14px; height: 14px; }
.mat-files, .mat-folders { list-style: none; margin: 0; padding: 0; }
.mat-files { display: grid; gap: 12px; }
.mat-file { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); }
.mat-symbol { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; flex-shrink: 0; border-radius: 14px; color: var(--brand); background: rgba(58,123,213,.10); }
.mat-symbol .mat-icon { width: 28px; height: 28px; }
.mat-type-pdf { color: #c34747; background: rgba(212,79,79,.1); }
.mat-type-sheet { color: #218665; background: rgba(46,196,160,.12); }
.mat-type-slides { color: #b77918; background: rgba(245,200,66,.13); }
.mat-type-image, .mat-type-video, .mat-type-audio { color: #9664d5; background: rgba(150,100,213,.12); }
.mat-file-info { flex: 1; min-width: 0; }
.mat-file-info h3 { font-size: 1rem; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.mat-file-info p, .mat-folder-meta { font-size: .8rem; line-height: 1.5; color: var(--text-2); margin-top: 5px; }
.mat-file-info p span { margin: 0 5px; }
.mat-download { flex-shrink: 0; }
.mat-download .mat-icon { width: 18px; height: 18px; }
.mat-folders-section { margin-top: 30px; }
.mat-folders-section > h3 { font-size: .85rem; color: var(--text-2); font-weight: 700; margin-bottom: 14px; }
.mat-folders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mat-folder { display: flex; align-items: center; gap: 16px; height: 100%; padding: 24px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); transition: transform .18s, border-color .18s, box-shadow .18s; }
.mat-folder:hover { transform: translateY(-3px); border-color: var(--brand-bright); box-shadow: var(--shadow); }
.mat-folder-info { flex: 1; min-width: 0; }
.mat-folder-info strong { font-size: 1.05rem; line-height: 1.5; font-weight: 800; overflow-wrap: anywhere; }
.mat-folder-meta { display: flex; align-items: center; gap: 5px; }
.mat-folder-meta .mat-icon { width: 14px; height: 14px; }
.mat-folder-arrow { color: var(--brand); }
.mat-folder-arrow .mat-icon { width: 18px; height: 18px; }
.mat-unlock { display: flex; align-items: flex-start; gap: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); max-width: 800px; }
.mat-symbol-lock { color: var(--brand); width: 64px; height: 64px; }
.mat-unlock-body { flex: 1; min-width: 0; }
.mat-kicker { font-size: .75rem; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.mat-unlock h2 { font-size: 1.6rem; line-height: 1.3; margin-bottom: 12px; overflow-wrap: anywhere; }
.mat-muted { color: var(--text-2); line-height: 1.7; }
.mat-unlock-form { margin-top: 24px; }
.mat-unlock-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.mat-form-row { display: flex; gap: 12px; }
.mat-form-row input { width: 100%; min-width: 0; flex: 1; padding: 12px 14px; border: 1px solid var(--border-mid); border-radius: 10px; background: var(--bg); color: var(--text-1); font: inherit; }
.materials a:focus-visible, .materials button:focus-visible, .materials input:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 4px; }
.mat-form-row .mat-icon { width: 18px; height: 18px; }
.mat-error { display: flex; align-items: center; gap: 10px; border: 1px solid rgba(212,79,79,.35); background: rgba(212,79,79,.08); color: var(--text-1); padding: 16px 20px; border-radius: 12px; margin-bottom: 20px; line-height: 1.6; }
.mat-error .mat-icon { color: #c34747; }
.mat-lock-form { margin-top: 28px; }
.mat-lock-form .mat-icon { width: 16px; height: 16px; }
.mat-empty { padding: 32px; border: 1px dashed var(--border-mid); border-radius: 16px; text-align: center; color: var(--text-2); }
.mat-empty .mat-symbol { margin-bottom: 14px; }
.mat-empty h3 { font-size: 1rem; color: var(--text-1); margin-bottom: 8px; }
.mat-empty p { line-height: 1.6; }
@media (max-width: 680px) {
  .mat-folders { grid-template-columns: minmax(0, 1fr); }
  .mat-folder { padding: 20px; }
  .mat-file { gap: 12px; padding: 18px; flex-wrap: wrap; }
  .mat-file-info { flex-basis: calc(100% - 66px); }
  .mat-download { margin-left: 66px; }
  .mat-unlock { flex-direction: column; gap: 18px; }
  .mat-form-row { flex-direction: column; }
  .mat-form-row .btn { justify-content: center; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .materials a, .materials button { transition: none; }
  .mat-folder:hover { transform: none; }
}
