:root {
    --primary-color: #e50914;
    --accent-color: #ff0055;
    --bg-dark: #1a1d29;
    --bg-black: #0b0c10;
    --bg-card: #20232d;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

/* Navbar Redesign */
.navbar {
    background-color: rgba(11, 12, 16, 0.95);
    padding: 10px 4%;
    height: 70px;
    border-bottom: 1px solid #222;
}

.nav-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
}

.logo { width: 100px; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-item { position: relative; }

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
}

.nav-link:hover { color: var(--accent-color); }

/* Submenu */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #151821;
    min-width: 180px;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
}

.nav-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    color: white;
    padding: 8px 20px;
    display: block;
    text-decoration: none;
    font-size: 13px;
}

.submenu li a:hover { background: var(--accent-color); }

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 300px;
    position: relative;
}

.search-input {
    width: 100%;
    background: #20232d;
    border: 1px solid #333;
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    font-size: 13px;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
}

/* Movie Grid Improved */
.grid-container {
    padding: 40px 4%;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.movie-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

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

.card-img-container {
    position: relative;
    aspect-ratio: 2/3;
}

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

/* Tags */
.tag-quality {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #6a1b9a;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

.tag-year {
    position: absolute;
    top: 10px;
    left: 45px;
    background: #e91e63;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
}

.tag-imdb {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fbc02d;
    color: black;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 3px;
}

.movie-card-info {
    padding: 12px;
    text-align: center;
}

.movie-card-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #efefef;
}

/* Category Tabs */
.tabs-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.tab-btn {
    background: #20232d;
    color: var(--text-gray);
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--accent-color);
    color: white;
}

/* Hero Slider */
.hero-slider {
    height: 70vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
}

.slider-container {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    display: flex;
    align-items: center;
    padding: 0 6%;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-content {
    max-width: 600px;
    z-index: 10;
    transform: translateY(30px);
    transition: transform 0.8s ease;
}

.slide.active .slide-content {
    transform: translateY(0);
}

.slide-tag {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
}

.slide-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #ccc;
}

.slide-meta span i {
    color: #fbc02d;
}

.slide-description {
    font-size: 16px;
    color: #ddd;
    margin-bottom: 30px;
    line-height: 1.6;
}

.slide-actions {
    display: flex;
    gap: 15px;
}

.btn-list {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-list:hover {
    background: rgba(255, 255, 255, 0.2);
}

.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition);
    font-size: 18px;
}

.slider-nav button:hover {
    background: var(--accent-color);
}

.prev-slide { left: 20px; }
.next-slide { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent-color);
    width: 30px;
    border-radius: 10px;
}

/* Continuar Viendo */
.continue-card {
    min-width: 280px;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.continue-img {
    position: relative;
    aspect-ratio: 16/9;
}

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

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.progress {
    height: 100%;
    background: var(--accent-color);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.continue-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    font-size: 30px;
    color: white;
}

.continue-info {
    padding: 12px;
}

.continue-info h4 {
    margin: 0;
    font-size: 14px;
    margin-bottom: 5px;
}

.continue-info span {
    font-size: 12px;
    color: var(--text-gray);
}

/* Movie Grid Improved Hover */
.movie-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.movie-card:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.movie-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 10%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
}

.movie-card:hover::after {
    opacity: 1;
}

.card-img-container {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover img {
    transform: scale(1.1);
}

/* Channels Section */
.channels-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
}

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

.channel-card {
    min-width: 240px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.channel-card:hover {
    background: #2a2e3a;
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.channel-logo-container {
    width: 70px;
    height: 70px;
    background: #151821;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.channel-logo-container img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.live-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ff0000;
    color: white;
    font-size: 8px;
    font-weight: bold;
    text-align: center;
    padding: 2px 0;
}

.channel-info {
    flex: 1;
}

.channel-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.channel-program {
    font-size: 11px;
    color: var(--text-gray);
    margin: 0;
}

.arrow-btn {
    background: #1a1d29;
    color: var(--text-gray);
    border: 1px solid #333;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.arrow-btn:hover, .arrow-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Footer Professional */
.footer-main {
    background: #07080a;
    padding: 80px 6% 40px;
    border-top: 1px solid #1a1d29;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-gray);
    line-height: 1.8;
    margin: 20px 0;
    font-size: 14px;
    max-width: 400px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #151821;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #1a1d29;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    font-size: 13px;
}

/* Movies Rows */
.row {
    margin-top: -50px;
    padding: 0 4%;
    position: relative;
    z-index: 20;
    margin-bottom: 40px;
}

.row-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.row-posters {
    display: flex;
    overflow-y: hidden;
    overflow-x: scroll;
    padding: 20px 0;
    gap: 10px;
}

.row-posters::-webkit-scrollbar {
    display: none;
}

.movie-card {
    flex: 0 0 auto;
    width: 200px;
    height: 300px;
    position: relative;
    transition: transform 0.45s;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    perspective: 1000px;
}

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

.movie-card:hover {
    transform: scale(1.1) translateY(-10px);
    z-index: 30;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.movie-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.movie-card:hover .movie-info {
    opacity: 1;
}

.movie-info h4 {
    margin: 0;
    font-size: 14px;
}

/* Player Page */
.player-container {
    width: 100%;
    height: 100vh;
    background-color: black;
    display: flex;
    flex-direction: column;
}

.player-header {
    padding: 20px;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(rgba(0,0,0,0.8), transparent);
}

.btn-back {
    color: white;
    text-decoration: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-wrapper {
    flex: 1;
    position: relative;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.watermark {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 50;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .movie-card {
        width: 150px;
        height: 225px;
    }
}
