* { box-sizing: border-box; }
html { background: #08080a; color-scheme: dark; }
body { margin: 0; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; }
.scene {
  position: relative; isolation: isolate; display: grid; place-items: center;
  min-height: 100vh; min-height: 100svh; padding: 20px; overflow: hidden;
  background: radial-gradient(ellipse at 20% 30%, rgb(254 44 85 / 5%), transparent 45%), radial-gradient(ellipse at 80% 75%, rgb(37 244 238 / 4%), transparent 45%), #08080a;
}
.reel {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between;
  width: min(430px, 100%, calc((100svh - 40px) * .5625)); min-width: min(310px, 100%);
  min-height: min-content; aspect-ratio: 9 / 16; gap: 100px; padding: 23px 20px 22px; overflow: hidden;
  border: 1px solid rgb(255 255 255 / 14%); border-radius: 16px; background: #11171d;
  box-shadow: 0 28px 90px rgb(0 0 0 / 65%);
}
.reel__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.reel__image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.reel::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgb(0 0 0 / 52%), transparent 24%, transparent 40%, rgb(0 0 0 / 38%) 60%, rgb(0 0 0 / 92%) 100%);
}
.reel__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; flex-shrink: 0; text-shadow: 0 2px 8px rgb(0 0 0 / 25%); }
.brand { margin: 0; font-size: 1.0625rem; font-weight: 900; line-height: 1.2; letter-spacing: -.06em; text-shadow: -1px 0 #25f4ee, 1px 0 #fe2c55; }
.feed-label { position: relative; padding: 0 0 9px; font-size: 1rem; font-weight: 750; line-height: 1.3; }
.feed-label::after { content: ""; position: absolute; width: 28px; height: 3px; bottom: 0; left: calc(50% - 14px); border-radius: 3px; background: #fff; }
.photo-label { justify-self: end; display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid rgb(255 255 255 / 28%); border-radius: 6px; font-size: .875rem; line-height: 1; }
.photo-label svg { width: 14px; height: 14px; flex: 0 0 auto; }
.feed-content { display: grid; grid-template-columns: minmax(0, 1fr) 52px; align-items: end; gap: 18px 14px; flex-shrink: 0; }
.post { min-width: 0; text-shadow: 0 2px 12px rgb(0 0 0 / 35%); }
.post__author { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border: 2px solid #fff; border-radius: 50%; background: #fff; color: #09090c; font-size: 1.25rem; line-height: 1; font-weight: 900; text-shadow: -1px 0 #25f4ee, 1px 0 #fe2c55; box-shadow: 2px 1px 0 #fe2c55, -2px -1px 0 #25f4ee; }
.post__handle { font-size: 1rem; line-height: 1.3; font-weight: 750; }
.post__caption { margin: 0; font-size: clamp(1.125rem, 2.5vw, 1.375rem); line-height: 1.3; font-weight: 650; letter-spacing: -.02em; }
.post__tags { margin: 9px 0 0; color: #f0f0f2; font-size: .875rem; font-weight: 500; line-height: 1.5; }
.action-rail { display: flex; flex-direction: column; align-items: center; gap: 17px; padding-bottom: 2px; }
.rail-action {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 52px; min-height: 58px;
  padding: 0; border: 0; background: transparent; color: #fff; text-decoration: none; cursor: pointer;
  font-size: .875rem; font-weight: 600; line-height: 1.2; text-align: center; text-shadow: 0 2px 6px rgb(0 0 0 / 60%);
}
.rail-action svg { width: 29px; height: 29px; filter: drop-shadow(0 2px 4px rgb(0 0 0 / 32%)); }
.rail-action span { max-width: 100%; overflow-wrap: anywhere; }
.rail-action:focus-visible { outline: 2px solid #25f4ee; outline-offset: 5px; border-radius: 6px; }
.rail-action[aria-pressed="true"] svg { color: #ff4268; animation: like-pop 230ms ease-out; }
.action { grid-column: 1 / -1; width: 100%; }
.open {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px;
  padding: 14px 20px; border: 0; border-radius: 9px; background: #fe2c55; color: #fff;
  box-shadow: -3px 0 0 #25f4ee; font-size: 1.25rem; font-weight: 750; line-height: 1.3; text-align: center; text-decoration: none;
  transition: transform 140ms ease, background-color 140ms ease;
}
.open svg { flex: 0 0 auto; width: 16px; height: 19px; }
.open span { min-width: 0; overflow-wrap: anywhere; }
.open:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.open:active { transform: scale(.98); }
.action__error { margin: 12px 0 0; color: #fff; font-size: .875rem; line-height: 1.5; }
.still-post { padding: 70px 0 8px; }
.still-post .post__caption { max-width: 300px; }
.landscape-notice {
  position: fixed; z-index: 10; top: max(22px, env(safe-area-inset-top)); right: 22px;
  width: min(360px, calc(100% - 28px)); overflow: hidden; border: 1px solid rgb(255 255 255 / 18%); border-radius: 18px;
  background: #1b1b20; box-shadow: 0 18px 50px rgb(0 0 0 / 45%); animation: notice-in 240ms ease-out both;
}
.landscape-notice[hidden] { display: none; }
.notice-link { display: flex; align-items: center; gap: 12px; padding: 12px 52px 12px 12px; color: #fff; text-decoration: none; }
.notice-link:focus-visible { outline: 3px solid #25f4ee; outline-offset: -4px; border-radius: 18px; }
.notice-picture { display: block; flex: 0 0 76px; width: 76px; height: 88px; overflow: hidden; border-radius: 11px; }
.notice-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.notice-copy { display: block; min-width: 0; }
.notice-kicker { display: block; margin-bottom: 5px; color: #b8b8c0; font-size: .875rem; font-weight: 550; line-height: 1.25; }
.notice-title { display: block; font-size: 1.0625rem; font-weight: 750; line-height: 1.25; letter-spacing: -.015em; }
.notice-caption { display: block; margin-top: 5px; color: #e0e0e5; font-size: .875rem; line-height: 1.35; }
.notice-close { position: absolute; top: 7px; right: 5px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #c6c6ce; cursor: pointer; }
.notice-close svg { width: 18px; height: 18px; }
.notice-close:focus-visible { outline: 2px solid #25f4ee; outline-offset: -3px; }
.landscape-notice .action__error { margin: 0 14px 14px; }
@media (hover: hover) {
  .open:hover { background: #ed1e48; transform: translateY(-1px); }
  .rail-action:hover { opacity: .82; }
  .notice-link:hover .notice-title { color: #ff809b; }
  .notice-close:hover { color: #fff; background: rgb(255 255 255 / 6%); }
}
@media (max-width: 600px) {
  .scene { padding: 0; }
  .reel { width: 100%; min-width: 0; min-height: 100vh; min-height: 100svh; aspect-ratio: auto; padding: max(24px, env(safe-area-inset-top)) 20px max(26px, env(safe-area-inset-bottom)); border: 0; border-radius: 0; box-shadow: none; }
  .reel__top { gap: 8px; }
  .post__caption { font-size: 1.3125rem; }
  .landscape-notice { top: max(73px, calc(env(safe-area-inset-top) + 59px)); right: 14px; left: 14px; margin-inline: auto; }
}
@media (max-width: 350px) {
  .reel { padding-inline: 16px; }
  .reel__top { grid-template-columns: 1fr auto; }
  .photo-label { display: none; }
  .feed-content { gap: 16px 10px; grid-template-columns: minmax(0, 1fr) 48px; }
  .rail-action { width: 48px; }
  .notice-picture { flex-basis: 60px; width: 60px; height: 80px; }
  .notice-link { gap: 10px; padding-right: 48px; }
}
@media (max-height: 540px) and (min-width: 601px) {
  .reel { min-width: 0; width: min(430px, 100%); min-height: calc(100svh - 40px); aspect-ratio: auto; gap: 70px; }
  .landscape-notice { top: 12px; }
}
@keyframes notice-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes like-pop { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .open { transition: none; } .landscape-notice, .rail-action[aria-pressed="true"] svg { animation: none; } }
