/* Desktop layout. The vertical video feed keeps its original aspect ratio. */
@media (min-width: 768px) {
  #profileSection {
    z-index: 95;
    max-width: none;
    margin: 0;
    padding: 0 24px 48px;
  }
  body.allo-light-theme #profileSection { background: #f5f7fb; }
  #profileSection .profile-page-header {
    top: 0;
    min-height: 70px;
    margin: 0 -24px 24px;
    padding: 4px max(24px, calc((100vw - 1280px) / 2));
  }
  #profileSection .profile-desktop-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    align-items: start;
    gap: 14px 24px;
    width: min(100%, 1280px);
    margin: 0 auto;
  }
  #profileSection .profile-desktop-layout > .profile-card {
    grid-column: 1;
    grid-row: 1 / span 8;
    position: sticky;
    top: 86px;
    align-self: start;
    min-width: 0;
    margin: 0;
  }
  #profileSection .profile-desktop-layout > :not(.profile-card) {
    grid-column: 2;
    min-width: 0;
  }
  #profileSection .profile-owner-tabs {
    top: 70px;
    margin: 0;
    border: 1px solid #303846;
    border-radius: 14px;
  }
  body.allo-light-theme #profileSection .profile-owner-tabs { border-color: #d8e0eb; }
  #profileSection .profile-owner-tab-panel { min-width: 0; }
  #profileSection .my-videos-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 16px !important;
  }
  #profileSection .my-video-card { max-width: none; margin: 0; }
  #profileSection .my-video-card .video-preview-wrapper > img,
  #profileSection .my-video-card .profile-video-static-preview { height: clamp(180px, 22vw, 280px) !important; }
  .profile-edit-dialog { width: min(760px, 100%); }

  .catalog-body { width: min(100%, 1180px); padding: 24px 28px 72px; }
  .catalog-category-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  .catalog-page .search-video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .catalog-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .upload-drawer { right: -800px; width: min(760px, calc(100vw - 64px)); }
  .upload-drawer.is-active { right: 0; }
  .upload-drawer .drawer-header { padding: 20px 32px; }
  .upload-drawer .drawer-content { padding: 24px 32px !important; }
  .upload-drawer .form-section-modern { max-width: 680px; margin-inline: auto; }

  .information-hub-body { width: min(100%, 1160px); margin-inline: auto; padding: 24px 28px 64px; }
  .information-film-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .public-profile-body { width: min(100%, 1100px); }
  .public-profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 10px; }
}

@media (min-width: 1100px) {
  #profileSection .profile-desktop-layout { grid-template-columns: 340px minmax(0, 1fr); gap: 18px 30px; }
  .catalog-category-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .catalog-page .search-video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .information-film-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .public-profile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .video-feed-container { width: min(450px, 100%); margin-inline: auto; }
  .allo-nav {
    left: max(20px, calc(50% - 340px));
    right: auto;
    top: 50%;
    bottom: auto;
    display: flex;
    flex-direction: column;
    width: 68px;
    gap: 8px;
    padding: 12px 8px;
    border: 1px solid #303846;
    border-radius: 19px;
    transform: translateY(-50%);
  }
  .allo-nav button, .allo-nav > a {
    position: relative;
    flex: 0 0 48px;
    width: 50px;
    min-width: 0;
    max-width: none;
    border-radius: 12px;
  }
  .allo-nav button:hover, .allo-nav > a:hover { background: rgba(255,255,255,.12); }
  .allo-nav .allo-nav__publish { width: 50px; height: 48px; }
}
