:root {
    --bg-color: #0b0e14;
    --card-bg: #161b22;
    --card-hover: #1c2128;
    --accent-color: #38bdf8;
    --text-color: #e6edf3;
    --text-muted: #8b949e;
    --header-bg: rgba(22, 27, 34, 0.8);
    --border-color: #30363d;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding-top: 80px;
    transition: background-color 0.3s ease;
}

h1 {
    text-align: center;
    color: var(--text-color);
}

label {
    margin-right: 5px;
    flex: 1;
}

a {
    margin-right: 5px;
    color: var(--accent-color);
    text-decoration: none;
}

button {
    display: block;
    margin: 20px auto;
    padding: 10px 24px;
    background-color: var(--accent-color);
    color: #0b0e14;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover {
    background-color: #7dd3fc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

input[type="number"] {
    background-color: #1c2128;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 5px;
    border-radius: 5px;
    width: 50px;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    padding: 5px 0;
}

.transparent {
    opacity: 0;
}

.left-section {
    display: flex;
    align-items: center;
    margin-left: 15px;
    gap: 12px;
}

.right-section {
    display: flex;
    align-items: center;
    margin-right: 15px;
    gap: 15px;
}

#search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 4px 12px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease, background 0.3s ease;
}

#search-bar:focus-within {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

#search-input {
    background: transparent;
    border: none;
    color: white;
    padding: 6px;
    outline: none;
    font-size: 14px;
    width: 150px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#search-input:focus {
    width: 280px;
}

#search-button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    margin: 0;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

#search-button:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/*page-header*/
#page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 64px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
#page-header img {
    max-height: 45px;            /* Limits the image height to 50px */
    height: 100%;                /* Scales the image to fill the height of the container */
    width: auto;                 /* Maintains the aspect ratio of the image */
}
#page-header h1 {
    color: #ffffff;
}
@media (max-width: 930px) { /* 80% */
    #page-header h1 {
        font-size: 25.6px; /* original 32px */
    }
} 
@media (max-width: 700px) { /* 60% */
    #page-header h1 { /* removed */
        font-size: 19.2px; /* original 32px */
    }
}
@media (max-width: 400px) { 
    #page-header h1 { /* removed */
        font-size: 0px; 
        display: none;
        margin: 0;
        padding: 0;
    }
}

#logo-link {
    display: flex;               /* Use flexbox for horizontal alignment */
    align-items: center;         /* Vertically center the items */
    gap: 10px;                   /* Add some spacing between the logo and the site name */
    text-decoration: none;       /* Remove default underline from the link */
}

#video-form {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 20px;
}

.item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.item iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: black;
}

.name-label {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.actors-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.actor-link {
    background-color: rgba(239, 68, 68, 0.1);
    color: #f87171;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    transition: all 0.2s;
}

.actor-link:hover {
    background-color: #ef4444;
    color: white;
    transform: translateY(-1px);
}

.tag-link {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.tag-link:hover {
    background-color: var(--accent-color);
    color: #0b0e14;
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

/* Related Videos Section */
#related-videos {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.related-title {
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 1.4rem;
}

#related-videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.related-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.related-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-color);
    background: var(--card-hover);
}

.related-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.related-name {
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* footer */
footer {
    background-color: var(--card-bg);
    color: var(--text-muted);
    padding: 60px 20px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

footer h2 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

footer a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

#copyright-info {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
    font-size: 0.9rem;
}