/* Instagram-inspired editorial viewer: real videos, contextual details, no fabricated comments. */
.video-modal { padding: 22px; }
.video-modal .modal-backdrop { background: rgba(2, 2, 7, .91); backdrop-filter: blur(17px); }
.video-modal .modal-panel-live {
  display: grid;
  grid-template-columns: minmax(0, 47%) minmax(0, 53%);
  width: min(1030px, calc(100vw - 44px));
  height: min(840px, calc(100svh - 44px));
  max-height: none;
  border: 1px solid rgba(255, 255, 255, .19);
  border-radius: 19px;
  overflow: hidden;
  background: #17151b;
  box-shadow: 0 32px 105px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 48, 109, .045);
}
.modal-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #020204;
}
.video-modal .modal-player {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  flex: none;
  background: #030305;
}
.video-modal .modal-player video,
.video-modal .modal-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  border: 0;
  background: #030305;
}
.modal-media-label {
  position: absolute;
  top: 21px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 100px;
  background: rgba(10, 7, 13, .55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  pointer-events: none;
}
.modal-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-left: 1px solid rgba(255, 255, 255, .11);
  background: linear-gradient(150deg, #211c24, #19171f 38%, #121017 100%);
  color: #f8f1f5;
}
.video-modal .modal-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  font-size: initial;
  letter-spacing: normal;
}
.modal-profile { display: flex; align-items: center; gap: 12px; min-width: 0; }
.modal-profile-icon {
  position: relative;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  border: 1px solid rgba(255, 126, 162, .55);
  border-radius: 50%;
  background-color: #080408;
  background-image: url('assets/redmoon-eclipse-atmosphere.webp');
  background-size: 270% auto;
  background-position: 70% 60%;
  background-repeat: no-repeat;
  box-shadow: 0 0 13px rgba(243, 20, 69, .22), inset 0 0 4px rgba(0, 0, 0, .45);
}
.modal-profile-icon::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1.6px solid transparent;
  border-top-color: rgba(255, 65, 113, .68);
  border-right-color: #ff225a;
  border-radius: 50%;
  filter: drop-shadow(0 0 3px rgba(255, 24, 80, .8));
  transform: rotate(21deg);
}
.modal-profile > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.modal-profile strong { font-size: 13px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.modal-profile small { font-size: 9px; font-weight: 750; letter-spacing: .1em; color: #a89ba8; }
.video-modal .modal-top button {
  display: grid;
  place-items: center;
  flex: 0 0 37px;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .035);
  transition: background .2s, transform .2s;
}
.video-modal .modal-top button:hover { background: rgba(249, 31, 94, .22); transform: rotate(90deg); }
.modal-info-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: clamp(27px, 3.1vw, 44px) clamp(24px, 3.2vw, 46px);
  scrollbar-color: #5b3245 transparent;
  scrollbar-width: thin;
}
.modal-section-label { display: flex; align-items: center; gap: 11px; color: #ed9bb4; font-size: 10px; font-weight: 850; letter-spacing: .17em; margin: 0 0 46px; }
.modal-label-rule { display: block; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 95, 145, .45), transparent); }
.modal-tag { margin: 0 0 18px; font-size: 10px; font-weight: 800; letter-spacing: .15em; color: #ff769e; }
.modal-info-body h2 { font-size: clamp(39px, 3.7vw, 58px); line-height: 1.04; letter-spacing: -.065em; font-weight: 800; margin: 0 0 27px; color: #fff; text-wrap: balance; }
.modal-description { max-width: 380px; font-size: 14px; line-height: 1.75; color: #c0b5bf; margin: 0; }
.modal-details > summary { display: none; }
.modal-source-block { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 43px; padding-top: 22px; }
.modal-source-block span { display: block; color: #f7a7bd; font-size: 9px; font-weight: 800; letter-spacing: .17em; margin-bottom: 12px; }
.modal-source-block p { font-size: 12px; line-height: 1.7; color: #958c99; margin: 0; max-width: 365px; }
.video-modal .modal-bottom {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 22px 26px 24px;
  background: #131018;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.video-modal .modal-bottom a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  border-radius: 9px;
  background: linear-gradient(100deg, #f51c59, #c9144a);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .09em;
  transition: filter .2s, transform .2s;
}
.video-modal .modal-bottom a:hover { color: #fff; filter: brightness(1.12); transform: translateY(-1px); }
.video-modal .modal-sound {
  align-self: flex-start;
  border: 0;
  background: transparent;
  padding: 6px 0;
  font-size: 9px;
  letter-spacing: .14em;
  color: #d2bbca;
}
.video-modal .modal-sound:hover { color: #fff; }
.video-modal .external-reel { width: 100%; height: 100%; max-width: none; }
@media (max-width: 760px) {
  .video-modal {
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }
  .video-modal .modal-panel-live {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    width: min(100%, 520px);
    height: calc(100svh - 16px);
    height: calc(100dvh - max(8px, env(safe-area-inset-top)) - max(8px, env(safe-area-inset-bottom)));
    border-radius: 15px;
  }
  .modal-media { grid-row: 2; height: auto; min-height: 0; }
  .modal-info { display: contents; }
  .video-modal .modal-top { grid-row: 1; padding: 5px 12px; background: #17141c; }
  .modal-profile-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .modal-profile strong { font-size: 12px; }
  .modal-profile small { font-size: 9px; letter-spacing: .06em; }
  .video-modal .modal-top button { width: 44px; height: 44px; flex-basis: 44px; }
  .modal-info-body { grid-row: 3; max-height: 32svh; padding: 12px 16px 0; background: #19151e; border-top: 1px solid rgba(255,255,255,.1); }
  .modal-section-label, .modal-tag { display: none; }
  .modal-info-body h2 { font-size: 18px; line-height: 1.25; letter-spacing: -.03em; margin: 0; text-wrap: pretty; }
  .modal-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; color: #f7a7bd; font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; }
  .modal-details > summary::-webkit-details-marker { display: none; }
  .modal-details > summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .2s; }
  .modal-details[open] > summary svg { transform: rotate(180deg); }
  .modal-details[open] > div { padding-bottom: 14px; }
  .modal-details > summary:focus-visible { outline: 2px solid #ff95b1; outline-offset: -2px; }
  .modal-description { max-width: none; font-size: 14px; line-height: 1.6; }
  .modal-source-block { display: none; }
  .video-modal .modal-bottom { grid-row: 4; flex-direction: row; align-items: center; padding: 8px 12px; gap: 12px; }
  .video-modal .modal-bottom a { padding: 10px 12px; min-height: 44px; flex: 1; font-size: 10px; letter-spacing: .04em; }
  .video-modal .modal-sound { display: flex; align-items: center; min-height: 44px; flex: 0 0 auto; align-self: center; font-size: 10px; letter-spacing: .04em; }
  .modal-media-label { display: none; }
}
@media (max-width: 760px) and (max-height: 500px) {
  .video-modal .modal-top { padding-block: 0; }
  .modal-info-body { padding-top: 6px; max-height: 28svh; }
  .modal-info-body h2 { font-size: 15px; }
  .video-modal .modal-bottom { padding-block: 4px; }
}
