@font-face { font-family: 'Titan One'; src: url(/fonts/TitanOne.woff2) format('woff2'); font-display: swap; }
:root {
  --berry: #b8344f; --berry-dark: #962843; --ink: #4f1c28; --muted: #806066; --line: #f1dde1;
  --teal: #0bc2cf; --teal-dark: #0a8f99; --danger: #d92d4a;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; display: flex; flex-direction: column; color: var(--ink);
  font: 16px/1.55 Nunito, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: image-set(url(/pattern.png) 2x), linear-gradient(150deg, #20c9d6, #2f9cec);
  background-attachment: fixed;
}
a { color: inherit; }
h1, h2 { font-family: 'Titan One', system-ui, sans-serif; font-weight: 400; margin: 0; }

.tut-top { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: var(--berry); color: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.tut-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.tut-brand img { width: 38px; height: 38px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); }
.tut-brand b { font: 22px 'Titan One', system-ui, sans-serif; }
.tut-top nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-weight: 800; }
.tut-top nav a { text-decoration: none; }
.tut-cta { background: var(--teal); padding: 8px 16px; border-radius: 10px; box-shadow: 0 3px 0 var(--teal-dark); }

.tut-main { flex: 1; width: min(1100px, 100%); margin: 0 auto; padding: 28px 16px 48px; }
.tut-hero { color: #fff; margin-bottom: 24px; }
.tut-hero h1 { font-size: clamp(36px, 6vw, 56px); text-shadow: 4px 5px 0 rgba(0, 0, 0, .2); }
.tut-hero p { font-weight: 800; font-size: 18px; margin: 6px 0 0; text-shadow: 0 2px 0 rgba(0, 0, 0, .15); }

.tut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.tut-card { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 14px; background: #fff; border-radius: 16px; text-decoration: none; box-shadow: 0 5px 0 rgba(0, 0, 0, .18); transition: transform .12s; }
.tut-card:hover { transform: translateY(-3px); }
.tut-card b { font-size: 17px; padding: 6px 4px 0; }
.tut-card small { color: var(--muted); padding: 0 4px; }
.tut-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #f8d2da; }
.tut-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tut-thumb .tut-noimg { object-fit: contain; padding: 18%; }
.tut-play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(0, 0, 0, .55); }
.tut-play::after { content: ''; position: absolute; left: 21px; top: 16px; border: 11px solid transparent; border-left: 17px solid #fff; border-right: 0; }
.tut-empty { color: #fff; font-weight: 800; font-size: 18px; }

.tut-back { margin: 0 0 14px; font-weight: 800; color: #fff; }
.tut-back a { text-decoration: none; }
.tut-one { background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 6px 0 rgba(0, 0, 0, .18); }
.tut-one h1 { font-size: clamp(26px, 4vw, 38px); margin: 16px 4px 6px; }
.tut-desc { padding: 0 4px 6px; white-space: normal; }
.tut-player { aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.tut-player video, .tut-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.tut-novideo { display: grid; place-items: center; color: #fff; font-weight: 800; }

.tut-foot { text-align: center; padding: 18px; color: #fff; font-weight: 700; }

.tut-missing { color: #fff; }

@media (max-width: 560px) {
  .tut-top { padding: 10px 16px; }
  .tut-brand b { display: none; }
  .tut-grid { grid-template-columns: 1fr; }
}
