/*--------------------------------------------------------------
# Mobile Responsive CSS for VALORANT Creator Rush
# Version: 5.0 - Portrait only, Landscape uses desktop layout
#
# Logic: Mobile styles ONLY apply in PORTRAIT orientation
# When phone rotates to LANDSCAPE -> uses desktop layout (no changes)
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Disable "Please Rotate" popup - no longer needed
--------------------------------------------------------------*/
#pleaserotate-backdrop,
#pleaserotate-container,
.pleaserotate-backdrop,
.pleaserotate-container {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/*--------------------------------------------------------------
# Reset zoom-based scaling - PORTRAIT ONLY
--------------------------------------------------------------*/
@media only screen and (max-width: 992px) and (orientation: portrait) {
  .header .container-fluid,
  .f1 .container,
  .f1 .cborder,
  .f3 .container-fluid,
  .f4 .container-fluid,
  .modal,
  .footer,
  .gslider {
    zoom: unset !important;
  }
}

/*--------------------------------------------------------------
# HEADER & NAVIGATION - Mobile Portrait Only
--------------------------------------------------------------*/
@media only screen and (max-width: 1279px) and (orientation: portrait) {
  .header {
    padding: 8px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.95);
  }

  .header-container {
    padding: 5px 10px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  .header .logo {
    flex-shrink: 0;
  }

  .header .logo img {
    max-height: 30px !important;
    width: auto;
  }

  /* Hide hamburger button */
  .mobile-nav-toggle {
    display: none !important;
  }

  /* Navbar - horizontal inline */
  .navbar {
    position: relative !important;
    left: 0 !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 5px !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
  }

  .navbar > ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    gap: 2px !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    transform: none !important;
    width: 100% !important;
  }

  .navbar > ul > li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: block !important;
    visibility: visible !important;
  }

  .navbar > ul > li > a {
    display: block !important;
    visibility: visible !important;
    color: #fff !important;
    font-size: 9px !important;
    padding: 4px 5px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    opacity: 1 !important;
  }

  .navbar > ul > li > a > span {
    display: inline !important;
    visibility: visible !important;
  }

  .navbar > ul > li > a:hover,
  .navbar > ul > li > a:active {
    color: #ff4655 !important;
  }

  .custom-submenu-underline {
    display: none !important;
  }

  .navbar .dropdown > ul {
    display: none !important;
  }

  /* TikTok button */
  .profile-area {
    zoom: unset !important;
    flex-shrink: 0;
  }

  .profile-area .btn-tiktok {
    font-size: 0;
    padding: 4px;
  }

  .profile-area .btn-tiktok img {
    height: 22px;
    width: auto;
  }
}

@media only screen and (max-width: 600px) and (orientation: portrait) {
  .header .logo img {
    max-height: 26px !important;
  }

  .navbar {
    margin: 0 3px !important;
  }

  .navbar > ul {
    gap: 1px !important;
  }

  .navbar > ul > li > a {
    font-size: 8px !important;
    padding: 3px 4px !important;
  }

  .profile-area .btn-tiktok {
    padding: 3px !important;
  }

  .profile-area .btn-tiktok img {
    height: 20px;
  }
}

@media only screen and (max-width: 420px) and (orientation: portrait) {
  .header .logo img {
    max-height: 22px !important;
  }

  .navbar > ul > li > a {
    font-size: 7px !important;
    padding: 3px 3px !important;
  }

  .profile-area .btn-tiktok img {
    height: 18px;
  }
}

@media only screen and (max-width: 360px) and (orientation: portrait) {
  .header .logo img {
    max-height: 20px !important;
  }

  .navbar > ul > li > a {
    font-size: 6px !important;
    padding: 2px 2px !important;
  }

  .profile-area .btn-tiktok img {
    height: 16px;
  }
}

/*--------------------------------------------------------------
# HERO SECTION (Frame 1) - Mobile Portrait Only
--------------------------------------------------------------*/
@media only screen and (max-width: 992px) and (orientation: portrait) {
  .wrapper {
    background-size: cover;
  }

  #hero-animated.full-frame,
  .full-frame.f1 {
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
  }

  .f1 {
    min-height: auto;
    padding-top: 60px;
  }

  .f1 .cborder {
    display: none !important;
  }

  .f1 .container.main-container {
    padding: 80px 15px 40px 15px;
  }

  .f1 .title-wrapper {
    margin-top: 0;
    padding-top: 0;
  }

  .f1 .main-logo {
    margin: 0 auto;
    height: auto !important;
    max-width: 80vw;
    max-height: 180px;
  }

  .f1 .title-bg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    width: 100vw;
    top: -50px;
    opacity: 0.6;
  }

  .btn-join-wrapper {
    margin-top: 20px;
    justify-content: center;
  }

  .btn-download-app {
    width: 180px;
    height: 55px;
    background-size: contain;
    background-position: center;
  }
}

@media only screen and (max-width: 600px) and (orientation: portrait) {
  .f1 .main-logo {
    max-width: 70vw;
    max-height: 150px;
  }

  .btn-download-app {
    width: 160px;
    height: 48px;
  }
}

/*--------------------------------------------------------------
# RANKING SECTION (Frame 3 - BXH) - Mobile Portrait Only
--------------------------------------------------------------*/
@media only screen and (max-width: 992px) and (orientation: portrait) {
  .f3 {
    min-height: auto;
    height: auto;
    padding: 30px 0;
  }

  .f3 .bxh-wrapper {
    padding: 0 10px;
  }

  .f3 .bxh-wrapper::before,
  .f3 .bxh-wrapper::after {
    display: none;
  }

  .f3 .main-title {
    height: auto;
    max-width: 70vw;
    margin-bottom: 10px;
  }

  /* Stack: top creators then table */
  .f3 .rank-container {
    flex-direction: column !important;
    gap: 15px !important;
    margin-top: 10px;
    align-items: center;
  }

  /* TOP CREATORS - Horizontal layout: 2-1-3 */
  .f3 .top-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100%;
    max-width: 100%;
    order: 1;
    flex-wrap: nowrap !important;
    background-image: none !important;
    padding: 0 10px;
  }

  /* Ordering: 2-1-3 layout */
  .top-creator.top2 { order: 1; }
  .top-creator.top1 { order: 2; }
  .top-creator.top3 { order: 3; }

  /* Scale down top creator badges */
  .top-creator {
    flex-shrink: 0;
    position: relative;
  }

  .top1-badge {
    height: 180px !important;
    width: auto !important;
  }

  .top23-badge {
    height: 135px !important;
    width: auto !important;
  }

  /* Scale avatars */
  .player-avatar {
    height: 95px !important;
    width: 65px !important;
    clip-path: polygon(0% 15px, 15px 0%, calc(100% - 15px) 0%, 100% 15px, 100% 100%, 0 100%) !important;
  }

  .top1 .player-avatar {
    height: 145px !important;
    width: 77px !important;
  }

  /* Top creator content - Fixed positioning */
  .top-creator-content {
    position: absolute !important;
    bottom: 5px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .top1 .top-creator-content {
    bottom: 8px !important;
  }

  .top-creator-content .top-content-name {
    font-size: 8px !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 90% !important;
    line-height: 1.2 !important;
  }

  .top1 .top-creator-content .top-content-name {
    font-size: 10px !important;
  }

  .top-creator-content .top-content-point {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
  }

  .top-creator-content .top-content-point .total-point {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  .top1 .top-creator-content .top-content-point .total-point {
    font-size: 14px !important;
  }

  .top-wrapper .view-text {
    font-size: 6px !important;
    line-height: 1 !important;
  }

  .top1 .view-text {
    font-size: 8px !important;
  }

  /* Remove decorations */
  .top-creator.top1::before,
  .top-creator.top1::after {
    display: none !important;
  }

  /* RANKING TABLE - Fixed height with scroll */
  .creator-rank-table {
    width: 100%;
    max-width: calc(100vw - 20px);
    height: 420x !important;
    max-height: 420px !important;
    min-height: 420x !important;
    border-width: 3px;
    order: 2;
    overflow: hidden !important;
  }

  .creator-rank-table-inner {
    padding: 8px;
    margin-right: 5px;
    margin-bottom: 5px;
    height: calc(100% - 10px) !important;
    max-height: calc(100% - 10px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  .table-rank {
    font-size: 13px;
    line-height: 24px;
    width: 100%;
  }

  .table-rank th,
  .table-rank td {
    padding: 6px 10px;
  }

  .creator-rank-table-inner .table-rank .rank-number {
    padding: 2px 8px;
    min-width: 30px;
    font-size: 12px;
  }

  /* Ensure table rows are visible */
  .table-rank tbody tr {
    display: table-row !important;
  }

  /* COUNTDOWN */
  .count-down-container {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 35px;
    margin-bottom: 35px;
    justify-content: center;
    padding: 0 10px;
    order: 3;
  }

  .count-down-container::before,
  .count-down-container::after {
    display: none !important;
  }

  .count-down-text {
    width: 100%;
    height: auto !important;
    max-height: 35px;
    object-fit: contain;
    margin-bottom: 10px;
  }

  .count-down {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px;
    min-height: 50px;
    background-size: 100% 100% !important;
  }

  .count-down-value {
    font-size: 16px;
    line-height: 16px;
  }

  .count-down-label {
    font-size: 8px;
  }

  .count-down-decorate-arrow {
    display: none !important;
  }
}

@media only screen and (max-width: 500px) and (orientation: portrait) {
  .f3 .rank-container {
    gap: 12px !important;
  }

  .f3 .top-wrapper {
    gap: 8px !important;
  }

  .top1-badge {
    height: 150px !important;
  }

  .top23-badge {
    height: 112px !important;
  }

  .player-avatar {
    height: 78px !important;
    width: 54px !important;
  }

  .top1 .player-avatar {
    height: 120px !important;
    width: 64px !important;
  }

  .top-creator-content .top-content-name {
    font-size: 7px !important;
  }

  .top1 .top-creator-content .top-content-name {
    font-size: 9px !important;
  }

  .top-creator-content .top-content-point .total-point {
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  .top1 .top-creator-content .top-content-point .total-point {
    font-size: 12px !important;
  }

  .top-wrapper .view-text {
    font-size: 5px !important;
  }

  .top1 .view-text {
    font-size: 7px !important;
  }

  .table-rank {
    font-size: 12px;
    line-height: 22px;
  }

  .count-down {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px;
    min-height: 45px;
  }

  .count-down-value {
    font-size: 14px;
  }

  .count-down-label {
    font-size: 7px;
  }
}

@media only screen and (max-width: 380px) and (orientation: portrait) {
  .f3 .top-wrapper {
    gap: 5px !important;
  }

  .top1-badge {
    height: 130px !important;
  }

  .top23-badge {
    height: 97px !important;
  }

  .player-avatar {
    height: 68px !important;
    width: 47px !important;
  }

  .top1 .player-avatar {
    height: 105px !important;
    width: 55px !important;
  }

  .top-creator-content .top-content-name {
    font-size: 6px !important;
  }

  .top1 .top-creator-content .top-content-name {
    font-size: 8px !important;
  }

  .top-creator-content .top-content-point .total-point {
    font-size: 8px !important;
  }

  .top1 .top-creator-content .top-content-point .total-point {
    font-size: 10px !important;
  }

  .top-wrapper .view-text {
    font-size: 5px !important;
  }

  .count-down {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    min-height: 40px;
  }

  .count-down-value {
    font-size: 12px;
  }

  .count-down-label {
    font-size: 6px;
  }
}

/*--------------------------------------------------------------
# CREATOR LIST SECTION (Frame 4) - Mobile Portrait Only
--------------------------------------------------------------*/
@media only screen and (max-width: 992px) and (orientation: portrait) {
  #frame-creators {
    height: auto;
    padding: 40px 0;
  }

  .f4 .main-container {
    padding: 0 15px;
  }

  .f4 .main-title,
  .f4 .title {
    height: auto;
    max-width: 70vw;
    margin-bottom: 20px;
    font-size: 24px !important;
  }

  #submission-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding: 0 10px;
  }

  .f4 .card-custom {
    width: 100%;
    max-width: 100%;
  }

  .f4 .tiktok-profile-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 180px;
  }

  .f4 .tiktok-profile-id {
    font-size: 12px;
    margin: 6px 0 8px 0;
  }

  .f4 .tiktok-profile-desc {
    font-size: 10px;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
    line-height: 1.4;
  }

  .f4 .tiktok-view-count {
    font-size: 13px;
  }

  .f4 .card-footer {
    flex-direction: column;
    gap: 8px;
  }

  .f4 .vote-button {
    width: 100%;
    min-width: unset;
    height: 30px;
    font-size: 11px;
  }

  .custom-pagination {
    margin-top: 20px;
  }

  .pagination ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }

  .pagination ul li a {
    margin: 0;
    padding: 5px 10px;
    font-size: 11px;
  }
}

@media only screen and (max-width: 600px) and (orientation: portrait) {
  #submission-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }

  .f4 .tiktok-profile-image {
    max-height: 150px;
  }

  .f4 .tiktok-profile-id {
    font-size: 11px;
  }

  .f4 .tiktok-profile-desc {
    font-size: 9px;
    -webkit-line-clamp: 2;
    line-height: 1.3;
  }

  .f4 .vote-button {
    height: 28px;
    font-size: 10px;
  }
}

/*--------------------------------------------------------------
# FOOTER - Mobile Portrait Only
--------------------------------------------------------------*/
@media only screen and (max-width: 992px) and (orientation: portrait) {
  .footer {
    padding-top: 25px;
  }

  /* Footer social items container - stack vertically */
  #footer-social-items {
    padding: 0 15px;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
  }

  /* Social icons row - horizontal */
  #footer-social-items > .col-lg-12:first-child,
  #footer-social-items > div:first-child {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 25px !important;
    margin-bottom: 0 !important;
  }

  /* Reset any transforms/animations on social items */
  .footer-social-item {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    position: relative !important;
    display: block !important;
    flex-shrink: 0 !important;
  }

  .footer-social-item.tt {
    height: 50px !important;
  }

  .footer-social-item::before,
  .footer-social-item::after {
    display: none !important;
    content: none !important;
  }

  /* More text - below icons */
  #footer-social-items > div:last-child {
    margin-bottom: 0 !important;
  }

  .footer .more-text {
    width: auto;
    max-width: 200px;
    height: auto;
    margin: 0 auto !important;
  }

  .footer .footer-content {
    padding: 30px 15px 20px 15px;
    background-size: cover !important;
  }

  .footer-logo {
    max-width: 200px;
    height: auto;
  }

  .riotbar-footer-copyright-text {
    font-size: 10px;
    line-height: 1.5;
  }

  .footer-link {
    display: block;
    padding: 6px 0;
    font-size: 11px;
  }

  .footer img[src*="vn-18plus"] {
    height: auto !important;
    max-height: 70px;
    width: auto;
  }
}

@media only screen and (max-width: 600px) and (orientation: portrait) {
  #footer-social-items {
    gap: 12px !important;
  }

  /* Social icons row for smaller screens */
  #footer-social-items > .col-lg-12:first-child,
  #footer-social-items > div:first-child {
    gap: 20px !important;
  }

  .footer-social-item {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
  }

  .footer-social-item.tt {
    height: 45px !important;
  }

  .footer .more-text {
    max-width: 180px;
  }

  .footer-logo {
    max-width: 160px;
  }

  .riotbar-footer-copyright-text {
    font-size: 9px;
  }

  .footer img[src*="vn-18plus"] {
    max-height: 50px;
  }

  .footer .more-text {
    max-width: 140px;
  }
}

@media only screen and (max-width: 420px) and (orientation: portrait) {
  #footer-social-items {
    gap: 12px !important;
  }

  .footer-social-item {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
  }

  .footer-logo {
    max-width: 140px;
  }

  .footer .more-text {
    max-width: 120px;
  }
}

/*--------------------------------------------------------------
# POPUPS & MODALS - Mobile Portrait Only
--------------------------------------------------------------*/
@media only screen and (max-width: 992px) and (orientation: portrait) {
  .modal {
    padding: 15px 10px;
  }

  .modal-dialog {
    max-width: 95vw !important;
    margin: 10px auto;
  }

  .modal-content {
    background-size: cover !important;
  }

  .close-popup {
    right: 5px;
    top: -30px;
  }

  .close-popup img {
    width: 28px;
    height: 28px;
  }

  .popup-header {
    margin-top: 10px;
  }

  .header-text {
    font-size: 22px;
    padding: 0 10px;
  }

  .popup-body {
    padding: 10px;
  }

  /* Info Popup (THỂ LỆ) - fit mobile screen */
  #infoPopup .modal-dialog {
    max-width: 95vw !important;
    margin: 5px auto !important;
    max-height: 95vh !important;
  }

  #infoPopup .modal-content {
    max-height: 90vh !important;
    overflow: hidden !important;
  }

  #infoPopup .popup-body {
    max-height: 70vh;
    min-height: 200px;
    margin: 5px;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  #infoPopup .close-popup {
    position: absolute !important;
    right: 8px !important;
    top: 8px !important;
    z-index: 100;
  }

  #infoPopup .close-popup img {
    width: 22px !important;
    height: 22px !important;
  }

  #infoPopup .popup-header {
    padding: 5px 10px;
  }

  #infoPopup .header-text {
    font-size: 18px;
  }

  .info-content {
    font-size: 12px;
    padding: 10px;
    line-height: 1.5;
  }

  .info-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .info-content h4 {
    font-size: 14px;
    margin: 10px 0 5px 0;
  }

  .info-content p {
    margin-bottom: 5px;
  }

  #joinPopupContent {
    max-height: 50vh;
    min-height: 200px;
    margin: 10px 15px;
    font-size: 13px;
  }

  .popup.join .nav-tabs .nav-link {
    padding: 5px 15px !important;
    font-size: 12px;
  }

  .confirm-button {
    width: 250px;
    height: 42px;
    font-size: 13px;
    margin: 15px 0 20px 0;
    background-size: contain;
  }

  #creatorInfoPopup .modal-dialog {
    max-width: 95vw;
    margin: 5px auto;
    max-height: 95vh;
  }

  #creatorInfoPopup .modal-content {
    background-size: cover !important;
    padding: 8px !important;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Close button - keep inside popup */
  #creatorInfoPopup .close-popup {
    position: absolute !important;
    right: 8px !important;
    top: 8px !important;
    z-index: 100;
  }

  #creatorInfoPopup .close-popup img {
    width: 22px !important;
    height: 22px !important;
  }

  #creatorInfoPopupContent {
    padding: 0 !important;
  }

  #creatorInfoPopupContent .creator-popup-title {
    font-size: 18px;
    margin: 5px 0;
  }

  #creatorInfoPopupContent .creator-popup-separator {
    height: 2px;
    margin-bottom: 8px;
  }

  /* Creator info wrapper - stack vertically */
  #creatorInfoPopupContent .creator-info-wrapper {
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 10px !important;
  }

  /* Avatar container */
  .creator-id-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  /* Avatar image - fix border and size */
  .creator-info .creator-profile-image {
    width: 100px !important;
    height: 100px !important;
    border: 3px solid #ff4655 !important;
    border-image: none !important;
    object-fit: cover;
    margin-bottom: 5px;
  }

  /* Creator ID badge */
  #creatorInfoPopupContent .creator-profile-id {
    font-size: 12px !important;
    height: 32px !important;
    width: 140px !important;
    background-size: 100% 100%;
    padding: 0 8px;
  }

  /* Stats wrapper - centered */
  .creator-stats-wrapper {
    width: 100% !important;
    text-align: center !important;
  }

  #creatorInfoPopupContent .creator-profile-name {
    font-size: 16px !important;
    text-align: center !important;
    margin-bottom: 3px;
  }

  #creatorInfoPopupContent .creator-description {
    font-size: 11px !important;
    text-align: center !important;
    margin-bottom: 8px;
    padding: 0 5px;
  }

  /* Stats row - horizontal layout */
  #creatorInfoPopupContent .creator-stats-wrapper .creator-stats-wrapper {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-bottom: 8px;
  }

  #creatorInfoPopupContent .creator-stats-wrapper .creator-stats-wrapper > div {
    text-align: center;
  }

  .creator-info .creator-stats-text {
    font-size: 9px !important;
  }

  .creator-info .creator-profile-followers-count,
  .creator-info .creator-profile-views-count,
  .creator-info .creator-profile-content-type {
    font-size: 14px !important;
  }

  /* Video separator */
  .creator-videos-separator-wrapper {
    margin-top: -20px !important;
  }

  #creatorInfoPopupContent .creator-videos-separator {
    height: 30px !important;
  }

  #creatorInfoPopupContent .creator-videos-top-text {
    height: 20px !important;
    right: 20px !important;
    top: 6px !important;
  }

  /* Videos wrapper */
  .creator-videos-wrapper {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    padding: 8px !important;
  }

  .creator-videos-wrapper .card-wrapper {
    width: auto !important;
    margin: 0 !important;
  }

  .creator-videos-wrapper .card-custom {
    width: auto !important;
  }

  .creator-videos-wrapper .popup-creator-video {
    width: 70px !important;
    height: 100px !important;
    object-fit: cover;
  }

  .creator-videos-wrapper .card-custom .card-body {
    padding: 3px 0 !important;
  }

  .creator-videos-wrapper .card-custom .icon-text {
    font-size: 9px !important;
  }

  /* Pagination */
  #creator-videos-pagination {
    margin-top: 5px !important;
    margin-bottom: 10px !important;
  }

  #creator-videos-pagination .pagination {
    gap: 3px !important;
  }

  #creator-videos-pagination .pagination li a {
    padding: 3px 7px !important;
    font-size: 10px !important;
  }

  .riot-id-input {
    width: 100%;
    max-width: 260px;
    height: 42px;
    font-size: 13px;
  }
}

@media only screen and (max-width: 600px) and (orientation: portrait) {
  .header-text {
    font-size: 18px;
  }

  .confirm-button {
    width: 220px;
    height: 38px;
    font-size: 12px;
  }

  /* Info Popup (THỂ LỆ) - smaller screens */
  #infoPopup .popup-body {
    max-height: 65vh;
  }

  #infoPopup .header-text {
    font-size: 16px;
  }

  .info-content {
    font-size: 11px;
  }

  .info-content h3 {
    font-size: 14px;
  }

  .info-content h4 {
    font-size: 12px;
  }

  /* Creator Info Popup - smaller screens */
  .creator-info .creator-profile-image {
    width: 90px !important;
    height: 90px !important;
  }

  #creatorInfoPopupContent .creator-popup-title {
    font-size: 16px;
  }

  #creatorInfoPopupContent .creator-profile-id {
    font-size: 11px !important;
    height: 28px !important;
    width: 120px !important;
  }

  #creatorInfoPopupContent .creator-profile-name {
    font-size: 14px !important;
  }

  #creatorInfoPopupContent .creator-description {
    font-size: 10px !important;
  }

  .creator-info .creator-stats-text {
    font-size: 8px !important;
  }

  .creator-info .creator-profile-followers-count,
  .creator-info .creator-profile-views-count,
  .creator-info .creator-profile-content-type {
    font-size: 12px !important;
  }

  .creator-videos-wrapper .popup-creator-video {
    width: 60px !important;
    height: 90px !important;
  }

  .creator-videos-wrapper .card-custom .icon-text {
    font-size: 8px !important;
  }

  #creatorInfoPopupContent .creator-videos-top-text {
    height: 18px !important;
    right: 15px !important;
  }

  #creatorInfoPopupContent .creator-videos-separator {
    height: 25px !important;
  }

  .creator-videos-separator-wrapper {
    margin-top: -15px !important;
  }
}

/*--------------------------------------------------------------
# iOS SPECIFIC FIXES - Portrait Only
--------------------------------------------------------------*/
@supports (-webkit-touch-callout: none) {
  @media (orientation: portrait) {
    .full-frame {
      min-height: -webkit-fill-available;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
      font-size: 16px !important;
    }
  }
}

/*--------------------------------------------------------------
# SAFE AREA INSETS (Notch/Dynamic Island) - Portrait Only
--------------------------------------------------------------*/
@supports (padding-top: env(safe-area-inset-top)) {
  @media only screen and (max-width: 992px) and (orientation: portrait) {
    .header {
      padding-top: calc(8px + env(safe-area-inset-top));
    }

    .footer {
      padding-bottom: env(safe-area-inset-bottom);
    }
  }
}
