@import url('https://fonts.googleapis.com/css2?family=Grand+Hotel&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --gi-bg: #000;
  --gi-fg: #f5f5f5;
  --gi-muted: #a8a8a8;
  --gi-line: #262626;
  --gi-blue: #0095f6;
  --gi-red: #ff3040;
  --gi-ring: conic-gradient(from 180deg, #f9ce34, #ee2a7b, #6228d7, #f9ce34);
  --gi-max: 470px;
  --gi-tab: 50px;
  --gi-safe: env(safe-area-inset-bottom, 0px);
}
html.gi-light {
  --gi-bg: #fff; --gi-fg: #111; --gi-muted: #737373; --gi-line: #dbdbdb;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #000; color: var(--gi-fg); }
html.gi-light, html.gi-light body { background: #fafafa; }
body.gi-body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh; -webkit-font-smoothing: antialiased;
}
.gi-app {
  max-width: var(--gi-max); margin: 0 auto; min-height: 100vh;
  background: var(--gi-bg);
  border-left: 1px solid var(--gi-line); border-right: 1px solid var(--gi-line);
  padding-bottom: calc(var(--gi-tab) + var(--gi-safe) + 10px);
}
.gi-topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  height: 54px; padding: 0 14px;
  background: rgba(0,0,0,.86); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gi-line);
}
html.gi-light .gi-topbar { background: rgba(255,255,255,.9); }
.gi-logo {
  font-family: "Grand Hotel", cursive; font-size: 32px;
  color: inherit; text-decoration: none; line-height: 1;
}
.gi-top-actions { display: flex; gap: 6px; }
.gi-icon-btn {
  width: 40px; height: 40px; border: 0; background: transparent;
  color: inherit; display: grid; place-items: center; text-decoration: none;
}
.gi-stories { padding: 10px 0 8px; border-bottom: 1px solid var(--gi-line); }
.gi-stories-track {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 2px 12px 6px; scrollbar-width: none;
}
.gi-stories-track::-webkit-scrollbar { display: none; }
.gi-story { flex: 0 0 76px; width: 76px; text-align: center; text-decoration: none; color: inherit; }
.gi-story-ring {
  width: 66px; height: 66px; margin: 0 auto 5px; border-radius: 50%;
  padding: 2px; background: var(--gi-ring); display: block;
}
.gi-story-ring img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 2.5px solid var(--gi-bg); display: block;
}
.gi-story-plus { position: relative; background: #333; }
.gi-story-plus i {
  position: absolute; right: 0; bottom: 0; width: 18px; height: 18px;
  border-radius: 50%; background: var(--gi-blue); color: #fff;
  font-style: normal; font-size: 14px; display: grid; place-items: center;
  border: 2px solid var(--gi-bg);
}
.gi-story em {
  font-style: normal; font-size: 11px; color: var(--gi-muted);
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gi-card { border-bottom: 1px solid var(--gi-line); padding-bottom: 12px; margin-bottom: 6px; }
.gi-card-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; }
.gi-card-user {
  display: flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none; font-weight: 600; font-size: 13.5px;
}
.gi-card-user img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.gi-dots { color: var(--gi-muted); }
.gi-card-media {
  position: relative; background: #111; min-height: 280px;
  aspect-ratio: 4 / 5; overflow: hidden;
}
.gi-card-media img, .gi-card-media video, .gi-card-media iframe {
  width: 100%; height: 100%; object-fit: cover; display: block; border: 0;
}
.gi-mute {
  position: absolute; right: 10px; bottom: 10px;
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; cursor: pointer;
}
.gi-heart-pop {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 92px; color: #fff; opacity: 0; transform: scale(.4);
  pointer-events: none; text-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.gi-heart-pop.go { animation: giPop .7s ease forwards; }
@keyframes giPop {
  20% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1); }
}
.gi-card-bar { display: flex; align-items: center; gap: 14px; padding: 10px 12px 4px; }
.gi-like, .gi-ico {
  background: none; border: 0; color: inherit; font-size: 22px;
  cursor: pointer; text-decoration: none;
}
.gi-like.is-on { color: var(--gi-red); }
.gi-save { margin-left: auto; }
.gi-card-likes { padding: 0 12px; font-size: 14px; font-weight: 600; }
.gi-card-cap { padding: 4px 12px 0; font-size: 14px; line-height: 1.4; }
.gi-card-time { display: block; padding: 6px 12px 0; font-size: 11px; color: var(--gi-muted); text-transform: uppercase; }
.gi-profile { padding: 16px 16px 8px; }
.gi-profile-row { display: flex; align-items: center; gap: 18px; }
.gi-avatar-wrap {
  width: 86px; height: 86px; flex: 0 0 86px; border-radius: 50%;
  padding: 3px; background: var(--gi-ring);
}
.gi-avatar {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gi-bg); display: block;
}
.gi-stats { list-style: none; display: flex; flex: 1; justify-content: space-around; text-align: center; }
.gi-stats strong { display: block; font-size: 17px; }
.gi-stats span { font-size: 13px; color: var(--gi-muted); }
.gi-bio { margin-top: 14px; }
.gi-bio h1 { font-size: 14px; font-weight: 600; }
.gi-handle { color: var(--gi-muted); font-size: 13px; margin: 2px 0 6px; }
.gi-bio p { font-size: 14px; line-height: 1.4; margin-top: 2px; }
.gi-link { color: #e0f1ff; font-size: 14px; font-weight: 600; text-decoration: none; }
.gi-actions { display: flex; gap: 6px; margin-top: 14px; }
.gi-btn {
  flex: 1; height: 32px; border-radius: 8px; border: 1px solid var(--gi-line);
  background: #363636; color: #fff; font-weight: 600; font-size: 14px;
  display: grid; place-items: center; text-decoration: none; cursor: pointer;
}
.gi-btn-primary { background: var(--gi-blue); border-color: var(--gi-blue); color: #fff; }
.gi-profile-tabs {
  display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: 1px solid var(--gi-line);
}
.gi-profile-tabs button {
  height: 44px; border: 0; background: transparent; color: var(--gi-muted);
  font-size: 18px; cursor: pointer; border-bottom: 1px solid transparent;
}
.gi-profile-tabs button.is-active { color: var(--gi-fg); border-bottom-color: var(--gi-fg); }
.gi-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px; }
.gi-cell { position: relative; aspect-ratio: 1; background: #1a1a1a; cursor: pointer; overflow: hidden; }
.gi-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gi-cell-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gi-muted); }
.gi-badge { position: absolute; top: 6px; right: 6px; color: #fff; text-shadow: 0 1px 3px #000; }
.gi-likes { position: absolute; left: 6px; bottom: 6px; color: #fff; font-size: 12px; font-weight: 600; text-shadow: 0 1px 3px #000; }
.gi-empty { padding: 48px 20px; text-align: center; color: var(--gi-muted); }
.gi-edit { margin: 8px 16px 16px; padding: 14px; border: 1px solid var(--gi-line); border-radius: 12px; }
.gi-edit label { display: block; font-size: 13px; margin-bottom: 10px; color: var(--gi-muted); }
.gi-edit input, .gi-edit textarea {
  width: 100%; margin-top: 4px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--gi-line); background: #121212; color: var(--gi-fg);
}
.gi-tabbar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(100%, var(--gi-max));
  height: calc(var(--gi-tab) + var(--gi-safe));
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--gi-bg); border-top: 1px solid var(--gi-line);
  z-index: 40; padding-bottom: var(--gi-safe);
}
.gi-tab {
  display: grid; place-items: center; color: var(--gi-fg); text-decoration: none;
  border: 0; background: transparent; cursor: pointer;
}
.gi-tab-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gi-fg); }
.gi-post-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.gi-post-ava { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.gi-post-media img, .gi-post-media video, .gi-post-media iframe { width: 100%; display: block; border: 0; background: #000; }
.gi-post-body { padding: 12px 16px 20px; }
.gi-search { padding: 10px 14px; }
.gi-search input {
  width: 100%; height: 36px; border-radius: 10px; border: 0;
  background: #262626; color: #fff; padding: 0 12px;
}
.gi-modal[hidden] { display: none !important; }
.gi-modal { position: fixed; inset: 0; background: #000; z-index: 80; display: grid; place-items: center; }
.gi-modal-close {
  position: absolute; top: 10px; left: 10px; background: transparent;
  border: 0; color: #fff; font-size: 28px; cursor: pointer; z-index: 90;
}
.gi-modal-card { width: min(470px, 100%); height: 100%; }
.gi-modal-media { height: 100%; background: #000; }
.gi-modal-media img, .gi-player, .gi-player-frame {
  width: 100%; height: 100%; object-fit: contain; background: #000; border: 0; display: block;
}
.gi-modal.is-reel .gi-player, .gi-modal.is-reel .gi-player-frame, .gi-modal.is-reel img {
  object-fit: cover; height: 100vh;
}
.gi-modal-meta {
  position: absolute; left: 0; right: 56px; bottom: 70px; padding: 16px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.gi-modal-user { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.gi-modal-user img { width: 32px; height: 32px; border-radius: 50%; }
.gi-modal-caption { font-size: 14px; color: #eee; }
.gi-no-media { min-height: 240px; display: grid; place-items: center; color: #bbb; padding: 24px; text-align: center; }
.gi-reel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 26px; cursor: pointer; z-index: 90;
}
.gi-reel-prev { left: 6px; } .gi-reel-next { right: 6px; }
extra

.gi-list { padding: 0 0 20px; }
.gi-row {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 14px; color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--gi-line);
}
.gi-row img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.gi-row strong { display: block; font-size: 14px; }
.gi-row span { font-size: 12px; color: var(--gi-muted); }
.gi-explore .gi-cell { display: block; color: inherit; }
.comment-respond, .comments-area { padding: 12px 16px 24px; }
.comment-respond textarea, .comment-respond input {
  width: 100%; margin: 6px 0; padding: 8px;
  background: #121212; color: #fff; border: 1px solid #262626; border-radius: 8px;
}

.gi-engage { padding: 0 12px 8px; }
.gi-fake-likes {
  display: flex; align-items: center; gap: 6px;
  margin: 8px 0; font-size: 12px; color: var(--gi-muted);
}
.gi-fake-likes input {
  width: 90px; height: 30px; border-radius: 8px; border: 1px solid var(--gi-line);
  background: #121212; color: #fff; padding: 0 8px;
}
.gi-fake-likes button, .gi-cmt-form button {
  height: 30px; padding: 0 10px; border: 0; border-radius: 8px;
  background: var(--gi-blue); color: #fff; font-weight: 600; cursor: pointer;
}
.gi-cmt { font-size: 14px; margin: 4px 0; }
.gi-cmt-form { display: flex; gap: 6px; margin-top: 8px; }
.gi-cmt-form input[name="comment"] {
  flex: 1; height: 34px; border: 0; border-bottom: 1px solid var(--gi-line);
  background: transparent; color: inherit; padding: 0 4px;
}
.gi-cmt-login { font-size: 13px; color: var(--gi-muted); margin-top: 8px; }
