/*
Theme Name: Giao Dien 31
Version: 1.0.0
Text Domain: giaodien31
*/

/* ===== THEME VARIABLES ===== */
:root {
    --theme-color: #FF3565;
}

/* ===== RESET & BASE (Tailwind) ===== */
*,
:after,
:before {
    box-sizing: border-box;
    border: 0 solid #e5e7eb
}

:after,
:before {
    --tw-content: ""
}

:host,
html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    font-family: ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent
}

body {
    margin: 0;
    line-height: inherit;
    background-color: #181818;
    color: #ccc;
    font-family: Arial, sans-serif !important;
    font-size: 1em
}

hr {
    height: 0;
    color: inherit;
    border-top-width: 1px
}

abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit
}

a {
    color: inherit;
    text-decoration: none
}

b,
strong {
    font-weight: bolder
}

code,
kbd,
pre,
samp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
    font-feature-settings: normal;
    font-variation-settings: normal;
    font-size: 1em
}

small {
    font-size: 80%
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: initial
}

sub {
    bottom: -.25em
}

sup {
    top: -.5em
}

table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
    padding: 0
}

button,
select {
    text-transform: none
}

button,
input:where([type=button]),
input:where([type=reset]),
input:where([type=submit]) {
    -webkit-appearance: button;
    background-color: initial;
    background-image: none
}

:-moz-focusring {
    outline: auto
}

:-moz-ui-invalid {
    box-shadow: none
}

progress {
    vertical-align: initial
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
    height: auto
}

[type=search] {
    -webkit-appearance: textfield;
    outline-offset: -2px
}

::-webkit-search-decoration {
    -webkit-appearance: none
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit
}

summary {
    display: list-item
}

blockquote,
dd,
dl,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
pre {
    margin: 0
}

fieldset {
    margin: 0
}

fieldset,
legend {
    padding: 0
}

menu,
ol,
ul {
    list-style: none;
    margin: 0;
    padding: 0
}

dialog {
    padding: 0
}

textarea {
    resize: vertical
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    opacity: 1;
    color: #9ca3af
}

input::placeholder,
textarea::placeholder {
    opacity: 1;
    color: #9ca3af
}

[role=button],
button {
    cursor: pointer
}

:disabled {
    cursor: default
}

audio,
canvas,
embed,
iframe,
img,
object,
svg,
video {
    display: block;
    vertical-align: middle
}

img,
video {
    max-width: 100%;
    height: auto
}

[hidden] {
    display: none
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: .625rem;
    padding-right: .625rem
}

@media (min-width:640px) {
    .container {
        max-width: 640px
    }
}

@media (min-width:768px) {
    .container {
        max-width: 768px
    }
}

@media (min-width:1024px) {
    .container {
        max-width: 1024px
    }
}

@media (min-width:1280px) {
    .container {
        max-width: 1280px
    }
}

@media (min-width:1536px) {
    .container {
        padding: 0 1.5em;
        max-width: 1600px !important
    }
}

/* ===== LAYOUT ===== */
.layout {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem
}

@media (min-width:768px) {
    .layout {
        grid-template-columns: repeat(10, minmax(0, 1fr))
    }
}

@media (min-width:1024px) {
    .layout {
        grid-template-columns: repeat(9, minmax(0, 1fr))
    }
}

.layout .layout__left {
    grid-column: 1/-1
}

@media (min-width:768px) {
    .layout .layout__left {
        grid-column: span 7/span 7
    }
}

@media (min-width:1024px) {
    .layout .layout__left {
        grid-column: span 7/span 7
    }
}

.layout .layout__right {
    grid-column: 1/-1
}

@media (min-width:768px) {
    .layout .layout__right {
        grid-column: span 3/span 3
    }
}

@media (min-width:1024px) {
    .layout .layout__right {
        grid-column: span 2/span 2
    }
}

/* ===== HEADER ===== */
#header {
    padding-top: 1rem;
    padding-bottom: 26px
}

@media (min-width:1024px) {
    #header {
        display: flex;
        justify-content: space-between;
        padding-top: 1.5rem
    }
}

#header .header__logo {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-between
}

#header .header__logo .header__logo__text {
    font-weight: 600;
    color: #e5e5e5;
    font-size: 24px
}

#header .header__logo .header__logo__text span:first-child {
    color: var(--theme-color)
}

#header .header__logo .header__logo__description {
    margin-top: .5rem;
    font-size: 1em;
    color: #999
}

@media (min-width:1024px) {
    #header .header__logo .header__logo__description {
        margin-top: .25rem
    }
}

/* Mobile Menu Toggle */
#header .header__mobile-menu-toggle {
    position: relative;
    display: block
}

@media (min-width:1024px) {
    #header .header__mobile-menu-toggle {
        display: none !important
    }
}

#header .header__mobile-menu-toggle button {
    display: block;
    background-color: inherit;
    border: none;
    right: 0;
    top: -10px;
    cursor: pointer;
    height: 50px;
    line-height: 50px;
    width: 48px
}

#header .header__mobile-menu-toggle button:before {
    transition: all .3s ease;
    position: absolute;
    top: 16px;
    right: 14px;
    display: block;
    height: 2px;
    width: 20px;
    background: #ddd;
    content: ""
}

#header .header__mobile-menu-toggle button:after {
    position: absolute;
    top: 23px;
    right: 14px;
    display: block;
    height: 9px;
    width: 20px;
    border-top: 2px solid #ddd;
    border-bottom: 2px solid #ddd;
    content: ""
}

#header .header__mobile-menu-toggle--opened button:before {
    top: 23px;
    background: #fff;
    width: 19px;
    transform: rotate(-45deg)
}

#header .header__mobile-menu-toggle--opened button:after {
    transition: all .3s ease;
    top: 23px;
    border: 0;
    height: 2px;
    width: 19px;
    background: #fff;
    transform: rotate(45deg);
    position: absolute
}

/* Search Form */
#header .header__form {
    margin-top: 1.25rem;
    display: flex;
    width: 100%
}

@media (min-width:1024px) {
    #header .header__form {
        margin-top: 0;
        width: 50%
    }
}

#header .header__form form {
    display: flex;
    width: 100%;
    align-items: center;
    position: relative
}

#header .header__form input {
    width: 100%;
    background-color: #282828;
    border: 1px solid #282828;
    color: #ccc;
    padding: 0 .8em;
    height: 40px;
    box-shadow: 0 0 1px #ffffff4d, inset 0 0 5px #000
}

#header .header__form input:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    background-color: #444
}

@media (min-width:1024px) {
    #header .header__form input {
        width: 70%
    }
}

#header .header__form button {
    box-sizing: initial;
    height: auto;
    width: auto;
    border: 1px solid;
    padding: .55em .8em;
    background: linear-gradient(180deg, #0000004d 0, #0000 70%);
    box-shadow: 0 1px 6px 0 #0000001f;
    background-color: var(--theme-color);
    border-color: var(--theme-color)
}

/* Mobile Aside Menu */
#mobile-aside-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    height: 100vh;
    width: 16rem;
    transform: translateX(-100%);
    transition: transform .15s cubic-bezier(.4, 0, .2, 1)
}

#mobile-aside-menu .mobile-aside-menu__container {
    height: 100%;
    overflow-y: auto;
    padding: 1rem .75rem;
    background: linear-gradient(180deg, #000000e6 0, #000000b3 70%)
}

#mobile-aside-menu .mobile-aside-menu__container ul {
    font-weight: 500
}

#mobile-aside-menu .mobile-aside-menu__container ul li {
    margin-top: .5rem
}

#mobile-aside-menu .mobile-aside-menu__container ul li a {
    display: flex;
    align-items: center;
    border-radius: .5rem;
    padding: .5rem;
    font-weight: 600;
    color: var(--theme-color)
}

#mobile-aside-menu .mobile-aside-menu__container ul li a.active,
#mobile-aside-menu .mobile-aside-menu__container ul li a:hover {
    color: #fff !important;
    background-color: var(--theme-color) !important;
    border-color: var(--theme-color) !important
}

.mobile-aside-menu--active {
    transform: translateX(0) !important
}

.mobile-aside-menu-outside {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    height: 100%;
    width: 100%;
    background: #0000004d;
    display: none
}

/* ===== NAVBAR ===== */
#navbar {
    display: none;
    background: linear-gradient(180deg, #222 0, #333 50%, #222 51%, #151515)
}

@media (min-width:1024px) {
    #navbar {
        display: block
    }
}

#navbar .navbar__menu {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: wrap;
}

#navbar .navbar__menu::-webkit-scrollbar {
    display: none
}

#navbar .navbar__menu .navbar__menu__item {
    display: block;
    cursor: pointer;
    align-content: center;
    height: 50px;
    padding: 0 1.5em;
    font-size: .875em;
    color: #fff;
    border-right: 1px solid #121212;
    background: linear-gradient(180deg, #0000004d 0, #0000 70%);
    margin-right: 2px;
    line-height: 50px;
    white-space: nowrap;
    flex-shrink: 0
}

#navbar .navbar__menu .navbar__menu__item:first-child {
    border-left: 1px solid #121212
}

#navbar .navbar__menu .navbar__menu__item--active,
#navbar .navbar__menu .navbar__menu__item:hover {
    background-color: var(--theme-color);
    border-color: var(--theme-color)
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs-area {
    height: 30px;
    line-height: 28px;
    background-color: #333 !important;
    background: linear-gradient(180deg, #0000004d 0, #0000 70%);
    border: 1px solid #333;
    border-right: none;
    border-left: none;
    margin-bottom: 1em;
    font-size: .8em !important;
    color: var(--theme-color)
}

.breadcrumbs-area .container {
    display: flex;
    align-items: center;
    gap: .5rem
}

.breadcrumbs-area .current {
    color: #ccc
}

.breadcrumbs-area svg {
    flex-shrink: 0
}

/* ===== HEADING ===== */
.heading {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 17px 0 #0003, 0 6px 6px 0 #00000030;
    background: #282828;
    color: #fff;
    padding: .4em .8em;
    font-size: 1.1em;
    font-weight: 400;
    border-left-width: 6px;
    border-left-style: solid;
    border-color: var(--theme-color)
}

.heading__title {
    margin: 0;
    font-size: inherit;
    font-weight: inherit
}

/* ===== VIDEO ITEMS GRID ===== */
.items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem
}

@media (min-width:768px) {
    .items {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media (min-width:1024px) {
    .items {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    }
}

.item {
    margin-bottom: .75rem;
    font-weight: 400;
    text-align: center;
    color: #ddd;
    font-size: .875em
}

.item .item__thumbnail {
    position: relative;
    display: block;
    aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
    overflow: hidden
}

.item .item__thumbnail img {
    height: 100%;
    width: 100%;
    object-fit: cover
}

.item .item__labels {
    position: absolute;
    top: .25rem;
    left: .25rem
}

.item .item__labels span {
    padding: .25rem;
    font-size: .75rem;
    line-height: 1rem;
    font-weight: 600;
    background-color: var(--theme-color) !important;
    border-color: var(--theme-color);
    background: linear-gradient(180deg, #0000004d 0, #0000 70%);
    box-shadow: 0 1px 6px 0 #0000001f
}

.item .item__title {
    margin-top: .25rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2
}

.item .item__title h4 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit
}

/* ===== LABELS/TAGS ===== */
.label {
    margin-right: .5rem;
    margin-bottom: .5rem;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .5rem .75rem;
    font-size: .75rem;
    line-height: 1rem;
    border: 1px solid;
    color: #fff;
    background-color: var(--theme-color) !important;
    border-color: var(--theme-color);
    background: linear-gradient(180deg, #0000004d 0, #0000 70%);
    box-shadow: 0 1px 6px 0 #0000001f;
    border-radius: .25rem
}

.video__tags {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem
}

/* ===== PAGINATION ===== */
.paginator {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem
}

.paginator .paginator__item {
    margin-bottom: 1.25rem;
    display: block
}

.paginator .paginator__item a,
.paginator .paginator__item span {
    padding: .75rem 1rem;
    background-color: #333 !important;
    background: linear-gradient(180deg, #0000004d 0, #0000 70%);
    box-shadow: 0 1px 6px 0 #0000001f;
    display: block;
    color: #fff
}

.paginator .paginator__item--active a,
.paginator .paginator__item--active span {
    background-color: var(--theme-color) !important;
    border-color: var(--theme-color)
}

/* ===== VIDEO PLAYER ===== */
.player {
    aspect-ratio: 16/9;
    position: relative;
    background: #000
}

.player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none
}

.player__poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1
}

.player__videos {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem
}

.player__videos .player__videos__video {
    margin: 10px auto;
    padding: 1.25rem;
    background-color: #333 !important;
    background: linear-gradient(180deg, #0000004d 0, #0000 70%);
    box-shadow: 0 1px 6px 0 #0000001f
}

.player__videos .player__videos__video .cdn-selector-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem
}

.player__videos .player__videos__video .cdn-selector-wrapper .player__cdn {
    border-radius: .25rem;
    background-color: #000;
    padding: .25rem .75rem;
    color: #fff;
    cursor: pointer;
    border: none
}

.player__videos .player__videos__video .cdn-selector-wrapper .player__cdn--active {
    background-color: var(--theme-color) !important;
    border-color: var(--theme-color)
}

.player__video-heading-wrapper {
    margin-bottom: .75rem
}

/* ===== SIDEBAR ===== */
.top-items .top-items__wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem
}

@media (min-width:768px) {
    .top-items .top-items__wrapper {
        grid-template-columns: repeat(1, minmax(0, 1fr))
    }
}

.top-items .item {
    gap: .5rem
}

@media (min-width:1024px) {
    .top-items .item {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: start
    }

    .top-items .item .item__thumbnail {
        grid-column: span 2/span 2
    }

    .top-items .item .item__title {
        grid-column: span 3/span 3;
        text-align: left
    }
}

.sidebar-backlinks {
    margin-top: 1.5rem
}

.sidebar-backlinks ul {
    list-style-type: disc;
    padding-left: 2.5rem
}

.sidebar-backlinks li {
    margin-bottom: .5rem
}

.sidebar-backlinks a {
    color: var(--theme-color)
}

.sidebar-backlinks a.label {
    color: #fff !important;
    text-decoration: none !important;
}

.sidebar-backlinks a:hover {
    text-decoration: underline
}

/* ===== FOOTER ===== */
#footer {
    background: #222;
    padding: 2em 0;
    margin-top: 3em;
    box-shadow: 0 0 6px 6px #0000001f;
    clear: both;
    width: 100%;
    font-size: .9em;
    line-height: 1.5
}

#footer .footer__menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin-bottom: 1rem
}

#footer .footer__menu a {
    margin-bottom: .5rem;
    display: block;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    color: var(--theme-color);
    font-size: 1em
}

#footer .footer__menu a:hover {
    text-decoration: underline
}

#footer .footer__text {
    text-align: center;
    color: #999
}

/* ===== BUTTONS ===== */
.button {
    margin-top: .75rem;
    border-radius: .25rem;
    background-color: var(--theme-color) !important;
    border-color: var(--theme-color);
    padding: .5rem 1.5rem;
    color: #fff;
    cursor: pointer;
    border: none;
    display: inline-block
}

.button:hover {
    opacity: .9
}

/* ===== UTILITY CLASSES ===== */
.mx-auto {
    margin-left: auto;
    margin-right: auto
}

.mb-2 {
    margin-bottom: .5rem
}

.mb-4 {
    margin-bottom: 1rem
}

.ms-3 {
    margin-inline-start: .75rem
}

.mt-5 {
    margin-top: 1.25rem
}

.block {
    display: block
}

.h-5 {
    height: 1.25rem
}

.w-5 {
    width: 1.25rem
}

.text-center {
    text-align: center
}

.text-sm {
    font-size: .875rem;
    line-height: 1.25rem
}

.text-white {
    color: #fff
}

.list-disc {
    list-style-type: disc
}

.pl-10 {
    padding-left: 2.5rem
}

.clearfix::after {
    content: "";
    display: table;
    clear: both
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(1turn)
    }
}

.animate-spin {
    animation: spin 1s linear infinite
}

.opacity-25 {
    opacity: .25
}

.opacity-75 {
    opacity: .75
}

/* ===== AUTOCOMPLETE DROPDOWN ===== */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    background: #282828;
    border: 1px solid #333;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-sizing: border-box
}

.autocomplete-dropdown a {
    display: block;
    padding: 8px 12px;
    color: #ccc;
    text-decoration: none;
    border-bottom: 1px solid #333;
}

.autocomplete-dropdown a:hover {
    background: var(--theme-color);
    color: #fff;
}

.autocomplete-dropdown::-webkit-scrollbar {
    width: 6px
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: #282828
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: var(--theme-color);
    border-radius: 3px
}

/* ===== VIDEO PAGE SPECIFIC ===== */
.video-description {
    margin-top: 1rem;
    line-height: 1.6
}

.video-categories {
    margin: 1rem 0
}

.video-categories-heading {
    margin-bottom: .5rem;
    color: #999;
    font-size: .9em
}

.video-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    color: #999
}

.video-stats .views,
.video-stats .likes {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    background-color: #333 !important;
    background: linear-gradient(180deg, #0000004d 0, #0000 70%);
    box-shadow: 0 1px 6px 0 #0000001f;
    border-radius: .25rem;
    border: none;
    color: #ccc
}

.video-stats .likes {
    cursor: pointer
}

.video-stats .likes:hover,
.video-stats .likes.liked {
    background-color: var(--theme-color) !important;
    border-color: var(--theme-color);
    background: linear-gradient(180deg, #0000004d 0, #0000 70%);
    box-shadow: 0 1px 6px 0 #0000001f;
    color: #fff
}

/* ===== TIME FILTER BUTTONS ===== */
.time-filters {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap
}

.time-filter-btn {
    padding: .5rem 1rem;
    background: #333;
    color: #ccc;
    border: none;
    border-radius: .25rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block
}

.time-filter-btn:hover,
.time-filter-btn.active {
    background-color: var(--theme-color) !important;
    border-color: var(--theme-color);
    background: linear-gradient(180deg, #0000004d 0, #0000 70%);
    box-shadow: 0 1px 6px 0 #0000001f;
    color: #fff
}

/* ===== 404 PAGE ===== */
.error-404 {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #282828;
    border-radius: .5rem;
    margin-top: 1.25rem;
    box-shadow: 0 8px 17px 0 #0003, 0 6px 6px 0 #00000030
}

.error-404 h1 {
    font-size: 6rem;
    font-weight: 700;
    color: var(--theme-color);
    margin: 0 0 .5rem 0;
    line-height: 1;
    text-shadow: 2px 2px 4px #0006
}

.error-404 p {
    font-size: 1rem;
    margin: 0 0 .5rem 0;
    color: #999;
    line-height: 1.6
}

.error-404 p:last-of-type {
    margin-bottom: 1.5rem
}

.error-404 .button {
    margin-top: 0;
    padding: .75rem 2rem;
    font-size: 1rem;
    background-color: var(--theme-color) !important;
    border-color: var(--theme-color);
    background: linear-gradient(180deg, #0000004d 0, #0000 70%);
    box-shadow: 0 1px 6px 0 #0000001f
}

/* ===== TOUCH DEVICES ===== */
* {
    -webkit-tap-highlight-color: transparent
}

/* Hide search input x button */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display: none;
}