html {
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    background: rgba(18, 18, 18, 1);
    color: #c4c4c4;
    margin: auto;
    overflow-x: hidden;
    min-width: 1160px;
    width: fit-content;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #fff;
    text-decoration: none;
}

a:hover {
    color: #f65252;
    text-decoration: underline;
}

button {
    border: 1px solid #444;
    background: linear-gradient(#484e55,#3a3f44 60%,#313539);
    padding: 2px 7px;
    font-size: 12px;
    border-radius: 3.5px;
    cursor: pointer;
    color: #c4c4c4;
}

input, textarea {
    background-color: #1e1e1e;
    border: 1px solid #444;
    font: 10pt Arial, sans-serif;
    outline: none;
    color: #c4c4c4;
}

button:hover {
    background: linear-gradient(#020202,#101112 40%,#191b1d);
}

header {
    background: #000;
    font: 10px Tahoma, Geneva, Verdana, sans-serif;
    color: #9b9b9b;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 10px;
}

header nav a {
    color: #ddb8b8;
}

.sidebar {
    width: 145px;
    top: 70px;
    bottom: 0;
    position: fixed;
    padding: 5px;
    overflow-y: auto;
}

.sidebar h2 {
    margin: 0;
    color: #c4c4c4;
}

.sidebar h4 {
    margin: 0;
    color: #c4c4c4;
    border-bottom: 2px ridge #444;
    font-size: 13px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar ul a:hover {

    background: #404040;
}

.sidebar-link {
    display: block;
    padding: 1px 5px;
    font-family: Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    color: #6f9fc8;
    text-decoration: underline;
}

main {
    padding: 5px;
    margin-top: 65px;
    margin-left: 150px;
    min-width: 995px;
    flex: 1;
    background: #1c1c1c;
}

hr {
    border: none;
    border-bottom: 2px ridge #444;
}

.follow-button {
    border: 1px solid #0066cc;
    background: linear-gradient(to bottom, #4a90e2 0, #0066cc 100%);
    color: #fff;
    font-weight: bold;
}

.follow-button:hover {
    border: 1px solid #0052a3;
    background: linear-gradient(to bottom, #5aa0f2 0, #0052a3 100%);
}

.container {
    width: 100%;
    max-width: 995px;
    /*! border: 1px solid #444; */
    padding: 1px 1px;
    box-sizing: border-box;
    min-height: 525px;
    border-radius: 10px;
}

.home-header {
    margin-top: 0;
    margin-bottom: 5px;
    border-radius: 6px 6px 0 0;
}

.video-container {
    padding: 5px;
}

.video {
	display: inline-block;
    width: 150px;
    margin: 2px;
    position: relative;
	height: 205px;
	vertical-align: top;
	padding: 2px;
	margin-right: 0;
    margin-bottom: 0;
}

.video-thumbnail {
    position: relative;
    display: inline-block;
}

.video-duration {
    position: absolute;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    padding: 2px 4px;
    font-size: 11px;
    right: 0;
    bottom: 3px;
}

.video-title {
	font-weight: bold;
    max-height: 35px;
    line-height: 17px;
    display: block;
    overflow: hidden;
}

.video-rating {
    float: right;
}

#comments {
    width: 640px;
    background: #1e1e1e;
    margin-top: 10px;
}

.comment {
    border-left: 2px solid #0066cc;
    margin-left: 5px;
    margin-top: 5px;
    position: relative;
}

.comment-info {
    background: #333;
    font-weight: bold;
}

.comment-message {
    display: flex;
}

.comment-field {
    width: 600px;
}

.reply-field {
    height: 20px;
}

.watch-title {
    font-size: 18pt;
    margin-top: 0;
    border-radius: 6px 6px 0 0;
    font-weight: normal;
}

.watch-info {
    border: 1px solid #0066cc;
    padding: 10px 0;
    width: 300px;
    margin-left: 5px;
}

td .watch-info .left {
    text-align: right;
    border-right: 1px solid #0066cc;
    padding-right: 5px;
    vertical-align: top;
    font-weight: bold;
}

.watch-uploader {
    height: 50px;
}

.watch-uploader-avatar {
    float: left;
    margin-right: 5px;
}

.recently-watched-section {
    width: 250px;
    padding: 5px;
}

.currently-watched {
    background: #3A3A3A;
}

.featured-videos {
    background: #5b5b5b;
    margin: 5px;
}

.featured-thumbnail {
    position: relative;
    display: inline-block;
}

.featured-thumbnail img {
    width: 245px;
    height: auto;
}

.featured-title {
    font-weight: bold;
    font-size: 14px;
    margin-top: 5px;
    max-height: 2.4em;
    line-height: 17px;
    display: block;
    overflow: hidden;
}

.featured-author {
    margin-top: 5px;
}

.featured-rating {
    margin-top: 5px;
}

.featured-views {
    margin-top: 5px;
}

.recently-watched-video {
    width: 100px;
    display: inline-block;
    vertical-align: top;
}

table {
    width: auto;
    max-width: 100%;
    table-layout: auto;
    margin: 0;
}

.main-content {
    width: auto;
    max-width: 685px;
}

.featured-video {
    width: 250px;
    font-size: 10px;
    height: 65px !important;
}

.list-videos {
    max-height: 300px;
    overflow-y: auto;
}

.list-video {
    height: 85px;
    padding: 3px;
    margin-bottom: 3px;
}

.list-video.current-video {
    background: linear-gradient(#484e55,#3a3f44 60%,#313539);
    border-color: #0066cc;
    border-top: 1px solid #797979;
    border-bottom: 1px solid #444;
}

.list-video-thumbnail {
    float: left;
    margin-right: 5px;
    position: relative;
}

.list-video-rating {
    float: right;
}

.list-video-title {
    font-weight: bold;
    max-height: 35px;
    line-height: 16px;
    display: block;
    overflow: hidden;
}

.list-summary {
    font-weight: bold;
    font-size: 16px;
    margin-top: 5px;
}

summary {
    cursor: pointer;
}

summary:hover {
    text-shadow: 0 0 5px #0066cc;
}

.header-logo {
    font-family: Tahoma, sans-serif;
    font-size: 48px;
    font-weight: 700;
    font-style: italic;
    margin: 0;
    display: flex;
}

label {
    background: #333;
    font-weight: bold;
    padding: 2px 5px;
}

.comment-image {
    margin-top: 5px;
    margin-right: 5px;
}

#player-container {
    width: 675px;
    max-width: 675px;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: black;
}

#player-container > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.op-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
}

.op-player__media {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

video.op-player__media {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.profile-header {
    height: 100px;
    margin-top: 10px;
    margin-left: 10px;
}

.profile-header p {
    margin: 0;
}

.tabs {
    margin-top: 10px;
}

.tabs input[type="radio"] {
    display: none;
}

.tabs label {
    display: inline-block;
    padding: 5px 10px;
    cursor: pointer;
    background: #1e1e1e;
    border: 1px solid #444;
    border-bottom: none;
    margin-bottom: -1px;
    border-radius: 4px 4px 0 0;
}

.tabs input[type="radio"]:checked + label {
    background: linear-gradient(#484e55,#3a3f44 60%,#313539);
    border-bottom: 1px solid #2a2a2a;
    position: relative;
    z-index: 1;
    border-radius: 4px 4px 0 0;
}

.tab-content {
    display: none;
    padding: 10px;
    border-top: 1px solid #444;
    background: #1e1e1e;
}

#tab-description:checked ~ #tab-content-description,
#tab-sharing:checked ~ #tab-content-sharing,
#tab-favorites:checked ~ #tab-content-favorites,
#tab-playlist:checked ~ #tab-content-playlist,
#tab-tags:checked ~ #tab-content-tags {
    display: block;
}

.playlist {
	display: inline-block;
    width: 150px;
    margin: 2px;
    margin-right: 0;
    position: relative;
	height: 165px;
	vertical-align: top;
	padding: 2px;
}

.playlist-title {
    font-weight: bold;
    font-size: 14px;
    margin-top: 5px;
    max-height: 2.4em;
    line-height: 17px;
    display: block;
    overflow: hidden;
}

.playlist-created {
    font-size: 12px;
    margin-top: 5px;
}

.playlist-thumbnail {
    position: relative;
    display: inline-block;
}

.playlist-thumbnail-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    top: 0;
    width: 50px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    padding: 0 5px;
    text-align: center;
    height: 100px;
}

.playlist-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background: linear-gradient(#484e55,#3a3f44 60%,#313539);
    border: 1px solid #444;
    margin-top: 10px;
    border-radius: 5px;
}

.playlist-controls-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.playlist-controls-right {
    display: flex;
    gap: 15px;
}

.playlist-counter {
    font-weight: bold;
    min-width: 50px;
    text-align: center;
}

.playlist-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.playlist-controls label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: transparent;
    padding: 0;
    color: #c4c4c4;
}

.search-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.search-label {
    margin-right: 10px;
}

.search-tabs {
    display: flex;
    gap: 0;
}

.search-tab {
    padding: 5px 10px;

    border: 1px solid #444;
}

.search-tab:not(:first-child) {
    border-left: none;
}

.search-tab.active {
    background: #2a2a2a;
}

.search-sort-form {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-results-count {
    margin-left: 10px;
}

.search-result-item {
    display: flex;
    padding: 3px;
    margin: 0 5px;
    margin-bottom: 3px;
}

.search-result-thumbnail-link {
    margin-right: 5px;
}

.search-result-thumbnail-link.relative {
    position: relative;
}

.search-result-thumbnail-img {
    display: block;
}

.search-result-content {
    flex: 1;
}

.search-result-title-wrapper {
    margin-bottom: 5px;
}

.search-result-title-link {
    font-weight: bold;

}

.search-result-description {
    color: #c4c4c4;
    margin-bottom: 5px;
}

.search-result-stats {
    color: #c4c4c4;
    max-height: 15px;
    overflow: hidden;
}

.search-result-no-thumbnail {
    width: 150px;
    height: 100px;
    background: #2d2d2d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4c4c4;
}

.search-result-duration-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 5px;
    font-size: 12px;
}

.search-result-rating-wrapper {
    margin-top: 5px;
}

.search-pagination {
    margin-top: 20px;
}

.tags-form-field {
    margin-bottom: 10px;
}

.tags-input {
    width: 100%;
    box-sizing: border-box;
}

.tags-display {
    margin-top: 10px;
}

.tag {
    display: inline-block;
    background-color: #1e1e1e;
    border: 1px solid #ddd;
    padding: 0px 4px;
    margin: 1px 0;
    font-size: 10px;
}

.tags-container {
    width: 110px;
    max-height: 70px;
    overflow-y: auto;
}

#progress-bar {
    width: 90%;
    height: 15px;
    background: linear-gradient(0deg, #25593ba6, #27ae5fa9);
    transition: width 0.3s;
}

.progress-container {
    width: 100%;
    background-color: #1e1e1e;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

footer {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.announcement {
    background: #404040;
    padding: 0;
}

.news-post {
    background: #1e1e1e;
    min-height: 70px;
    margin-bottom: 5px;
}

.news-post h4 {
    margin: 0;
    background: #333;
}

.tombstone-text {
    font-size: 40px;
    color: black;
}

.delete {
    background: linear-gradient(0deg, #592525a6, #ae2727a9);
    border:1px solid #ae2727a9;
}

.search  {
    padding: 2px 5px;
    font-size: 13px;
    font-weight: normal;
    line-height: 1;
    border: 1px solid #111;
    border-bottom-color: rgba(126, 126, 126, 0.3);
    border-right-color: rgba(255, 255, 255, 0.15);
    background: #1a1a1a;
    color: #eeeeee;
    text-shadow: none;
    width: 390px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15);
}

.description-container {
    position: relative;
}

.description-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.description-content {
    max-height: 150px;
    overflow: hidden;
    position: relative;
}

.description-toggle:checked ~ .description-content {
    max-height: 5000px;
}

.description-spacer {
    position: absolute;
    top: 150px;
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.description-toggle-label {
    display: inline-block;
    margin-top: 5px;
    color: #fff;
    border: 0 !important;
    cursor: pointer;
    text-decoration: underline;
}

.description-toggle:checked ~ .description-content .description-spacer {
    display: none;
}

.description-toggle-label:hover {
    color: #f65252;
}

.description-toggle:checked ~ .description-toggle-label::after {
    content: "Show Less";
}

.description-toggle:not(:checked) ~ .description-toggle-label::after {
    content: "Show More";
}

.recent-users {
    padding: 5px;
}

.recent-user {
    height: 50px;
    margin-bottom: 5px;
}

.recent-user img {
    float: left;
    margin-right: 5px;
    vertical-align: middle;
}

.recent-user .joined {
    font-size: 11px;
    margin-top: 2px;
}