/* Shared button feedback, including controls added to the page later. */
button:not(:disabled){transition:color .16s ease,background-color .16s ease,border-color .16s ease,filter .16s ease,box-shadow .16s ease,transform .18s ease,scale .18s ease,opacity .16s ease}
button:hover:not(:disabled){filter:brightness(1.1)}
button:active:not(:disabled){filter:brightness(.88)}
button:disabled{cursor:not-allowed;opacity:.58}

.empty-state.home-state{inset:0;gap:12px;background:radial-gradient(ellipse at 50% 44%,#171b17 0,#101012 39%,#0e0e10 72%)}
.home-emblem{position:relative;width:78px;height:78px;display:grid;place-items:center;margin-bottom:3px}
.home-emblem::before,.home-emblem::after{content:"";position:absolute;inset:2px;border:1px solid #c7fa703b;border-radius:50%;animation:home-orbit 10s linear infinite}
.home-emblem::after{inset:10px;border-color:#ffffff14;animation-duration:15s;animation-direction:reverse}
.home-emblem i{position:absolute;top:1px;left:35px;width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 11px #c7fa70;transform-origin:4px 38px;animation:home-orbit 8s linear infinite}
.home-emblem i:nth-of-type(2){animation-delay:-2.6s;opacity:.65}.home-emblem i:nth-of-type(3){animation-delay:-5.2s;opacity:.35}
.home-emblem-core{width:43px;height:43px;display:grid;place-items:center;border:1px solid #c7fa7070;border-radius:15px;background:#c7fa7014;color:var(--accent);font:800 28px Manrope;letter-spacing:-2px;box-shadow:0 0 28px #c7fa7019}
.empty-state-copy{text-align:center;max-width:340px}
.empty-state-copy h2{margin:0;font-size:22px;font-weight:600;letter-spacing:-.03em}
.empty-state-copy p{margin:7px 0 0;color:#919198;font-size:11px;line-height:1.8}
.empty-actions{display:flex;justify-content:center;align-items:center;gap:9px;margin-top:5px}
.empty-state .empty-actions button{height:46px;min-height:46px;margin:0;align-self:center}
.empty-actions .primary-button{min-width:190px}
.video-count{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:7px;background:#11150a27;font:600 10px Manrope}
.secondary-button{min-height:42px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:15px;border:1px solid #37373d;border-radius:9px;background:#171719;color:#dedee0;font-size:11px;font-weight:500}
.secondary-button span{color:var(--accent);font-size:14px}
.secondary-button:hover{border-color:#6c7f4b}
.video-controls{display:flex;align-items:center;gap:6px}
.video-delete{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#1212127a;color:#f2dfe0}
.video-delete svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.video-delete:hover{background:#3a1b20;color:#ff9aa2}
.video-delete.is-hidden{display:none}
.video-frame iframe.drive-player{position:absolute;z-index:1;inset:0;width:100%;height:100%;border:0;background:#000}
.drive-mobile-detail{display:none}
.drive-video-post .video-menu{display:none}
.drive-video-post .video-delete{position:absolute;z-index:4;top:0;left:108px}
.drive-video-post .post-info{bottom:112px;padding:0 7px 7px;border-radius:8px;background:linear-gradient(transparent,#0005);pointer-events:none}
.play-toggle{width:44px;height:44px;pointer-events:auto;touch-action:manipulation}
.play-toggle svg{width:16px;height:16px}
.feed.clips-grid-feed{height:100dvh;scroll-snap-type:none;padding:24px 30px 36px}
.clips-page-heading{display:flex;align-items:baseline;justify-content:space-between;max-width:1040px;margin:2px auto 16px;color:#8c8c92}
.clips-page-heading h1{margin:0;color:#f1f1f2;font-size:18px;font-weight:600;letter-spacing:-.02em}
.clips-page-heading span{font-size:10px}
.clips-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;width:min(1040px,100%);margin:0 auto;padding-bottom:26px}
.clip-tile{position:relative;min-width:0;aspect-ratio:1/1;overflow:hidden;border:1px solid #ffffff0c;border-radius:9px;background:#171719}
.clip-thumbnail{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;padding:0;text-align:left;background:#171719;color:white}
.clip-thumbnail>img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease,filter .2s ease}
.clip-thumbnail::after{content:"";position:absolute;inset:25% 0 0;background:linear-gradient(transparent,#000b);opacity:.88;transition:opacity .2s ease}
.clip-thumbnail:hover>img{transform:scale(1.045)}
.clip-tile-play{position:absolute;z-index:1;top:50%;left:50%;width:42px;height:42px;display:grid;place-items:center;border:1px solid #ffffff72;border-radius:50%;background:#10101070;opacity:0;transform:translate(-50%,-50%) scale(.88);transition:opacity .2s ease,transform .2s ease}
.clip-tile-play svg{width:15px;height:15px;fill:#fff}
.clip-thumbnail:hover .clip-tile-play,.clip-thumbnail:focus-visible .clip-tile-play{opacity:1;transform:translate(-50%,-50%) scale(1)}
.clip-tile-caption{position:absolute;z-index:1;left:11px;right:38px;bottom:10px;display:grid;gap:3px;color:#fff;text-shadow:0 1px 4px #000b}
.clip-tile-caption b{font:600 10px Manrope,sans-serif}
.clip-tile-caption span{display:-webkit-box;overflow:hidden;font-size:9px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.clip-delete{position:absolute;z-index:2;top:8px;right:8px;width:30px;height:30px;display:grid;place-items:center;border:1px solid #ffffff45;border-radius:50%;background:#111b;color:white;opacity:.82}
.clip-delete svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.clip-delete:hover{opacity:1;background:#391c21;color:#ff9aa2}
.clip-single-toolbar{width:min(760px,100%);margin:16px auto 0;padding:0 16px}
.clip-single-toolbar{position:sticky;top:8px;z-index:6;height:0;margin:0 auto;padding:0 16px;overflow:visible;pointer-events:none}
.clip-single-toolbar button{pointer-events:auto;box-shadow:0 8px 28px #0008}
.clip-single-feed{scroll-snap-type:y proximity;scroll-behavior:smooth}
.clip-single-feed .video-post{min-height:calc(100dvh - 62px);scroll-snap-align:start;scroll-snap-stop:always}
.clip-single-feed .video-frame{height:min(68vh,620px)}
@keyframes home-orbit{to{transform:rotate(360deg)}}
@media(min-width:941px){
  .sidebar{padding-left:24px;padding-right:20px}
  .search-button{height:47px;font-size:14px}
  .search-button kbd{font-size:11px}
  .nav-item{height:50px;font-size:15px;gap:14px}
  .nav-item svg{width:21px;height:21px}
  .count-badge{font-size:12px}
  .sidebar-footer{font-size:10px}
  .panel-search{font-size:12px}
  .panel-search svg{width:18px;height:18px}
  .login-button{font-size:12px}
  .drive-card{padding:19px 17px 15px}
  .drive-card h2{font-size:17px}
  .drive-card p{font-size:12px}
  .drive-connect{height:38px;font-size:12px}
  .drive-footnote{font-size:10px}
  .right-footer{font-size:10px}
  .video-label{font-size:10px}
  .post-author{font-size:14px}
  .post-author small{font-size:11px}
  .post-caption{font-size:13px;line-height:1.7}
  .post-tags{font-size:12px}
  .sound-line{font-size:11px}
  .action-wrap{font-size:11px}
  .action-btn{width:44px;height:44px}
  .action-btn svg{width:21px;height:21px}
  .action-avatar{width:44px;height:44px}
  .action-btn.follow-action{width:27px;height:27px}
  .empty-state-copy h2{font-size:25px}
  .empty-state-copy p{font-size:13px}
  .empty-actions button{font-size:13px}
  .clips-page-heading h1{font-size:21px}
  .clips-page-heading span{font-size:12px}
  .clip-tile-caption b{font-size:12px}
  .clip-tile-caption span{font-size:11px}
}
@media(max-width:680px){
  .clip-single-toolbar{top:calc(env(safe-area-inset-top) + 56px);padding:0 12px}
  .clip-single-feed .video-post{position:relative;display:flex;align-items:center;justify-content:center;min-height:100dvh;height:100dvh;padding:calc(env(safe-area-inset-top) + 64px) calc(env(safe-area-inset-right) + 68px) calc(env(safe-area-inset-bottom) + 22px) calc(env(safe-area-inset-left) + 12px);gap:8px}
  .clip-single-feed .video-frame{flex:0 1 auto;width:min(100%,360px,38.25dvh);height:auto;max-height:none;max-width:100%;aspect-ratio:9/16;border-radius:14px}
  .clip-single-feed .post-actions{right:calc(env(safe-area-inset-right) + 10px);bottom:50%;transform:translateY(50%);gap:12px}
  .empty-state.home-state{inset:0 0 calc(57px + env(safe-area-inset-bottom));padding:24px 22px;background:radial-gradient(ellipse at 50% 45%,#171b17 0,#101012 45%,#0b0b0c 78%)}
  .home-emblem{width:70px;height:70px}.home-emblem i{left:31px;transform-origin:4px 34px}.home-emblem-core{width:40px;height:40px}
  .empty-state-copy{max-width:300px}.empty-state-copy h2{font-size:20px}.empty-state-copy p{font-size:10px}
  .empty-actions{width:min(100%,300px);flex-direction:column;gap:8px;margin-top:7px}.empty-state .empty-actions button{width:100%;height:46px;min-height:46px;margin:0}
  .drive-video-post .video-delete{top:0;left:106px}
  .drive-video-post{display:block;height:auto;min-height:100dvh;overflow:visible;padding:calc(env(safe-area-inset-top) + 112px) 16px calc(env(safe-area-inset-bottom) + 90px);scroll-snap-align:start}
  .clip-single-feed .video-post.drive-video-post{height:auto;min-height:100dvh}
  .drive-video-post .video-frame,.drive-video-post .post-actions{display:none}
  .drive-video-post .drive-mobile-detail{display:grid;gap:18px;width:min(100%,620px);margin:0 auto}
  .drive-mobile-player{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:16/9;overflow:hidden;border:1px solid #27272d;border-radius:14px;background:#000}
  .drive-mobile-player::after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,#0008);pointer-events:none}
  .drive-mobile-player img{position:absolute;inset:0;width:100%;height:100%}
  .drive-player-backdrop{object-fit:cover;filter:blur(18px) brightness(.38);transform:scale(1.08)}
  .drive-player-poster{z-index:1;object-fit:contain}
  .drive-detail-play{position:absolute;z-index:1;width:54px;height:54px;display:grid;place-items:center;padding-left:3px;border:1px solid #ffffff55;border-radius:50%;background:var(--accent);color:#12150d;font-size:21px;box-shadow:0 8px 32px #0008}
  .drive-detail-copy{display:grid;gap:10px}
  .drive-detail-kicker{color:#888891;font-size:11px;font-weight:700;letter-spacing:.16em}
  .drive-detail-copy h2{margin:0;color:#f4f4f5;font-size:22px;line-height:1.25;font-weight:700;overflow-wrap:anywhere}
  .drive-detail-meta{margin:0;color:#777780;font-size:12px}
  .drive-detail-description{margin:2px 0 0;color:#d6d6d9;font-size:15px;line-height:1.55}
  .drive-detail-tags{justify-self:start;padding:7px 12px;border-radius:20px;background:#211a25;color:#d1a5d4;font-size:12px}
  .drive-detail-actions{display:grid;gap:10px;margin-top:5px}
  .drive-detail-button{min-height:52px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 16px;border:1px solid #323238;border-radius:13px;background:#18181c;color:#f2f2f4;font-size:15px;font-weight:600;text-align:center}
  .drive-detail-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .drive-detail-button:last-child span:first-child{color:var(--accent);font-size:19px}
  .play-toggle{width:40px;height:40px}
  .play-toggle svg{width:15px;height:15px}
  .feed.clips-grid-feed{height:100dvh;padding:calc(env(safe-area-inset-top) + 60px) 2px calc(72px + env(safe-area-inset-bottom))}
  .clips-page-heading{padding:0 10px;margin:0 0 9px}
  .clips-page-heading h1{font-size:14px}.clips-page-heading span{font-size:9px}
  .clips-grid{gap:2px}
  .clip-tile{border:0;border-radius:1px}
  .clip-tile-caption{left:6px;right:29px;bottom:6px;gap:2px}
  .clip-tile-caption b{font-size:8px}.clip-tile-caption span{font-size:7px;-webkit-line-clamp:1}
  .clip-delete{top:4px;right:4px;width:25px;height:25px}
  .clip-delete svg{width:13px;height:13px}
  .clip-tile-play{width:32px;height:32px}
  .clip-single-toolbar{margin-top:calc(env(safe-area-inset-top) + 58px);padding:0 12px}
}
@media(prefers-reduced-motion:reduce){button:not(:disabled){transition:none}.home-emblem::before,.home-emblem::after,.home-emblem i{animation:none}}
