:root {
    --background: 222 47% 8%;
    --foreground: 210 40% 98%;
    --card: 222 47% 12%;
    --card-foreground: 210 40% 98%;
    --popover: 222 47% 12%;
    --popover-foreground: 210 40% 98%;
    --primary: 346 77% 50%;
    --primary-foreground: 210 40% 98%;
    --secondary: 217 33% 20%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217 33% 17%;
    --muted-foreground: 215 20% 65%;
    --accent: 263 70% 50%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 63% 31%;
    --destructive-foreground: 210 40% 98%;
    --border: 217 33% 20%;
    --input: 217 33% 17%;
    --ring: 346 77% 50%;
}

.container {
    display: flex;
    flex-direction: column;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-top: 5rem;
}


.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.3s;
    cursor: pointer;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    height: 2.5rem;
    padding: 0 1rem;
    width: 120px;
}

.button:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    max-width: 1280px;
    margin: 0 auto;
}

.movie-card {
    background-color: #3A3C41;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 400px;
    height: 600px;
    display: flex;
    flex-direction: column;
}


.refresh-button {
    background-color: #E5A00D;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.refresh-button:hover {
    background-color: #F8D68B;
}

.refresh-button svg {
    width: 20px;
    height: 20px;
    fill: #282A2D;
}

.movie-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.movie-poster-container {
    overflow: hidden;
    flex-grow: 1;
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.movie-card:hover .movie-poster {
    transform: scale(1.1);
}

.movie-card-content {
    padding: 1rem;
    background-color: #3A3C41;
    font-weight: 300;
}

.watch-button {
    width: 100%;
    background-color: #E5A00D;
    color: #282A2D;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.watch-button:hover {
    background-color: #F8D68B;
}

#client_prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2100;
}

#client_prompt_content {
    background-color: #3A3C41;
    border-radius: 0.75rem;
    padding: 2rem;
    color: #EAEAEC;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid #E5A00D;
}

#list_of_clients {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.client {
    cursor: pointer;
    background-color: transparent;
    padding: 1rem;
    color: #EAEAEC;
    transition: all 0.2s;
    border-radius: 0.375rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid #E5A00D;
}

.client:hover {
    background-color: #F8D68B;
    transform: translateY(-2px);
}

.filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--input));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    height: 2.5rem;
}

.filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.3s;
    cursor: pointer;
    background-color: #E5A00D;
    color: #282A2D;
    height: 2.5rem;
    padding: 0 2.5rem;
    border: none;
}

.filter-button:hover {
    background-color: #F8D68B;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1600px;
    margin: 0 auto;
}

.collection-grid > .collection-card {
    cursor: pointer;
}

.collection-card {
    display: flex;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0px 20px 30px 3px rgba(0, 0, 0, 0.55);
    width: 100%;
    margin: 1rem 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.collection-grid > .collection-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.card_left {
    width: 40%;
    height: 100%;
    overflow: hidden;
}

.card_left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}

.card_right {
    width: 60%;
    height: 100%;
    padding: 1rem 2rem;
    color: white;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
}

.card_right h1 {
    font-weight: 400;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.card_right__details {
    margin-top: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.card_right__review p {
    font-size: 0.75rem;
    letter-spacing: 1px;
    line-height: 1.5;
    margin: 0;
}

#collection-grid .collection-card .card_right__review p {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
}

.read-more-link {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #ffda00;
    margin-top: 10px;
    display: inline-block;
}

.toolbar {
    display: flex;
    justify-content: center;
    padding: 1rem 2rem;
    margin-bottom: 1rem;
}

.search-container {
    display: flex;
    width: 100%;
    max-width: 600px;
}

#search-collections {
    flex-grow: 1;
    border-radius: 0.375rem 0 0 0.375rem;
    border: 1px solid hsl(var(--border));
    border-right: none;
    background-color: hsl(var(--input));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    padding: 0 1rem;
    height: 2.5rem;
    box-sizing: border-box;
}

#random-collection-btn {
    border-radius: 0 0.375rem 0.375rem 0;
    width: auto;
    padding: 0 1.5rem;
    flex-shrink: 0;
    border: 1px solid hsl(var(--border));
    border-left: none;
    height: 2.5rem;
    box-sizing: border-box;
}
