:root { color-scheme: light; --accent: #12bace; --accent-dark: #087a89; --ink: #16252b; --muted: #718189; --line: #e9eef0; --header: 58px; --nav: 66px; --top: env(safe-area-inset-top, 0px); --bottom: env(safe-area-inset-bottom, 0px); }
* { box-sizing: border-box; }
body { margin: 0; background: #f7f9fa; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Segoe UI", sans-serif; font-size: 16px; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header { height: calc(var(--header) + var(--top)); padding: var(--top) 20px 0; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; position: fixed; inset: 0 0 auto; z-index: 20; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 23px; letter-spacing: -1px; }
.brand-mark { color: var(--accent); font-size: 24px; }
.header-label { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: auto; margin-right: 16px; }
#main { padding-top: calc(var(--header) + var(--top)); padding-bottom: calc(var(--nav) + var(--bottom)); min-height: 100dvh; }
.bottom-nav { height: calc(var(--nav) + var(--bottom)); padding-bottom: var(--bottom); background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: center; position: fixed; inset: auto 0 0; z-index: 20; }
.bottom-nav a { display: flex; width: min(50%, 180px); flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 13px; font-weight: 600; color: #7b8990; position: relative; }
.bottom-nav a[aria-current="page"] { color: var(--accent-dark); }
.bottom-nav a[aria-current="page"]::before { content: ""; width: 26px; height: 3px; border-radius: 0 0 3px 3px; position: absolute; top: 0; background: var(--accent); }
.initial-state, .empty { padding: 60px 24px; text-align: center; color: var(--muted); line-height: 1.8; }
.empty h2 { color: var(--ink); font-size: 20px; }
.primary { border: 0; border-radius: 10px; padding: 14px 22px; background: var(--accent); color: #032b32; font-weight: 700; display: inline-flex; justify-content: center; align-items: center; }
.feed-shell { width: 100%; position: relative; margin: auto; background: #080d10; }
.feed { height: calc(100dvh - var(--header) - var(--nav) - var(--top) - var(--bottom)); min-height: 340px; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior-y: contain; scrollbar-width: none; position: relative; overflow-anchor: none; }
.feed::-webkit-scrollbar { display: none; }
.reel { height: 100%; position: relative; scroll-snap-align: start; scroll-snap-stop: always; background: #101a1f; overflow: hidden; }
.reel video { width: 100%; height: 100%; object-fit: contain; display: block; background: #080d10; }
.reel video.cover { object-fit: cover; }
.reel::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.14) 28%, rgba(0,0,0,.82) 100%); pointer-events: none; }
.reel-meta { position: absolute; inset: auto 18px 104px; z-index: 2; color: #fff; padding-right: 52px; }
.creator { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #233b45; color: #fff; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 15px; font-weight: 700; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator-name { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.creator-handle { font-size: 12px; color: #c7d3d7; display: block; margin-top: 2px; }
.reel-title { font-size: 15px; font-weight: 500; line-height: 1.5; margin: 12px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-size: 12px; border: 1px solid #ffffff55; border-radius: 5px; padding: 3px 7px; background: #ffffff13; }
.reel-bottom { position: absolute; inset: auto 16px 16px; z-index: 3; }
.seek { width: 100%; display: block; accent-color: var(--accent); margin: 0 0 13px; height: 14px; cursor: pointer; }
.affiliate { width: 100%; min-height: 48px; background: var(--accent); color: #032b32; border: 0; border-radius: 10px; font-size: 16px; font-weight: 750; display: flex; align-items: center; justify-content: center; gap: 8px; }
.affiliate:disabled { background: #dbe4e7; color: #485a62; cursor: default; }
.pr { font-size: 10px; border: 1px solid currentColor; border-radius: 3px; padding: 1px 4px; font-weight: 500; }
.reel-controls { position: absolute; z-index: 3; right: 14px; bottom: 116px; display: grid; gap: 12px; }
.reel-controls button { width: 44px; height: 44px; border: 1px solid #ffffff35; border-radius: 50%; background: #0b111766; color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); }
.reel-controls svg { width: 21px; height: 21px; }
.status { position: absolute; z-index: 4; inset: 30% 36px auto; text-align: center; background: #0b161ee6; padding: 16px; border-radius: 12px; color: #fff; font-size: 14px; }
.status:empty, .status[hidden] { display: none; }
.status button { display: block; margin: 12px auto 0; color: #07292f; background: var(--accent); padding: 8px 16px; border: 0; border-radius: 6px; }
.demo-badge { position: absolute; top: 16px; right: 16px; z-index: 3; background: #101a1f99; color: #fff; border: 1px solid #ffffff40; border-radius: 5px; padding: 5px 9px; font-size: 12px; }
.feed-filter { position: absolute; left: 16px; top: 16px; z-index: 5; display: flex; gap: 8px; align-items: center; background: #101a1fcc; color: #fff; border-radius: 6px; padding: 8px 12px; font-size: 14px; max-width: calc(100% - 110px); }
.feed-filter a { width: 24px; height: 24px; display: grid; place-items: center; font-size: 20px; }
.desktop-controls { display: none; }
.page { max-width: 940px; padding: 32px 24px 40px; margin: auto; }
.page h1 { font-size: 26px; letter-spacing: -.6px; margin: 0 0 22px; }
.page h2 { font-size: 18px; margin: 30px 0 16px; }
.count { font-size: 14px; color: var(--muted); margin: 20px 0 16px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.tile { min-width: 0; display: block; }
.thumbnail { aspect-ratio: 3 / 4; position: relative; overflow: hidden; border-radius: 12px; background: linear-gradient(150deg,#1b4652,#13212c); display: grid; place-items: center; color: #afdae2; }
.thumbnail img { height: 100%; width: 100%; object-fit: cover; position: absolute; inset: 0; }
.thumbnail .play-symbol { width: 44px; height: 44px; border-radius: 50%; background: #ffffff25; display: grid; place-items: center; color: white; font-size: 17px; padding-left: 3px; position: relative; }
.thumbnail .tile-tag { position: absolute; bottom: 10px; left: 10px; font-size: 12px; color: #fff; border-radius: 4px; padding: 4px 7px; background: #10232bcc; }
.tile-name { font-size: 14px; font-weight: 650; margin-top: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-title { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 4px; }
.genre-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.genre-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 20px; min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; }
.genre-card span { color: var(--accent-dark); font-weight: 700; font-size: 17px; }
.genre-card small { color: var(--muted); font-size: 13px; }
.profile { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.profile .avatar { width: 60px; height: 60px; font-size: 22px; }
.profile h1 { margin: 0 0 4px; font-size: 22px; }
.profile p { margin: 0; font-size: 14px; color: var(--muted); }
.creator-cta { max-width: 340px; }
.demo-note { padding: 12px 15px; background: #e9f6f8; border-radius: 8px; color: #366570; font-size: 14px; line-height: 1.6; margin-bottom: 24px; }
.sr-only { width: 1px; height: 1px; position: absolute; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (hover: hover) { .affiliate:hover:not(:disabled), .primary:hover { background: #35c9da; } .tile:hover .thumbnail { filter: brightness(1.1); } .genre-card:hover { border-color: var(--accent); } }
@media (min-width: 700px) {
  .header { padding-left: max(32px,calc((100vw - 1120px)/2)); padding-right: max(32px,calc((100vw - 1120px)/2)); }
  .feed-shell { width: min(460px, calc((100dvh - var(--header) - var(--nav)) * .64)); min-width: 320px; }
  .desktop-controls { display: grid; gap: 14px; position: absolute; left: calc(100% + 28px); top: 42%; }
  .desktop-controls button { width: 46px; height: 46px; border: 1px solid #dbe4e7; border-radius: 50%; color: var(--ink); background: white; font-size: 24px; }
  .page { padding-top: 40px; }
}
@media (max-width: 699px) {
  .header { padding-left: 16px; padding-right: 10px; }
  .brand { font-size: 22px; }
  .page { padding: 26px 18px 32px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 12px; }
  .genre-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .genre-card { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
