/* CinemaNow HD Inspired Design System */

/* Homepage Style Layout for Movie Detail Page */
.homepage-style-hero {
    background: #ffffff;
    padding: 80px 0 40px;
    border-bottom: 1px solid var(--border-light);
}

.homepage-style-hero .hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.hero-info-main {
    padding-right: 20px;
}

.hero-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-breadcrumb a:hover {
    color: var(--accent-orange);
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--text-muted);
}

.hero-movie-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-description h3,
.hero-movie-info h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.description-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.movie-info-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 30px;
}

.info-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    align-items: center;
}

.info-label {
    font-weight: 600;
    color: var(--text-primary);
}

.info-value {
    color: var(--text-secondary);
}

.watch-now-btn {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.watch-now-btn:hover {
    background: #e55a00;
    transform: translateY(-2px);
}

.hero-media-section {
    padding-left: 20px;
    border-left: 1px solid var(--border-light);
}

.trailer-section h3,
.share-section h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.trailer-poster {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 30px;
}

.trailer-poster img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.trailer-poster:hover .play-overlay {
    background: var(--accent-orange);
    transform: translate(-50%, -50%) scale(1.1);
}


.trailer-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trailer-item {
    display: flex;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 221, 0, 0.15);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    text-decoration: none;
}

.trailer-item:hover {
    background: rgba(255, 221, 0, 0.1);
    border-color: rgba(255, 221, 0, 0.4);
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(255, 221, 0, 0.2);
}

.trailer-thumb {
    width: 80px;
    height: 45px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.trailer-item:hover .trailer-thumb {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 221, 0, 0.3);
}

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

.trailer-thumb .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: rgba(255, 221, 0, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 221, 0, 0.5);
}

.trailer-item:hover .trailer-thumb .play-overlay {
    background: rgba(255, 221, 0, 1);
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 5px 20px rgba(255, 221, 0, 0.7);
}

.trailer-thumb .play-overlay i {
    color: #000;
    font-size: 12px;
    margin-left: 1px;
    font-weight: 700;
}

.trailer-info {
    flex: 1;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trailer-title {
    font-size: 12px;
    color: #ffffff;
    margin-bottom: 3px;
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.trailer-label {
    font-size: 10px;
    color: #ffdd00;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
}

.trailer-item:hover .trailer-title {
    color: #ffdd00;
}

.trailer-item:hover .trailer-label {
    opacity: 1;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.line {
    background: #00b900;
}

.share-btn:hover {
    transform: translateY(-2px);
}

/* Homepage Content Layout */
.homepage-content-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.content-main {
    min-width: 0;
}

.movie-section {
    margin-bottom: 50px;
}

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

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
}

.section-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.section-link:hover {
    color: #e55a00;
}

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

.movie-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-light);
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.movie-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.movie-info {
    padding: 15px;
}

.movie-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.movie-year {
    color: var(--text-muted);
    font-size: 13px;
}

/* Sidebar */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-section {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--accent-orange);
}

.recommended-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.recommended-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recommended-poster {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.recommended-info {
    flex: 1;
    min-width: 0;
}

.recommended-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.recommended-year {
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .homepage-style-hero .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-media-section {
        border-left: none;
        border-top: 1px solid var(--border-light);
        padding-left: 0;
        padding-top: 30px;
    }

    .homepage-content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .hero-movie-title {
        font-size: 28px;
    }
}
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --accent-orange: #ff6b00;
    --accent-yellow: #ffd700;
    --border-dark: #e0e0e0;
    --border-light: #f0f0f0;
    --header-bg: #ffffff;
    --header-shadow: rgba(0,0,0,0.1);
    --hero-overlay: rgba(0,0,0,0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header Navigation */
.main-header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-dark);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px var(--header-shadow);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-orange);
}

.logo-badge {
    background: linear-gradient(90deg, #ffd700, #ffab00);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #404040;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
    display: block;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu a.active {
    color: #ffffff;
    font-weight: 600;
    background-color: #ff6b00;
    padding: 8px 16px;
    border-radius: 4px;
}

/* Search Bar */
.search-container {
    position: relative;
    flex-grow: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-form {
    width: 100%;
}

.search-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-dark);
    padding: 8px 15px;
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 14px;
}

.wishlist-count {
    background: var(--accent-orange);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

/* Main Content */
.main-content {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    height: auto;
    background: #1a1a1a;
    overflow: hidden;
}

.hero-content {
    display: flex;
    min-height: 85vh;
    height: auto;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-left {
    flex: 0 0 960px;
    max-width: 960px;
    padding: 20px 40px 40px 0;
    position: relative;
    z-index: 2;
    display: block;
    min-height: auto;
}

.hero-right {
    flex: 0 0 380px;
    width: 380px;
    background: rgba(0,0,0,0.9);
    padding: 15px;
    border-left: 1px solid var(--border-dark);
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(26,26,26,0.95) 0%, rgba(26,26,26,0.7) 60%, rgba(26,26,26,0.3) 100%);
}

/* Movie Info */
.movie-title-large {
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    text-shadow:
        3px 3px 0px rgba(0, 0, 0, 1),
        6px 6px 12px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(255, 221, 0, 0.5),
        0 0 40px rgba(255, 221, 0, 0.3);
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
    /* เพิ่ม stroke เพื่อความชัดเจน */
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.5);
}

.movie-synopsis {
    background: rgba(0,0,0,0.7);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.synopsis-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffdd00;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.synopsis-text {
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.movie-details-box {
    background: rgba(0,0,0,0.7);
    padding: 15px;
    border-radius: 5px;
}

.detail-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 13px;
}

.detail-label {
    color: var(--text-muted);
    min-width: 80px;
}

.detail-value {
    color: var(--text-secondary);
}

.detail-value a {
    color: #4a90e2;
    text-decoration: none;
}

/* Sidebar Trailers */
.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-primary);
}

}

/* Main Layout */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Container for view-all-movie.php */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: calc(100vh - 200px);
}

.main-content-area {
    flex: 1;
}

.content-sidebar {
    width: 300px;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

/* Movie Sections */
.movie-section {
    margin-bottom: 40px;
}

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

.section-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
}

.view-more-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.view-more-link:hover {
    color: var(--accent-orange);
}

/* Movies Section */
.movies-section {
    margin: 32px 0;
}

.movies-section .section-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.results-info {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

/* Movie Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    padding: 0;
    margin: 0;
    align-items: start;
    justify-content: center;
    justify-items: center;
}

.movie-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    height: fit-content;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.movie-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.movie-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.movie-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.movie-card:hover .movie-card-info {
    transform: translateY(0);
}

.movie-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-card-year {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.movie-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #fbbf24;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Featured Section */
.featured-section {
    background: #ffffff;
    padding: 30px 0;
    margin: 40px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.featured-card {
    position: relative;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
}

.featured-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.featured-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
}

.featured-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.featured-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-secondary);
}

.buy-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-orange);
    color: #000;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.buy-button:hover {
    background: #ff8533;
}

/* Featured Action Buttons */
.featured-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-buy, .btn-rent {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-buy {
    background: var(--accent-orange);
    color: #000;
}

.btn-buy:hover {
    background: #ff8533;
}

.btn-rent {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-rent:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 80px 0;
    margin-bottom: 64px;
}

.page-header-content {
    text-align: center;
    color: white;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.page-subtitle {
    font-size: 20px;
    opacity: 0.95;
    font-weight: 500;
}

.breadcrumb {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.8;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb i {
    margin: 0 8px;
    font-size: 12px;
}

/* ==========================================
   ACCESSIBILITY HELPERS
   ========================================== */

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #667eea;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}

/* ==========================================
   MODERN CATEGORY PAGE STYLES
   ========================================== */

/* Main Category Container */
.category-main {
    margin-top: 70px;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

/* Hero Section */
.category-hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff6b6b 100%);
    padding: 80px 0 60px;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

.category-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    margin-bottom: 40px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Hero Search */
.search-container-hero {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.category-search-input {
    width: 100%;
    padding: 18px 55px 18px 25px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    color: #333;
}

.category-search-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.category-search-input::placeholder {
    color: #888;
    font-weight: 300;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
    pointer-events: none;
}

.hero-background-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1));
}

/* Sections */
.categories-section {
    padding: 60px 0;
    position: relative;
}

.popular-section {
    background: white;
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 3;
}

.all-categories-section {
    background: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    color: #ff6b6b;
    font-size: 0.8em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 300;
    margin-bottom: 0;
}

.section-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.category-count {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.view-btn {
    padding: 10px 15px;
    border: none;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.view-btn.active,
.view-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

/* Category Grids */
.category-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.popular-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.all-categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

/* Popular Category Cards */
.popular-card {
    position: relative;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.popular-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-gradient);
    transition: all 0.3s ease;
}

.popular-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    text-decoration: none;
}

.popular-card:hover::before {
    transform: scale(1.1);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-gradient);
    transition: transform 0.3s ease;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.category-icon-modern {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.popular-card:hover .category-icon-modern {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255,255,255,0.3);
}

.category-name-modern {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.category-desc-modern {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    transition: all 0.3s ease;
}

.popular-card:hover .card-overlay {
    background: rgba(0,0,0,0.1);
}

/* Standard Category Cards */
.standard-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.standard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: #667eea;
    text-decoration: none;
}

.standard-card .card-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
    height: auto;
    padding: 0;
}

.category-icon-standard {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.standard-card:hover .category-icon-standard {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.card-text {
    flex: 1;
}

.category-name-standard {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.standard-card:hover .category-name-standard {
    color: #667eea;
}

.category-desc-standard {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    font-weight: 300;
}

.card-arrow {
    color: #cbd5e0;
    font-size: 18px;
    transition: all 0.3s ease;
}

.standard-card:hover .card-arrow {
    color: #667eea;
    transform: translateX(5px);
}

.card-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.standard-card:hover .card-hover-effect {
    left: 100%;
}

/* Load More Button */
.load-more-section {
    text-align: center;
    padding: 40px 0;
}

.btn-load-more.modern {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-load-more.modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8, #6b46a3);
}

.btn-load-more.modern:active {
    transform: translateY(-1px);
}

.btn-load-more.modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-load-more.modern:hover::before {
    left: 100%;
}

/* Category Stats Section */
.category-stats-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 60px 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1) rotate(10deg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 1rem;
    font-weight: 300;
    margin: 0;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-hero {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .categories-section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }

    .section-controls {
        justify-content: center;
        text-align: center;
    }

    .popular-grid {
        grid-template-columns: 1fr;
    }

    .all-categories-grid {
        grid-template-columns: 1fr;
    }

    .popular-card {
        height: 150px;
    }

    .card-content {
        padding: 20px;
    }

    .category-icon-modern {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .category-name-modern {
        font-size: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-item {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .category-hero-content {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .category-search-input {
        padding: 15px 50px 15px 20px;
        font-size: 14px;
    }

    .popular-card {
        height: 130px;
    }

    .card-content {
        padding: 15px;
    }

    .standard-card {
        padding: 20px;
    }

    .standard-card .card-content {
        gap: 15px;
    }

    .category-icon-standard {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .category-name-standard {
        font-size: 1.1rem;
    }

    .btn-load-more.modern {
        padding: 12px 30px;
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   ADDITIONAL ANIMATIONS & INTERACTIONS
   ========================================== */

/* Search Focus Effect */
.search-container-hero.search-focused {
    transform: scale(1.02);
}

.search-container-hero.search-focused .category-search-input {
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
}

/* Search Results Message */
.search-results-message {
    padding: 20px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 15px;
    border-left: 4px solid #667eea;
    display: none;
}

.search-results-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    color: #1a202c;
}

.search-results-info i {
    color: #667eea;
    font-size: 1.2rem;
}

.clear-search-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.clear-search-btn:hover {
    background: #ee5a24;
    transform: scale(1.05);
}

/* List View Styles */
.all-categories-grid.list-view {
    grid-template-columns: 1fr;
    gap: 15px;
}

.all-categories-grid.list-view .standard-card {
    height: auto;
    padding: 20px 25px;
}

.all-categories-grid.list-view .card-content {
    gap: 25px;
}

.all-categories-grid.list-view .category-icon-standard {
    width: 45px;
    height: 45px;
    font-size: 18px;
}

.all-categories-grid.list-view .category-name-standard {
    font-size: 1.1rem;
}

.all-categories-grid.list-view .category-desc-standard {
    font-size: 0.85rem;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Ripple Effect Animation */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Scroll Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: slideInUp 0.6s ease-out;
}

/* Focus Styles for Accessibility */
.category-card:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.category-search-input:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.view-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.btn-load-more.modern:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .popular-card {
        border: 2px solid #000;
    }

    .standard-card {
        border: 2px solid #000;
    }

    .category-search-input {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .category-hero::before {
        animation: none;
    }

    .popular-card:hover {
        transform: none;
    }

    .standard-card:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .category-hero {
        background: white !important;
        color: black !important;
    }

    .popular-card,
    .standard-card {
        break-inside: avoid;
        border: 1px solid #000;
        background: white !important;
        color: black !important;
    }

    .category-stats-section {
        background: white !important;
        color: black !important;
    }
}

/* Load More Button */
.load-more-section {
    text-align: center;
    padding: 40px 0;
}

.btn-load-more {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-load-more:hover {
    background: #ff8533;
    transform: translateY(-2px);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 10px;
}

/* ===== CLASSIC MOVIE DETAIL LAYOUT (037hdd4k style) ===== */
.classic-movie-hero {
    background: #ffffff;
    padding: 40px 0;
    border-bottom: 1px solid #e2e8f0;
}

.classic-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .classic-hero-container {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
}

/* Movie Poster Section */
.movie-poster-section {
    position: relative;
}

.movie-poster-wrapper {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.movie-poster-wrapper:hover {
    transform: translateY(-5px);
}

.movie-poster-main {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.poster-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-poster-wrapper:hover .poster-play-overlay {
    opacity: 1;
}

/* Movie Info Section */
.movie-info-section {
    color: #1a202c;
}

.hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    color: #718096;
}

.hero-breadcrumb a {
    color: #4299e1;
    text-decoration: none;
}

.hero-breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #cbd5e0;
}

.hero-movie-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero-movie-title {
        font-size: 2em;
    }
}

/* Movie Basic Info (like 037hdd4k) */
.movie-basic-info {
    margin-bottom: 25px;
}

.rating-runtime-year {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.movie-rating {
    color: #f6ad55;
    font-weight: 600;
    font-size: 16px;
}

.movie-runtime,
.movie-year {
    color: #718096;
    font-size: 16px;
}

.movie-genres {
    color: #4a5568;
    font-size: 16px;
    font-weight: 500;
}

/* Movie Description */
.movie-description {
    margin-bottom: 30px;
}

.description-text {
    color: #4a5568;
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
}

/* Action Buttons (like 037hdd4k) */
.movie-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-watch-movie,
.btn-related-movies {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-watch-movie {
    background: #4299e1;
    color: white;
}

.btn-watch-movie:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

.btn-related-movies {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-related-movies:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* Movie Details Section (like 037hdd4k) */
.movie-details-section {
    background: #f8fafc;
    padding: 50px 0;
}

.details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.details-main h2 {
    font-size: 1.8em;
    color: #1a202c;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.details-main h2 i {
    color: #4299e1;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.detail-group h4 {
    font-size: 1.2em;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-group h4 i {
    color: #4299e1;
}

.detail-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-label {
    font-weight: 600;
    color: #4a5568;
}

.detail-value {
    color: #1a202c;
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-link {
    background: #4299e1;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.category-link:hover {
    background: #3182ce;
}

/* Related Movies Section (like 037hdd4k) */
.related-movies-section {
    background: white;
    padding: 50px 0;
}

.related-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.related-header h2 {
    font-size: 1.8em;
    color: #1a202c;
    margin: 0;
}

.related-count {
    color: #718096;
    font-size: 16px;
}

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

@media (max-width: 768px) {
    .related-movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
}

.related-movie-item {
    text-align: center;
}

.related-poster {
    position: relative;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.related-poster img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.related-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.related-poster:hover .related-overlay {
    opacity: 1;
}

.related-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.related-info h3 a {
    color: #1a202c;
    text-decoration: none;
}

.related-info h3 a:hover {
    color: #4299e1;
}

.related-runtime {
    font-size: 12px;
    color: #718096;
}

/* Filter Pills */
.filter-sort-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 24px 0;
    padding: 0;
    background: transparent;
    align-items: start;
}

@media (min-width: 768px) {
    .filter-sort-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        margin: 12px 0 20px 0;
    }
}

.filter-pills {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-pill {
    background: #f8fafc;
    color: #475569;
    padding: 12px 20px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.filter-pill:hover,
.filter-pill.active {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    text-decoration: none;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.sort-buttons {
    display: flex;
    gap: 8px;
}

.sort-btn {
    background: #f8fafc;
    color: #475569;
    border: 2px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-btn:hover,
.sort-btn.active {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
    transform: translateY(-1px);
}

/* Pagination */
.pagination-container {
    margin-top: 48px;
    margin-bottom: 48px;
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid #e2e8f0;
    clear: both;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn,
.pagination-num {
    padding: 10px 16px;
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    font-size: 14px;
}

.pagination-btn:hover,
.pagination-num:hover,
.pagination-num.active {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
    text-decoration: none;
}

.pagination-dots {
    padding: 10px 6px;
    color: var(--text-muted);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.no-results p {
    margin-bottom: 20px;
}

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    margin: 0 5px;
    font-size: 14px;
}

.btn-primary {
    background: var(--accent-orange);
    color: white;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Footer */
.main-footer {
    background: #f8f9fa;
    border-top: 1px solid var(--border-dark);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h4 {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--text-secondary);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border-dark);
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-right {
        width: 300px;
    }

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

    .filter-sort-section {
        padding: 0;
        gap: 16px;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }

    .filter-sort-section {
        padding: 0;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .search-container {
        display: none;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-right {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-dark);
    }

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

    .filter-sort-section {
        padding: 0;
        gap: 10px;
        margin: 16px 0 20px 0;
    }

    .filter-pills {
        gap: 12px;
    }

    .filter-pill {
        padding: 10px 16px;
        font-size: 14px;
    }

    .sort-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    .pagination-container {
        margin-top: 40px;
        margin-bottom: 32px;
        padding: 20px 0;
    }

    .main-container {
        padding: 0 16px;
    }

    .movie-title-large {
        font-size: 32px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .footer-sections {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-sections {
        grid-template-columns: 1fr;
    }
}

/* Main Container for view-all-movie.php and similar pages */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: calc(100vh - 200px);
}

@media (max-width: 768px) {
    .main-container {
        padding: 0 16px;
    }
}

/* Content Wrapper */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 32px;
}

.page-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin: 10px 0;
    color: white;
}

.page-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

/* Movies Section */
.movies-section {
    margin: 32px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.results-info {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Movies Grid - Enhanced Organization */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    padding: 0;
    margin: 0;
    align-items: start;
    justify-content: center;
    justify-items: center;
}

/* Movie Card - Better Organization */
.movie-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    height: fit-content;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.movie-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.movie-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: white;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.movie-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.movie-card-year {
    font-size: 14px;
    opacity: 0.8;
}

.movie-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.movie-rating i {
    color: #fbbf24;
}

/* ===========================
   MODERN MOVIE DETAIL STYLES
   =========================== */

/* Main Container */
.movie-detail-main {
    margin-top: 83px; /* Account for fixed header */
    min-height: calc(100vh - 83px);
}

/* Hero Section - Netflix/Disney+ Inspired */
.movie-hero-modern {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 0;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(200px, 300px) 1fr minmax(280px, 320px);
    grid-template-areas: "poster content sidebar";
    gap: clamp(20px, 4vw, 40px);
    align-items: start;
}

/* Enhanced Hero Layout with Poster */
.hero-left {
    grid-area: content;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3vw, 24px);
}

.hero-poster-section {
    grid-area: poster;
    position: sticky;
    top: 24px;
    align-self: start;
}

.hero-movie-poster {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
}

.hero-movie-poster:hover {
    transform: translateY(-5px);
}

.poster-image {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.poster-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 221, 0, 0.9);
    color: #000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.hero-movie-poster:hover .poster-play-overlay {
    opacity: 1;
}

.hero-info-section {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3vw, 24px);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: clamp(20px, 4vw, 30px);
    border-radius: 16px;
    border: 1px solid rgba(255, 221, 0, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.hero-right {
    grid-area: sidebar;
    background: rgba(0, 0, 0, 0.9);
    padding: clamp(16px, 3vw, 24px);
    border-radius: 12px;
    border: 1px solid var(--border-dark, rgba(255, 255, 255, 0.1));
}

/* CSS ที่ซ้ำซ้อนถูกลบออกแล้ว - ใช้สไตล์จากด้านบนแทน */

.synopsis-header {
    color: #ffdd00;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow:
        1px 1px 0px rgba(0, 0, 0, 1),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.synopsis-text {
    color: #ffffff;
    font-size: 17px;
    line-height: 1.7;
    text-shadow:
        2px 2px 0px rgba(0, 0, 0, 1),
        3px 3px 6px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #ffdd00;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 221, 0, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.movie-details-box {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    border: 2px solid rgba(255, 221, 0, 0.5);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.movie-details-box .synopsis-header {
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 221, 0, 0.3);
    padding-bottom: 10px;
}

.movie-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.detail-row {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
    padding: 8px 0;
}

/* MOBILE HERO-SECTION - ULTRATHINK AGENTS REDESIGN */
@media (max-width: 768px) {
    .movie-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Hero Section Mobile - Single Column Layout */
    .hero-section {
        min-height: 100vh;
        padding: 0;
        background-size: cover;
        background-position: center;
        display: block;
        position: relative;
    }

    /* Mobile Container - Single Column Layout - FIXED FOR ACTUAL HTML STRUCTURE */
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        max-width: 100%;
        padding: 60px 16px 20px 16px;
        gap: 32px;
        align-items: center;
        min-height: 100vh;
        justify-content: flex-start;
    }

    /* FIX: Target the actual structure - hero-left contains everything */
    .hero-left {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 32px !important;
        align-items: center !important;
        order: 1 !important;
        text-align: center !important;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-container {
        display: none; /* Hide desktop grid container */
    }

    /* POSTER SECTION - Netflix Style Prominence - FIXED TARGETING */
    .hero-left .hero-poster-section {
        width: 240px !important;
        height: 360px !important;
        position: relative !important;
        margin: 0 auto;
        order: 1;
        flex-shrink: 0;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
        border-radius: 16px;
        overflow: hidden;
        grid-area: unset !important;
    }

    .poster-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        border-radius: 16px;
    }

    /* MOVIE INFO - Optimized Mobile Typography - FIXED TARGETING */
    .hero-left .hero-info-section {
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        padding: 32px 24px !important;
        border-radius: 20px !important;
        width: 100%;
        max-width: 400px;
        border: 1px solid rgba(255, 221, 0, 0.3);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
        order: 2;
        margin: 0 auto;
    }

    /* SIDEBAR - Compact Mobile Design - CORRECT SIBLING TARGETING */
    .hero-right {
        width: 100% !important;
        max-width: 400px !important;
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        padding: 24px !important;
        border-radius: 20px !important;
        margin: 0 auto !important;
        order: 2;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
        grid-area: unset !important;
        position: relative !important;
    }

    /* MOBILE TYPOGRAPHY - Modern Streaming App Standards */
    .movie-title-large {
        font-size: 28px !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
        margin-bottom: 16px !important;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    }

    .synopsis-header {
        font-size: 18px !important;
        font-weight: 600 !important;
        margin-bottom: 12px !important;
    }

    .synopsis-text {
        font-size: 16px !important;
        line-height: 1.6 !important;
        padding: 20px !important;
        text-align: left !important;
        margin-bottom: 20px !important;
    }

    .movie-details-box {
        padding: 24px !important;
        margin-top: 20px !important;
    }

    /* MOBILE TOUCH TARGETS - 44px Minimum */
    .detail-label {
        font-size: 15px !important;
        font-weight: 600 !important;
        min-width: 100px;
        padding: 8px 0;
    }

    .detail-value {
        font-size: 15px !important;
        margin-left: 16px !important;
        padding: 8px 0;
    }

    /* SIDEBAR MOBILE - Netflix Style */
    .sidebar-title {
        font-size: 18px !important;
        font-weight: 600 !important;
        margin-bottom: 20px !important;
        text-align: center;
    }

    /* TRAILER SECTION - Optimized for Mobile */
    .trailer-list {
        gap: 16px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .trailer-item {
        padding: 16px !important;
        gap: 16px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border-radius: 12px !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
        min-height: 44px; /* Touch target compliance */
        display: flex !important;
        align-items: center !important;
    }

    .trailer-thumb {
        width: 80px !important;
        height: 45px !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
    }

    .trailer-thumb .play-overlay {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    .trailer-info {
        flex: 1 !important;
        text-align: left !important;
    }

    .trailer-title {
        font-size: 14px !important;
        font-weight: 500 !important;
        margin-bottom: 4px !important;
        line-height: 1.3 !important;
    }

    .trailer-label {
        font-size: 12px !important;
        opacity: 0.7 !important;
        color: #ffdd00 !important;
    }

    /* CTA BUTTON - Premium Mobile Design */
    .buy-button {
        padding: 16px 32px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        margin-top: 24px !important;
        min-height: 44px !important; /* Touch compliance */
        width: 100% !important;
        max-width: 200px !important;
        box-shadow: 0 8px 24px rgba(255, 221, 0, 0.4) !important;
    }

    /* SOCIAL SHARING - Touch Optimized */
    .hero-right a[href="#"] {
        min-width: 44px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
}

.detail-label {
    color: #ffdd00;
    font-weight: 700;
    min-width: 100px;
    font-size: 16px;
    text-shadow:
        2px 2px 0px rgba(0, 0, 0, 1),
        3px 3px 6px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(0, 0, 0, 0.8);
    filter: brightness(1.2) contrast(1.1);
}

.detail-value {
    color: #ffffff;
    margin-left: 15px;
    font-size: 16px;
    font-weight: 600;
    text-shadow:
        2px 2px 0px rgba(0, 0, 0, 1),
        3px 3px 6px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(0, 0, 0, 0.8);
    filter: brightness(1.1) contrast(1.1);
}

.buy-button {
    background: linear-gradient(135deg, #ffdd00, #ffc107);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 221, 0, 0.3);
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 221, 0, 0.4);
    color: #000;
    text-decoration: none;
}

/* Poster Section */
.hero-poster-section-original {
    position: relative;
}

.movie-poster-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.movie-poster-container:hover {
    transform: translateY(-8px);
}

.hero-movie-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.rating-badge-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: #ffd700;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.poster-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-poster-container:hover .poster-play-overlay {
    opacity: 1;
}

.hero-play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-play-button:hover {
    transform: scale(1.1);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-play-button i {
    margin-left: 4px;
}

/* Info Section */
.hero-info-section {
    padding-top: 20px;
}

.hero-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-breadcrumb a:hover {
    color: var(--accent-orange);
}

.breadcrumb-separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-current {
    color: #fff;
    font-weight: 500;
}

.hero-movie-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-badge i {
    font-size: 12px;
}

.year-badge {
    background: linear-gradient(135deg, var(--accent-orange), #ff8533);
    border: none;
    color: #000;
    font-weight: 600;
}

.rating-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border: none;
    color: #000;
}

.hero-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.genre-pill {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.genre-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.hero-description {
    margin-bottom: 40px;
}

.description-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.description-more,
.description-less {
    color: var(--accent-orange);
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s ease;
}

.description-more:hover,
.description-less:hover {
    color: #ff8533;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.hero-btn:hover:before {
    left: 100%;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), #ff8533);
    color: #000;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 0, 0.4);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-modal-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.video-player-container {
    width: 100%;
    height: 100%;
}

.video-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Movie Details Section */
.movie-details-modern {
    padding: 80px 0;
    background: #f8f9fa;
    position: relative;
}

.details-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.details-header {
    text-align: center;
    margin-bottom: 60px;
}

.details-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.details-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.info-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.info-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), #ff8533);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-orange), #ff8533);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.info-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.info-value i {
    color: var(--accent-orange);
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-chip {
    background: linear-gradient(135deg, var(--accent-orange), #ff8533);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
    color: #000;
    text-decoration: none;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.stat-box {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 8px;
}

.stat-description {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Related Movies Section */
.related-movies-modern {
    padding: 80px 0;
    background: #fff;
}

.related-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.related-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.related-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.movie-count {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.category-badge {
    background: linear-gradient(135deg, var(--accent-orange), #ff8533);
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.related-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-poster-container {
    position: relative;
    overflow: hidden;
}

.card-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .card-poster {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.related-card:hover .card-overlay {
    opacity: 1;
}

.main-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.main-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
    text-decoration: none;
    color: #000;
}

.main-play-btn i {
    margin-left: 2px;
}

.card-actions {
    display: flex;
    gap: 8px;
    align-self: flex-end;
}

.card-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.card-action-btn:hover {
    background: #fff;
    transform: scale(1.1);
    color: #000;
    text-decoration: none;
}

.card-action-btn.active {
    background: var(--accent-orange);
    color: #000;
}

.card-info-overlay {
    align-self: flex-start;
}

.overlay-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.overlay-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.duration {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-content {
    padding: 20px;
}

.card-title {
    margin: 0 0 8px 0;
}

.card-title a {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--accent-orange);
    text-decoration: none;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.runtime i {
    color: var(--accent-orange);
}

/* Empty State */
.no-related-content {
    text-align: center;
    padding: 80px 20px;
}

.empty-state {
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-muted);
    margin: 0 auto 24px;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.empty-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.empty-btn.primary {
    background: var(--accent-orange);
    color: #000;
}

.empty-btn.primary:hover {
    background: #ff8533;
    transform: translateY(-2px);
    color: #000;
    text-decoration: none;
}

.empty-btn.secondary {
    background: var(--text-primary);
    color: #fff;
}

.empty-btn.secondary:hover {
    background: #2d3748;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.empty-btn.outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-dark);
}

.empty-btn.outline:hover {
    background: var(--text-primary);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 300px 1fr;
        gap: 40px;
    }

    .hero-movie-title {
        font-size: 2.8rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-poster-section {
        order: 2;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-info-section {
        order: 1;
        padding-top: 0;
    }

    .hero-movie-title {
        font-size: 2.2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .details-title {
        font-size: 2rem;
    }

    .related-title {
        font-size: 1.8rem;
    }

    .related-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .video-modal-content {
        width: 95%;
        margin: 0 10px;
    }

    .movie-details-modern,
    .related-movies-modern {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .hero-movie-title {
        font-size: 1.8rem;
    }

    .hero-meta-info {
        justify-content: center;
    }

    .hero-genres {
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .empty-actions {
        flex-direction: column;
        align-items: center;
    }

    .empty-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}