/*
Template: StreamLab - Streamlab - Video Streaming HTML5 Template
Author: Gentechtree
Version: 1.0
Design and Developed by: Gentechtree
*/
@media (max-width:1499px) {
	.gen-appstore-logo, .gen-playstore-logo { height: 38px; }
}

/* ============================================================
   ColombiaPorn — Responsive Overrides
   ============================================================ */

/* ── Tablet grande (≤1199px) ────────────────────────────── */
@media (max-width: 1199px) {
  header#gen-header .gen-search-form {
    width: 200px;
  }
}

/* ── Tablet (≤991px) ────────────────────────────────────── */
@media (max-width: 991px) {

  /* Header: ocultar buscador expandido, mostrar ícono */
  header#gen-header .gen-search-form {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    width: calc(100vw - 24px);
    max-width: 380px;
    background: rgba(22,22,22,0.97);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 10px 12px;
    z-index: 999;
  }

  header#gen-header .gen-search-form.open {
    display: block;
  }

  header#gen-header #gen-seacrh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-size: 15px;
  }

  header#gen-header .gen-search-form::before {
    top: 23px;
    left: 22px;
  }

  header#gen-header .gen-search-form .search-field {
    padding-left: 36px;
  }

  /* Grid 2 columnas en tablet */
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* ── Móvil (≤767px) ─────────────────────────────────────── */
@media (max-width: 767px) {

  :root {
    --cp-header-height: 58px;
  }

  body {
    padding-top: var(--cp-header-height);
  }

  /* Header más compacto */
  header#gen-header.gen-header-style-1 .gen-bottom-header {
    padding: 0;
  }

  header#gen-header.gen-header-style-1 .gen-bottom-header .navbar .navbar-brand img.logo {
    max-height: 36px;
  }

  /* Navbar toggler: área táctil generosa */
  .navbar-toggler {
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Menú móvil desplegado */
  .navbar-collapse {
    background: rgba(16,16,16,0.98);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 10px 0;
  }

  header#gen-header .gen-bottom-header .navbar .navbar-nav li a {
    padding: 12px 20px;
    font-size: 15px;
    display: block;
  }

  /* Buscador en móvil: ocupa el ancho completo */
  header#gen-header .gen-search-form {
    right: 0;
    left: 0;
    max-width: none;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    top: 100%;
  }

  /* Sección principal: menos padding */
  section.gen-section-padding-2 {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  /* Título de sección */
  .gen-more-title {
    font-size: 17px !important;
    margin-bottom: 12px !important;
  }

  /* Categorías: scroll horizontal sin saltos */
  .cp-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
    gap: 7px;
    margin-bottom: 14px;
  }

  .cp-categories::-webkit-scrollbar {
    display: none;
  }

  .cp-cat-pill {
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 13px;
    min-height: 34px;
  }

  /* Grid 2 columnas en móvil */
  .col-xl-3,
  .col-lg-4,
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 6px;
    padding-right: 6px;
  }

  .row {
    margin-left: -6px;
    margin-right: -6px;
  }

  /* Títulos de card más pequeños */
  .gen-carousel-movies-style-3 .gen-movie-contain .gen-movie-info h3 {
    font-size: 12px;
    line-height: 1.35;
  }

  .gen-carousel-movies-style-3 .gen-movie-contain .gen-info-contain {
    padding: 7px 8px 9px;
  }

  .gen-carousel-movies-style-3 {
    margin-bottom: 12px;
  }

  /* Botón play más pequeño en móvil */
  .gen-carousel-movies-style-3 .gen-movie-contain .gen-movie-action .gen-button {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 13px;
  }

  /* Paginación táctil */
  .gen-pagination .page-numbers li .page-numbers {
    min-width: 44px;
    height: 44px;
    font-size: 15px;
  }

  /* Footer en columna única */
  footer#gen-footer .col-xl-4,
  footer#gen-footer .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 24px;
  }

  footer#gen-footer .gen-footer-top {
    padding-top: 30px;
    padding-bottom: 10px;
  }

  /* Back-to-top: posición cómoda en móvil */
  #back-to-top {
    bottom: 20px;
    right: 16px;
  }

  #back-to-top .top {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }

  /* Sección de detalle de video */
  .gen-single-movie-wrapper {
    margin: 0;
  }

  .gen-video-holder iframe,
  .gen-video-holder video {
    min-height: 220px;
  }

  .gen-single-movie-info {
    padding: 14px 0 0;
  }

  .gen-title {
    font-size: 18px !important;
    line-height: 1.4 !important;
  }
}

/* ── Móvil pequeño (≤480px) ─────────────────────────────── */
@media (max-width: 480px) {

  /* 2 columnas apretadas en pantallas muy pequeñas */
  .col-xl-3,
  .col-lg-4,
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 4px;
    padding-right: 4px;
  }

  .row {
    margin-left: -4px;
    margin-right: -4px;
  }

  .gen-carousel-movies-style-3 .gen-movie-contain .gen-movie-info h3 {
    font-size: 11px;
  }

  .cp-duration-badge {
    font-size: 10px;
    padding: 2px 5px;
  }
}

/* ── Hover desactivado en touch ─────────────────────────── */
@media (hover: none) {
  /* En dispositivos touch, mostrar el overlay siempre */
  .gen-carousel-movies-style-3 .gen-movie-contain .gen-movie-img::before {
    opacity: 0.4;
  }

  .gen-carousel-movies-style-3 .gen-movie-contain .gen-movie-action {
    opacity: 1;
  }

  .gen-carousel-movies-style-3 .gen-movie-contain .gen-movie-action .gen-button {
    width: 42px;
    height: 42px;
    line-height: 42px;
    font-size: 14px;
  }
}
