html {
    scroll-behavior: smooth;
    height: 100%;
}
body {
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    background-color: #190702;
    color: #e0e0e0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100%;
}

body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: #2c2c2c; }
body::-webkit-scrollbar-thumb { background-color: #555; border-radius: 5px; border: 2px solid #2c2c2c; }
body::-webkit-scrollbar-thumb:hover { background-color: #777; }

body.modal-open {
    overflow-y: hidden;
}

.site-content {
    flex: 1;
}

.no-photo {
  width: 100%;
  height: 100%;
  background-color: transparent;
}
 
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    background:
        repeating-linear-gradient(transparent, transparent 1px, rgba(255, 255, 255, 0.015) 1px, rgba(255, 255, 255, 0.015) 2px),
        repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(255, 255, 255, 0.015) 1px, rgba(255, 255, 255, 0.015) 2px);
    background-size: 3px 3px;
    animation: noiseAnimation 0.2s infinite;
    z-index: -1;
    opacity: 0.5;
}

@keyframes noiseAnimation {
    0%,100% { transform: translate(0,0); } 10% { transform: translate(-1px,-1px); } 20% { transform: translate(1px,1px); }
    30% { transform: translate(-1px,1px); } 40% { transform: translate(1px,-1px); } 50% { transform: translate(0,0); }
    60% { transform: translate(-1px,1px); } 70% { transform: translate(1px,-1px); } 80% { transform: translate(-1px,-1px); }
    90% { transform: translate(1px,1px); }
}

.header {
    position: relative; width: 100%; height: 350px;
    overflow: hidden; display: flex; justify-content: center; align-items: center;
    z-index: 1;
}

.header::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 70%);
    z-index: 1;
}
 
.header::after {
    content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 80px;
    background: linear-gradient(to bottom, transparent, #190702 90%);
    z-index: 3;
}

.header img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    z-index: 0;
}

.header h1 {
    position: relative; color: white; font-size: 3.2em; margin: 0; padding: 15px 30px;
    background-color: transparent; border-radius: 8px; z-index: 4;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.85);
}

.header h3 {
    position: relative; color: rgb(214, 209, 209); font-size: 1.5em; margin: 0; padding: 2px 2px;
    background-color: transparent; border-radius: 8px; z-index: 4;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.85);
}

.main-content {
    position: relative; z-index: 1; padding: 20px;
    max-width: 1200px; margin: 15px auto 0 auto;
}

.view-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
    background-color: rgba(40, 20, 20, 0.5);
    border-radius: 8px;
    padding: 5px;
    border: 1px solid rgba(255,255,255,0.1);
}
.view-toggle button {
    background-color: transparent;
    color: #bbb;
    border: none;
    padding: 10px 20px;
    margin-left: 0;
    cursor: pointer;
    border-radius: 6px;
    font-family: 'Arial', sans-serif;
    font-size: 0.95em;
    font-weight: 500;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}
.view-toggle button svg {
    margin-right: 8px;
    fill: currentColor;
    width: 1em;
    height: 1em;
}
.view-toggle button:hover {
    color: #fff;
    background-color: rgba(80, 40, 40, 0.7);
}
.view-toggle button.active {
    background-color: #ffc107;
    color: #190702;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(255,193,7,0.4);
}

.table-wrapper, .reviews-wrapper, .discover-wrapper {
    overflow-x: auto;
    background-color: rgba(30, 10, 10, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px;
    box-sizing: border-box;
}

.reviews-wrapper, .discover-wrapper {
    display: none;
}

.collection-wrapper {
    background-color: rgba(30, 10, 10, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px;
    box-sizing: border-box;
    display: none;
}
 
.card-navigation, .table-navigation {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    margin-bottom: 20px;
    text-align: center;
    padding: 10px; 
    background-color: rgba(40, 20, 20, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    align-items: center; 
    gap: 10px; 
}
.card-navigation a, .table-navigation a {
    color: #ffc107;
    text-decoration: none;
    font-size: 0.95em;
    padding: 5px 12px; 
    height: auto; 
    display: inline-flex;
    align-items: center;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap; 
}
.card-navigation a:hover, .table-navigation a:hover {
    background-color: rgba(255, 193, 7, 0.2);
    color: #fff;
}

.card-navigation .view-switcher-group, .table-navigation .view-switcher-group {
    display: flex;
    background-color: rgba(20, 10, 10, 0.5); 
    border-radius: 6px;
    overflow: hidden; 
    border: 1px solid rgba(255,255,255,0.1);
    margin-left: auto; 
}
.card-navigation .view-switcher-group button, .table-navigation .view-switcher-group button {
    background-color: transparent;
    color: #bbb;
    border: none; 
    padding: 8px 10px; 
    cursor: pointer;
    font-size: 0.8em; 
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255,255,255,0.05); 
}
.card-navigation .view-switcher-group button:last-child, .table-navigation .view-switcher-group button:last-child {
    border-right: none; 
}
.card-navigation .view-switcher-group button svg, .table-navigation .view-switcher-group button svg {
    fill: currentColor;
    width: 1.1em; 
    height: 1.1em;
    margin: 0; 
}
.card-navigation .view-switcher-group button:hover, .table-navigation .view-switcher-group button:hover {
    color: #fff;
    background-color: rgba(80, 40, 40, 0.7);
}
.card-navigation .view-switcher-group button.active, .table-navigation .view-switcher-group button.active {
    background-color: #ffc107;
    color: #190702;
    font-weight: bold;
}


.search-bar {
    margin-bottom: 15px;
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1em;
    box-sizing: border-box;
}
 
table {
    width: 100%; border-collapse: collapse;
    border-radius: 15px; overflow: hidden;  
}

th, td {
    padding: 18px 22px; text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
 
th {
    background-color: rgba(0, 0, 0, 0.55); color: #f5f5f5;
    font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px;
}
 
tbody tr:nth-child(even) { background-color: rgba(0, 0, 0, 0.25); }
tbody tr:nth-child(odd) { background-color: rgba(0, 0, 0, 0.15); }

tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.01) translateX(5px);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}
 
tbody tr td:first-child {
    color: #ffc107; font-weight: bold; font-size: 1.1em;
}

.cards-wrapper, .discover-cards-wrapper {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.card {
    background-color: rgba(35, 15, 15, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    overflow: hidden;  
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    scroll-margin-top: 80px;  
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover {
    box-shadow: 0 0 0 3px #ffc107, 0 8px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}
.card-poster {
    position: relative;  
    width: 100%;
    aspect-ratio: 16 / 9;  
    overflow: hidden;  
    background-color: #222;  
}
.card-poster img {
    position: absolute;  
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;  
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.card-rank-on-poster, .card-rating-on-poster {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(255, 193, 7, 0.95);  
    color: #190702;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1;  
}
.card-rating-on-poster {
    left: auto;
    right: 12px;
    background-color: rgba(60, 20, 20, 0.75);
    color: white;
}

.discover-cards-wrapper {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.discover-cards-wrapper .card-poster {
    aspect-ratio: 2 / 3;
}

.card-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-info h3 {
    font-size: 1.25em;  
    margin: 0 0 5px 0;
    color: #f0f0f0;
}
.card-info .movie-year {
    font-size: 0.9em;
    color: #aaa;
    margin-bottom: 10px;
}
.card-info p {
    font-size: 0.9em;
    margin: 0 0 10px 0;
    color: #ccc;
    line-height: 1.4;
    flex-grow: 1;  
}

.reviews-summary {
    background-color: rgba(40, 20, 20, 0.5);
    border-radius: 8px;
    padding: 10px 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.95em;
    color: #f0f0f0;
    gap: 10px;
}

.reviews-summary span {
    padding: 0 5px;
    white-space: nowrap;
}
.reviews-summary span:not(:last-child)::after {
    content: "|";
    margin-left: 10px;
    color: rgba(255,255,255,0.2);
}
.reviews-summary strong {
    color: #ffc107;
}

.reviews-pagination, .discover-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 10px 0;
    background-color: rgba(40, 20, 20, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
    gap: 5px;
}

.reviews-pagination button, .discover-pagination button {
    background-color: transparent;
    color: #bbb;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 6px;
    font-family: 'Arial', sans-serif;
    font-size: 0.9em;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.reviews-pagination button:hover, .discover-pagination button:hover {
    color: #fff;
    background-color: rgba(80, 40, 40, 0.7);
}

.reviews-pagination button.active, .discover-pagination button.active {
    background-color: #ffc107;
    color: #190702;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(255,193,7,0.4);
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
    color: #ffc107;
}

.movie-details-modal, .actor-details-modal, .director-details-modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 20px 0;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease-out;
}

.movie-details-modal::-webkit-scrollbar, .actor-details-modal::-webkit-scrollbar, .director-details-modal::-webkit-scrollbar { width: 10px; }
.movie-details-modal::-webkit-scrollbar-track, .actor-details-modal::-webkit-scrollbar-track, .director-details-modal::-webkit-scrollbar-track { background: #2c2c2c; border-radius: 5px; }
.movie-details-modal::-webkit-scrollbar-thumb, .actor-details-modal::-webkit-scrollbar-thumb, .director-details-modal::-webkit-scrollbar-thumb { background-color: #777; border-radius: 5px; border: 2px solid #2c2c2c; }
.movie-details-modal::-webkit-scrollbar-thumb:hover, .actor-details-modal::-webkit-scrollbar-thumb:hover, .director-details-modal::-webkit-scrollbar-thumb:hover { background-color: #999; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: rgba(30, 10, 10, 0.9);
    margin: 20px auto;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    position: relative;
    animation: slideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #ffc107;
    text-decoration: none;
    cursor: pointer;
}

.movie-details, .actor-details, .director-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.movie-details .poster-container, .actor-details .profile-container, .director-details .profile-container {
    flex: 0 0 auto;
    width: 250px;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.movie-details .poster-container img, .actor-details .profile-container img, .director-details .profile-container img {
    width: 100%;
    height: auto;
    display: block;
}

.movie-details .info-container, .actor-details .info-container, .director-details .info-container {
    flex: 1;
    min-width: 300px;
}

.movie-details h2, .actor-details h2, .director-details h2 {
    color: #ffc107;
    margin-top: 0;
    font-size: 2em;
}

.movie-details p, .actor-details p, .director-details p {
    margin-bottom: 10px;
    line-height: 1.5;
}
 
.bio-container {
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.bio-text {
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    max-height: 7.5em;
}

.bio-text.expanded {
    max-height: 500px;
}

.read-more-btn {
    background-color: transparent;
    color: #ffc107;
    border: 1px solid #ffc107;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85em;
    margin-top: 10px;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #ffc107;
    color: #190702;
}

.movie-details .genres span {
    display: inline-block;
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 0.85em;
}

.movie-details .cast-list, .actor-filmography, .director-filmography {
    margin-top: 20px;
    width: 100%;
}

.movie-details .cast-list h3, .actor-filmography h3, .director-filmography h3 {
    color: #f0f0f0;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
}

.movie-details .actors {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.movie-details .actor-card {
    text-align: center;
    width: 80px;
    cursor: pointer;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    padding-bottom: 5px;
}
.movie-details .actor-card:hover {
    transform: translateY(-3px);
    box-shadow: none;
}
.movie-details .actor-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ffc107;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.movie-details .actor-card p {
    margin-top: 5px;
    font-size: 0.75em;
    color: #ccc;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
    line-height: 1.2;
    max-height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.actor-filmography-grid, .director-filmography-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    display: grid;
}

.actor-filmography-grid .card, .director-filmography-grid .card {
    width: auto;
    flex-shrink: 0;
    background-color: rgba(25, 5, 5, 0.7);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    height: auto;
}
.actor-filmography-grid .card:hover, .director-filmography-grid .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.actor-filmography-grid .card-poster, .director-filmography-grid .card-poster {
    aspect-ratio: 2 / 3;
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}
.actor-filmography-grid .card-poster img, .director-filmography-grid .card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    border: none;
}
.actor-filmography-grid .card-info, .director-filmography-grid .card-info {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
}
.actor-filmography-grid .card-info h3, .director-filmography-grid .card-info h3 {
    font-size: 0.95em;
    margin-bottom: 2px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
    line-height: 1.3;
}
.actor-filmography-grid .card-info .movie-year, .director-filmography-grid .card-info .movie-year {
    font-size: 0.8em;
    color: #aaa;
    margin-top: auto;
}

.card .tooltip {
    display: none;
}

.trailer-container {
    margin-top: 30px;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.7);
}

.trailer-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.discover-people-container {
    margin-bottom: 20px;
    padding: 10px;
    background-color: rgba(40, 20, 20, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    -webkit-overflow-scrolling: touch;
    display: none;
}

.discover-people-container::-webkit-scrollbar {
    height: 8px;
}

.discover-people-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.discover-people-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 2px solid rgba(40, 20, 20, 0.5);
}

.discover-people-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.person-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    flex-shrink: 0;
    width: 80px;
    vertical-align: top;
    transition: transform 0.2s ease;
}

.person-card:hover {
    transform: translateY(-5px);
}

.person-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffc107;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.person-card p {
    margin-top: 5px;
    font-size: 0.75em;
    color: #ccc;
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

footer {
    text-align: center;
    padding: 25px 20px;
    background-color: rgba(10, 5, 5, 0.75);
    color: #999;
    font-size: 0.85em;
    margin-top: 50px;  
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.6;
}
footer p {
    margin: 5px 0;
}
footer a {
    color: #ffc107;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header { height: 250px; }
    .header h1 { font-size: 2em; padding: 10px 15px; }
    .main-content { padding: 15px; }
    th, td { padding: 12px 15px; font-size: 0.9em; }
    tbody tr:hover { transform: scale(1.005) translateX(3px); }
    .table-wrapper, .reviews-wrapper, .card, .discover-wrapper, .collection-wrapper {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .card-poster { aspect-ratio: 16 / 9; }  
    .discover-cards-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .discover-cards-wrapper .card-poster { aspect-ratio: 2 / 3; }
    .view-toggle { padding: 3px; }
    .view-toggle button { padding: 8px 12px; font-size: 0.9em;}
    .view-toggle button svg { margin-right: 5px; }
    .card-navigation, .table-navigation {
        justify-content: center;
        gap: 8px;
    }
    .card-navigation a, .table-navigation a { margin: 0; font-size: 0.9em; padding: 5px 10px;}
    .card-navigation .view-switcher-group, .table-navigation .view-switcher-group {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        order: 10;
    }
    .reviews-pagination button, .discover-pagination button { padding: 6px 10px; font-size: 0.85em; }
    .reviews-summary {
        justify-content: flex-start;
        gap: 5px;
    }
    .reviews-summary span:not(:last-child)::after {
        content: "|";
        margin-left: 5px;
        color: rgba(255,255,255,0.2);
    }

    .movie-details-modal, .actor-details-modal, .director-details-modal {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .modal-content {
        width: 95%;
        margin: 10px auto;
        padding: 25px;
    }
    .movie-details, .actor-details, .director-details {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .movie-details .poster-container, .actor-details .profile-container, .director-details .profile-container {
        width: 200px;
    }
    .movie-details .info-container, .actor-details .info-container, .director-details .info-container {
        min-width: unset;
        text-align: center;
    }
    .movie-details .genres {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    .movie-details .actors {
        justify-content: center;
    }
    .movie-details h2, .actor-details h2, .director-details h2 {
        font-size: 1.8em;
    }
    .actor-filmography-grid, .director-filmography-grid {
        grid-template-columns: repeat(4, 1fr);
        justify-content: center;
    }
    .actor-filmography-grid .card, .director-filmography-grid .card {
        width: auto;
    }
    .discover-people-container .person-card {
        width: 70px;
    }
    .discover-people-container .person-card img {
        width: 50px;
        height: 50px;
    }
}
@media (max-width: 480px) {
    .header { height: 200px; }
    .header h1 { font-size: 1.6em; }
    th, td { font-size: 0.8em; padding: 10px 8px; }
    .noise-overlay { display: none; }
    .table-wrapper, .reviews-wrapper, .card, .discover-wrapper, .collection-wrapper {
        background-color: rgba(20, 10, 10, 0.9);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    tbody tr:hover { transform: none; }
    .view-toggle { justify-content: stretch; flex-direction: row; }
    .view-toggle button { flex-grow: 1; font-size: 0.85em; padding: 10px 5px; }
    .view-toggle button svg { margin-right: 5px; }
    .cards-wrapper, .discover-cards-wrapper { grid-template-columns: 1fr; gap: 15px; }
    .card-info h3 { font-size: 1.1em; }
    footer { padding: 20px 15px; font-size: 0.8em; margin-top: 30px;}
    .card-navigation, .table-navigation { 
        flex-direction: column; 
        align-items: stretch;
        gap: 5px;
    }
    .card-navigation a, .table-navigation a { margin: 0; display: block; padding: 5px 12px;}
    .card-navigation .view-switcher-group, .table-navigation .view-switcher-group {
        width: 100%;
        margin-top: 5px;
    }
    .reviews-pagination, .discover-pagination { flex-direction: column; gap: 8px;}
    .reviews-pagination button, .discover-pagination button { width: 100%; }

    .movie-details-modal, .actor-details-modal, .director-details-modal {
        padding-top: 5px;
        padding-bottom: 5px;
    }
    .modal-content {
        width: 98%;
        margin: 5px auto;
        padding: 15px;
        gap: 15px;
    }
    .movie-details .poster-container, .actor-details .profile-container, .director-details .profile-container {
        width: 150px;
    }
    .movie-details .actor-card {
        width: 60px;
    }
    .movie-details .actor-card img {
        width: 60px;
        height: 60px;
    }
    .actor-filmography-grid, .director-filmography-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .actor-filmography-grid .card, .director-filmography-grid .card {
        width: auto;
    }
    .movie-details h2, .actor-details h2, .director-details h2 {
        font-size: 1.5em;
    }
    .movie-details p, .actor-details p, .director-details p {
        font-size: 0.9em;
    }
    .discover-people-container {
        gap: 10px;
    }
    .discover-people-container .person-card {
        width: 60px;
    }
    .discover-people-container .person-card img {
        width: 45px;
        height: 45px;
    }
    
}
