/* ========================================
   FONTS
   ======================================== */

@font-face {
    font-family: 'PrimeSites';
    src: url('PrimeSites.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* ========================================
   GENERIC APP TEMPLATE - CUSTOMIZABLE COLOR SCHEME
   ======================================== 
   
   To customize colors for a new project:
   1. Update the CSS variables in the :root section below
   2. Update the dark mode overrides in body.dark-mode section
   3. All colors throughout the app will automatically update
   
   Key variables to change:
   - --color-primary: Main brand color (buttons, accents)
   - --color-primary-hover: Hover state for primary elements
   - --color-link-primary: Default link color
   - --color-link-hover: Link hover color
   - --gradient-bg-light: Light mode background gradient
   - --gradient-bg-dark: Dark mode background gradient
   - --gradient-dev-banner: Development banner gradient
   
   ======================================== */

/* ========================================
   COLOR SCHEME VARIABLES
   ======================================== */
/* Prevent flash of unstyled content */
body {
    visibility: hidden;
}

body.loaded {
    visibility: visible;
}

:root {
  /* Primary Brand Colors */
  --color-primary: #3078B9;           /* Blue accent */
  --color-primary-hover: #3282CA;    /* Darker blue hover */
  --color-primary-dark: #667;         /* Darker blue for dark mode */
  
  /* Background Colors */
  --color-bg-primary: #ffffff;        /* White background */
  --color-bg-secondary: #f8f9fa;     /* Light grey background */
  --color-bg-tertiary: #e9ecef;      /* Lighter grey background */
  --color-bg-form: #ffffff;           /* Form background */
  
  /* Text Colors */
  --color-text-primary: #000000;      /* Black text */
  --color-text-secondary: #333333;    /* Dark grey text */
  --color-text-tertiary: #666666;    /* Medium grey text */
  --color-text-muted: #888888;       /* Muted grey text */
  --color-text-light: #aaaaaa;       /* Light grey text */
  
  /* Border Colors */
  --color-border-primary: #dddddd;   /* Light border */
  --color-border-secondary: #cccccc; /* Medium border */
  --color-border-tertiary: #eeeeee; /* Very light border */
  
  /* Link Colors */
  --color-link-primary: #348FE0;      /* Blue links */
  --color-link-hover: #3282CA;       /* Darker blue hover */
  
  /* Status Colors */
  --color-success: #28a745;          /* Green success */
  --color-warning: #ffc107;          /* Yellow warning */
  --color-error: #dc3545;            /* Red error */
  
  /* Form Colors */
  --color-input-bg: #ffffff;         /* Input background */
  --color-input-border: #dddddd;     /* Input border */
  --color-input-disabled-bg: #f0f0f0; /* Disabled input bg */
  --color-input-disabled-text: #a0a0a0; /* Disabled input text */
  
  /* Shadow Colors */
  --color-shadow-light: rgba(0, 0, 0, 0.1);
  --color-shadow-medium: rgba(0, 0, 0, 0.2);
  --color-shadow-dark: rgba(0, 0, 0, 0.5);
  
  /* Gradient Colors */
  --gradient-bg-light: linear-gradient(to left, #ffffff, #C5D9EC, #AFCFED);
  --gradient-bg-dark: linear-gradient(to right, #091929, #14273A, #24303E);
  --gradient-dev-banner: linear-gradient(90deg, #111, #222);
  --gradient-test-banner: linear-gradient(90deg, #1a1a2e, #16213e);
}

/* Dark Mode Color Overrides */
body.dark-mode {
  /* Background Colors */
  --color-bg-primary: #000000;       /* Black background */
  --color-bg-secondary: #24303E;     /* Dark grey background */
  --color-bg-tertiary: #293848;       /* Medium dark grey */
  --color-bg-form: rgba(0, 0, 0, 0.4); /* Semi-transparent form */
  
  /* Text Colors */
  --color-text-primary: #e0e0e0;     /* Light text */
  --color-text-secondary: #ffffff;   /* White text */
  --color-text-tertiary: #aaaaaa;    /* Light grey text */
  --color-text-muted: #aaaaaa;       /* Muted light grey */
  --color-text-light: #888888;       /* Darker light grey */
  
  /* Border Colors */
  --color-border-primary: #666666;   /* Dark border */
  --color-border-secondary: #555555; /* Darker border */
  --color-border-tertiary: #444444; /* Darkest border */
  
  /* Link Colors */
  --color-link-primary: #4a9eff;     /* Light blue links */
  --color-link-hover: #66b3ff;       /* Lighter blue hover */
  
  /* Form Colors */
  --color-input-bg: rgba(0, 0, 0, 0.3); /* Semi-transparent input */
  --color-input-border: #666666;     /* Dark input border */
  --color-input-disabled-bg: rgba(0, 0, 0, 0.2);
  --color-input-disabled-text: #666666;
  
  /* Shadow Colors */
  --color-shadow-light: rgba(255, 255, 255, 0.1);
  --color-shadow-medium: rgba(255, 255, 255, 0.2);
  --color-shadow-dark: rgba(255, 255, 255, 0.3);
}

/* ========================================
   BASE STYLES
   ======================================== */

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

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--gradient-bg-light);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background: var(--gradient-bg-dark);
}

/* ========================================
   DEVELOPMENT BANNER
   ======================================== */

.dev-banner {
    background: var(--gradient-dev-banner);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 14px;
    font-weight: bold;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.test-banner {
    background: var(--gradient-test-banner);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 14px;
    font-weight: bold;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

body.has-dev-banner {
    padding-top: 40px;
}

body.has-test-banner {
    padding-top: 40px;
}

/* ========================================
   FORM CONTAINER
   ======================================== */

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: var(--color-bg-form);
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--color-shadow-light);
    margin-top: 20px;
    margin-bottom: 20px;
}

body.dark-mode .form-container {
    background: var(--color-bg-form);
    box-shadow: 0 4px 6px var(--color-shadow-light);
}

/* ========================================
   LOGO STYLES
   ======================================== */

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    max-height: 60px;
    max-width: 200px;
    height: auto;
    width: auto;
}

#dark-logo {
    display: none;
}

body.dark-mode #light-logo {
    display: none;
}

body.dark-mode #dark-logo {
    display: inline-block;
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border-primary);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: var(--color-bg-secondary);
    color: var(--color-primary);
}

.nav-link.active {
    background: var(--color-primary);
    color: white;
}

.user-info a {
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.user-info a:hover {
    background: var(--color-bg-secondary);
    color: var(--color-error);
}

/* ========================================
   FORM SECTIONS
   ======================================== */

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

.form-section h1 {
    color: var(--color-text-primary);
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
}

.form-section h2 {
    color: var(--color-text-primary);
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.form-section h3 {
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 500;
}

.textSmaller {
    color: var(--color-text-tertiary);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-input-border);
    border-radius: 4px;
    background: var(--color-input-bg);
    color: var(--color-text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(48, 120, 185, 0.2);
}

.form-field input:disabled,
.form-field select:disabled,
.form-field textarea:disabled {
    background: var(--color-input-disabled-bg);
    color: var(--color-input-disabled-text);
    cursor: not-allowed;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   BUTTONS
   ======================================== */

button,
.primary-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

button:hover,
.primary-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px var(--color-shadow-medium);
}

button:disabled,
.primary-btn:disabled {
    background: var(--color-text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border-primary);
}

.btn-secondary:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

.btn-danger {
    background: var(--color-error);
}

.btn-danger:hover {
    background: #c82333;
}

/* ========================================
   DASHBOARD STYLES
   ======================================== */

.dashboard-content {
    padding: 20px 0;
}

.welcome-message {
    background: var(--color-bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.welcome-message h2 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* ========================================
   USER MANAGEMENT STYLES
   ======================================== */

.users-content {
    padding: 20px 0;
}

.users-actions {
    margin-bottom: 30px;
}

.user-form {
    background: var(--color-bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.user-form h3 {
    margin-bottom: 20px;
    color: var(--color-primary);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.users-list h3 {
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

.user-card {
    background: var(--color-bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--color-border-primary);
}

.user-info h4 {
    color: var(--color-text-primary);
    margin-bottom: 5px;
}

.user-info p {
    color: var(--color-text-tertiary);
    margin-bottom: 5px;
}

.user-roles {
    font-weight: 500;
    color: var(--color-primary);
}

.user-status {
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.user-status.active {
    background: var(--color-success);
    color: white;
}

.user-status.inactive {
    background: var(--color-error);
    color: white;
}

.user-actions {
    display: flex;
    gap: 10px;
}

/* ========================================
   AUDIT LOG STYLES
   ======================================== */

.audit-controls {
    margin-bottom: 20px;
}

.audit-filters {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.audit-filters .form-field {
    margin-bottom: 0;
    min-width: 150px;
}

.audit-filters select {
    height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--color-border-primary);
    border-radius: 6px;
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.audit-filters select:hover {
    background: var(--color-bg-tertiary);
    border-color: var(--color-border-secondary);
}

.audit-filters select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.audit-log-container {
    background: var(--color-bg-secondary);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.audit-log-entry {
    padding: 15px;
    border-bottom: 1px solid var(--color-border-primary);
    display: grid;
    grid-template-columns: 150px 200px 150px 1fr 120px;
    gap: 15px;
    align-items: center;
}

.audit-log-entry:last-child {
    border-bottom: none;
}

.audit-log-entry.success {
    background: rgba(40, 167, 69, 0.1);
}

.audit-log-entry.failure {
    background: rgba(220, 53, 69, 0.1);
}

.log-timestamp {
    font-size: 12px;
    color: var(--color-text-tertiary);
}

.log-user {
    font-weight: 500;
    color: var(--color-text-secondary);
}

.log-action {
    font-weight: 500;
    color: var(--color-primary);
}

.log-details {
    color: var(--color-text-tertiary);
    font-size: 14px;
}

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

/* ========================================
   PAGINATION STYLES
   ======================================== */

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    background: var(--color-bg-secondary);
    border-radius: 8px;
}

.pagination-info {
    color: var(--color-text-tertiary);
    font-size: 14px;
}

.pagination-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

/* ========================================
   ACCOUNT STYLES
   ======================================== */

.account-content {
    padding: 20px 0;
}

.account-details {
    background: var(--color-bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border-tertiary);
}

.detail-row:last-child {
    border-bottom: none;
}

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

.detail-row span {
    color: var(--color-text-primary);
}

.token-display {
    font-family: monospace;
    font-size: 12px;
    background: var(--color-bg-tertiary);
    padding: 4px 8px;
    border-radius: 4px;
}

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

/* ========================================
   COMING SOON STYLES
   ======================================== */

.coming-soon-section {
    text-align: center;
    padding: 40px 0;
}

.coming-soon-content {
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-card {
    background: var(--color-bg-secondary);
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    text-align: left;
}

.features-preview {
    margin: 20px 0;
}

.features-preview h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.features-preview ul {
    list-style: none;
    padding: 0;
}

.features-preview li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--color-text-secondary);
}

.features-preview li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

.contact-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-primary);
}

.contact-info h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.contact-info a {
    color: var(--color-link-primary);
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
    display: none !important;
}

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

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

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

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.footer-container {
    text-align: center;
    margin-top: 30px;
}

.primesites_footer {
    color: var(--color-text-tertiary);
    text-decoration: none;
    font-size: 12px;
    margin-top: 10px;
    display: inline-block;
    font-family: 'PrimeSites', 'Open Sans', sans-serif;
}

.primesites_footer:hover {
    color: var(--color-link-primary);
    text-decoration: underline;
}

#toggle-container {
    margin-top: 15px;
}

#toggle-container label {
    color: var(--color-text-tertiary);
    font-size: 12px;
    margin-right: 8px;
}

#toggle-container input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .form-container {
        margin: 10px;
        padding: 15px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .audit-log-entry {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .audit-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .audit-filters .form-field {
        min-width: auto;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .user-card {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .user-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .form-section h1 {
        font-size: 24px;
    }
    
    .form-section h2 {
        font-size: 20px;
    }
    
    .form-section h3 {
        font-size: 18px;
    }
    
    .coming-soon-card {
        padding: 20px;
    }
}

/* Audit Log Display Improvements */
.audit-log-entry {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.audit-log-entry.success {
    border-left-color: #28a745;
}

.audit-log-entry.failure {
    border-left-color: #dc3545;
}

.log-header {
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    width: 50%;
    display: inline-block;
}

.log-action {
    font-size: 13px;
    color: #6c757d;
    width: 50%;
    display: inline-block;
}

.log-details {
    font-size: 12px;
    color: #868e96;
    margin-bottom: 4px;
    font-style: italic;
}

.log-ip {
    font-size: 11px;
    color: #adb5bd;
}

/* Dark theme audit log styling */
body.dark-mode .audit-log-entry {
    border-left-color: #555;
}

body.dark-mode .audit-log-entry.success {
    border-left-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

body.dark-mode .audit-log-entry.failure {
    border-left-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

body.dark-mode .log-header {
    color: #e9ecef;
}

body.dark-mode .log-action {
    color: #adb5bd;
}

body.dark-mode .log-details {
    color: #6c757d;
}

body.dark-mode .log-ip {
    color: #495057;
}

/* ========================================
   TMDB SEARCH UI STYLES
   ======================================== */

.search-form {
    margin-bottom: 30px;
}

.loading-indicator {
    text-align: center;
    padding: 40px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-tertiary);
}

.search-results {
    margin-top: 30px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.result-card {
    background: var(--color-bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border-primary);
    display: flex;
    flex-direction: column;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px var(--color-shadow-medium);
    border-color: var(--color-primary);
}

.result-card-poster {
    width: 100%;
    padding-top: 150%;
    position: relative;
    overflow: hidden;
    background: var(--color-bg-tertiary);
}

.result-card-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-card-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.result-card-info h3 {
    margin: 0 0 8px 0;
    color: var(--color-text-primary);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.result-card-meta {
    color: var(--color-text-tertiary);
    font-size: 14px;
    margin-bottom: 10px;
}

.result-card-overview {
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
    flex-grow: 1;
}

.result-card-rating {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    margin-top: auto;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
    grid-column: 1 / -1;
}

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

/* Modal Styles */
.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: var(--color-bg-form);
    margin: 2% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px var(--color-shadow-dark);
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--color-text-primary);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: var(--color-bg-form);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--color-bg-secondary);
    transform: rotate(90deg);
}

.modal-backdrop {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.modal-backdrop::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, var(--color-bg-form));
}

.modal-details {
    display: flex;
    gap: 30px;
    padding: 30px;
}

.modal-poster {
    flex-shrink: 0;
    width: 300px;
}

.modal-poster img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--color-shadow-medium);
}

.modal-info {
    flex-grow: 1;
}

.modal-info h2 {
    margin: 0 0 15px 0;
    color: var(--color-text-primary);
    font-size: 32px;
    font-weight: 600;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--color-text-tertiary);
    font-size: 14px;
}

.modal-meta span {
    padding: 4px 12px;
    background: var(--color-bg-secondary);
    border-radius: 4px;
}

.modal-meta .rating {
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}

.modal-overview {
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.providers-section {
    margin-top: 30px;
}

.providers-section h3 {
    margin-bottom: 20px;
    color: var(--color-text-primary);
}

.providers-group {
    margin-bottom: 25px;
}

.providers-group h4 {
    color: var(--color-text-secondary);
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 500;
}

.providers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.provider-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--color-bg-secondary);
    border-radius: 6px;
    border: 1px solid var(--color-border-primary);
    transition: all 0.3s ease;
}

.provider-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.provider-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.provider-item span {
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-details {
        flex-direction: column;
        padding: 20px;
    }
    
    .modal-poster {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .modal-info h2 {
        font-size: 24px;
    }
    
    .modal-backdrop {
        height: 200px;
    }
}

/* ========================================
   NETFLIX-STYLE FULL-WIDTH UI
   ======================================== */

/* Remove form-container constraints for full-width */
body.netflix-style .form-container,
.netflix-style .form-container {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    box-shadow: none;
    background: transparent;
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 20px 40px;
    transition: background 0.3s ease;
}

body.dark-mode .main-header {
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1920px;
    margin: 0 auto;
    gap: 30px;
}

.logo-container-header {
    flex-shrink: 0;
}

.logo-header {
    max-height: 40px;
    max-width: 150px;
    height: auto;
    width: auto;
}

#dark-logo-header {
    display: none;
}

body.dark-mode #light-logo-header {
    display: none;
}

body.dark-mode #dark-logo-header {
    display: inline-block;
}

.header-search {
    flex-grow: 1;
    display: flex;
    gap: 10px;
    max-width: 500px;
}

.header-search input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(0,0,0,0.5);
    color: var(--color-text-primary);
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.header-search input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(0,0,0,0.7);
}

.search-btn {
    padding: 10px 20px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

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

#toggle-container-header {
    flex-shrink: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    max-height: 800px;
    margin-top: 0;
    overflow: hidden;
    cursor: pointer;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 60px 80px 60px;
    max-width: 1920px;
    margin: 0 auto;
}

.hero-logo-container {
    margin-bottom: 20px;
    max-width: 600px;
}

.hero-logo {
    max-width: 100%;
    max-height: 200px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.hero-title-text {
    font-size: 64px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero-info {
    max-width: 600px;
}

.hero-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.hero-meta span {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    font-weight: 500;
}

.hero-meta .hero-rating {
    color: #ffd700;
}

.hero-description {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* Content Rows */
.content-main {
    padding: 40px 0;
    background: var(--color-bg-primary);
}

.content-rows {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.content-row {
    width: 100%;
    position: relative;
}

.content-row:hover .row-scroll-btn {
    opacity: 1;
}

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

.row-content {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 60px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-behavior: smooth;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
}

.row-content::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.row-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
}

.row-scroll-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--color-primary);
}

.row-scroll-btn-left {
    left: 10px;
}

.row-scroll-btn-right {
    right: 10px;
}

.row-scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.row-loading {
    padding: 40px;
    text-align: center;
    color: var(--color-text-tertiary);
}

.row-error {
    padding: 40px;
    text-align: center;
    color: var(--color-text-tertiary);
}

/* Title Cards */
.title-card {
    flex-shrink: 0;
    width: 300px;
    height: 169px; /* 16:9 aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, z-index 0.3s ease;
    position: relative;
}

.title-card:hover {
    transform: scale(1.1);
    z-index: 10;
}

.card-backdrop-container {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: background-image 0.3s ease;
}

.card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 1;
}

.card-logo {
    position: absolute;
    bottom: 15px;
    left: 15px;
    max-width: 70%;
    max-height: 60px;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

.card-title-text {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    z-index: 2;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    line-height: 1.3;
}

.card-title-text-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
}

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

/* Full-Width Modal */
.modal-content-full {
    background-color: var(--color-bg-form);
    margin: 0;
    padding: 0;
    border-radius: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: fixed;
    right: 30px;
    top: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1002;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(0,0,0,0.8);
    transform: rotate(90deg);
}

.modal-backdrop-full {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    z-index: 1000;
}

.modal-backdrop-full::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
}

.modal-details-full {
    position: relative;
    z-index: 1001;
    padding: 120px 60px 60px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.modal-header-full {
    margin-bottom: 30px;
}

.modal-header-left {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.modal-poster-full {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
    flex-shrink: 0;
}

.modal-header-text {
    flex: 1;
}

.modal-logo-full {
    max-width: 500px;
    max-height: 150px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.8));
}

.modal-title-full {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.modal-meta-full {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
    font-size: 16px;
}

.modal-meta-full span {
    padding: 4px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

.modal-meta-full .rating-full {
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}

.modal-meta-full .age-rating {
    background: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.5);
    font-weight: 600;
}

.modal-overview-full {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    line-height: 1.6;
    margin-top: 20px;
    max-width: 800px;
}

.modal-body-content {
    background: rgba(0,0,0,0.7);
    padding: 30px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.providers-section-full {
    margin-top: 30px;
}

.providers-section-full h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.providers-group-full {
    margin-bottom: 25px;
}

.providers-group-full h4 {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
}

.providers-list-full {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.providers-icons-only {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.provider-icon-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.provider-icon-link:hover {
    transform: scale(1.1);
}

.provider-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
}

.provider-item-full {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: inherit;
}

.provider-item-full:hover {
    border-color: var(--color-primary);
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    text-decoration: none;
}

.cast-crew-section-full {
    margin-top: 30px;
}

.cast-crew-group-full {
    margin-bottom: 30px;
}

.cast-crew-group-full h4 {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
}

.cast-crew-list-full {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.cast-crew-list-full::-webkit-scrollbar {
    height: 8px;
}

.cast-crew-list-full::-webkit-scrollbar-track {
    background: transparent;
}

.cast-crew-list-full::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.cast-crew-list-full::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

.cast-crew-item-full {
    flex-shrink: 0;
    width: 120px;
    text-align: center;
    transition: transform 0.3s ease;
}

.cast-crew-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.cast-crew-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    margin-bottom: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.cast-crew-name {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cast-crew-character {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cast-crew-item-full:hover {
    transform: translateY(-5px);
}

.modal-nav-buttons {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    pointer-events: none;
    z-index: 2000;
}

.modal-nav-btn {
    pointer-events: all;
    padding: 15px 25px;
    background: rgba(0,0,0,0.8);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-nav-btn:hover {
    background: rgba(0,0,0,0.9);
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.modal-nav-prev {
    margin-right: auto;
}

.modal-nav-next {
    margin-left: auto;
}

.known-for-section-full {
    margin-top: 30px;
}

.known-for-section-full h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.known-for-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.known-for-row::-webkit-scrollbar {
    height: 8px;
}

.known-for-row::-webkit-scrollbar-track {
    background: transparent;
}

.known-for-row::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.known-for-card {
    flex-shrink: 0;
    width: 150px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.known-for-card:hover {
    transform: scale(1.05);
}

.known-for-poster {
    width: 150px;
    height: 225px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    margin-bottom: 8px;
}

.known-for-poster-placeholder {
    width: 150px;
    height: 225px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    text-align: center;
    padding: 10px;
    margin-bottom: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.known-for-title {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    text-align: center;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.personal-info-section-full {
    margin-top: 30px;
    margin-bottom: 30px;
}

.personal-info-section-full h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

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

.personal-info-item {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    line-height: 1.6;
}

.personal-info-item strong {
    color: white;
    font-weight: 600;
    margin-right: 8px;
}

.personal-info-item a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.personal-info-item a:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}

.career-highlights-section-full {
    margin-top: 30px;
    margin-bottom: 30px;
}

.career-highlights-section-full h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.career-highlights-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.career-highlights-row::-webkit-scrollbar {
    height: 8px;
}

.career-highlights-row::-webkit-scrollbar-track {
    background: transparent;
}

.career-highlights-row::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.career-highlight-card {
    flex-shrink: 0;
    width: 180px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.career-highlight-card:hover {
    transform: translateY(-5px);
}

.career-highlight-poster {
    width: 180px;
    height: 270px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    margin-bottom: 8px;
}

.career-highlight-poster-placeholder {
    width: 180px;
    height: 270px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    text-align: center;
    padding: 10px;
    margin-bottom: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.career-highlight-info {
    text-align: left;
}

.career-highlight-title {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.career-highlight-year {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    margin-bottom: 2px;
}

.career-highlight-character {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.similar-section-full {
    margin-top: 40px;
}

.similar-section-full h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.similar-titles-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.similar-titles-row::-webkit-scrollbar {
    height: 8px;
}

.similar-titles-row::-webkit-scrollbar-track {
    background: transparent;
}

.similar-titles-row::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.similar-titles-row::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

.similar-title-card {
    flex-shrink: 0;
    width: 150px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.similar-title-card:hover {
    transform: scale(1.05);
}

.similar-poster {
    width: 150px;
    height: 225px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    margin-bottom: 8px;
}

.similar-poster-placeholder {
    width: 150px;
    height: 225px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    text-align: center;
    padding: 10px;
    margin-bottom: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.similar-title-text {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    text-align: center;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.provider-item-full img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

.provider-item-full span {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
}

.modal-loading,
.modal-error {
    padding: 60px;
    text-align: center;
    color: white;
    font-size: 18px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.loading-overlay.hidden {
    display: none;
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.main-footer {
    background: var(--color-bg-primary);
    padding: 40px 60px;
    text-align: center;
    color: var(--color-text-tertiary);
    border-top: 1px solid var(--color-border-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .title-card {
        width: 250px;
        height: 141px;
    }
    
    .hero-content {
        padding: 0 40px 60px 40px;
    }
    
    .row-title {
        margin-left: 40px;
    }
    
    .row-content {
        padding: 0 40px;
    }
    
    .modal-details-full {
        padding: 100px 40px 40px 40px;
    }
    
    .modal-header-left {
        gap: 20px;
    }
    
    .modal-poster-full {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 15px 20px;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-content {
        padding: 0 20px 40px 20px;
    }
    
    .hero-title-text {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .title-card {
        width: 200px;
        height: 113px;
    }
    
    .row-title {
        margin-left: 20px;
        font-size: 20px;
    }
    
    .row-content {
        padding: 0 20px;
    }
    
    .modal-details-full {
        padding: 80px 20px 20px 20px;
    }
    
    .modal-header-left {
        flex-direction: column;
        gap: 20px;
    }
    
    .modal-poster-full {
        width: 200px;
        align-self: center;
    }
    
    .modal-logo-full {
        max-width: 100%;
        max-height: 100px;
    }
    
    .modal-title-full {
        font-size: 32px;
    }
    
    .similar-title-card {
        width: 120px;
    }
    
    .similar-poster,
    .similar-poster-placeholder {
        width: 120px;
        height: 180px;
    }
    
    .cast-crew-item-full {
        width: 100px;
    }
    
    .cast-crew-photo,
    .cast-crew-photo-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .cast-crew-name {
        font-size: 12px;
    }
    
    .cast-crew-character {
        font-size: 11px;
    }
    
    .modal-close {
        right: 15px;
        top: 15px;
        width: 40px;
        height: 40px;
        font-size: 32px;
    }
    
    .main-footer {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .title-card {
        width: 160px;
        height: 90px;
    }
    
    .hero-section {
        height: 50vh;
        min-height: 300px;
    }
    
    .hero-title-text {
        font-size: 28px;
    }
    
    .card-logo {
        max-height: 40px;
    }
    
    .card-title-text {
        font-size: 14px;
    }
}