  /* Variables CSS */
  :root {
    --primary: #ff4d89;
    --secondary: #2a2a72;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --accent: #00d2d3;
  }

  /* Reset y configuración base */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, var(--dark), #0f0f1a);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* Contenedor principal */
  .app-container {
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 8px;
  }

  /* Header */
  header {
    padding: 12px 0;
    background: linear-gradient(135deg, var(--secondary), var(--dark));
    position: relative;
    margin: 0 -8px;
  }

  .logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
  }

  .logo-content {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .logo-image {
    width: 101px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
  }

  .logo h1 {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .logo i {
    font-size: 18px;
    color: var(--primary);
  }

  /* Barra de búsqueda */
  .search-bar {
    margin: 8px 12px 0;
    position: relative;
  }

  .search-bar input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border-radius: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    outline: none;
  }

  .search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 14px;
  }

  /* Botones de acción */
  .action-buttons {
    display: flex;
    gap: 6px;
    margin: 8px 12px 0;
  }

  .action-btn {
    flex: 1;
    padding: 6px 8px;
    border-radius: 16px;
    background: rgba(255, 77, 137, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 32px;
  }

  /* Resultados de búsqueda */
  .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-top: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
  }

  .search-results.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .search-result-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .search-result-item:hover {
    background: rgba(255, 77, 137, 0.1);
  }

  .search-result-image {
    width: 40px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 10px;
  }

  .search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .search-result-info {
    flex: 1;
  }

  .search-result-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .search-result-meta {
    display: flex;
    gap: 8px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
  }

  .search-result-category {
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
  }

  .search-result-rating {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .search-result-rating i {
    color: var(--primary);
    font-size: 8px;
  }

  /* Modal de categorías */
  .categories-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
  }

  .categories-modal.show {
    opacity: 1;
    visibility: visible;
  }

  .categories-modal-content {
    background: var(--dark);
    border-radius: 16px;
    padding: 20px;
    max-width: 90vw;
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.2s ease;
  }

  .categories-modal.show .categories-modal-content {
    transform: scale(1);
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
  }

  .modal-close:active {
    background: rgba(255, 77, 137, 0.2);
  }

  .categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .category-item {
    padding: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    background: rgba(255, 77, 137, 0.1);
    text-align: center;
    transition: background 0.2s ease;
  }

  .category-item:active {
    background: rgba(255, 77, 137, 0.3);
  }

  .category-item.active {
    background: var(--primary);
    color: white;
  }

  /* Contenido principal */
  .content-wrapper {
    padding-bottom: 70px;
  }

  .main-content {
    padding: 12px 0;
  }

  /* Película destacada */
  .highlight-movie {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    height: 140px;
  }

  .highlight-movie img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .highlight-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  }

  .highlight-info h2 {
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 700;
  }

  .highlight-info .meta {
    display: flex;
    gap: 10px;
    font-size: 10px;
    margin-bottom: 8px;
    opacity: 0.8;
  }

  .highlight-info .buttons {
    display: flex;
    gap: 6px;
  }

  .highlight-info .buttons button {
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
  }

  .highlight-info .buttons .play {
    background: var(--primary);
    color: white;
  }

  .highlight-info .buttons .info {
    background: rgba(255, 255, 255, 0.2);
    color: white;
  }

  /* Títulos de sección */
  .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }

  .section-title h2 {
    font-size: 16px;
    font-weight: 700;
  }

  .section-title a {
    font-size: 11px;
    color: var(--primary);
    text-decoration: none;
  }

  /* Grid de películas */
  .movies-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    scrollbar-width: none;
  }

  .movies-grid::-webkit-scrollbar {
    display: none;
  }

  .movie-card {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 90px;
    height: 135px;
  }

  .movie-card:hover {
    transform: translateY(-4px);
  }

  .movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .movie-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  }

  .movie-info h3 {
    font-size: 9px;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .movie-info .rating {
    display: flex;
    align-items: center;
    font-size: 8px;
  }

  .movie-info .rating i {
    color: var(--primary);
    margin-right: 2px;
    font-size: 7px;
  }

  /* Navegación inferior */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 100;
  }

  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 9px;
    transition: all 0.3s ease;
    padding: 4px;
  }

  .nav-item i {
    font-size: 16px;
    margin-bottom: 2px;
  }

  .nav-item.active {
    color: var(--primary);
    transform: translateY(-2px);
  }

  /* Efectos */
  .glow {
    text-shadow: 0 0 8px rgba(255, 77, 137, 0.5);
  }

  .gradient-text {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* Responsive para tablets */
  @media (min-width: 768px) {
    .app-container {
      max-width: 768px;
      padding: 0 16px;
    }

    .highlight-movie {
      height: 200px;
    }

    .movie-card {
      width: 120px;
      height: 180px;
    }

    .section-title h2 {
      font-size: 18px;
    }
  }

  /* Responsive para desktop */
  @media (min-width: 1024px) {
    .app-container {
      max-width: 1200px;
      padding: 0 24px;
    }

    .highlight-movie {
      height: 300px;
    }

    .movie-card {
      width: 150px;
      height: 225px;
    }

    .movies-grid {
      gap: 12px;
    }
  }