body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}
main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100vw !important;
  height: calc(100vh - 54px);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-navbar {
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border-bottom: none;
  margin-bottom: 0.5rem;
  min-height: 54px;
  box-shadow: none;
}
.post-navbar ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5vw;
  width: 100%;
  max-width: 420px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.post-navbar li {
  flex: 1 1 0;
  text-align: center;
}
.post-navbar a {
  display: flex;
  align-items: center;
  gap: 1.3em;
  color: #fff;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 0.7rem 0 0.5rem 0;
  border-radius: 16px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border 0.18s;
  border: 2px solid transparent;
  box-shadow: none;
}
.post-navbar a i {
  font-size: 1.45em;
  background: none;
  border-radius: 0;
  width: auto;
  height: auto;
  margin-left: 0.2em;
  margin-right: 0.2em;
  box-shadow: none;
  border: none;
  transition: color 0.15s;
}
.post-navbar a:hover, .post-navbar a.active {
  background: rgba(168,85,247,0.12);
  color: #a855f7;
  border: 2px solid #a855f7;
  box-shadow: none;
}
@media (max-width: 700px) {
  .post-navbar a:hover, .post-navbar a.active {
    background: transparent;
    color: #fff;
    border: 2px solid transparent;
    box-shadow: none;
  }
  .post-navbar a:hover i, .post-navbar a.active i {
    color: #a855f7;
  }
}
@media (min-width: 701px) {
  .post-navbar a:hover, .post-navbar a.active {
    background: rgba(168,85,247,0.12);
    color: #a855f7;
    border: 2px solid #a855f7;
    box-shadow: none;
  }
  .post-navbar a:hover i, .post-navbar a.active i {
    color: #a855f7;
  }
}
.post-layout {
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: calc(100vh - 54px);
  background: #000;
}
.sidebar-nav {
  width:190px;
  min-width: 90px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 35px;
  padding-bottom: 35px;
  border-right: none;
  height: 100%;
  z-index: 10;
  transition: width 0.2s;
  box-shadow: none;
}
.sidebar-nav ul {
  list-style: none;
  padding: 0 0 0 1.2em;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.sidebar-nav li {
  margin-bottom: 0.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 1em;
  color: #fff;
  font-weight: 500;
  font-size: 1.08rem;
  padding: 0.5em 0.5em 0.5em 0.5em;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border 0.18s;
  position: relative;
  width: 100%;
  justify-content: flex-start;
  border: 2px solid transparent;
  box-shadow: none;
}
.sidebar-link i {
  font-size: 1.45em;
  background: none;
  border-radius: 0;
  width: auto;
  height: auto;
  margin-right: 0.2em;
  box-shadow: none;
  border: none;
}
.sidebar-link span {
  white-space: nowrap;
  font-size: 1.05em;
  transition: opacity 0.2s, width 0.2s;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.sidebar-link.home {
  color: #f43f5e;
  font-weight: 700;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(168,85,247,0.12);
  color: #a855f7;
  border: 2px solid #a855f7;
  box-shadow: none;
}
@media (max-width: 700px) {
  .sidebar-nav {
    width: 60px;
    min-width: 50px;
    padding-left: 0;
    background: transparent;
    border-right: none;
    box-shadow: none;
  }
  .sidebar-link {
    justify-content: center;
    padding: 0.7em 0.2em;
    border-radius: 12px;
    border: 2px solid transparent;
  }
  .sidebar-link span {
    opacity: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    display: none !important;
  }
  .sidebar-link:hover, .sidebar-link.active {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid transparent !important;
    box-shadow: none !important;
  }
  .sidebar-link:hover i, .sidebar-link.active i {
    color: #a855f7 !important;
  }
}
@media (min-width: 701px) {
  .sidebar-link span {
    opacity: 1;
    width: auto;
    pointer-events: auto;
  }
  .sidebar-link:hover, .sidebar-link.active {
    background: rgba(168,85,247,0.12);
    color: #a855f7;
    border: 2px solid #a855f7;
    box-shadow: none;
  }
}
.layout {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3vw;
  position: relative;
}
#post-container {
  width: 30vw;
  min-width: 220px;
  max-width: 600px;
  height: 88vh;
  background: #111;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 32px #000a;
  transition: width 0.2s;
}
.media-asset {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-asset.image {
  object-fit: contain;
}
.embed-blur-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.embed-blur-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: blur(12px) brightness(0.7);
  transition: filter 0.2s;
}
.embed-blur-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2.5vw;
  font-weight: 900;
  text-shadow: 0 2px 16px #000, 0 0 8px #000;
  text-align: center;
  letter-spacing: 1px;
  padding: 1vw 2vw;
  background: rgba(0,0,0,0.25);
  border-radius: 1vw;
  pointer-events: none;
  user-select: none;
}
.ui-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
  color: white;
  pointer-events: none;
}
.ui-overlay > * {
  pointer-events: auto;
}
.media-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem;
  padding-bottom: 3.5rem;
}
.text-info {
  max-width: calc(100% - 60px);
}
.action-bar {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  align-items: center;
}
.action-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.2rem;
}
.action-view i {
  font-size: 1.7rem;
  background: #181818;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.3rem;
  box-shadow: 0 2px 8px #000a;
  border: 2px solid #232323;
}
.action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.15s;
}
.action-button:active {
  transform: scale(0.92);
}
.action-button i {
  font-size: 1.7rem;
  background: #181818;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.3rem;
  box-shadow: 0 2px 8px #000a;
  border: 2px solid #232323;
}
.action-profile {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #181818;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px #000a;
  border: 2px solid #232323;
  margin-bottom: 1.2rem;
}
.progress-container {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
#post-container.is-paused .progress-container {
  opacity: 1;
  pointer-events: auto;
}
input[type=range].progress-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  outline: none;
}
input[type=range].progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #a855f7;
  border-radius: 50%;
  border: 2px solid white;
}
#comments-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
#comments-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}
.comments-panel {
  background: #181818;
  width: 420px;
  height: 100vh;
  border-radius: 18px 0 0 18px;
  display: flex;
  flex-direction: column;
  box-shadow: -2px 0 24px #000a;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4, 1.6, .4, 1);
}
#comments-modal.is-open .comments-panel {
  transform: translateX(0);
}
.comments-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.comments-body::-webkit-scrollbar {
  display: none;
}
.comment-text {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  position: relative;
  max-height: 4.5em;
  transition: max-height 0.2s;
}
.comment-text.expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
  max-height: none;
}
.read-more {
  display: inline-block;
  color: #a855f7;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 4px;
}
.post-menu-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  font-size: 1.05rem;
  transition: background 0.15s;
}
.post-menu-btn:hover {
  background: rgba(168,85,247,0.13);
}
.post-menu {
  position: absolute;
  top: 60px;
  right: 18px;
  background: #181818;
  border-radius: 12px;
  box-shadow: 0 4px 24px #000a;
  border: 1.5px solid #232323;
  min-width: 160px;
  display: none;
  z-index: 30;
}
.post-menu.open {
  display: block;
}
.post-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.5em 0;
}
.post-menu li {
  padding: 0.7em 1.2em;
  color: #fff;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.7em;
  cursor: pointer;
  border-bottom: 1px solid #232323;
  transition: background 0.15s, color 0.15s;
}
.post-menu li:last-child {
  border-bottom: none;
}
.post-menu li:hover {
  background: #232323;
  color: #a855f7;
}
.post-menu .menu-report {
  color: #f43f5e;
}
.post-menu .menu-delete {
  color: #f43f5e;
  font-weight: bold;
}
#report-form {
  display: none;
  flex-direction: column;
  gap: 0.7em;
  padding: 1em;
}
#report-form label {
  color: #fff;
  font-weight: 500;
}
#report-form textarea {
  resize: none;
  border-radius: 8px;
  border: 1px solid #232323;
  padding: 0.7em;
  background: #222;
  color: #fff;
}
#report-form button {
  background: #f43f5e;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7em 1.2em;
  font-weight: 600;
  cursor: pointer;
}
#copy-link-notif {
  display: none;
  position: absolute;
  top: -38px;
  right: 0;
  background: #232323;
  color: #fff;
  border-radius: 8px;
  padding: 0.5em 1em;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 8px #000a;
}
.profile-link {
  cursor: pointer;
  transition: box-shadow 0.18s, border 0.18s;
}
.profile-link:hover, .profile-link:focus {
  box-shadow: 0 0 0 3px #a855f7cc;
  border: 2px solid #a855f7;
  outline: none;
  cursor: pointer;
}
.clip-panel-option {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.clip-panel-option:hover, .clip-panel-option:focus {
  background: linear-gradient(90deg, #a855f7 0%, #38bdf8 100%);
  color: #fff;
  box-shadow: 0 2px 12px #a855f7cc, 0 0 0 2px #38bdf8cc;
  outline: none;
}
.clip-panel-option:hover i, .clip-panel-option:focus i {
  color: #fff !important;
  filter: brightness(1.2) drop-shadow(0 0 4px #a855f7cc);
}
.clip-btn-square {
  width:48px;
  height:48px;
  background:#232323;
  border-radius:12px;
  box-shadow:0 2px 8px #000a;
  border:none;
  color:#fff;
  font-size:1.3em;
  transition:background 0.15s;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  display:flex;
  padding:0;
}
.clip-btn-square:hover {
  background:#181818;
  color:#a855f7;
}
.clip-panel-square {
  width:48px;
  height:48px;
  background:#232323;
  border-radius:12px;
  box-shadow:0 2px 12px #000a;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.clip-panel-icon:hover i {
  filter: brightness(1.3);
  transform: scale(1.12);
}
.send-btn-square {
  height:48px;
  min-width:48px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
  font-size:1.05em;
  padding:0 1.2em;
}
