:root {

}

* {
    color: white;
    font-family: sans-serif;
    box-sizing: border-box;
}

body {
    background-color: rgb(42, 29, 29);
}

.toolbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgb(42, 29, 29);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 20px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.toolbar > div {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    align-items: center;
}

input, select {
    background-color: transparent;
    outline: none;
    border: none;
    padding: 10px;
    font-size: 20px;
    border-bottom: 2px solid white;
}

input[readonly] {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-random {
    background: rgb(61, 41, 41);
    border: 1px solid white;
    color: white;
    padding: 5px 15px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-random:hover {
    background: rgb(75, 52, 52);
}

.table-container {
    overflow-x: auto;
}

table {
    width: 98%;
    margin: auto;
    margin-bottom: 10em;
    background: rgb(61, 41, 41);
    border-radius: 10px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #ccc;
    overflow: hidden;
}

table th, table td { 
    padding: 0.75rem; 
}

table thead tr { 
    background: rgb(231, 217, 217); 
    text-align: left; 
}

th { 
    color: black; 
}

td {
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eeeeee9f;
}

td:last-child { 
    border-right: none; 
}

tr:last-child td { 
    border-bottom: none; 
}

.expandable-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.expandable-row:hover {
    background-color: rgb(75, 52, 52);
}

.detail-row td {
    padding: 0;
    border-bottom: 0px solid #eee;
    transition-duration: 0.2s;
}

.detail-row.open td { 
    border-bottom: 1px solid #eee; 
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(max(250px, 31%), 1fr));
    gap: 1.5rem;
    margin: 1.5rem auto 10rem auto;
    width: 98%;
}


.expandable-card {
    background-color: rgb(61, 41, 41);
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.expandable-card:hover {
    background-color: rgb(75, 52, 52);
}

.gallery-card {
    height: fit-content;
}

.gallery-card-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: baseline; 
}

.gallery-card-title { 
    margin: 0; 
    font-size: 1.1rem; 
}

.gallery-card-id { 
    color: #ccc; 
    font-size: 0.875rem; 
}

.gallery-card-info { 
    font-size: 0.9rem;
    color: #ddd; 
}

.detail-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    padding: 0 0.75rem;
    background: rgb(50, 35, 35);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-row.open .detail-content { 
    padding: 1rem 0.75rem; 
}

.expandable-card.open .detail-content {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.trailer-video {
    max-width: 600px;
    width: 100%;
    border-radius: 8px;
    outline: none;
    background: #000;
}

#gallery-sentinel {
    height: 1px;
    width: 100%;
}