.home header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1000;
    transition: background-color 0.3s;
}

.home .search-container {
    display: flex;
    align-items: center;
}

.home .search-icon {
    font-size: 20px;
    cursor: pointer;
    margin-right: 20px;
}

.home .profile {
    width: 32px;
    height: 32px;
    background-color: #e50914;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
}

.home .search-bar {
    display: none;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 5px 15px;
    border-radius: 4px;
    width: 100%;
    position: absolute;
    left: 0;
    top: 20px;
    height: calc(100% - 10px);
    padding: 0 40px;
}

.home .search-bar.active {
    display: flex;
}

.home .back-arrow {
    font-size: 20px;
    cursor: pointer;
    margin-right: 20px;
}

.home .search-input {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    width: 100%;
    padding: 8px;
    outline: none;
}

.home .clear-search {
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
    display: none;
}

.home .clear-search.active {
    display: block;
}

.home main {
    margin-top: 80px;
    padding: 0 40px;
}

.home .featured-movie {
    padding: 0 40px 40px;
}

.home .featured-card {
    position: relative;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #2a2a2a;
    border: 3px solid #e50914;
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.5);
}

.home .featured-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.featured-poster {
    width: auto;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.featured-poster:hover {
    transform: translate(-50%, -50%) scale(1.02);
}

.home .featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(229, 9, 20, 0.1), rgba(0, 0, 0, 0.95));
    padding: 40px;
}

.home .featured-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.home .featured-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #ccc;
}

.home .featured-play-button {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.home .featured-play-button:hover {
    opacity: 1;
    background: #e50914;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

.home .featured-play-button .play-icon {
    color: white;
    font-size: 24px;
    transition: transform 0.2s ease;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transform: translateX(1px);
}

.home .featured-play-button:hover .play-icon {
    transform: scale(1.1);
}

.home .featured-play-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home .featured-play-button:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .home .featured-play-button {
        left: 25px;
        width: 50px;
        height: 50px;
    }

    .home .featured-play-button .play-icon {
        font-size: 18px;
    }

    .home .featured-play-button:hover {
        transform: translateY(-50%) scale(1.08);
    }
}

@media (max-width: 480px) {
    .home .featured-play-button {
        left: 20px;
        width: 45px;
        height: 45px;
    }

    .home .featured-play-button .play-icon {
        font-size: 16px;
    }

    .home .featured-play-button:hover {
        transform: translateY(-50%) scale(1.05);
    }
}

.home .movies-carousel {
    padding: 20px 40px;
}

.home .carousel-container {
    max-width: 100%;
}

.home .movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.home .movie-card {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #2a2a2a;
    border: 2px solid transparent;
}

.home .movie-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.home .movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home .movie-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 15px;
}

.home .movie-card-title {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
}

.home .movie-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #141414;
    z-index: 2000;
    overflow-y: auto;
}

.home .player-container {
    padding: 80px 0 40px;
    margin: 0 auto;
    position: relative;
}

.home .info-content {
    padding-left: 40px;
    padding-right: 40px;
    max-width: 1200px;
}

.home .back-arrowMovie {
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

.home .close-player:hover {
    background: rgba(255, 255, 255, 0.3);
}

.home .main-video {
    width: 100%;
    height: 500px;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.home .teaser-player {
    width: 100%;
    height: 100%;
    border: none;
}

.home .player-info {
    margin-bottom: 40px;
}

.home .player-title {
    font-size: 18px;
    margin-bottom: 15px;
}

.home .player-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ccc;
}

.home .player-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #999;
}

.home .videos-section {
    margin-top: 40px;
}

.home .videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.home .video-thumbnail {
    position: relative;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #2a2a2a;
    border: 2px solid transparent;
}

.home .video-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.home .video-thumbnail:hover .video-thumb-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
}

.home .video-thumbnail.active {
    border: 2px solid #e50914;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.6);
}

.home .video-thumbnail.active .video-thumb-overlay {
    background: rgba(229, 9, 20, 0.2);
    opacity: 1;
}

.home .video-thumbnail.active:hover .video-thumb-overlay {
    background: rgba(229, 9, 20, 0.3);
}

.home .thumbnail-video {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.home .video-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.home .play-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: white;
}

.home .video-number {
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.home .active-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e50914;
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: bold;
    display: none;
    z-index: 3;
}

.home .video-thumbnail.active .active-indicator {
    display: block;
}

.home .search-results {
    display: none;
    padding: 20px;
}

.home .search-results.active {
    display: block;
}

.home .result-item {
    padding: 10px;
    border-bottom: 1px solid #333;
    cursor: pointer;
}

.home .result-item:hover {
    background-color: #2a2a2a;
}

.home .subscribe-btn-large {
    background: #e50914;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    margin-top: 15px;
}

.home .subscribe-section {
    margin: 40px auto 0;
    ;
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: fit-content;
}

.home .subscribe-message {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .home header {
        padding: 15px 20px;
    }

    .home main {
        padding: 0 20px;
        margin-top: 70px;
    }

    .home .featured-movie {
        padding: 0 20px 20px;
    }

    .home .featured-card {
        height: 400px;
    }

    .home .featured-overlay {
        padding: 20px;
    }

    .home .featured-title {
        font-size: 32px;
    }

    .home .featured-description {
        font-size: 16px;
    }

    .home .featured-play-button {
        right: 25px;
        width: 50px;
        height: 50px;
    }

    .home .featured-play-button .play-icon {
        font-size: 16px;
        margin-left: 2px;
    }

    .home .featured-play-button:hover {
        transform: translateY(-50%) scale(1.08);
    }

    .home .movies-carousel {
        padding: 20px;
    }

    .home .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .home .movie-card {
        height: 220px;
    }

    .home .main-video {
        height: 300px;
    }

    .home .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .home .active-indicator {
        font-size: 9px;
        padding: 4px 8px;
    }

    .home .search-bar {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {

    .home .featured-card {
        height: 300px;
    }

    .home .featured-title {
        font-size: 14px;
    }

    .home .featured-description {
        font-size: 14px;
    }

    .home .featured-play-button {
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .home .featured-play-button .play-icon {
        font-size: 14px;
        margin-left: 2px;
    }

    .home .featured-play-button:hover {
        transform: translateY(-50%) scale(1.05);
    }

    .home .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .home .movie-card {
        height: 180px;
    }

    .home .main-video {
        height: 250px;
    }

    .home .videos-grid {
        grid-template-columns: 1fr;
    }

    .home .video-thumbnail {
        height: 150px;
    }

    .home .player-title {
        font-size: 16px;
    }

    .home .player-description {
        font-size: 16px;
    }

    .home .search-bar {
        padding: 0 15px;
    }
}

.home .video-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
}

.blue-square {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    background-color: transparent;
    border-radius: 4px;
}