/* Basic */

body {
    padding: 0;
    background: black;
    max-width: 800px;
    margin: 0 auto;
    font-family: sans-serif;
}

.no-margin {
    margin: 0 0;
}
.no-padding {
    padding: 0 0;
}

/* Header */

div#header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 10px;
}
img#logo {
    height: 30px;
    display:block;
    padding-right:20px;
}
form {
    display: block; 
    width: 100%;
    margin: 0 0;
    padding: 0 0;
}
input#search-input {
    width: 100%;
    height: 30px;
    display:block;
    background-color: #333;
    color: #dfdfdf;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
}

.header-icons {
    margin-left: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.icon-link {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.icon-link:hover {
    color: #fff;
}
.dropdown-toggle {
    background-image: url('../img/icon-gender.png');
    background-size: 24px 24px;
    width: 24px;
    height: 24px;
    display: inline-block;
    filter: invert(40%);
}
.dropdown-toggle:hover {
    filter: invert(100%);
}
.dropdown:hover .dropdown-toggle {
    filter: invert(100%);
}

.category-toggle[data-category="straight"] {
    background-image: url('../img/icon-couple-24.png');
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 32px;
    filter: invert(40%);
}

.category-toggle[data-category="gay"] {
    background-image: url('../img/icon-homosexual-24.png');
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 32px;
    filter: invert(40%);
}

.category-toggle[data-category="trans"] {
    background-image: url('../img/icon-lgbt-24.png');
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 32px;
    filter: invert(40%);
}

.dropdown {
    position: relative;
    display: inline-block;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    stroke: #5c5c5c;

}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #1a1a1a;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    stroke: #5c5c5c;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 0px;
    /* border: 1px solid #333333; */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.dropdown-content a {
    color: #5c5c5c;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px 15px 20px;
    margin-left: 20px
}

.dropdown-content a:not(.active):hover {
    margin-left: 40px;
    transition: margin-left 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.category-toggle svg {
    width: 20px;
    height: 20px;
}

.dropdown-content .category-toggle[data-category="straight"].active,
.dropdown-content .category-toggle[data-category="gay"].active,
.dropdown-content .category-toggle[data-category="trans"].active {
    color: #000;
    filter: invert(100%);
}

/* Video Page */


div#under-video-left {
    float: left;
    display: inline;
}
div#under-video-left span {
    color: #b9b9b9;
}
div#under-video-right {
    float: right;
    color: #b9b9b9;
    display: inline;
}
span#tags {
    display: block;
    clear: both;
    padding-top: 20px;
    margin-bottom: 40px;
}
span#pornstars {
    display: block;
    clear: both;
    margin-top: 60px;
}
span#pornstars a {
    clear: both;
    color: #b9b9b9;
    margin-right: 5px;
    padding: 3px 6px;
    border-radius: 5px; 
    background-color: #373737;
    line-height: 30px;
    text-decoration: none;
    font-weight: bold;
}
span#tags a {
    color: #b9b9b9;
    margin: 5px;
    padding: 3px 6px;
    border-radius: 5px; 
    background-color: #1e1e1e;
    line-height: 30px;
    text-decoration: none;
}

span#tags a:hover, span#pornstars a:hover {
    background-color: #005582;
}

/* Video List Page */

div.intro {
    color: #fff;
    padding: 0 0 20px;
    text-align: center;
    font-weight: 100;
}

div.intro p b {
    color: #f34c4f;
    font-weight: 600;
}

div.intro p u {
    text-decoration: none;
    border-bottom: 1px solid white;
}

div.sort-options {
    padding: 10px 0 20px;
}
div.sort-options span {
    margin-right: 10px;
    color: #b9b9b9;
}
div.sort-options div.options {
    float: right;
}
div.sort-options a {
    color: #b9b9b9;
    text-decoration: none;
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 5px;
}
div.sort-options a.active {
    color: #fff;
    background-color: #005582;
}
div#video-container {
    width: 100%;
    background-color: #333;
    margin: 20px auto;
    padding: 0;
    clear: both;    
}

h1 {
    color: #b9b9b9;
    margin: 0 0;
    font-weight: 500;
}

h3 {
    color: #b9b9b9;
}

div#video-page-container {
    padding: 40px 0;
}

div.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    font-size: 14px;
    font-family: sans-serif;
    content: "Loading...";
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: black;
    padding: 0;
    width: 100% !important; /* max-width is set on the body element 
    This is only needed due to an iOS/Safari mobile quirk. */

}

.video-container {
    position: relative;
    background: #333;
    width: 100%;
}

.video-container::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.video-js {
    width: 100%;
    height: 100%;
}


/* Likes Page */

.likes-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.likes-header {
    margin-bottom: 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.video-card a {
    text-decoration: none;
}
.video-card {
    position: relative;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.video-info {
    padding: 10px 0;
}

.video-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.liked-at {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.no-likes {
    text-align: center;
    padding: 50px;
    color: #666;
}

/* Auth Page */

.auth-container {
    background: #131313;
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    margin: 40px auto;
}

.tabs {
    display: flex;
    margin-bottom: 40px;
    border-bottom: 2px solid #333;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    color: #666;
}

.tab.active {
    color: #b9b9b9;
    border-bottom: 2px solid #b9b9b9;
    margin-bottom: -2px;
}

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

.auth-container label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.auth-container input {
    width: 100%;
    padding: 8px;
    background-color: #333;
    color: #dfdfdf;
    border: 1px solid #444;
    border-radius: 4px;
}

.auth-container button {
    width: 100%;
    padding: 10px;
    color: #b9b9b9;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.auth-container button[type="submit"] {
    width: 100%;
    padding: 10px;
    margin-top: 40px;
    background-color: #005582;
    color: #b9b9b9;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.auth-container button:hover {
    background-color: #444;
}

.error {
    color: #ff4444;
    margin-top: 20px;
    text-align: center;
}

.success {
    color: #44ff44;
    margin-top: 20px;
    text-align: center;
}