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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
}

/* HEADER SIMPLIFICADO */
.header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 12px 20px;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header h1 {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 3px;
    color: #fff;
    cursor: pointer;
    margin: 0;
}

.header h1:hover {
    color: #d4af37;
}

.hamburger-btn {
    background: none;
    border: 1px solid #333;
    border-radius: 8px;
    color: #d4af37;
    font-size: 20px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.hamburger-btn:hover {
    background: #222;
    border-color: #d4af37;
}

.main-search-bar {
    position: relative;
}

/* DRAWER LATERAL */
.drawer-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
}

.drawer-overlay.active {
    display: block;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #111;
    border-left: 1px solid #222;
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding-bottom: 30px;
}

.drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #222;
}

.drawer-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #d4af37;
    text-transform: uppercase;
}

.drawer-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.drawer-close:hover {
    background: #222;
    color: #fff;
}

.drawer-section-title {
    padding: 15px 20px 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #555;
}

.drawer-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.drawer-item:hover {
    background: #1a1a1a;
    color: #d4af37;
}

.drawer-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.drawer-label {
    flex: 1;
}

.drawer-badge {
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 12px;
    color: #d4af37;
    min-width: 28px;
    text-align: center;
}

.drawer-divider {
    height: 1px;
    background: #222;
    margin: 10px 0;
}

/* LONG PRESS CONTEXT MENU */
.context-menu {
    display: none;
    position: fixed;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 8px;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    min-width: 200px;
}

.context-menu.active {
    display: block;
    animation: popIn 0.15s ease;
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.context-menu-title {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px 8px;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
    transition: all 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.context-menu-item:hover {
    background: #2a2a2a;
}

.context-menu-item.active-status {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.context-menu-item.favorite-item.active-status {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.context-menu-item.watchlater-item.active-status {
    color: #4dabf7;
    background: rgba(77, 171, 247, 0.1);
}

.context-menu-item.watched-item.active-status {
    color: #51cf66;
    background: rgba(81, 207, 102, 0.1);
}

.main-search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 25px;
    color: #e0e0e0;
    font-size: 16px;
    transition: all 0.3s;
}

.main-search-input:focus {
    outline: none;
    border-color: #d4af37;
    background: #222;
}

.main-search-input::placeholder {
    color: #555;
}

.main-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #d4af37;
    cursor: pointer;
}

/* NAVIGATION TABS */
.nav-tabs {
    display: flex;
    background: #111;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 73px;
    z-index: 99;
}

.nav-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-tab.active {
    border-bottom-color: #d4af37;
    background: #1a1a1a;
    color: #d4af37;
}

.nav-tab:hover {
    background: #1a1a1a;
}

/* CONTENT SECTIONS */
.content-section {
    display: none;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

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

/* PÃGINAS COMPLETAS (para detalle de pelÃ­cula/actor) */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* SEARCH FILTERS */
.filter-group {
    margin-bottom: 25px;
}

.filter-label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
}

.input-field {
    width: 100%;
    padding: 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 16px;
    transition: all 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: #d4af37;
    background: #222;
}

.input-field::placeholder {
    color: #555;
}

/* GENRE CHIPS */
.genre-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.chip {
    padding: 10px 18px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 25px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.chip:hover {
    background: #222;
    border-color: #444;
}

.chip.selected {
    background: #d4af37;
    color: #0a0a0a;
    border-color: #d4af37;
    font-weight: 500;
}

/* SEARCH BUTTON */
.search-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    border: none;
    border-radius: 8px;
    color: #0a0a0a;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.3s;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.search-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* LOADING */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #888;
}

/* MOVIE CARDS - Formato One-Sheet */
.results-header {
    margin-bottom: 20px;
    font-weight: 300;
    font-size: 20px;
    letter-spacing: 2px;
}

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

.movie-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #222;
    position: relative;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
}

.movie-poster {
    width: 100%;
    aspect-ratio: 2/3;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 14px;
    overflow: hidden;
    position: relative;
}

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

/* ICONOS DE ESTADO EN RESULTADOS */
.status-icons {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.status-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    backdrop-filter: blur(5px);
}

.status-icon.favorite {
    color: #ff6b6b;
}

.status-icon.watchlater {
    color: #4dabf7;
}

.status-icon.watched {
    color: #51cf66;
}

.movie-info {
    padding: 15px;
}

.movie-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.movie-title-latin {
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-year {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.movie-rating {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rating-badge {
    font-size: 11px;
    padding: 4px 8px;
    background: #222;
    border-radius: 4px;
    color: #d4af37;
}

/* PÃGINA DE DETALLE DE PELÃCULA */
.movie-detail-page {
    padding: 0;
    max-width: 100%;
}

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

.movie-backdrop::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, #0a0a0a 0%, transparent 100%);
}

.movie-detail-content {
    max-width: 900px;
    margin: -100px auto 0;
    position: relative;
    padding: 0 20px 40px;
}

.movie-detail-header {
    margin-bottom: 25px;
}

/* POSTER + TRAILER CONTAINER */
.poster-trailer-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.movie-poster-main {
    flex-shrink: 0;
    width: 220px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    transition: all 0.3s;
}

.movie-poster-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

.movie-poster-main img {
    width: 100%;
    height: auto;
    display: block;
}

.poster-placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #333;
}

.trailer-container-side {
    flex: 1;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.trailer-container-side iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.movie-detail-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
}

.movie-detail-title-latin {
    font-size: 20px;
    color: #888;
    margin-bottom: 15px;
}

.movie-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 14px;
    color: #888;
}

.movie-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* BOTONES DE ACCIÃ“N */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.action-button {
    padding: 15px 20px;
    background: #222;
    border: 2px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.action-button:hover {
    background: #2a2a2a;
    border-color: #444;
}

.action-button.active {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
}

.action-button.favorite.active {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.action-button.watchlater.active {
    border-color: #4dabf7;
    background: rgba(77, 171, 247, 0.1);
    color: #4dabf7;
}

.action-button.watched.active {
    border-color: #51cf66;
    background: rgba(81, 207, 102, 0.1);
    color: #51cf66;
}

.action-button.rating.active {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
}

/* RATING MODAL */
.rating-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.rating-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.rating-modal-content {
    position: relative;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    animation: modalSlideIn 0.3s ease;
}

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

.rating-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #d4af37;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.rating-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.rating-modal-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.rating-modal-stars {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.rating-modal-stars .star {
    font-size: 40px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1;
}

.rating-modal-stars .star:hover {
    color: #d4af37;
    transform: scale(1.15);
}

.rating-modal-stars .star.filled {
    color: #d4af37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.rating-modal-hint {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.rating-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.rating-modal-clear,
.rating-modal-close-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.rating-modal-clear {
    background: #333;
    color: #e0e0e0;
}

.rating-modal-clear:hover {
    background: #444;
}

.rating-modal-close-btn {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #0a0a0a;
}

.rating-modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* NOTES SECTION */
.notes-section {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.notes-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #d4af37;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.note-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s;
}

.note-textarea:focus {
    outline: none;
    border-color: #d4af37;
    background: #111;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.note-textarea::placeholder {
    color: #555;
    line-height: 1.6;
}

.notes-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    gap: 15px;
}

.save-note-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    border: none;
    border-radius: 8px;
    color: #0a0a0a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.save-note-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.save-note-button:active {
    transform: translateY(0);
}

.note-counter {
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
}

/* RATING PERSONAL EN TARJETAS (opcional) */
.personal-rating {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #0a0a0a;
    font-weight: 600;
    border: 1px solid #d4af37;
}

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

.detail-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #d4af37;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.detail-overview {
    line-height: 1.8;
    color: #ccc;
    font-size: 15px;
}

.genre-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.genre-tag {
    padding: 8px 15px;
    background: #222;
    border-radius: 20px;
    font-size: 13px;
    color: #d4af37;
    border: 1px solid #333;
}

/* CAST - Fotos de actores */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.cast-member {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.cast-member:hover {
    transform: translateY(-5px);
}

.cast-member:hover .cast-photo {
    border-color: #d4af37;
}

.cast-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #222;
    margin-bottom: 8px;
    overflow: hidden;
    border: 2px solid #333;
}

.cast-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cast-photo.no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #555;
}

.cast-name {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cast-character {
    font-size: 11px;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.see-more-cast {
    text-align: center;
    margin-top: 15px;
}

.see-more-gallery {
    text-align: center;
    margin-top: 15px;
}

.see-more-button {
    padding: 10px 20px;
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    color: #d4af37;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.see-more-button:hover {
    background: #2a2a2a;
    border-color: #d4af37;
}

/* KEYWORDS/TROPES */
.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-tag {
    padding: 8px 15px;
    background: #222;
    border-radius: 20px;
    font-size: 13px;
    color: #888;
    border: 1px solid #333;
    cursor: pointer;
    transition: all 0.3s;
}

.keyword-tag:hover {
    background: #2a2a2a;
    border-color: #666;
    transform: translateY(-2px);
}

/* EXTERNAL LINKS */
.external-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.external-link {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    color: #d4af37;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.external-link:hover {
    background: #2a2a2a;
    border-color: #d4af37;
    transform: translateY(-2px);
}

.external-link.imdb {
    border-color: #f5c518;
    color: #f5c518;
}

.external-link.imdb:hover {
    background: rgba(245, 197, 24, 0.1);
}

.external-link.letterboxd {
    border-color: #00c030;
    color: #00c030;
}

.external-link.letterboxd:hover {
    background: rgba(0, 192, 48, 0.1);
}

.external-link.tvtropes {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.external-link.tvtropes:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* STREAMING SERVICES */
.streaming-services {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.streaming-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.streaming-item:hover {
    transform: scale(1.1);
}

.streaming-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.streaming-item span {
    font-size: 13px;
    color: #e0e0e0;
}

/* SIMILAR MOVIES */
.similar-movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.similar-movie-card {
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
    overflow: hidden;
    background: #222;
}

.similar-movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.similar-poster {
    width: 100%;
    aspect-ratio: 2/3;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 12px;
}

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

.similar-movie-title {
    padding: 8px;
    font-size: 11px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
}

/* PÃGINA DE ACTOR */
.actor-detail-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.actor-header {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: #1a1a1a;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #222;
}

.actor-photo-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #333;
    flex-shrink: 0;
}

.actor-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.actor-photo-large.no-photo {
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #555;
}

.actor-info {
    flex: 1;
}

.actor-name-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.actor-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 14px;
    color: #888;
}

.actor-bio {
    line-height: 1.6;
    color: #ccc;
}

.actor-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.actor-fav-button {
    padding: 12px 24px;
    background: #222;
    border: 2px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.actor-fav-button:hover {
    background: #2a2a2a;
    border-color: #444;
}

.actor-fav-button.active {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
}

.actor-filmography {
    margin-top: 30px;
}

/* FAVORITE ACTORS LIST */
.favorite-actors-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #d4af37;
}

.gender-group {
    margin-bottom: 40px;
}

.gender-group h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #d4af37;
    letter-spacing: 1px;
}

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

.favorite-actor-card {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.favorite-actor-card:hover {
    transform: translateY(-5px);
}

.favorite-actor-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #222;
    margin-bottom: 10px;
    overflow: hidden;
    border: 2px solid #333;
}

.favorite-actor-card:hover .favorite-actor-photo {
    border-color: #d4af37;
}

.favorite-actor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-actor-photo.no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #555;
}

.favorite-actor-name {
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-favorite-actor {
    margin-top: 8px;
    padding: 6px 12px;
    background: #222;
    border: 1px solid #333;
    border-radius: 6px;
    color: #ff6b6b;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
}

.remove-favorite-actor:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
}

/* BACK BUTTON */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    color: #d4af37;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.back-button:hover {
    background: #2a2a2a;
    border-color: #d4af37;
    transform: translateX(-3px);
}

/* TOAST NOTIFICATIONS */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast {
    padding: 15px 20px;
    background: #1a1a1a;
    border-radius: 8px;
    border-left: 4px solid #d4af37;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

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

.toast.success {
    border-left-color: #51cf66;
}

.toast.error {
    border-left-color: #ff6b6b;
}

.toast.warning {
    border-left-color: #ffd43b;
}

.toast.info {
    border-left-color: #4dabf7;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: #fff;
}

#importFileInput {
    display: none;
}

/* LOADING OVERLAY */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #333;
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* TRAILER */
.trailer-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.trailer-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* GALERÃA DE IMÃGENES */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.gallery-thumbnail {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    background: #111;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    border-color: #d4af37;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* VER MÁS GALERÍA */
.see-more-gallery {
    text-align: center;
    margin-top: 15px;
}

.see-more-gallery .see-more-button {
    padding: 12px 24px;
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    color: #d4af37;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.see-more-gallery .see-more-button:hover {
    background: #2a2a2a;
    border-color: #d4af37;
    transform: translateY(-2px);
}

/* MODAL DE GALERÃA FULLSCREEN */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
}

.gallery-modal.active {
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
}

.gallery-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#galleryImage {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8);
}

.gallery-close,
.gallery-download {
    position: absolute;
    top: 20px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid #333;
    color: #e0e0e0;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10002;
}

.gallery-close {
    right: 20px;
}

.gallery-download {
    right: 85px;
    font-size: 24px;
}

.gallery-close:hover,
.gallery-download:hover {
    background: #d4af37;
    color: #0a0a0a;
    border-color: #d4af37;
    transform: scale(1.1);
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid #333;
    color: #e0e0e0;
    font-size: 48px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10002;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: #d4af37;
    color: #0a0a0a;
    border-color: #d4af37;
    transform: translateY(-50%) scale(1.1);
}

.gallery-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 10px 20px;
    color: #d4af37;
    font-size: 16px;
    font-weight: 600;
    z-index: 10002;
}

/* MODAL DE NOTAS */
.notes-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10003;
}

.notes-modal.active {
    display: block;
}

.notes-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
}

.notes-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
}

.notes-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.notes-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #d4af37;
    letter-spacing: 1px;
    margin: 0;
}

.notes-modal-header h3 span {
    color: #e0e0e0;
}

.notes-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    line-height: 1;
}

.notes-modal-close:hover {
    background: #222;
    color: #fff;
}

.notes-modal-textarea {
    flex: 1;
    width: 100%;
    min-height: 300px;
    padding: 20px;
    background: #0f0f0f;
    border: none;
    color: #e0e0e0;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}

.notes-modal-textarea::placeholder {
    color: #555;
    line-height: 1.6;
}

.notes-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #333;
    background: #161616;
    border-radius: 0 0 12px 12px;
}

.notes-modal-counter {
    font-size: 13px;
    color: #888;
    flex-shrink: 0;
}

.notes-modal-save {
    padding: 10px 24px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    border: none;
    border-radius: 8px;
    color: #0a0a0a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notes-modal-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.notes-modal-save:active {
    transform: translateY(0);
}

/* Indicador visual en botón de notas */
.action-button.notes.has-note {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    position: relative;
}

.action-button.notes.has-note::after {
    content: '•';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 20px;
    color: #d4af37;
}

/* PÁGINA DE MIS NOTAS */
.my-notes-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.note-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.note-card:hover {
    border-color: #444;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.note-card-poster {
    width: 100%;
    aspect-ratio: 2/3;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.note-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

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

.note-card-poster .no-poster {
    font-size: 40px;
}

.note-card-content {
    padding: 15px;
}

.note-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    cursor: pointer;
    transition: color 0.3s;
}

.note-card-title:hover {
    color: #d4af37;
}

.note-card-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.note-card-preview {
    font-size: 13px;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 15px;
    padding: 10px;
    background: #0f0f0f;
    border-left: 3px solid #d4af37;
    border-radius: 4px;
    max-height: 100px;
    overflow-y: auto;
}

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

.note-card-btn {
    flex: 1;
    padding: 10px;
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    color: #d4af37;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.note-card-btn:hover {
    background: #2a2a2a;
    border-color: #d4af37;
}

.note-card-btn.delete {
    color: #ff6b6b;
}

.note-card-btn.delete:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    /* POSTER EN MOBILE */
    .movie-header-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .movie-poster-main {
        position: static;
        width: 200px;
        margin: 0 auto;
    }
    
    .movie-info-main {
        width: 100%;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .movie-backdrop {
        height: 250px;
    }

    .movie-detail-title {
        font-size: 24px;
    }
    
    /* Poster + Trailer en mobile */
    .poster-trailer-container {
        flex-direction: column;
        align-items: center;
    }
    
    .movie-poster-main {
        width: 200px;
    }
    
    .trailer-container-side {
        width: 100%;
    }

    .action-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

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

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

    .actor-photo-large {
        width: 150px;
        height: 150px;
    }

    .toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }

    /* GalerÃ­a responsive */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }

    .gallery-close,
    .gallery-download {
        width: 44px;
        height: 44px;
        font-size: 24px;
        top: 10px;
    }

    .gallery-download {
        right: 65px;
        font-size: 20px;
    }

    .gallery-close {
        right: 10px;
    }

    .gallery-prev,
    .gallery-next {
        width: 44px;
        height: 44px;
        font-size: 32px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-counter {
        bottom: 20px;
        font-size: 14px;
        padding: 8px 16px;
    }

    #galleryImage {
        max-width: 95%;
        max-height: 85%;
    }
    
    /* RESPONSIVE PARA RATING Y NOTAS */
    .stars-container {
        justify-content: center;
    }
    
    .star {
        font-size: 28px;
    }
    
    .rating-section,
    .notes-section {
        padding: 15px;
    }
    
    .notes-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .save-note-button {
        width: 100%;
        justify-content: center;
    }
    
    .note-counter {
        text-align: center;
    }
    
    /* MODAL DE NOTAS RESPONSIVE */
    .notes-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .notes-modal-header {
        padding: 15px;
    }
    
    .notes-modal-header h3 {
        font-size: 16px;
    }
    
    .notes-modal-textarea {
        min-height: 250px;
        padding: 15px;
        font-size: 14px;
    }
    
    .notes-modal-footer {
        padding: 12px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .notes-modal-counter {
        font-size: 12px;
        order: 2;
        width: 100%;
        text-align: center;
    }
    
    .notes-modal-save {
        order: 1;
        width: 100%;
        justify-content: center;
    }
    
    /* PÁGINA DE MIS NOTAS RESPONSIVE */
    .my-notes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .note-card-actions {
        flex-direction: column;
    }
    
    .note-card-btn {
        width: 100%;
    }
}

/* ==========================
   NEW DESIGN SYSTEM V2.0
   ========================== */

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #000;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, #0a0a0a 0%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 40px 60px;
    display: flex;
    gap: 40px;
    align-items: flex-end;
    height: 100%;
}

.back-button-hero {
    position: absolute;
    top: 20px;
    left: 40px;
    padding: 12px 24px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.back-button-hero:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    color: #d4af37;
    transform: translateX(-5px);
}

.poster-float {
    flex-shrink: 0;
    width: 280px;
    border-radius: 16px;
    overflow: hidden;
    transform: translateY(80px);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.poster-float:hover {
    transform: translateY(75px) scale(1.02);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(212, 175, 55, 0.3),
        0 25px 70px rgba(212, 175, 55, 0.2);
}

.poster-float img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-info {
    flex: 1;
    padding-bottom: 20px;
}

.hero-info .movie-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 8px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.hero-info .movie-title-alt {
    font-size: 24px;
    color: #888;
    margin-bottom: 20px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.metadata-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.meta-item {
    padding: 8px 16px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.meta-item:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    transform: translateY(-2px);
}

.meta-rating {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
    color: #d4af37;
}

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

.action-btn {
    padding: 8px 16px;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: #e0e0e0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn span:first-child {
    font-size: 16px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.action-btn.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    color: #d4af37;
}

.action-btn.favorite.active {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.action-btn.watchlater.active {
    background: rgba(77, 171, 247, 0.2);
    border-color: #4dabf7;
    color: #4dabf7;
}

.action-btn.watched.active {
    background: rgba(81, 207, 102, 0.2);
    border-color: #51cf66;
    color: #51cf66;
}

.action-btn.notes.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    color: #d4af37;
}

.action-btn.rating.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    color: #d4af37;
}

/* Main Content Grid */
.main-content {
    max-width: 1400px;
    margin: 60px auto 40px;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

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

.content-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Sections */
.section {
    margin-bottom: 48px;
}

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

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.see-more-btn {
    padding: 8px 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    color: #d4af37;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.see-more-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    transform: translateY(-2px);
}

/* Synopsis Card */
.synopsis-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 28px;
    line-height: 1.7;
    font-size: 16px;
    color: #d0d0d0;
}

/* Trailer */
.trailer-container-main {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.trailer-container-main iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* Cast Horizontal Scroll */
.cast-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 16px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.5) rgba(255, 255, 255, 0.1);
}

.cast-scroll::-webkit-scrollbar {
    height: 8px;
}

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

.cast-scroll::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 4px;
}

.cast-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.7);
}

.cast-member {
    flex-shrink: 0;
    width: 140px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.cast-member:hover {
    transform: translateY(-8px);
}

.cast-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cast-member:hover .cast-photo {
    border-color: #d4af37;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.cast-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cast-photo.no-photo {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #333;
}

.cast-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.cast-character {
    font-size: 12px;
    color: #888;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    border: 2px solid #d4af37;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Sidebar Blocks */
.genre-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.genre-chip {
    padding: 10px 20px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #d4af37;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.genre-chip:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: #d4af37;
    transform: translateY(-2px);
}

.info-block {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
}

.info-block-title {
    font-size: 16px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.production-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.production-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.production-label {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.production-value {
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0;
    line-height: 1.4;
}

.streaming-services-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.streaming-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.streaming-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.streaming-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.keywords-list-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-chip {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 12px;
    color: #bbb;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.keyword-chip:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
    color: #d4af37;
    transform: translateY(-2px);
}

.external-links-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.external-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.external-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.external-link img.link-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Similar Movies */
.similar-movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.similar-movie-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.similar-movie-card:hover {
    transform: translateY(-8px);
}

.similar-poster {
    aspect-ratio: 2/3;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #333;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.similar-movie-card:hover .similar-poster {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.similar-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.similar-movie-title {
    font-size: 13px;
    font-weight: 600;
    color: #d0d0d0;
    text-align: center;
    line-height: 1.3;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .content-sidebar {
        position: static;
    }
    
    .hero-content {
        padding: 100px 30px 40px;
        gap: 30px;
    }
    
    .poster-float {
        width: 240px;
    }
    
    .hero-info .movie-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 500px;
    }
    
    .hero-content {
        flex-direction: column;
        align-items: center;
        padding: 80px 20px 40px;
        gap: 0;
    }
    
    .back-button-hero {
        left: 20px;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .poster-float {
        width: 200px;
        transform: translateY(0);
        margin-bottom: 24px;
    }
    
    .poster-float:hover {
        transform: scale(1.02);
    }
    
    .hero-info {
        text-align: center;
        width: 100%;
    }
    
    .hero-info .movie-title {
        font-size: 32px;
    }
    
    .hero-info .movie-title-alt {
        font-size: 18px;
    }
    
    .metadata-row {
        justify-content: center;
        font-size: 12px;
    }
    
    .meta-item {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .action-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .action-btn span:first-child {
        font-size: 14px;
    }
    
    .main-content {
        margin-top: 40px;
        padding: 0 20px;
        gap: 24px;
    }
    
    .section {
        margin-bottom: 32px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .synopsis-card {
        padding: 20px;
        font-size: 15px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .cast-scroll {
        gap: 16px;
    }
    
    .cast-member {
        width: 120px;
    }
    
    .cast-photo {
        width: 100px;
        height: 100px;
    }
    
    .similar-movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

