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

html {
    background-color: #1e3c72;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    background-color: #1e3c72;
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 199, 255, 0.2) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

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

.header {
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(20, 25, 40, 0.9) 0%, rgba(30, 40, 60, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.header-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent);
    background-size: 200% 200%;
    animation: particlesFloat 20s linear infinite;
    opacity: 0.3;
}

@keyframes particlesFloat {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-100px) translateX(-50px); }
}

.header-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: orbFloat 20s ease-in-out infinite;
}

.header-gradient-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #74b9ff 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation-duration: 25s;
}

.header-gradient-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #a29bfe 0%, transparent 70%);
    bottom: -150px;
    right: -50px;
    animation-duration: 30s;
    animation-delay: -5s;
}

.header-gradient-orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #fd79a8 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 35s;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 40px;
}

.header-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.header-icon-wrapper {
    position: relative;
    display: inline-block;
}

.header-icon {
    font-size: 80px;
    animation: iconPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(116, 185, 255, 0.5));
}

.header-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(116, 185, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.2; }
}

.header-title {
    font-size: 4rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #74b9ff 50%, #a29bfe 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 3px;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header-subtitle {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.9);
    margin: 20px 0 0 0;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Navigation */
.nav-tabs {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-tab {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-tab:hover, .nav-tab.active {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
    background-color: transparent;
    min-height: 200px;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enhanced Form Styling */
.auth-section {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px;
    margin: 20px auto;
    max-width: 420px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #74b9ff;
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 3px rgba(116, 185, 255, 0.2);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

/* Form Control Select for Library */
.form-control-select {
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-control-select:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
}

.form-control-select:focus {
    outline: none;
    border-color: #74b9ff;
    box-shadow: 0 0 0 2px rgba(116, 185, 255, 0.2);
}

.form-control-select option {
    background: #2a5298;
    color: white;
}

/* Enhanced Button System */
.btn {
    background: linear-gradient(145deg, #ff6b6b, #ee5a24);
    border: none;
    color: white;
    padding: 16px 32px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 8px 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(255, 107, 107, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.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;
}

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

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 35px rgba(255, 107, 107, 0.4),
        0 0 20px rgba(255, 107, 107, 0.3);
}

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

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

.btn-secondary {
    background: linear-gradient(145deg, #74b9ff, #0984e3);
    box-shadow: 
        0 4px 15px rgba(116, 185, 255, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    box-shadow: 
        0 12px 35px rgba(116, 185, 255, 0.4),
        0 0 20px rgba(116, 185, 255, 0.3);
}

.btn-success {
    background: linear-gradient(145deg, #00b894, #00cec9);
    box-shadow: 
        0 4px 15px rgba(0, 184, 148, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-success:hover {
    box-shadow: 
        0 12px 35px rgba(0, 184, 148, 0.4),
        0 0 20px rgba(0, 184, 148, 0.3);
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
    margin: 4px 2px;
}

.btn-icon {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    color: white;
    transform: scale(1.2);
}

.btn-in-library {
    background: linear-gradient(145deg, #00b894, #00cec9);
    cursor: default;
    position: relative;
    color: white;
    font-weight: 600;
}

.btn-in-library:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.3);
}

.btn-in-library .status-indicator {
    background: none;
    border: none;
    color: white;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    padding: 0;
    margin: 0;
}

/* Enhanced Movie Grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
    max-width: 100%;
}

/* Desktop - 2 columns */
@media (min-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large desktop - 3 columns */
@media (min-width: 1600px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.movie-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 25px;
    padding: 25px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.movie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #74b9ff, #0984e3, #74b9ff);
    background-size: 200% 100%;
    animation: cardBorderGlow 4s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes cardBorderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.movie-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.3),
        0 0 30px rgba(116, 185, 255, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.2);
    background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
}

/* Enhanced Movie Poster */
.movie-poster {
    width: 100%;
    height: 240px;
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.movie-card:hover .movie-poster img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.1);
}

.movie-poster.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 2px dashed rgba(255,255,255,0.3);
}

/* Enhanced Search */
.search-section {
    margin-bottom: 40px;
    text-align: center;
}

.search-section h2 {
    margin-bottom: 30px;
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
}

.search-input {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: block;
    background: rgba(255,255,255,0.1) !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    border-radius: 20px !important;
    padding: 20px 30px !important;
    font-size: 18px !important;
    color: white !important;
    backdrop-filter: blur(15px) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
}

.search-input:focus {
    border-color: #74b9ff !important;
    background: rgba(255,255,255,0.15) !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(116, 185, 255, 0.2), 0 4px 20px rgba(0,0,0,0.2) !important;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.6) !important;
}

/* Enhanced Library Views */
.library-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.view-toggles {
    display: flex;
    gap: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    padding: 5px;
    border: 1px solid rgba(255,255,255,0.2);
}

.view-toggle {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    padding: 10px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.view-toggle.active {
    background: rgba(255,255,255,0.2);
    color: white;
    box-shadow: 0 2px 10px rgba(255,255,255,0.2);
}

/* NEW: Enhanced Library Controls */
.library-enhanced-controls {
    margin-bottom: 30px;
}

.library-sort-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

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

.sort-controls label, .filter-controls label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

/* FULL-SCREEN EVENT CREATION MODAL */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fullscreen-modal.show {
    transform: translateY(0);
}

.fullscreen-modal-header {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.fullscreen-modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close-btn {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.fullscreen-modal-content {
    flex: 1;
    padding: 40px 30px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Event Creation Steps */
.event-step {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.step-number {
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.step-title {
    font-size: 1.4rem;
    margin: 0;
    color: #74b9ff;
}

/* Enhanced Movie Selection */
.movie-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.movie-selection-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.movie-selection-card:hover {
    border-color: #74b9ff;
    background: rgba(116, 185, 255, 0.15);
    transform: translateY(-3px);
}

.movie-selection-card.selected {
    border-color: #00b894;
    background: rgba(0, 184, 148, 0.2);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.3);
}

.selected-movie-display {
    background: rgba(0, 184, 148, 0.15);
    border: 2px solid rgba(0, 184, 148, 0.4);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    animation: slideInFromBottom 0.5s ease;
}

@keyframes slideInFromBottom {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* NEW: Profile Styles */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: start;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}

.profile-picture-section {
    text-align: center;
}

.profile-picture-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    margin-bottom: 15px;
}

.profile-picture-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    margin-bottom: 15px;
}

.profile-info h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.profile-stats {
    display: flex;
    gap: 30px;
}

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

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #74b9ff;
}

.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-favorites {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}

.profile-favorites h3 {
    margin-bottom: 20px;
    color: #74b9ff;
}

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

.favorite-item {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.favorite-item label {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.favorite-select-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.favorite-select-container span {
    color: #74b9ff;
    font-weight: 600;
}

/* Profile Dashboard */
.profile-dashboard {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}

.profile-dashboard h3 {
    margin-bottom: 25px;
    color: #74b9ff;
}

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

.dashboard-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.dashboard-card canvas {
    max-width: 100%;
    height: auto !important;
}

.dashboard-card h4 {
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
    font-size: 16px;
}

.dashboard-card canvas {
    max-height: 250px;
}

.top-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.top-rank {
    color: #74b9ff;
    font-weight: bold;
    font-size: 18px;
    width: 30px;
}

.top-name {
    flex: 1;
    margin: 0 15px;
}

.top-count {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* Profile Wall */
.profile-wall {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}

.profile-wall h3 {
    margin-bottom: 20px;
    color: #74b9ff;
}

/* Friends Grid */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 25px;
    padding: 10px;
}

.friend-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.friend-item:hover {
    transform: translateY(-5px);
}

.friend-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 3px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    object-fit: cover;
}

.friend-avatar:hover {
    border-color: #74b9ff;
    box-shadow: 0 5px 15px rgba(116, 185, 255, 0.4);
}

.friend-name {
    margin: 0;
    color: #74b9ff;
    font-size: 14px;
    font-weight: 600;
}

/* Activity Feed */
.activity-feed-container {
    max-width: 800px;
    margin: 0 auto;
}

.activity-feed-container h2 {
    margin-bottom: 25px;
    text-align: center;
    color: #74b9ff;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: start;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.activity-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(5px);
}

.activity-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.activity-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.activity-avatar-placeholder {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.activity-username {
    font-weight: 600;
    color: #74b9ff;
    cursor: pointer;
}

.activity-username:hover {
    text-decoration: underline;
}

.activity-action {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.activity-movie {
    color: #00b894;
    font-weight: 500;
}

.activity-details {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 5px;
}

.activity-time {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.activity-poster {
    width: 60px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Selection Lists for Favorites */
.actor-list, .director-list, .genre-list {
    max-height: 400px;
    overflow-y: auto;
    display: grid;
    gap: 10px;
}

.selection-item {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.selection-item:hover {
    background: rgba(116, 185, 255, 0.15);
    border-color: #74b9ff;
    transform: translateX(5px);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        max-width: 100%;
    }
    
    /* Ensure touch targets are at least 44px */
    button, .btn, a.btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .header {
        border-radius: 20px;
    }
    
    .header-content {
        padding: 40px 20px;
    }
    
    .header-logo-wrapper {
        gap: 15px;
    }
    
    .header-icon {
        font-size: 60px;
    }
    
    .header-icon-glow {
        width: 90px;
        height: 90px;
    }
    
    .header-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .header-subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .header-gradient-orb-1 {
        width: 300px;
        height: 300px;
    }
    
    .header-gradient-orb-2 {
        width: 200px;
        height: 200px;
    }
    
    .header-gradient-orb-3 {
        width: 150px;
        height: 150px;
    }
    
    .movie-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .nav-tabs {
        display: flex;
        gap: 5px;
        margin: 15px 0;
        padding: 10px;
        flex-wrap: nowrap;
        justify-content: center;
    }
    
    .nav-tab {
        padding: 10px 14px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 1;
        flex-grow: 1;
        text-align: center;
        min-width: 0;
    }

    .library-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .library-sort-filter {
        flex-direction: column;
        gap: 15px;
    }
    
    .sort-controls, .filter-controls {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .form-control-select {
        width: 100%;
    }
    
    .auth-section {
        padding: 35px 25px;
        margin: 20px 15px;
    }

    .fullscreen-modal-header {
        padding: 15px 20px;
    }

    .fullscreen-modal-content {
        padding: 25px 20px;
    }

    .movie-selection-grid {
        grid-template-columns: 1fr;
        max-height: 400px;
    }

    .search-input {
        padding: 18px 25px !important;
        font-size: 16px !important;
    }

    .btn {
        padding: 14px 28px;
        font-size: 14px;
        margin: 6px 3px;
    }

    .movie-compact-info {
        flex-direction: column;
        gap: 15px;
    }

    .movie-compact-poster {
        width: 100%;
        height: 200px;
        align-self: center;
        max-width: 200px;
    }

    .profile-menu {
        position: relative;
    }

    .profile-dropdown {
        right: 0;
        left: auto;
        min-width: 180px;
    }
    
    /* Profile Mobile */
    .profile-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-picture-section {
        margin: 0 auto;
    }
    
    .profile-stats {
        justify-content: center;
        margin-top: 20px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dashboard-card {
        padding: 15px;
    }
    
    .dashboard-card canvas {
        max-height: 200px;
        width: 100% !important;
        height: auto !important;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
    }
    
    /* Calendar mobile fixes */
    .calendar-view {
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
    
    .calendar-day {
        padding: 8px;
        min-height: 80px;
        min-width: 45px;
        font-size: 12px;
    }
    
    .calendar-event {
        font-size: 10px;
        padding: 3px 5px;
    }
    
    /* Mobile recommendation styles */
    .recommendations {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 15px 0;
    }
    
    .recommendation-card {
        padding: 15px;
    }
}

/* iPhone 15 Pro Max specific */
@media (max-width: 430px) {
    .nav-tabs {
        gap: 2px;
        padding: 8px 3px;
        margin: 10px 0;
    }
    
    .nav-tab {
        padding: 9px 10px;
        font-size: 12px;
        border-radius: 18px;
        letter-spacing: -0.5px;
    }
    
    /* Profile adjustments */
    .profile-dashboard {
        padding: 20px;
    }
    
    .profile-favorites {
        padding: 20px;
    }
    
    .profile-wall {
        padding: 20px;
    }
    
    /* Dashboard specific */
    .dashboard-card {
        position: relative;
        overflow: hidden;
    }
    
    /* Ensure charts stay within bounds */
    .dashboard-card canvas {
        position: relative !important;
        max-width: 100% !important;
    }
    
    /* Events page adjustments */
    .event-card {
        padding: 20px;
    }
    
    /* Calendar specific for small screens */
    .calendar-view {
        display: flex;
        flex-wrap: wrap;
        gap: 3px;
    }
    
    .calendar-day {
        flex: 0 0 calc(14.28% - 3px);
        min-width: 40px;
        padding: 5px;
        font-size: 11px;
    }
    
    /* Library cards */
    .movie-card-detailed {
        padding: 15px;
    }
    
    .movie-compact-info {
        flex-direction: column;
        text-align: center;
    }
    
    .movie-compact-poster {
        margin: 0 auto 15px;
    }
    
    /* Activity feed */
    .activity-item {
        padding: 15px;
    }
    
    /* Forms and inputs */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 30px 15px;
    }
    
    .header-icon {
        font-size: 50px;
    }
    
    .header-icon-glow {
        width: 70px;
        height: 70px;
    }
    
    .header-title {
        font-size: 2rem;
    }
    
    .header-subtitle {
        font-size: 0.9rem;
    }

    .nav-tab {
        padding: 10px 10px;
        font-size: 11px;
    }

    .movie-card {
        padding: 20px;
    }

    .movie-poster {
        height: 200px;
    }

    .fullscreen-modal-header h2 {
        font-size: 1.5rem;
    }

    .step-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .auth-section {
        padding: 30px 20px;
    }

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

    .movie-card-list {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .movie-poster-list {
        width: 100px;
        height: 150px;
        align-self: center;
    }
    
    .profile-info h1 {
        font-size: 1.8rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .profile-actions {
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 10px;
    }

    .header {
        border-radius: 15px;
    }
    
    .header-content {
        padding: 25px 10px;
    }

    .header-logo-wrapper {
        gap: 10px;
    }
    
    .header-icon {
        font-size: 40px;
    }
    
    .header-icon-glow {
        width: 60px;
        height: 60px;
    }

    .header-title {
        font-size: 1.8rem;
    }
    
    .header-subtitle {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }

    .auth-section {
        padding: 25px 15px;
        margin: 15px 10px;
    }
    
    /* Ultra small screen calendar */
    .calendar-day {
        min-width: 35px;
        padding: 3px;
        font-size: 10px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .btn-small {
        padding: 8px 14px;
        font-size: 11px;
    }
}

    .nav-tabs {
        padding: 10px;
    }

    .movie-card {
        padding: 15px;
    }
}

/* Enhanced Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-in-library {
    background: rgba(0, 184, 148, 0.2);
    color: #00b894;
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.status-tmdb {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-local {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

/* Enhanced Recommendations */
.recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin: 20px 0;
    max-width: 100%;
}

/* Desktop - 2 columns */
@media (min-width: 1024px) {
    .recommendations {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large desktop - 3 columns */
@media (min-width: 1600px) {
    .recommendations {
        grid-template-columns: repeat(3, 1fr);
    }
}

.recommendation-card {
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid rgba(46, 204, 113, 0.3);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.recommendation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2ecc71, #00b894);
}

.recommendation-card:hover {
    transform: translateY(-8px);
    border-color: rgba(46, 204, 113, 0.5);
    box-shadow: 0 12px 40px rgba(46, 204, 113, 0.2);
}

.recommendation-score {
    background: linear-gradient(45deg, #2ecc71, #00b894);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.recommendation-reason {
    background: rgba(46, 204, 113, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    margin-top: 15px;
    border-left: 4px solid #2ecc71;
    line-height: 1.4;
}

/* Enhanced Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #74b9ff;
    animation: spin 1s ease-in-out infinite;
}

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

.loading-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: rgba(255,255,255,0.8);
    font-style: italic;
}

/* Enhanced Events & Calendar */
.event-card {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    border-left: 5px solid #74b9ff;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
}

.event-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.event-card.created {
    border-left-color: #00b894;
}

.event-card.invited {
    border-left-color: #fdcb6e;
}

.event-card.locked {
    border-left-color: #636e72;
    opacity: 0.8;
}

/* Calendar Enhancements */
.calendar-view {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.calendar-day {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    min-height: 120px;
    position: relative;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    background: rgba(255,255,255,0.15);
}

.calendar-day.has-events {
    background: rgba(116, 185, 255, 0.2);
    border: 1px solid rgba(116, 185, 255, 0.4);
}

.calendar-event {
    background: rgba(255,255,255,0.1);
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 11px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-event:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(2px);
}

.calendar-event.created {
    border-left: 3px solid #00b894;
}

.calendar-event.invited {
    border-left: 3px solid #fdcb6e;
}

.calendar-event.locked {
    opacity: 0.7;
    border-left: 3px solid #636e72;
}

/* Enhanced Notifications */
.invitation-card {
    background: rgba(116, 185, 255, 0.1);
    border: 2px solid rgba(116, 185, 255, 0.3);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.invitation-card:hover {
    border-color: rgba(116, 185, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(116, 185, 255, 0.2);
}

.invitation-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* User Profile */
.user-profile {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 0.5em;
}

p {
    line-height: 1.6;
    margin-bottom: 1em;
}

/* ENHANCED PROFILE MENU */
.profile-menu {
    position: relative;
    display: inline-block;
}

.profile-toggle {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    padding: 12px 18px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(15px);
}

.profile-toggle:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(30, 60, 114, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 1000;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-size: 14px;
}

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

.profile-dropdown-item.clickable {
    cursor: pointer;
    transition: background 0.3s ease;
}

.profile-dropdown-item.clickable:hover {
    background: rgba(255,255,255,0.1);
}

.profile-dropdown-item strong {
    color: #74b9ff;
}

/* ENHANCED LIBRARY VIEWS */
.library-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.movie-card-compact {
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.movie-card-compact:hover {
    transform: translateY(-5px);
    background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.3);
}

.movie-poster-compact {
    width: 100%;
    height: 180px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.movie-poster-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card-compact:hover .movie-poster-compact img {
    transform: scale(1.05);
}

.library-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.movie-card-list {
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.movie-card-list:hover {
    background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.3);
}

.movie-poster-list {
    width: 80px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.movie-poster-list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card-list:hover .movie-poster-list img {
    transform: scale(1.05);
}

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

.movie-info-list h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #74b9ff;
}

.movie-info-list p {
    margin: 4px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

/* ENHANCED DETAILED LIBRARY CARDS */
.movie-card-detailed {
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.movie-card-detailed:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
}

.movie-compact-info {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex: 1;
}

.movie-compact-poster {
    width: 100px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.movie-compact-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card-detailed:hover .movie-compact-poster img {
    transform: scale(1.05);
}

.movie-compact-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.movie-title-compact {
    font-size: 18px;
    font-weight: 600;
    color: #74b9ff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.movie-scores {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin: 6px 0;
    font-weight: 500;
}

.movie-plot-compact {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255,255,255,0.8);
    margin: 10px 0;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.movie-plot-compact.has-rating {
    -webkit-line-clamp: 3;
    max-height: 4.5em;
}

.movie-plot-compact.no-rating {
    -webkit-line-clamp: 6;
    max-height: 9em;
}

.user-rating-compact {
    background: rgba(116, 185, 255, 0.15);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 10px;
    padding: 10px;
    margin: 12px 0;
    font-size: 14px;
}

.user-rating-compact strong {
    color: #74b9ff;
}

.review-compact {
    background: rgba(255,255,255,0.05);
    border-left: 3px solid #74b9ff;
    padding: 8px 12px;
    margin: 8px 0;
    border-radius: 5px;
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
}

.movie-action-section {
    margin-top: auto;
    padding-top: 15px;
}

.read-more-btn {
    background: transparent;
    border: none;
    color: #74b9ff;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    padding: 0;
    margin-left: 5px;
}

.read-more-btn:hover {
    color: #0984e3;
}

/* Enhanced Focus States */
.btn:focus, .nav-tab:focus, .view-toggle:focus {
    outline: 2px solid #74b9ff;
    outline-offset: 2px;
}

/* Enhanced Comments System */
.comments-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.comment-item {
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: rgba(255,255,255,0.08) !important;
    transform: translateX(3px);
}

.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: rgba(116, 185, 255, 0.6);
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: rgba(116, 185, 255, 0.8);
}

/* Improved Vote Section */
.vote-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.vote-btn {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 25px;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vote-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.vote-btn.upvoted {
    border-color: #00b894;
    background: rgba(0, 184, 148, 0.2);
    color: #00b894;
}

.vote-btn.downvoted {
    border-color: #e17055;
    background: rgba(225, 112, 85, 0.2);
    color: #e17055;
}

.vote-score {
    font-weight: bold;
    padding: 10px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    font-size: 14px;
    border: 2px solid rgba(255,255,255,0.2);
}

.vote-score.positive {
    color: #00b894;
    border-color: rgba(0, 184, 148, 0.3);
    background: rgba(0, 184, 148, 0.1);
}

.vote-score.negative {
    color: #e17055;
    border-color: rgba(225, 112, 85, 0.3);
    background: rgba(225, 112, 85, 0.1);
}

/* Scrollbar Styling */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(116, 185, 255, 0.4);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(116, 185, 255, 0.6);
}

/* Star Rating System */
.star-rating {
    display: flex;
    gap: 5px;
    margin: 10px 0;
}

.star {
    font-size: 20px;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.star:hover,
.star.active {
    color: #ffd700;
    transform: scale(1.2);
}

.rating-section {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.rating-section label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}