/* ---------- Hand-drawn theme tokens ---------- */ :root, :root[data-theme="light"] { --bg: #f4ede1; --bg-soft: #ece2d0; --surface: #faf4e7; --surface-2: #f0e5cf; --ink: #1a1a1a; --ink-soft: #3b3b3b; --muted: #6b6256; --line: #1a1a1a; --line-soft: #8a7e6d; --accent: #d83d2c; --accent-soft: #f4b8b0; --safe: #2f8f3e; --safe-soft: #cbe9c9; --toxic: #c2331f; --toxic-soft: #f4c4bc; --link: #b32a1d; --shadow: rgba(26, 26, 26, 0.18); } :root[data-theme="dark"] { --bg: #1a1612; --bg-soft: #221d18; --surface: #25201a; --surface-2: #2e2820; --ink: #f4ede1; --ink-soft: #d8cdb8; --muted: #a89c87; --line: #f4ede1; --line-soft: #7d7464; --accent: #ff6a55; --accent-soft: #5a2a22; --safe: #6fcf6f; --safe-soft: #2d4a30; --toxic: #ff7a66; --toxic-soft: #5a2a22; --link: #ffb09b; --shadow: rgba(0, 0, 0, 0.5); } * { box-sizing: border-box; } html, body, #root { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); } body { font-family: "Patrick Hand", "Comic Sans MS", "Segoe Print", system-ui, sans-serif; font-size: 18px; line-height: 1.45; -webkit-font-smoothing: antialiased; } h1, h2, h3, h4 { font-family: "Caveat Brush", "Patrick Hand", system-ui, sans-serif; font-weight: 400; letter-spacing: 0.02em; margin: 0 0 0.5rem; color: var(--ink); } h1 { font-size: 2.4rem; line-height: 1.05; } h2 { font-size: 1.6rem; } h3 { font-size: 1.25rem; } a { color: var(--link); } code { font-family: "Courier New", monospace; background: var(--surface-2); padding: 0 0.25rem; border-radius: 4px; font-size: 0.9em; } /* ---------- Sketchy primitives ---------- */ .sketch { background: var(--surface); border: 2px solid var(--line); border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; box-shadow: 2px 3px 0 var(--shadow); } .sketch-soft { background: var(--surface); border: 2px solid var(--line); border-radius: 18px 6px 22px 8px / 8px 22px 6px 18px; } .sketch-tab { background: var(--surface); border: 2px solid var(--line); border-radius: 12px 4px 14px 5px / 5px 14px 4px 12px; padding: 0.35rem 0.85rem; font-size: 1rem; color: var(--ink); text-decoration: none; display: inline-block; cursor: pointer; transition: transform 0.08s ease; } .sketch-tab:hover { transform: translate(-1px, -1px); } .sketch-underline { display: inline-block; position: relative; } .sketch-underline::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: -6px; height: 6px; background: var(--accent); border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%; opacity: 0.85; } .wavy { width: 56px; height: 14px; display: inline-block; background-image: radial-gradient( circle at 8px 10px, transparent 5px, var(--line) 5px 6px, transparent 6px ), radial-gradient( circle at 22px 4px, transparent 5px, var(--line) 5px 6px, transparent 6px ), radial-gradient( circle at 36px 10px, transparent 5px, var(--line) 5px 6px, transparent 6px ), radial-gradient( circle at 50px 4px, transparent 5px, var(--line) 5px 6px, transparent 6px ); background-repeat: no-repeat; } /* ---------- App shell ---------- */ .app-shell { display: flex; min-height: 100vh; background: var(--bg); } .sidebar { width: 220px; background: var(--bg); border-right: 2px solid var(--line); padding: 1.1rem 0.9rem; display: flex; flex-direction: column; gap: 0.6rem; flex-shrink: 0; transition: width 0.18s ease; } .sidebar.collapsed { width: 0; padding: 0; border-right: none; overflow: hidden; } .sidebar.collapsed > * { display: none; } .brand { overflow: hidden; } .brand-logo { flex-shrink: 0; } .sidebar-section { display: flex; flex-direction: column; gap: 0.45rem; padding-bottom: 0.6rem; border-bottom: 2px dashed var(--line-soft); } .sidebar-section:last-child { border-bottom: none; } .sidebar-heading { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.2rem; padding: 0.4rem 0.75rem 0.2rem; font-family: "Caveat Brush", "Patrick Hand", sans-serif; font-size: 1.15rem; font-weight: 400; color: var(--muted); } .nav-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.75rem; font-size: 1rem; color: var(--ink); text-decoration: none; border: 2px solid transparent; border-radius: 12px 4px 14px 5px / 5px 14px 4px 12px; background: transparent; cursor: pointer; font-family: inherit; text-align: left; width: 100%; } .nav-item:hover { background: var(--surface); border-color: var(--line-soft); } .nav-item.active { background: var(--surface); border-color: var(--line); font-weight: 700; box-shadow: 2px 2px 0 var(--shadow); } .nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; color: var(--ink); flex-shrink: 0; } .main-content { flex: 1; overflow-x: hidden; display: flex; flex-direction: column; } /* ---------- Topbar ---------- */ .topbar { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.25rem; border-bottom: 2px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; } .topbar-left { display: flex; align-items: center; gap: 0.85rem; flex-shrink: 0; } .icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 2px solid var(--line); border-radius: 12px 4px 14px 5px / 5px 14px 4px 12px; cursor: pointer; color: var(--ink); font-family: inherit; font-size: 1.1rem; flex-shrink: 0; } .icon-btn:hover { background: var(--surface); transform: translate(-1px, -1px); } .brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--ink); } .brand-logo { height: 36px; width: auto; max-width: 100%; display: block; object-fit: contain; } .sidebar .brand { padding: 0.25rem 0.5rem 1.25rem; margin-bottom: 0.25rem; justify-content: flex-start; } .sidebar .brand-logo { height: 38px; max-width: 100%; } .topbar-search { flex: 1; max-width: 720px; display: flex; align-items: center; background: var(--surface); border: 2px solid var(--line); border-radius: 999px 30px 999px 30px / 30px 999px 30px 999px; padding: 0.45rem 1rem; gap: 0.5rem; } .topbar-search > svg { color: var(--muted); flex-shrink: 0; } .topbar-search input { flex: 1; background: transparent; border: none; outline: none; font-family: inherit; font-size: 1rem; color: var(--ink); min-width: 0; } .topbar-search input::placeholder { color: var(--muted); } .topbar-right { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; flex-shrink: 0; } .lang-toggle, .theme-toggle { min-width: 48px; height: 40px; padding: 0 0.7rem; font-family: inherit; font-size: 0.95rem; border: 2px solid var(--line); border-radius: 12px 4px 14px 5px / 5px 14px 4px 12px; background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; } .lang-toggle:hover, .theme-toggle:hover { transform: translate(-1px, -1px); } .sign-in { height: 40px; padding: 0 1.1rem; background: var(--accent-soft); border: 2px solid var(--accent); color: var(--accent); border-radius: 14px 4px 16px 6px / 6px 16px 4px 14px; cursor: pointer; font-family: inherit; font-size: 1rem; font-weight: 700; } .sign-in:hover { background: var(--accent); color: var(--surface); } /* ---------- Watch ---------- */ .watch-page { padding: 1.5rem 2rem 3rem; width: 100%; } .watch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 402px; gap: 1.5rem; align-items: start; } .primary-column { min-width: 0; width: 100%; display: flex; flex-direction: column; } @media (max-width: 1400px) { .watch-grid { grid-template-columns: minmax(0, 1fr) 360px; } } @media (max-width: 1100px) { .watch-grid { grid-template-columns: minmax(0, 1fr) 320px; } } @media (max-width: 900px) { .watch-grid { grid-template-columns: 1fr; } } .staged-player { width: 100%; aspect-ratio: 16 / 9; background: var(--ink); border: 2px solid var(--line); border-radius: 18px 6px 22px 8px / 8px 22px 6px 18px; box-shadow: 3px 4px 0 var(--shadow); overflow: hidden; position: relative; } .staged-player::before { content: "▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--accent); font-size: 4rem; pointer-events: none; opacity: 0.85; z-index: 1; } .staged-player iframe, .staged-player .player-fallback { position: relative; z-index: 2; } .player-iframe { width: 100%; height: 100%; border: 0; display: block; } .player-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; text-decoration: none; color: inherit; background: var(--ink); } .player-fallback-thumb { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; } .player-fallback-cta { position: absolute; bottom: 1rem; background: var(--surface); border: 2px solid var(--line); color: var(--ink); padding: 0.45rem 0.9rem; border-radius: 12px 4px 14px 5px / 5px 14px 4px 12px; font-size: 0.9rem; z-index: 3; } .video-title { font-size: 1.7rem; margin: 1rem 0 0.35rem; line-height: 1.15; } .video-meta { color: var(--muted); font-size: 0.95rem; margin: 0; } .info-banner { font-size: 0.95rem; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 14px 4px 16px 6px / 6px 16px 4px 14px; padding: 0.65rem 0.9rem; margin: 0.6rem 0 0.75rem; box-shadow: 2px 2px 0 var(--shadow); } .info-banner.dismissible { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; } .btn-dismiss { background: transparent; border: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 0.25rem; font-family: inherit; } .btn-dismiss:hover { color: var(--ink); } .channel-row { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0; padding-bottom: 1rem; border-bottom: 2px dashed var(--line-soft); } .channel-avatar { width: 42px; height: 42px; border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%; background: var(--accent); color: var(--surface); display: flex; align-items: center; justify-content: center; font-weight: 700; border: 2px solid var(--line); } .channel-name { margin: 0; font-weight: 700; } .comments-header { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.85rem; font-family: "Caveat Brush", "Patrick Hand", sans-serif; } .toxic-count { color: var(--toxic); font-weight: 500; font-size: 0.95rem; } .comment-compose { margin-bottom: 1rem; } .comment-compose textarea { width: 100%; background: var(--surface); border: 2px solid var(--line); color: var(--ink); font-family: inherit; font-size: 1rem; resize: vertical; padding: 0.6rem 0.85rem; border-radius: 14px 4px 16px 6px / 6px 16px 4px 14px; outline: none; } .comment-compose textarea:focus { box-shadow: 2px 2px 0 var(--shadow); } .live-analysis { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; font-size: 0.95rem; margin: 0.5rem 0; color: var(--muted); } .compose-actions { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 0.6rem; } .btn-primary, .btn-secondary, .btn-danger { border: 2px solid var(--line); border-radius: 14px 4px 16px 6px / 6px 16px 4px 14px; padding: 0.5rem 1.1rem; font-weight: 700; cursor: pointer; font-size: 1rem; font-family: inherit; } .btn-primary { background: var(--accent); color: var(--surface); border-color: var(--accent); box-shadow: 2px 2px 0 var(--shadow); } .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; } .btn-secondary { background: var(--surface); color: var(--ink); } .btn-danger { background: var(--toxic); color: var(--surface); border-color: var(--toxic); } .badge { font-size: 0.8rem; font-weight: 700; padding: 2px 10px; border: 2px solid var(--line); border-radius: 10px 3px 12px 4px / 4px 12px 3px 10px; display: inline-block; } .badge-safe { background: var(--safe-soft); color: var(--safe); border-color: var(--safe); } .badge-toxic { background: var(--toxic-soft); color: var(--toxic); border-color: var(--toxic); } .comment-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.6rem; } .comment-row { display: flex; gap: 0.75rem; padding: 0.75rem; background: var(--surface); border: 2px solid var(--line); border-radius: 16px 5px 18px 6px / 6px 18px 5px 16px; box-shadow: 2px 2px 0 var(--shadow); } .comment-row.toxic { border-color: var(--toxic); } .avatar { width: 40px; height: 40px; border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%; background: var(--line-soft); color: var(--surface); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; border: 2px solid var(--line); } .avatar.toxic { background: var(--toxic); } .comment-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.85rem; align-items: center; font-size: 0.9rem; } .comment-user { font-weight: 700; color: var(--ink); } .comment-time, .comment-pct { color: var(--muted); } .comment-text { margin: 0.35rem 0 0; line-height: 1.45; font-size: 1rem; } .flagged { color: var(--toxic); font-size: 0.9rem; margin: 0.25rem 0 0; font-weight: 700; } .comment-labels { font-size: 0.85rem; color: var(--muted); margin: 0.2rem 0 0; } .loading-comments { color: var(--muted); font-size: 1rem; margin: 0.5rem 0; } /* ---------- Suggested rail ---------- */ .suggested-rail { display: flex; flex-direction: column; gap: 0.6rem; } .rail-title { font-family: "Caveat Brush", "Patrick Hand", sans-serif; font-size: 1.4rem; margin: 0 0 0.3rem; } .suggested-card { display: grid; grid-template-columns: 168px 1fr; gap: 0.6rem; background: transparent; border: 2px solid transparent; color: inherit; text-align: left; cursor: pointer; padding: 0.4rem; border-radius: 14px 4px 16px 6px / 6px 16px 4px 14px; width: 100%; font-family: inherit; align-items: start; } .suggested-card:hover { background: var(--surface); border-color: var(--line-soft); } .suggested-card.active { background: var(--surface); border-color: var(--line); box-shadow: 2px 2px 0 var(--shadow); } .suggested-thumb { width: 168px; height: 94px; object-fit: cover; border-radius: 10px 3px 12px 4px / 4px 12px 3px 10px; background: var(--ink); border: 2px solid var(--line); } .suggested-info { min-width: 0; } .suggested-title { font-size: 0.95rem; font-weight: 700; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; } .suggested-info { display: flex; flex-direction: column; gap: 0.15rem; } .suggested-title { font-size: 0.95rem; font-weight: 700; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .suggested-channel { font-size: 0.85rem; color: var(--muted); margin: 0.1rem 0 0; } .loading-tag { font-size: 0.8rem; color: var(--accent); } .embed-badge { display: inline-block; font-size: 0.75rem; color: var(--muted); margin-top: 0.2rem; } .model-unavailable { opacity: 0.55; cursor: not-allowed; } .model-reason { font-size: 0.85rem; color: var(--muted); font-weight: normal; } .error-banner, .error-text { color: var(--toxic); font-size: 0.95rem; } /* ---------- Hub & settings ---------- */ .hub-page, .settings-page { padding: 1.5rem 2rem 3rem; max-width: 1080px; } .settings-card, .chart-box, .hub-stat, .hub-table-wrap { background: var(--surface); border: 2px solid var(--line); border-radius: 18px 6px 22px 8px / 8px 22px 6px 18px; padding: 1.2rem 1.3rem; margin-bottom: 1rem; box-shadow: 3px 3px 0 var(--shadow); } .hint { color: var(--muted); font-size: 0.95rem; } .model-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; } .model-option { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; padding: 0.5rem 0.6rem; border: 2px dashed var(--line-soft); border-radius: 12px 4px 14px 5px / 5px 14px 4px 12px; } .model-option:hover { background: var(--surface-2); } .settings-msg { color: var(--safe); font-size: 1rem; font-weight: 700; } .hub-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; } .hub-stat { margin-bottom: 0; } .stat-label { display: block; color: var(--muted); font-size: 0.95rem; } .stat-value { font-family: "Caveat Brush", "Patrick Hand", sans-serif; font-size: 2rem; font-weight: 700; color: var(--ink); } .hub-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } @media (max-width: 900px) { .hub-charts, .hub-cards { grid-template-columns: 1fr; } } .hub-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; } .hub-table th, .hub-table td { text-align: left; padding: 0.55rem 0.5rem; border-bottom: 2px dashed var(--line-soft); } .hub-table th { font-family: "Caveat Brush", "Patrick Hand", sans-serif; font-size: 1.1rem; font-weight: 400; color: var(--ink); } .production-model-note { color: var(--ink); font-size: 1rem; margin: 0 0 0.6rem; line-height: 1.5; } .model-banner { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1rem; padding: 0.7rem 1rem; background: var(--safe-soft); border: 2px solid var(--safe); border-radius: 14px 4px 16px 6px / 6px 16px 4px 14px; color: var(--ink); font-size: 1rem; box-shadow: 2px 2px 0 var(--shadow); } .model-banner-icon { font-size: 1.2rem; } input[type="range"] { width: 100%; accent-color: var(--accent); } input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; } /* ---------- Mobile ---------- */ .mobile-only { display: none; } @media (max-width: 820px) { .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; transform: translateX(-100%); transition: transform 0.2s ease, width 0.18s ease; width: 240px; box-shadow: 4px 0 0 var(--shadow); } .sidebar.open { transform: translateX(0); } .sidebar-backdrop { position: fixed; inset: 0; background: var(--shadow); z-index: 20; } .mobile-only { display: inline-flex; } .topbar-search { max-width: none; } .sign-in { padding: 0 0.7rem; font-size: 0.9rem; } .watch-page, .hub-page, .settings-page { padding: 1rem 0.9rem 2rem; } .suggested-thumb { width: 140px; height: 80px; } } @media (max-width: 560px) { body { font-size: 17px; } h1 { font-size: 2rem; } .topbar { padding: 0.7rem 0.85rem; gap: 0.5rem; } .brand-mark { font-size: 1.4rem; } .lang-toggle, .theme-toggle, .icon-btn { width: 38px; height: 38px; min-width: 38px; padding: 0; } .sign-in { height: 38px; } .suggested-card { flex-direction: column; } .suggested-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; } }