/* Mobile-specific styles for movie.php */

/* Large Mobile/Tablet Styles (1024px and below) */
@media (max-width: 1024px) {
    /* General touch improvements */
    .movie-page button,
    .movie-page a.btn,
    .rating-stars .star,
    .plyr__controls button {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
    }
    
    /* Optimize scrolling */
    html, body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Movie page container */
    .movie-page {
        padding: 20px 15px;
    }
    
    /* Movie header section */
    .movie-header {
        margin-bottom: 20px;
    }
    
    .movie-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    /* Movie meta information */
    .movie-meta {
        display: flex;
        gap: 12px;
        flex-wrap: nowrap;
        margin-bottom: 15px;
        align-items: center;
    }
    
    .movie-meta span {
        font-size: 0.95rem;
        white-space: nowrap;
    }
    
    /* Video player section */
    .movie-player {
        margin-bottom: 25px;
        position: relative;
        overflow: hidden;
        aspect-ratio: 16/9;
    }
    
    #player-container {
        width: 100%;
        height: 100%;
    }
    
    #videoPlayer {
        width: 100%;
        height: 100%;
    }
    
    /* Video stats */
    .video-stats {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 0.8rem;
        z-index: 10;
    }
    
    /* Movie details section */
    .movie-details {
        margin-bottom: 30px;
    }
    
    .movie-details h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .movie-synopsis {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .movie-creator {
        font-size: 0.9rem;
        color: #666;
    }
    
    /* Similar movies section */
    .similar-movies {
        margin-top: 30px;
    }
    
    .similar-movies h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .movie-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .movie-card {
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .movie-card .movie-thumbnail {
        aspect-ratio: 16/9;
        overflow: hidden;
    }
    
    .movie-card .movie-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .movie-card h3 {
        padding: 10px;
        font-size: 1rem;
        margin: 0;
    }
}

/* Medium Mobile Styles (768px and below) */
@media (max-width: 768px) {
    .movie-page {
        padding: 15px 10px;
    }
    
    .movie-title {
        font-size: 1.8rem;
    }
    
    .movie-meta {
        gap: 10px;
        flex-wrap: nowrap;
    }
    
    .movie-meta span {
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .movie-details h2 {
        font-size: 1.4rem;
    }
    
    .movie-synopsis {
        font-size: 0.95rem;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .movie-card h3 {
        font-size: 0.95rem;
        padding: 8px;
    }
}

/* Small Mobile Styles (480px and below) */
@media (max-width: 480px) {
    .movie-page {
        padding: 12px 8px;
    }
    
    .movie-title {
        font-size: 1.5rem;
    }
    
    .movie-meta {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
    
    .movie-meta span {
        white-space: nowrap;
    }
    
    .movie-details h2 {
        font-size: 1.3rem;
    }
    
    .movie-synopsis {
        font-size: 0.9rem;
    }
    
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .movie-card h3 {
        font-size: 0.9rem;
        padding: 6px;
    }
} 