* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    background: #fff;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 0 20px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.nav-content, form {
    display: flex;
    align-items: center;
}

.dropdown {
    position: relative;
    margin-right: 20px;
}

.dropdown-toggle {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    padding-right: 15px;
    position: relative;
}

.dropdown-toggle .arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 160px;
    top: 100%;
    left: 0;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    display: block;
}

.dropdown-item:hover {
    background-color: #f4f4f9;
}

.input-group {
    display: flex;
    flex: 1;
    margin-right: 10px;
}

.form-control {
    border: 1px solid #ced4da;
    padding: 8px;
    appearance: none;
    border-radius: 5px 0 0 5px;
}

select.form-control {
    border-radius: 0 5px 5px 0;
}

.btn-danger {
    background-color: #dc3545;
    border: none;
    color: #fff;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    margin-left: 10px;
}

.btn-danger:hover {
    background-color: #c82333;
}

.mobile-toggle {
    border: none;
    background: #fff;
    cursor: pointer;
    display: none;
    font-size: 24px;
    padding: 0;
}

@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        width: 100%;
        display: none;
        position: absolute;
        top: 50px;
        left: 0;
        padding: 10px;
        background: #fff;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
    }
    .dropdown {
        margin-bottom: 10px;
    }
    form {
        width: 100%;
    }
    .search-form input {
        width: 100%;
    }
    .mobile-toggle {
        display: block;
    }
    .search-input,
    .search-select,
    .search-button {
        margin: 10px 0;
    }
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    z-index: 1000;
    display: flex;
    height: 50px;
    width: 100%;
    box-shadow: 0 -2px 5px -2px #333;
    background-color: #fff;
}

.mobile-bottom-nav__item {
    flex-grow: 1;
    text-align: center;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #333;
}

.mobile-bottom-nav__item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-bottom-nav a {
    color: inherit;
    text-decoration: none;
}

main {
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 20px;
}

.shadow {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
    padding: .5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
    margin-bottom: 5px;
}

.top-header {
    background-color: #ffffff;
    border-left: 5px solid #ff6f61;
    padding: 7px 10px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 500;
    font-size: 1.3rem;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.grid {
    display: grid;
    gap: 10px;
}

@media (max-width: 300px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.grid a {
    text-decoration: none;
    color: #000;
}

.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.card img {
    width: 100%;
    height: auto;
}

.card .badge-premium {
    background: #ff9800;
    color: #fff;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 4px;
    position: absolute;
    top: 7px;
    left: 7px;
    font-weight: bold;
}

.info {
    padding: 10px;
}

.info span {
    color: #6c757d;
    font-size: 13px;
    font-weight: lighter; 
}

.meta-title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    
}

.meta-info {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
}

.meta-info span {
    display: flex;
    gap: 2px;
    align-items: center;
}

.pagination {
    margin: 20px 0;
    text-align: center;
}

.pagination a {
    padding: 6px 14px;
    text-decoration: none;
    color: #000;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.alphabet-navigation a {
    display: inline-block;
    text-align: center;
    margin: 5px;
    text-decoration: none;
    padding: 5px 10px;
    color: #333;
    background-color: #ddd;
    border-radius: 5px;
    transition: background-color 0.3s, color .3s;
}

.alphabet-navigation a:hover {
    background-color: #000;
    color: #fff;
}

.alphabet-navigation a.active {
    background-color: #000;
    color: #fff;
}

.video-page {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

@media(min-width: 991px) {
    .video-page {
        flex-direction: row;
        align-items: flex-start;
    }
}

.content-left, .content-right {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.video-player {
    position: relative;
    padding-bottom: 56.25%;
    width: 100%;
    background: #000;
}

.video-player video {
    position: absolute;
    width: 100%;
    height: 100%;
}

.emogi-icon {
    cursor: pointer;
}

.likes_c, .dislikes_c, .shares_c, .downloads_c .emogi-icon {
    color: #1e90ff; /* Bright blue */
}

.des .des-info {
    color: #333; /* Dark text */
}

.des a {
    color: blue; /* Primary blue color */
}

.des a:hover {
    color: #000; /* Darker blue on hover */
}

.button {
    color: #fff; /* White text */
    background: #333; /* Primary blue */
    box-shadow: 1px 1px 3px #000; /* Lighter shadow */
    padding: 6px 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s, color 0.3s; /* Smooth hover transition */
}

.button:hover {
    background-color: #555; /* Darker blue on hover */
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fefefe;
    padding: 15px;
    border-radius: 8px;
    width: 100%;
    max-width: 90vw;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: #000;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed;
}

th, td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comment-system {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.comment-system form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-system input[type="text"], .comment-system textarea {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-size: 16px;
    width: 100%;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.comment {
    background: #fff;
    border-radius: 4px;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.comment-name {
    font-weight: 700;
}

.comment-timestamp {
    color: #999;
}

.comment-message {
    font-size: 16px;
    color: #333;
}

.pages {
    background: #fff;
    border-style: double;
    text-align: center;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-links {
    display: inline-flex;
    align-items: center;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    gap: 10px;
    padding: 8px 16px;
    margin: 5px;
    text-decoration: none;
    color: #000;
    background: #f0f0f0;
}

.page-links:hover {
    background-color: #e0e0e0;
}

.error-container {
    text-align: center;
    background-color: white;
    color: #000;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.error-code {
    font-size: 72px;
    color: #000;
}

.error-message {
    font-size: 24px;
    margin: 10px 0;
}

.error-suggestion {
    font-size: 18px;
    margin-bottom: 20px;
    color: #000;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 40px;
    margin-right: 10px;
    border-radius: 5px;
    right: 0;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
}
.user-dropdown a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #000;
    white-space: nowrap;
}
.user-dropdown a:hover {
    background: #ddd;
}

.stats-card {
    background: #fff;
}

nav {
    background: linear-gradient(135deg, #fff, #f0f0f0);
}

nav ul li a {
    color: #000;
}

@media (max-width: 768px) {
    nav ul li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
}

.about {
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.about-item {
    background: #f0f0f0;
}