* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    color: aliceblue;
}

body {
    background-color: #000;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
    text-align: center;
    overflow-x: hidden;
}

#page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #D1B261;
}

h2 {
    font-size: 1.8rem;
    margin: 20px 0;
    color: #ffffff;
}

.show-section {
    margin-bottom: 40px;
}

/* Cast Cards Layout */
.show-cards {
    display: grid;
    gap: 40px;
    justify-content: center;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    padding: 20px;
}

.card {
    background-color: #111;
    border: 1px solid #D1B261;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(209, 178, 97, 0.3);
}

.card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 2px solid #D1B261;
}

.card h3 {
    color: #D1B261;
    font-size: 1.4rem;
    margin: 15px 0 5px;
    padding: 0 15px;
}

.card .role {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 10px;
    padding: 0 15px;
}

.card .bio {
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0 15px 15px;
}

/* Search Bar */
.filter-search {
    margin-bottom: 30px;
    text-align: center;
}

#search-bar {
    width: 80%;
    max-width: 500px;
    padding: 12px 20px;
    border: 2px solid #D1B261;
    border-radius: 25px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

#search-bar:focus {
    box-shadow: 0 0 10px rgba(209, 178, 97, 0.5);
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 10px 20px;
    border: 2px solid #D1B261;
    background-color: transparent;
    color: #D1B261;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: rgba(209, 178, 97, 0.1);
}

.tab-button.active {
    background-color: #D1B261;
    color: #000;
}

/* Loader */
.loader {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #D1B261;
    font-size: 1.2em;
}

/* Error Message */
.error {
    color: #ff4444;
    padding: 20px;
    text-align: center;
}

.error-details {
    font-size: 0.9em;
    margin-top: 10px;
    color: #ff8888;
}

/* Cast Form Section */
.cast-form-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    border: 1px solid rgba(209, 178, 97, 0.2);
}

.cast-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.cast-form input,
.cast-form select,
.cast-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(209, 178, 97, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D1B261'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

.cast-form textarea {
    background-image: none;
    padding-right: 15px;
    resize: vertical;
    min-height: 100px;
}

.cast-form input:focus,
.cast-form select:focus,
.cast-form textarea:focus {
    outline: none;
    border-color: #D1B261;
    box-shadow: 0 0 10px rgba(209, 178, 97, 0.2);
}

.cast-form select {
    cursor: pointer;
}

.cast-form select option {
    background-color: #000;
    color: #ffffff;
    padding: 10px;
}

.cast-form button {
    width: 100%;
    padding: 15px;
    background: #D1B261;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.cast-form button:hover {
    background: #c4a354;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(209, 178, 97, 0.3);
}

.cast-form button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

/* Cast Display Section */
.cast-display {
    margin-top: 40px;
}

.card .category {
    color: #D1B261;
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding: 0 15px;
    text-transform: capitalize;
}

/* Responsive Design */
@media (max-width: 768px) {
    .show-cards {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        padding: 10px;
    }

    .card img {
        height: 250px;
    }

    .tabs {
        gap: 10px;
    }

    .tab-button {
        padding: 8px 15px;
        font-size: 14px;
    }

    .cast-form-section {
        padding: 25px;
    }

    .cast-form input,
    .cast-form select,
    .cast-form textarea {
        padding: 12px;
        font-size: 0.95rem;
    }

    .cast-form button {
        padding: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .show-cards {
        grid-template-columns: 1fr;
    }

    .card img {
        height: 200px;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .card .role {
        font-size: 1rem;
    }

    .card .bio {
        font-size: 0.8rem;
    }

    .cast-form-section {
        padding: 20px;
    }

    .cast-form input,
    .cast-form select,
    .cast-form textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    .cast-form button {
        padding: 12px;
        font-size: 1rem;
    }
}