body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #3f4245;
}

h1 {
    text-align: center;
    color: #e5a00d;
}

.index-links {
    text-align: center;
    margin-bottom: 20px;
    color: #e5a00d;
    font-size: 0.5em;
}

.index-links a {
    margin: 0 10px;
    text-decoration: none;
    color: #e5a00d;
    font-weight: bold;
}

.top-link a {
    margin: 0 10px;
    text-decoration: none;
    color: #e5a00d;
    font-weight: bold;
}

.letter-title {
    text-align: left;
    font-size: 24px;
    font-weight: bold;
    margin-top: 30px;
    padding-left: 10px;
    color: #FFFFFF;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 10px;
}

.actor-card {
    width: 150px;
    margin: 10px;
    text-align: center;
    background: #3f4245;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	position: relative;  /* Required so the pen icon positions inside card */
}

.actor-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%; /* Moves image slightly down to align faces better */
    border: 2px solid #ccc;
    display: block; /* Ensures image doesn't cause unexpected inline spacing */
    position: relative; /* Keeps image layering clean */
    z-index: 1; /* Keeps it below the edit icon */

    /* Optional: Crop the bottom 10% to shift face lower */
    /* clip-path: inset(0 0 10% 0); */
}


.actor-card div {
    margin-top: 5px;
    font-size: 14px;
    font-weight: bold;
}

.actor-card div a {
    color: black; /* Changes the name color to black */
    text-decoration: none; /* Removes underline */
}

.actor-card div a:hover {
    color: #E5A00D; /* Plex orange on hover */
}

/* Movies: Translucent Blue */
.actor-card.Movies {
    background: rgba(0, 0, 255, 0.3); /* Blue with 30% opacity */
}

/* TV Shows: Translucent Green */
.actor-card.TV {
    background: rgba(0, 128, 0, 0.3); /* Green with 30% opacity */
}

/* Porn: Translucent Red */
.actor-card.Porn {
    background: rgba(255, 0, 0, 0.3); /* Red with 30% opacity */
    display: none; /* Hide Porn actors by default */
}

/* Style for the Toggle Button */
#togglePorn {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 10px 15px;
    background-color: #3f4245; /* Gray button */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease-in-out;
}

/* Hover effect for the button */
#togglePorn:hover {
    background-color: #c0392b; /* Darker red on hover */
}

/* Style for the Update Button */
#refreshActors {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 10px 15px;
    background-color: #3f4245; /* Gray button */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease-in-out;
}

/* Hover effect for the button */
#refreshActors:hover {
    background-color: #39c02b; /* Darker red on hover */
}

.edit-icon-container {
    position: absolute;
    top: 8px;
    right: 8px;
	z-index: 10; /* Ensure it's on top of image */
}

.edit-icon {
    text-decoration: none;
    font-size: 16px;
    color: #555;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.edit-icon:hover {
    background: #e5a00d;
    color: white;
}

