.shorts-page { overflow: hidden; background: #050609; }
.shorts-main { height: calc(100svh - 70px - 76px); min-height: 520px; background: radial-gradient(circle at 50% 15%, #1a1d27, #07080b 58%); }
.shorts-feed { position: relative; width: 100%; height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; outline: 0; }
.shorts-feed::-webkit-scrollbar { display: none; }
.shorts-tabs { position: fixed; z-index: 40; top: 82px; left: 50%; width: min(430px, calc(100% - 24px)); height: 45px; padding: 0 12px; display: grid; grid-template-columns: 35px 1fr 35px; align-items: center; transform: translateX(-50%); color: white; text-shadow: 0 2px 10px #000; pointer-events: none; }
.shorts-tabs > * { pointer-events: auto; }
.shorts-tabs > a, .shorts-tabs > button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: rgba(7,8,12,.45); color: white; cursor: pointer; }
.shorts-tabs svg { width: 18px; }
.shorts-tabs > span { justify-self: center; display: flex; gap: 24px; font: 800 12px/1 var(--body); }
.shorts-tabs > span b:first-child { position: relative; }
.shorts-tabs > span b:first-child::after { content: ""; position: absolute; right: 8px; bottom: -8px; left: 8px; height: 2px; background: var(--accent); }
.short-item { height: 100%; min-height: 520px; display: grid; place-items: center; scroll-snap-align: start; scroll-snap-stop: always; }
.short-video-shell { position: relative; width: min(430px, 100%); height: 100%; overflow: hidden; background: #000; box-shadow: 0 0 80px rgba(0,0,0,.55); }
.short-video-shell video { width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }
.short-shade { position: absolute; z-index: 2; inset: 0; background: linear-gradient(0deg, rgba(3,4,7,.94) 0%, rgba(3,4,7,.12) 48%, rgba(3,4,7,.42) 100%); pointer-events: none; }
.short-loading { position: absolute; z-index: 5; inset: 0; display: grid; place-items: center; background: rgba(4,5,8,.55); transition: opacity .18s; }
.short-loading.ready { opacity: 0; pointer-events: none; }
.short-loading.error { color: #ff667d; cursor: pointer; }
.short-loading.error { grid-auto-flow: row; gap: 10px; align-content: center; justify-items: center; }
.short-loading.error span { color: #f0f2f6; font: 800 10px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.short-loading.error svg { animation: none; }
.short-loading svg { width: 27px; animation: short-spin .8s linear infinite; }
@keyframes short-spin { to { transform: rotate(360deg); } }
.short-center-play { position: absolute; z-index: 8; inset: 0; margin: auto; width: 66px; height: 66px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(5,6,9,.68); color: white; opacity: 0; transform: scale(.88); transition: .16s; pointer-events: none; }
.short-center-play.show { opacity: 1; transform: none; }
.short-center-play svg { width: 24px; fill: white; }
.short-copy { position: absolute; z-index: 6; right: 78px; bottom: 28px; left: 20px; color: white; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.short-copy > span { color: var(--accent-strong); font: 850 8px/1 var(--body); letter-spacing: .11em; }
.short-copy h1 { margin: 10px 0 7px; font: 900 34px/.92 var(--display); text-transform: uppercase; }
.short-copy p { margin: 0 0 10px; font: 550 11px/1.45 var(--body); }
.short-copy small { color: #c1c5ce; font: 700 8px/1 var(--body); }
.short-actions { position: absolute; z-index: 7; right: 13px; bottom: 34px; display: grid; gap: 15px; }
.short-actions button, .short-actions a { min-width: 48px; display: grid; justify-items: center; gap: 5px; border: 0; background: transparent; color: white; font: 750 7px/1 var(--body); cursor: pointer; text-shadow: 0 2px 8px #000; }
.short-actions svg { width: 27px; height: 27px; filter: drop-shadow(0 2px 5px #000); }
.short-actions button.liked svg { fill: var(--accent); color: var(--accent); }
.short-progress { position: absolute; z-index: 9; right: 0; bottom: 0; left: 0; height: 3px; background: rgba(255,255,255,.18); }
.short-progress i { display: block; width: 0; height: 100%; background: var(--accent); }
.short-toast { position: fixed; z-index: 600; right: 20px; bottom: 92px; padding: 12px 15px; border-left: 2px solid var(--accent); background: #151820; color: white; font: 700 9px/1 var(--body); opacity: 0; transform: translateY(8px); transition: .18s; pointer-events: none; }
.short-toast.show { opacity: 1; transform: none; }

.shorts-preview-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.shorts-preview-card { position: relative; min-height: 330px; overflow: hidden; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0d1016; }
.shorts-preview-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.shorts-preview-card:hover > img { transform: scale(1.025); }
.shorts-preview-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,5,8,.96), transparent 72%); }
.shorts-preview-card > div { position: absolute; z-index: 2; right: 14px; bottom: 14px; left: 14px; }
.shorts-preview-card small { color: var(--accent); font: 850 8px/1 var(--body); letter-spacing: .08em; }
.shorts-preview-card h3 { margin: 7px 0 0; font: 850 23px/.95 var(--display); text-transform: uppercase; }
.shorts-preview-card .media-play { position: absolute; z-index: 3; inset: 0; width: 48px; height: 48px; margin: auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.48); border-radius: 50%; background: rgba(5,6,9,.72); color: white; transition: .18s; }
.shorts-preview-card:hover .media-play { transform: scale(1.08); background: var(--accent); border-color: var(--accent); }
.shorts-preview-card .media-play svg { width: 18px; fill: currentColor; }

@media (max-width: 900px) {
  .shorts-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .shorts-main { height: calc(100svh - 66px - 67px); }
  .shorts-tabs { top: 72px; }
  .short-video-shell { width: 100%; }
  .short-copy h1 { font-size: 31px; }
  .shorts-preview-grid { display: flex; overflow-x: auto; margin-right: -14px; border-left: 0; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .shorts-preview-card { flex: 0 0 74vw; min-height: 340px; border-left: 1px solid var(--line); scroll-snap-align: start; }
}
