 * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: Arial, Helvetica, sans-serif;
      background: #ffffff;
      color: #0f0f0f;
    }
html, body {
  max-width: 100%;
  overflow-x: hidden;
  /* font-family: 'Poppins', sans-serif; */
}

    button,
    input {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    img,
    video {
      width: 100%;
      display: block;
    }

    /* =============================
       HEADER
    ============================= */

    .topbar {
      position: sticky;
      top: 0;
      z-index: 1000;

      height: 64px;
      padding: 0 20px;

      display: flex;
      align-items: center;
      gap: 18px;

      background: rgba(255,255,255,.96);
      border-bottom: 1px solid #eee;
      backdrop-filter: blur(10px);
    }

    .menu-btn {
      width: 42px;
      height: 42px;
      border: 0;
      background: transparent;
      border-radius: 50%;
      font-size: 22px;
    }

    .menu-btn:hover {
      background: #f2f2f2;
    }

    .logo {
      font-size: 21px;
      font-weight: 800;
      white-space: nowrap;
    }

    .logo img {
      /* background: #ff0033;
      color: #fff; */
      /* padding: 4px 7px;
      border-radius: 7px;
      margin-right: 3px; */
      width: 30px;
    }

    .search-bar {
      max-width: 650px;
      flex: 1;
      margin: 0 auto;

      display: flex;
      height: 42px;
    }

    .search-bar input {
      flex: 1;
      min-width: 0;
      padding: 0 16px;

      border: 1px solid #ccc;
      border-radius: 22px 0 0 22px;
      outline: none;
      font-size: 15px;
    }

    .search-bar input:focus {
      border-color: #1c62b9;
    }

    .search-button {
      width: 64px;
      border: 1px solid #ccc;
      border-left: 0;

      border-radius: 0 22px 22px 0;

      background: #f8f8f8;
      font-size: 18px;
    }

    .search-button:hover {
      background: #eee;
    }

    .header-btn {
      border: 0;
      background: transparent;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      font-size: 19px;
    }

    .header-btn:hover {
      background: #f2f2f2;
    }


    /* =============================
       LAYOUT
    ============================= */

    .page {
      display: flex;
      min-height: calc(100vh - 64px);
    }

    /* =============================
       SIDEBAR
    ============================= */

    .sidebar {
      position: fixed;
      top: 64px;
      bottom: 0;
      left: 0;

      width: 235px;

      background: #fff;
      padding: 12px;

      overflow-y: auto;
      border-right: 1px solid #eee;

      transition: .25s;
      z-index: 900;
    }

    .sidebar.collapsed {
      width: 78px;
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 20px;

      min-height: 44px;

      padding: 0 14px;
      border-radius: 10px;

      font-size: 14px;
      margin-bottom: 4px;
    }

    .nav-item:hover {
      background: #f2f2f2;
    }

    .nav-item.active {
      background: #f2f2f2;
      font-weight: 700;
    }

    .nav-icon {
      font-size: 20px;
      min-width: 24px;
      text-align: center;
    }

    .sidebar.collapsed .nav-text {
      display: none;
    }


    /* =============================
       MAIN
    ============================= */

    .main {
      width: calc(100% - 235px);
      margin-left: 235px;
      padding: 20px 24px 50px;

      transition: .25s;
    }

    .sidebar.collapsed + .main {
      margin-left: 78px;
      width: calc(100% - 78px);
    }


    /* =============================
       CATEGORY CHIPS
    ============================= */

    .chips {
      position: sticky;
      top: 64px;
      z-index: 800;

      background: rgba(255,255,255,.96);

      display: flex;
      gap: 10px;

      overflow-x: auto;
      scrollbar-width: none;

      padding: 10px 0 18px;
    }

    .chips::-webkit-scrollbar {
      display: none;
    }

    .chip {
      flex: 0 0 auto;

      border: 0;
      background: #f2f2f2;

      min-height: 34px;
      padding: 0 14px;

      border-radius: 9px;

      font-size: 14px;
      font-weight: 600;
      white-space: nowrap;
    }

    .chip:hover {
      background: #e5e5e5;
    }

    .chip.active {
      background: #0f0f0f;
      color: white;
    }


    /* =============================
       SECTION HEADER
    ============================= */

    .section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;

      margin: 10px 0 18px;
    }

    .section-header h2 {
      font-size: 21px;
    }

    .result-count {
      color: #606060;
      font-size: 13px;
    }


    /* =============================
       VIDEO GRID
    ============================= */

    .video-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0,1fr));
      gap: 30px 18px;
    }

    .video-card {
      min-width: 0;
    }

    .thumbnail {
      position: relative;
      aspect-ratio: 16 / 9;

      overflow: hidden;
      border-radius: 12px;

      background: #111;
      cursor: pointer;
    }

    .thumbnail video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .thumbnail:hover {
      border-radius: 0;
    }

    .duration {
      position: absolute;
      right: 7px;
      bottom: 7px;

      background: rgba(0,0,0,.8);
      color: white;

      padding: 3px 5px;
      border-radius: 4px;

      font-size: 11px;
      font-weight: 700;
    }

    .play-hover {
      position: absolute;
      inset: 0;

      display: grid;
      place-items: center;

      background: rgba(0,0,0,.16);

      opacity: 0;
      transition: .2s;
    }

    .thumbnail:hover .play-hover {
      opacity: 1;
    }

    .play-circle {
      width: 52px;
      height: 52px;

      border-radius: 50%;

      display: grid;
      place-items: center;

      background: rgba(0,0,0,.75);
      color: white;

      font-size: 19px;
    }

    .video-info {
      display: grid;
      grid-template-columns: 40px minmax(0,1fr) 34px;
      gap: 10px;

      padding-top: 11px;
    }

    .channel-avatar {
      width: 38px;
      height: 38px;

      border-radius: 50%;

      display: grid;
      place-items: center;

      background: #111;
      color: white;

      font-size: 13px;
      font-weight: 700;
    }

    .video-title {
      font-size: 14px;
      font-weight: 700;
      line-height: 1.35;

      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;

      cursor: pointer;
    }

    .video-meta {
      color: #606060;
      font-size: 12px;
      margin-top: 5px;
      line-height: 1.5;
    }

    .more-btn {
      width: 34px;
      height: 34px;
      border: 0;
      border-radius: 50%;
      background: transparent;
      font-size: 21px;
    }

    .more-btn:hover {
      background: #eee;
    }

    .actions-row {
      display: flex;
      gap: 7px;

      padding-left: 48px;
      padding-top: 10px;
    }

    .small-action {
      border: 0;
      background: #f2f2f2;

      padding: 7px 10px;

      border-radius: 8px;

      font-size: 11px;
      font-weight: 600;
    }

    .small-action:hover {
      background: #e5e5e5;
    }


    /* =============================
       EMPTY
    ============================= */

    .empty {
      display: none;
      text-align: center;
      padding: 80px 20px;
    }

    .empty h3 {
      margin-bottom: 7px;
    }

    .empty p {
      color: #606060;
    }


    /* =============================
       MODAL
    ============================= */

    .modal {
      position: fixed;
      inset: 0;
      z-index: 5000;

      background: rgba(0,0,0,.9);

      display: none;
      align-items: center;
      justify-content: center;

      padding: 20px;
    }

    .modal.open {
      display: flex;
    }

    .modal-content {
      width: min(1150px,100%);
      max-height: calc(100vh - 40px);

      display: grid;
      grid-template-columns: 1.55fr .75fr;

      background: white;
      border-radius: 14px;
      overflow: hidden;
    }

    .player-side {
      background: #000;
      display: flex;
      align-items: center;
    }

    .modal-video {
      width: 100%;
      max-height: calc(100vh - 40px);
    }

    .details-side {
      padding: 26px;
      display: flex;
      flex-direction: column;
      overflow-y: auto;
    }

    .details-side h2 {
      font-size: 24px;
      margin-bottom: 8px;
    }

    .modal-category {
      color: #606060;
      font-size: 13px;
      margin-bottom: 18px;
    }

    .modal-description {
      color: #555;
      line-height: 1.6;
      font-size: 14px;
      margin-bottom: 24px;
    }

    .modal-actions {
      margin-top: auto;

      display: grid;
      gap: 9px;
    }

    .modal-action {
      min-height: 46px;

      border-radius: 23px;
      border: 0;

      background: #f2f2f2;

      display: flex;
      align-items: center;
      justify-content: center;

      font-weight: 700;
    }

    .modal-action:hover {
      background: #e5e5e5;
    }

    .modal-action.primary {
      background: #0f0f0f;
      color: white;
    }

    .close-modal {
      position: fixed;
      top: 18px;
      right: 18px;
      z-index: 5100;

      width: 45px;
      height: 45px;

      border-radius: 50%;
      border: 0;

      background: white;
      font-size: 23px;
    }


    /* =============================
       TOAST
    ============================= */

    .toast {
      position: fixed;
      z-index: 8000;

      left: 50%;
      bottom: 30px;

      transform: translate(-50%,30px);

      background: #222;
      color: white;

      padding: 11px 17px;
      border-radius: 6px;

      font-size: 13px;

      opacity: 0;
      visibility: hidden;
      transition: .2s;
    }

    .toast.show {
      opacity: 1;
      visibility: visible;
      transform: translate(-50%,0);
    }


    /* =============================
       RESPONSIVE
    ============================= */

    @media(max-width:1200px) {

      .video-grid {
        grid-template-columns: repeat(3,1fr);
      }

    }


    @media(max-width:900px) {

      .sidebar {
        transform: translateX(-100%);
        width: 235px;
      }

      .sidebar.mobile-open {
        transform: translateX(0);
      }

      .main,
      .sidebar.collapsed + .main {
        width: 100%;
        margin-left: 0;
      }

      .video-grid {
        grid-template-columns: repeat(2,1fr);
      }

      .modal-content {
        grid-template-columns: 1fr 1fr;
      }

    }


    @media(max-width:650px) {

      .topbar {
        height: 58px;
        padding: 0 10px;
        gap: 8px;
      }

      .logo {
        font-size: 18px;
      }

      .search-bar {
        margin-left: auto;
      }

      .search-bar input {
        display: none;
      }

      .search-bar {
        max-width: 42px;
        flex: 0 0 42px;
      }

      .search-button {
        width: 42px;
        border: 0;
        border-radius: 50%;
        background: transparent;
      }

      .header-btn {
        display: none;
      }

      .main {
        padding: 10px 10px 40px;
      }

      .chips {
        top: 58px;
      }

      .video-grid {
        grid-template-columns: 1fr;
        gap: 24px;
      }

      .thumbnail {
        border-radius: 10px;
      }

      .actions-row {
        padding-left: 48px;
      }

      .modal {
        padding: 0;
      }

      .modal-content {
        width: 100%;
        min-height: 100vh;
        max-height: 100vh;

        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;

        border-radius: 0;
        overflow-y: auto;
      }

      .modal-video {
        max-height: 60vh;
      }

      .details-side {
        padding: 20px;
      }

      .close-modal {
        top: 8px;
        right: 8px;
      }

    }


    @media(max-width:420px) {

      .video-info {
        grid-template-columns: 36px minmax(0,1fr) 30px;
      }

      .channel-avatar {
        width: 34px;
        height: 34px;
      }

      .actions-row {
        padding-left: 44px;
        overflow-x: auto;
      }

    }
/* =================================== */
/* video add form */
/* =========================================
   VIDEO AUTO DETECTION
========================================= */

.video-detection {
    display: none;

    margin-bottom: 20px;

    padding: 17px;

    border-radius: 12px;

    background: #181818;

    color: white;
}


.video-detection.show {
    display: block;
}


.video-detection-title {
    margin-bottom: 13px;

    font-size: 14px;

    font-weight: 700;

    color: #fff;
}


.video-detection-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;
}


.video-detection-item {
    padding: 12px;

    border-radius: 9px;

    background: #262626;
}


.video-detection-label {
    display: block;

    margin-bottom: 5px;

    color: #999;

    font-size: 11px;
}


.video-detection-item strong {
    display: block;

    font-size: 14px;
}


.video-type-short {
    color: #ff4f76;
}


.video-type-landscape {
    color: #4bb8ff;
}


@media (
    max-width: 600px
) {

    .video-detection-grid {
        grid-template-columns:
            1fr;
    }

}
/* -Add Video  */
/* ==================== */

/* =========================================
   VIDEO DETECTION
========================================= */

.video-detection {
    display: none;

    padding: 16px;

    margin-bottom: 20px;

    background: #181818;

    color: #fff;

    border-radius: 12px;
}


.video-detection.show {
    display: block;
}


.video-detection-title {
    margin-bottom: 12px;

    font-weight: 700;
}


.video-detection-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;
}


.video-detection-item {
    padding: 12px;

    background: #292929;

    border-radius: 9px;
}


.video-detection-label {
    display: block;

    color: #aaa;

    font-size: 11px;

    margin-bottom: 5px;
}


.video-type-short {
    color: #ff4f76;
}


.video-type-landscape {
    color: #4bb8ff;
}


@media (max-width: 600px) {

    .video-detection-grid {
        grid-template-columns:
            1fr;
    }

}

/* ==========================
preview
========================== */

/* SELECTED VIDEO PREVIEW */

.selected-video-preview {
    display: none;

    width: 100%;

    margin:
        -2px 0 18px;

    padding: 12px;

    border-radius: 14px;

    background: #111;

    text-align: center;
}


.selected-video-preview.show {
    display: block;
}


.selected-video-preview video {
    display: block;

    width: 100%;
    max-width: 100%;

    max-height: 520px;

    margin: auto;

    border-radius: 10px;

    background: #000;

    object-fit: contain;
}


/* Portrait short/reel */

.selected-video-preview.short video {
    width: auto;

    max-width: 300px;

    aspect-ratio: 9 / 16;
}


/* Landscape */

.selected-video-preview.landscape video {
    width: 100%;

    aspect-ratio: 16 / 9;
}


@media (max-width: 600px) {

    .selected-video-preview {
        padding: 8px;
    }

    .selected-video-preview.short video {
        max-width: 240px;
        max-height: 430px;
    }

}
/* ================================== */


/* =========================================
   VIDEO DETECTION
========================================= */

.video-detection {
    display: none;
    margin-bottom: 20px;
    padding: 15px;
    background: #303030;
    border-radius: 12px;
}

.video-detection.show {
    display: block;
}

.video-detection-title {
    margin-bottom: 12px;
    font-weight: 700;
}

.video-detection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.video-detection-item {
    padding: 11px;
    background: #000;
    border-radius: 8px;
}

.video-detection-label {
    display: block;
    margin-bottom: 4px;
    color: #777;
    font-size: 11px;
}

.video-type-short {
    color: #ff0033;
}

.video-type-landscape {
    color: #1677ff;
}

@media (max-width: 600px) {

    .video-preview-stage.short-preview video {
        max-width: 240px;
        height: min(430px, 65vh);
    }

    .video-detection-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   VIDEO PREVIEW
========================================= */

.video-preview-box {
    display: none;
    width: 100%;
    margin: 0 0 10px;
    padding: 14px;
    background: #2d2d2d;
    border-radius: 14px;
    color: #fff;
}

.video-preview-box.show {
    display: block;
}

.video-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
}

.video-preview-head strong {
    font-size: 14px;
}

.remove-preview-btn {
    width: auto;
    margin: 0;
    padding: 7px 12px;
    border: 0;
    border-radius: 7px;
    background: #000;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.video-preview-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    background: #000;
    border-radius: 10px;
}

.video-preview-stage video {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 350px;
    background: #000;
    object-fit: contain;
}

/* SHORT / REEL */

.video-preview-stage.short-preview {
    padding: 12px;
}

.video-preview-stage.short-preview video {
    width: auto;
    max-width: 300px;
    height: min(520px, 70vh);
    aspect-ratio: 9 / 16;
    object-fit: contain;
}

/* LANDSCAPE */

.video-preview-stage.landscape-preview video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}
/* =============================== */
.modal-description {
    white-space: pre-wrap;
    overflow-wrap: anywhere;

    line-height: 1.65;

    max-height: 470px;
    overflow-y: auto;

    padding-right: 8px;
}


/* Scrollbar */

.modal-description::-webkit-scrollbar {
    width: 6px;
}

.modal-description::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}


/* Share button */

.modal-actions {
    margin-top: 20px;
}

.modal-actions .modal-action.primary {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    padding: 14px 20px;

    border-radius: 30px;

    background: #111;
    color: #fff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

.modal-actions .modal-action.primary:hover {
    background: #222;
}

/* -============================== */

/* Footer */

/* ==================================================
   FOOTER
================================================== */

.site-footer {
    position: relative;
    z-index: 5;

    background: #0f172a;
    color: #fff;

    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-inner {
    width: min(1200px, calc(100% - 40px));

    margin: 0 auto;

    padding: 55px 0 42px;

    display: grid;
    grid-template-columns: minmax(260px, 2fr) 1fr 1fr;

    gap: 60px;
}


/* BRAND */

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #fff;

    text-decoration: none;

    font-size: 23px;
    font-weight: 800;
}

.footer-logo span {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background: #ff1744;

    font-size: 13px;
}

.footer-brand p {
    max-width: 420px;

    margin: 18px 0 0;

    color: #94a3b8;

    font-size: 14px;
    line-height: 1.7;
}


/* LINKS */

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 12px;
}

.footer-column h3 {
    margin: 0 0 5px;

    color: #fff;

    font-size: 14px;
    font-weight: 800;
}

.footer-column a {
    color: #94a3b8;

    text-decoration: none;

    font-size: 13px;

    transition:
        color .18s ease,
        transform .18s ease;
}

.footer-column a:hover {
    color: #fff;

    transform: translateX(2px);
}


/* BOTTOM */

.footer-bottom {
    width: min(1200px, calc(100% - 40px));

    margin: 0 auto;

    padding: 20px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-top: 1px solid rgba(255,255,255,.09);

    color: #64748b;

    font-size: 12px;
}


/* TABLET */

@media (max-width: 800px) {

    .footer-inner {
        grid-template-columns: 1.5fr 1fr 1fr;

        gap: 30px;

        padding-top: 42px;
    }

}


/* MOBILE */

@media (max-width: 600px) {

    .footer-inner {
        width: calc(100% - 32px);

        grid-template-columns: 1fr 1fr;

        gap: 35px 24px;

        padding:
            38px 0 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand p {
        max-width: 330px;
    }

    .footer-bottom {
        width: calc(100% - 32px);

        flex-direction: column;
        align-items: flex-start;

        gap: 7px;

        padding: 18px 0 24px;
    }

}

/* MOBILE SEARCH OPEN / CLOSE */

@media (max-width: 650px) {

    .topbar-search-shell {
        display: none;
    }

    .topbar.search-open
    .topbar-search-shell {
        display: block;

        opacity: 1;
        visibility: visible;

        pointer-events: auto;

        transform: translateY(0);
    }

    .topbar.search-open
    .search-bar {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            54px;
    }

    .topbar.search-open
    .search-bar input {
        display: block !important;
        width: 100% !important;
    }

}
/* ==========================================================
   MOBILE-FIRST VIDEO MODAL
========================================================== */

@media (max-width: 700px) {

    .modal {
        padding: 0 !important;

        align-items: center !important;
        justify-content: center !important;

        overflow: hidden !important;
    }

    .modal-content {
        position: relative !important;

        width: 100% !important;
        height: 100dvh !important;
        max-width: none !important;
        max-height: 100dvh !important;

        margin: 0 !important;

        display: flex !important;
        flex-direction: column !important;

        overflow: hidden !important;

        border-radius: 0 !important;

        background: #fff !important;
    }


    /* VIDEO AREA */

    .player-side {
        position: relative !important;

        width: 100% !important;

        flex: 0 0 auto !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        overflow: hidden !important;

        background: #000 !important;
    }

    .modal-video {
        display: block !important;

        width: 100% !important;
        height: auto !important;

        max-height: 48dvh !important;

        aspect-ratio: 16 / 9;

        object-fit: contain !important;

        background: #000 !important;
    }


    /* CLOSE BUTTON */

    .close-modal {
        position: fixed !important;

        top:
            calc(
                10px +
                env(safe-area-inset-top)
            ) !important;

        right: 10px !important;

        z-index: 9999 !important;

        width: 38px !important;
        height: 38px !important;

        display: grid !important;
        place-items: center !important;

        padding: 0 !important;

        border-radius: 50% !important;

        background:
            rgba(255,255,255,.94) !important;

        color: #111 !important;

        box-shadow:
            0 4px 18px
            rgba(0,0,0,.18) !important;
    }


    /* DETAILS AREA */

    .details-side {
        width: 100% !important;

        flex: 1 1 auto !important;
        min-height: 0 !important;

        display: flex !important;
        flex-direction: column !important;

        padding:
            15px
            14px
            calc(
                10px +
                env(safe-area-inset-bottom)
            ) !important;

        overflow: hidden !important;

        background: #fff !important;
    }


    #modalTitle {
        flex: 0 0 auto !important;

        margin: 0 42px 5px 0 !important;

        font-size: 18px !important;
        line-height: 1.25 !important;

        color: #111827 !important;

        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;

        overflow: hidden;
    }


    #modalCategory {
        flex: 0 0 auto !important;

        margin: 0 0 10px !important;

        font-size: 12px !important;

        color: #64748b !important;
    }


    /* ONLY DESCRIPTION SCROLLS */

    .modal-description {
        flex: 1 1 auto !important;

        min-height: 0 !important;
        max-height: none !important;

        margin: 0 !important;

        padding:
            10px 5px
            14px 0 !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        -webkit-overflow-scrolling: touch;

        overscroll-behavior: contain;

        font-size: 13px !important;
        line-height: 1.6 !important;

        color: #475569 !important;
    }


    /* SHARE ALWAYS AVAILABLE */

    .modal-actions {
        position: relative !important;

        flex: 0 0 auto !important;

        bottom: auto !important;

        width: 100% !important;

        margin: 0 !important;

        padding:
            10px 0 0 !important;

        border-top:
            1px solid #eef2f7 !important;

        background: #fff !important;
    }

    .modal-actions
    .modal-action.primary {
        width: 100% !important;

        min-height: 46px !important;

        border-radius: 999px !important;

        font-size: 13px !important;
    }


    /* SWIPE MESSAGE */

    .modal-swipe-hint {
        bottom: 8px !important;

        padding: 6px 9px !important;

        font-size: 9px !important;
    }

}

/* ==========================================================
   MOBILE SHORT / REEL MODE
========================================================== */

@media (max-width: 700px) {

    /* SHORT MODAL */

    .modal.short-mode
    .modal-content {
        width: 100% !important;
        height: 100dvh !important;

        max-width: none !important;
        max-height: 100dvh !important;

        display: flex !important;
        flex-direction: column !important;

        overflow: hidden !important;

        background: #000 !important;
    }


    /* ======================================================
       SHORT VIDEO = ABOUT 75% OF SCREEN
    ====================================================== */

    .modal.short-mode
    .player-side {
        flex:
            0 0 75dvh !important;

        width: 100% !important;
        height: 75dvh !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        overflow: hidden !important;

        background: #000 !important;
    }


    .modal.short-mode
    .modal-video {
        width: 100% !important;
        height: 100% !important;

        max-height: none !important;

        aspect-ratio: auto !important;

        object-fit: contain !important;

        background: #000 !important;
    }


    /* ======================================================
       BOTTOM DETAILS = ABOUT 25%
    ====================================================== */

    .modal.short-mode
    .details-side {
        flex:
            1 1 25dvh !important;

        width: 100% !important;

        min-height: 0 !important;

        padding:
            12px
            14px
            calc(
                10px +
                env(safe-area-inset-bottom)
            ) !important;

        overflow: hidden !important;

        background: #fff !important;

        color: #111827 !important;
    }


    .modal.short-mode
    #modalTitle {
        margin:
            0 40px
            4px 0 !important;

        font-size:
            16px !important;

        line-height:
            1.25 !important;

        display: -webkit-box;

        -webkit-box-orient:
            vertical;

        -webkit-line-clamp:
            2;

        overflow: hidden;
    }


    .modal.short-mode
    #modalCategory {
        margin-bottom:
            7px !important;

        font-size:
            11px !important;

        color:
            #64748b !important;
    }


    /* SHORT DESCRIPTION */

    .modal.short-mode
    .modal-description {
        flex:
            1 1 auto !important;

        min-height:
            0 !important;

        max-height:
            none !important;

        margin:
            0 !important;

        padding:
            4px 4px
            8px 0 !important;

        overflow-y:
            auto !important;

        font-size:
            11px !important;

        line-height:
            1.45 !important;

        color:
            #475569 !important;
    }


    /* SHARE BUTTON */

    .modal.short-mode
    .modal-actions {
        flex:
            0 0 auto !important;

        padding-top:
            8px !important;

        margin:
            0 !important;

        background:
            #fff !important;
    }


    .modal.short-mode
    .modal-actions
    .modal-action.primary {
        min-height:
            42px !important;

        border-radius:
            999px !important;

        font-size:
            12px !important;
    }


    /* CLOSE BUTTON OVER VIDEO */

    .modal.short-mode
    .close-modal {
        position:
            fixed !important;

        top:
            calc(
                10px +
                env(safe-area-inset-top)
            ) !important;

        right:
            10px !important;

        z-index:
            9999 !important;
    }


    /* SWIPE LABEL */

    .modal.short-mode
    .modal-swipe-hint {
        display:
            inline-flex !important;

        bottom:
            12px !important;
    }

}


/* =========================================================
   FINAL MOBILE SIDEBAR FIX
   Keeps drawer fully hidden when closed and solid when open.
========================================================= */

@media (max-width: 900px) {

    .sidebar {
        position: fixed !important;

        top: 66px !important;
        left: 0 !important;
        bottom: 0 !important;

        width: min(280px, 82vw) !important;

        padding: 12px !important;

        background: #ffffff !important;

        border-right: 1px solid #e5e7eb !important;

        box-shadow:
            14px 0 38px
            rgba(15, 23, 42, .16) !important;

        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;

        transform: translateX(-105%) !important;

        transition:
            transform .24s ease !important;

        z-index: 1600 !important;

        overflow-y: auto !important;
        overscroll-behavior: contain;
    }

    .sidebar.mobile-open {
        transform: translateX(0) !important;
    }

    .sidebar.collapsed {
        width: min(280px, 82vw) !important;
    }

    .sidebar.collapsed .nav-text {
        display: inline !important;
    }

    .page {
        display: block !important;
    }

    .main,
    .sidebar.collapsed + .main {
        width: 100% !important;
        margin-left: 0 !important;
    }

}

@media (max-width: 650px) {

    .sidebar {
        top: 66px !important;
        width: min(275px, 84vw) !important;
    }

}


/* =========================================================
   AUTHORITATIVE MOBILE SIDEBAR
   Keep this as the LAST sidebar rule in style.css.
========================================================= */

@media (max-width: 900px) {

    .sidebar {
        position: fixed !important;

        top: 66px !important;
        left: 0 !important;
        bottom: 0 !important;

        width: min(280px, 84vw) !important;

        padding: 12px !important;

        background: #ffffff !important;

        border-right: 1px solid #e5e7eb !important;

        box-shadow:
            14px 0 38px
            rgba(15, 23, 42, .18) !important;

        transform: translateX(-105%) !important;

        transition: transform .24s ease !important;

        z-index: 2500 !important;

        overflow-y: auto !important;

        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .sidebar.mobile-open {
        transform: translateX(0) !important;
    }

    .sidebar.collapsed {
        width: min(280px, 84vw) !important;
    }

    .sidebar.collapsed .nav-text {
        display: inline !important;
    }

    .page {
        display: block !important;
    }

    .main,
    .sidebar.collapsed + .main {
        width: 100% !important;
        margin-left: 0 !important;
    }

}

@media (max-width: 650px) {

    .sidebar {
        top: 66px !important;
        width: min(275px, 86vw) !important;
    }

}

