:root {
    --primary: #e50914;
    --primary-dark: #b2070f;
    --dark: #000000;
    --dark-light: #1a1a1a;
    --light: #ffffff;
    --gray: #8c8c8c;
    --gray-dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.4;
    overflow-x: hidden;
    font-size: 13px;
}

/* Install App Banner Styles */
#install-banner {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 220px;
    background: var(--dark-light);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 8px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
    animation: slideIn 0.5s ease-out;
    display: none;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.install-header {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}

.install-logo {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
}

.install-title {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--light);
}

.install-subtitle {
    font-size: 0.65rem;
    color: var(--gray);
    margin-bottom: 8px;
    line-height: 1.1;
}

.install-buttons {
    display: flex;
    gap: 5px;
    justify-content: space-between;
}

.install-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.install-now {
    background: var(--primary);
    color: var(--light);
}

.install-now:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.install-later {
    background: transparent;
    color: var(--gray);
    border: 1px solid var(--gray);
}

.install-later:hover {
    color: var(--light);
    border-color: var(--light);
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loading-logo {
    width: 80px;
    margin-bottom: 12px;
}

.loading-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid var(--gray-dark);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid var(--gray-dark);
    height: 50px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.logo-img {
    height: 20px;
}

.logo-text {
    font-size: 1rem;
    font-weight: bold;
}

.logo-text span:first-child {
    color: var(--primary);
}

.logo-text span:last-child {
    color: var(--light);
}

.search-btn {
    background: none;
    border: none;
    color: var(--light);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    margin-top: 50px;
    padding: 0.8rem;
    position: relative;
    height: 40vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.hero-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 3px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: rgba(255,255,255,0.1);
    color: var(--light);
}

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

/* Content Sections */
.section {
    padding: 1rem 0.8rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: 0.95rem;
    font-weight: bold;
}

.see-more {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.75rem;
}

.movies-row {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding: 0.3rem 0;
    scrollbar-width: none;
}

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

/* Movie Cards */
.movie-card {
    min-width: 100px;
    background: var(--dark-light);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

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

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

.movie-info {
    padding: 0.5rem;
}

.movie-title {
    font-size: 0.7rem;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.6rem;
}

.movie-type {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary);
    color: white;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 0.5rem;
    font-weight: bold;
}

/* Continue Watching Progress */
.continue-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gray-dark);
}

.continue-progress-bar {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s;
}

.continue-watching-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0,0,0,0.7);
    color: var(--light);
    padding: 1px 3px;
    border-radius: 2px;
    font-size: 0.5rem;
    font-weight: bold;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 0.3rem;
    overflow-x: auto;
    padding: 0.6rem;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 0.3rem 0.6rem;
    background: var(--dark-light);
    border: none;
    border-radius: 12px;
    color: var(--light);
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
    font-size: 0.65rem;
}

.category-tab.active {
    background: var(--primary);
}

/* Search Page */
.search-page {
    min-height: 100vh;
    background: var(--dark);
    padding-top: 50px;
}

.search-header {
    padding: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid var(--gray-dark);
}

.search-back {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input {
    flex: 1;
    background: var(--dark-light);
    border: 1px solid var(--gray-dark);
    padding: 0.6rem;
    border-radius: 3px;
    color: var(--light);
    font-size: 0.8rem;
}

.search-results {
    padding: 0.6rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.6rem;
}

/* Movie Details Page */
.details-page {
    min-height: 100vh;
    background: var(--dark);
    padding-top: 50px;
}

.movie-details-header {
    padding: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid var(--gray-dark);
}

.details-back {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.movie-details-content {
    padding: 0.6rem;
}

.details-poster {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 0.6rem;
    display: block;
    border-radius: 5px;
}

.details-title {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.details-meta {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    color: var(--gray);
    font-size: 0.7rem;
}

.details-genre {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.genre-tag {
    background: var(--dark-light);
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
    font-size: 0.6rem;
}

.details-description {
    margin-bottom: 1rem;
    line-height: 1.3;
    font-size: 0.75rem;
}

.details-actions {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* Share Button */
.btn-share {
    background-color: rgba(255,255,255,0.1);
    color: var(--light);
}

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

/* Trailer Section */
.trailer-section {
    margin-bottom: 1rem;
}

.trailer-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.trailer-player {
    position: relative;
    width: 100%;
    height: 150px;
    background: var(--dark-light);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.trailer-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trailer-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.6rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trailer-time {
    font-size: 0.6rem;
    color: var(--light);
}

.trailer-action {
    background: var(--primary);
    color: var(--light);
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.6rem;
}

/* Cast Section */
.cast-section {
    margin-bottom: 1rem;
}

.cast-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.cast-grid {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding: 0.3rem 0;
}

.cast-card {
    min-width: 55px;
    text-align: center;
    flex-shrink: 0;
}

.cast-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.3rem;
}

.cast-name {
    font-size: 0.6rem;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
}

.cast-character {
    font-size: 0.55rem;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
}

/* Seasons & Episodes */
.seasons-section {
    margin-bottom: 1rem;
}

.seasons-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.season-selector {
    margin-bottom: 0.6rem;
}

.season-dropdown {
    width: 100%;
    padding: 0.6rem;
    background: var(--dark-light);
    border: 1px solid var(--gray-dark);
    border-radius: 3px;
    color: var(--light);
    font-size: 0.8rem;
    cursor: pointer;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.3rem;
}

.episode-card {
    background: var(--dark-light);
    border-radius: 2px;
    padding: 0.5rem 0.3rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.7rem;
}

.episode-card:hover {
    background: var(--primary);
}

.episode-number {
    font-size: 0.7rem;
    font-weight: bold;
}

/* Related Content */
.related-section {
    margin-bottom: 1rem;
}

.related-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* PLAYER STYLES - EXACT MATCH TO IMAGE */
.player-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 250;
    display: flex;
}

.player-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    z-index: 20;
    height: 60px;
}

.player-back {
    background: none;
    border: none;
    color: var(--light);
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-title {
    font-size: 16px;
    color: var(--light);
    font-weight: bold;
    flex: 1;
    text-align: center;
    padding: 0 15px;
}

.player-content {
    flex: 1;
    position: relative;
    background: #000;
}

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

/* Sidebar - Fixed positioning */
.player-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 100%);
    padding: 80px 20px 20px 20px;
    z-index: 15;
    overflow-y: auto;
}

.player-related-section {
    margin-bottom: 25px;
}

.player-section-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--light);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-view-more {
    color: var(--primary);
    font-size: 12px;
    text-decoration: none;
    font-weight: normal;
}

.player-movie-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.player-movie-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-movie-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.player-movie-poster {
    width: 50px;
    height: 65px;
    object-fit: cover;
    border-radius: 4px;
}

.player-movie-title {
    font-size: 14px;
    color: var(--light);
    font-weight: 500;
    line-height: 1.3;
}

.player-hr {
    height: 1px;
    background: rgba(255,255,255,0.3);
    border: none;
    margin: 20px 0;
}

/* Center Controls - Fixed positioning */
.player-center-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 15;
}

.player-main-time {
    font-size: 24px;
    color: var(--light);
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.player-play-btn-large {
    background: var(--primary);
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 24px;
    cursor: pointer;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.player-play-btn-large:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

/* Bottom Controls */
.player-bottom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 15;
}

.player-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
}

.player-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    width: 0%;
    position: relative;
    transition: width 0.1s ease;
}

.player-progress-handle {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-progress-container:hover .player-progress-handle {
    opacity: 1;
}

.player-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-controls-left, .player-controls-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-control-btn {
    background: none;
    border: none;
    color: var(--light);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.player-control-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Quality Selector */
.quality-selector {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.95);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    display: none;
    width: 200px;
    z-index: 25;
}

.quality-title {
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
    color: var(--light);
    font-weight: bold;
}

.quality-options {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.quality-option {
    padding: 6px 12px;
    background: var(--dark-light);
    border: none;
    border-radius: 4px;
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    min-width: 50px;
}

.quality-option.active {
    background: var(--primary);
}

.quality-option:hover {
    background: var(--primary);
}

/* Loading */
.player-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
}

.player-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Hide controls when not interacting */
.player-controls-hidden .player-header,
.player-controls-hidden .player-sidebar,
.player-controls-hidden .player-center-controls,
.player-controls-hidden .player-bottom-controls {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.player-page:hover .player-header,
.player-page:hover .player-sidebar,
.player-page:hover .player-center-controls,
.player-page:hover .player-bottom-controls {
    opacity: 1;
    pointer-events: all;
}

/* Fullscreen styles */
.player-page:fullscreen {
    width: 100vw;
    height: 100vh;
}

.player-page:fullscreen .player-video {
    object-fit: contain;
}

/* Download Options */
.download-options {
    background: rgba(0,0,0,0.8);
    padding: 0.6rem;
    border-radius: 5px;
    margin-top: 0.6rem;
    display: none;
}

.download-title {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.download-option {
    display: block;
    width: 100%;
    padding: 0.5rem 0.6rem;
    background: var(--dark-light);
    border: none;
    border-radius: 2px;
    color: var(--light);
    margin-bottom: 0.3rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s;
    font-size: 0.7rem;
}

.download-option:hover {
    background: var(--primary);
}

/* Category Page */
.category-page {
    min-height: 100vh;
    background: var(--dark);
    padding-top: 50px;
}

.category-header {
    padding: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid var(--gray-dark);
}

.category-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
}

.category-content {
    padding: 0.6rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.6rem;
}

/* Footer */
footer {
    padding: 1.2rem 0.6rem;
    text-align: center;
    border-top: 1px solid var(--gray-dark);
    margin-top: 1.2rem;
}

.footer-logo {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.footer-logo span:first-child {
    color: var(--primary);
}

.footer-logo span:last-child {
    color: var(--light);
}

.copyright {
    color: var(--gray);
    font-size: 0.65rem;
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-dark);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.6rem;
}

.mb-1 {
    margin-bottom: 0.6rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-light);
    color: var(--light);
    padding: 8px 12px;
    border-radius: 5px;
    border-left: 2px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 1001;
    display: none;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
}

.toast.show {
    display: flex;
    animation: toastIn 0.3s ease-out;
}

@keyframes toastIn {
    from { bottom: -30px; opacity: 0; }
    to { bottom: 12px; opacity: 1; }
}

/* Search Results List */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.5rem 0;
}

.search-result-item {
    display: flex;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--dark-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.search-result-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.2);
}

.search-result-poster {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-result-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
}

.search-result-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--light);
    margin: 0;
    line-height: 1.2;
}

.search-result-meta {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.search-result-meta span {
    font-size: 0.7rem;
    color: var(--gray);
}

.search-result-meta .type {
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: bold;
}

.search-result-genre {
    font-size: 0.7rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.2;
}

/* No results message */
.search-results .text-center {
    padding: 2rem 1rem;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Loading state for search */
.search-results .loading {
    padding: 2rem 0;
}

/* Responsive adjustments for very small screens */
@media (max-width: 360px) {
    .movie-card {
        min-width: 90px;
    }
    
    .movie-poster {
        height: 120px;
    }
    
    .category-content,
    .search-results {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
    
    .hero {
        height: 35vh;
    }
    
    .player-sidebar {
        width: 250px;
    }
}

/* Grid layout improvements */
.category-content .movie-card,
.search-results .movie-card {
    min-width: 100px;
}

.category-content .movie-poster,
.search-results .movie-poster {
    height: 140px;
}

/* Responsive design for search results */
@media (max-width: 480px) {
    .search-result-item {
        padding: 0.6rem;
        gap: 0.6rem;
    }
    
    .search-result-poster {
        width: 70px;
        height: 105px;
    }
    
    .search-result-title {
        font-size: 0.85rem;
    }
    
    .search-result-meta {
        gap: 0.6rem;
    }
}

/* Player responsive adjustments */
@media (max-width: 768px) {
    .player-sidebar {
        width: 250px;
    }
    
    .player-main-time {
        font-size: 20px;
    }
    
    .player-play-btn-large {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .player-sidebar {
        width: 200px;
        padding: 70px 15px 15px 15px;
    }
    
    .player-movie-poster {
        width: 40px;
        height: 55px;
    }
    
    .player-movie-title {
        font-size: 12px;
    }
    
    .player-section-title {
        font-size: 16px;
    }
    
    .player-main-time {
        font-size: 18px;
    }
    
    .player-control-btn {
        font-size: 14px;
        padding: 6px;
    }
}

/* Landscape fullscreen optimization */
@media (orientation: landscape) and (max-height: 500px) {
    .player-sidebar {
        width: 200px;
        padding-top: 60px;
    }
    
    .player-header {
        height: 50px;
        padding: 10px;
    }
    
    .player-main-time {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .player-play-btn-large {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
      }
