*{

box-sizing: border-box;
  margin: 0;
    padding: 0;
      -webkit-tap-highlight-color: transparent;
    }

    body {
        background-color: #0f0f0f;
          color: #f1f1f1;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
              min-height: 100vh;
            }

            .app-container {
                display: flex;
                  flex-direction: column;
                    width: 100%;
                      max-width: 480px;
                        /* Ancho optimizado para visualización móvil real */
                        margin: 0 auto;
                          background-color: #0f0f0f;
                            min-height: 100vh;
                              padding-bottom: 40px;
                            }

                            /* Top Bar */
                            .top-bar {
                                display: flex;
                                  justify-content: space-between;
                                    align-items: center;
                                      padding: 14px 16px;
                                        background-color: #181818;
                                          border-bottom: 1px solid #282828;
                                        }

                                        .top-bar h1 {
                                            font-size: 1rem;
                                              font-weight: 600;
                                                color: #fff;
                                                  white-space: nowrap;
                                                    overflow: hidden;
                                                      text-overflow: ellipsis;
                                                        max-width: 55%;
                                                      }

                                                      .settings-group select {
                                                          background-color: #222;
                                                            color: #fff;
                                                              border: 1px solid #383838;
                                                                padding: 6px 10px;
                                                                  border-radius: 6px;
                                                                    font-size: 0.8rem;
                                                                      outline: none;
                                                                    }

                                                                    /* Player Section */
                                                                    .player-section {
                                                                        width: 100%;
                                                                          background-color: #000;
                                                                        }

                                                                        .video-wrapper {
                                                                            position: relative;
                                                                              width: 100%;
                                                                                aspect-ratio: 16/9;
                                                                                  background-color: #000;
                                                                                }

                                                                                video {
                                                                                    width: 100%;
                                                                                      height: 100%;
                                                                                        object-fit: contain;
                                                                                      }

                                                                                      .now-playing {
                                                                                          font-size: 0.85rem;
                                                                                            color: #aaa;
                                                                                              padding: 10px 16px;
                                                                                                background-color: #141414;
                                                                                                  border-bottom: 1px solid #222;
                                                                                                }

                                                                                                /* Overlay Cuenta Regresiva */
                                                                                                #countdown-overlay {
                                                                                                    position: absolute;
                                                                                                      bottom: 14px;
                                                                                                        right: 14px;
                                                                                                          background-color: rgba(20, 20, 20, 0.95);
                                                                                                            border: 1px solid #444;
                                                                                                              padding: 10px 14px;
                                                                                                                border-radius: 8px;
                                                                                                                  display: flex;
                                                                                                                    flex-direction: column;
                                                                                                                      gap: 6px;
                                                                                                                        align-items: center;
                                                                                                                          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
                                                                                                                            z-index: 10;
                                                                                                                          }

                                                                                                                          #countdown-overlay.hidden {
                                                                                                                              display: none;
                                                                                                                            }

                                                                                                                            #countdown-overlay p {
                                                                                                                                font-size: 0.85rem;
                                                                                                                                  color: #fff;
                                                                                                                                    font-weight: 500;
                                                                                                                                  }

                                                                                                                                  #cancel-countdown {
                                                                                                                                      background-color: #2c2c2c;
                                                                                                                                        color: #ff6b6b;
                                                                                                                                          border: none;
                                                                                                                                            padding: 4px 12px;
                                                                                                                                              border-radius: 4px;
                                                                                                                                                cursor: pointer;
                                                                                                                                                  font-size: 0.8rem;
                                                                                                                                                    font-weight: 600;
                                                                                                                                                  }

                                                                                                                                                  /* Navigation Container */
                                                                                                                                                  .navigation-container {
                                                                                                                                                      display: flex;
                                                                                                                                                        flex-direction: column;
                                                                                                                                                          gap: 16px;
                                                                                                                                                            padding: 16px;
                                                                                                                                                          }

                                                                                                                                                          .nav-block label {
                                                                                                                                                              display: block;
                                                                                                                                                                font-size: 0.75rem;
                                                                                                                                                                  color: #888;
                                                                                                                                                                    margin-bottom: 8px;
                                                                                                                                                                      text-transform: uppercase;
                                                                                                                                                                        letter-spacing: 0.8px;
                                                                                                                                                                          font-weight: 600;
                                                                                                                                                                        }

                                                                                                                                                                        /* Scroll horizontal para series y temporadas */
                                                                                                                                                                        .horizontal-scroll {
                                                                                                                                                                            display: flex;
                                                                                                                                                                              gap: 8px;
                                                                                                                                                                                overflow-x: auto;
                                                                                                                                                                                  padding-bottom: 4px;
                                                                                                                                                                                    scrollbar-width: none;
                                                                                                                                                                                  }

                                                                                                                                                                                  .horizontal-scroll::-webkit-scrollbar {
                                                                                                                                                                                      display: none;
                                                                                                                                                                                    }

                                                                                                                                                                                    .series-item,
                                                                                                                                                                                    .season-btn {
                                                                                                                                                                                        background-color: #1a1a1a;
                                                                                                                                                                                          border: 1px solid #2b2b2b;
                                                                                                                                                                                            color: #ccc;
                                                                                                                                                                                              padding: 9px 14px;
                                                                                                                                                                                                border-radius: 6px;
                                                                                                                                                                                                  font-size: 0.85rem;
                                                                                                                                                                                                    white-space: nowrap;
                                                                                                                                                                                                      cursor: pointer;
                                                                                                                                                                                                        transition: all 0.15s ease;
                                                                                                                                                                                                      }

                                                                                                                                                                                                      .series-item.active,
                                                                                                                                                                                                      .season-btn.active {
                                                                                                                                                                                                          background-color: #383838;
                                                                                                                                                                                                            border-color: #666;
                                                                                                                                                                                                              color: #fff;
                                                                                                                                                                                                                font-weight: 600;
                                                                                                                                                                                                              }

                                                                                                                                                                                                              /* Grid de Episodios */
                                                                                                                                                                                                              .episodes-grid {
                                                                                                                                                                                                                  display: grid;
                                                                                                                                                                                                                    grid-template-columns: repeat(3, 1fr);
                                                                                                                                                                                                                      gap: 8px;
                                                                                                                                                                                                                    }

                                                                                                                                                                                                                    .episode-btn {
                                                                                                                                                                                                                        background-color: #1a1a1a;
                                                                                                                                                                                                                          border: 1px solid #2b2b2b;
                                                                                                                                                                                                                            color: #ccc;
                                                                                                                                                                                                                              padding: 11px 8px;
                                                                                                                                                                                                                                text-align: center;
                                                                                                                                                                                                                                  border-radius: 6px;
                                                                                                                                                                                                                                    cursor: pointer;
                                                                                                                                                                                                                                      font-size: 0.85rem;
                                                                                                                                                                                                                                        transition: all 0.15s ease;
                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                      .episode-btn.active {
                                                                                                                                                                                                                                          background-color: #383838;
                                                                                                                                                                                                                                            border-color: #666;
                                                                                                                                                                                                                                              color: #fff;
                                                                                                                                                                                                                                                font-weight: 600;
                                                                                                                                                                                                                                              }
