@font-face {
  font-family: "Montserrat Local";
  src: url("../fonts/Montserrat-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --accent: #fe5461;
  --accent-dark: #e84250;
  --blue: #4c84ff;
  --bg-main: #f5f6fa;
  --bg-second: #fff;
  --bg-soft: #fafafa;
  --bg-input: #fff;
  --text: #19233b;
  --text-muted: #8c919d;
  --line: rgba(25, 35, 59, .1);
  --shadow: 0 4px 20px rgba(25, 35, 59, .03);
  --radius: 2px;
  --wrap: 1280px;
  --sidebar-width: 225px;
  --logo-width: 120px;
  --logo-height: 38px;
  --player-ratio: 16/9;
  --player-ad-width: 300px;
}

body.mode-light {
  --bg-main: #f5f6fa;
  --bg-second: #fff;
  --bg-soft: #fafafa;
  --bg-input: #fff;
  --text: #19233b;
  --text-muted: #8c919d;
  --line: rgba(25, 35, 59, .1);
}

body.mode-dark {
  --bg-main: #19233b;
  --bg-second: #222d46;
  --bg-soft: #202b44;
  --bg-input: #202b44;
  --text: #fff;
  --text-muted: #aab1c1;
  --line: rgba(255, 255, 255, .12);
}

body {
  background: var(--bg-main);
  color: var(--text);
  font-family: "Montserrat Local", Montserrat, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.wrap { max-width: var(--wrap); padding-right: 0; padding-left: 0; }
.site-content { background: var(--bg-main); }
.site-header { position: relative; z-index: 100; border: 0; background: var(--bg-second); box-shadow: var(--shadow); }
.network-bar { height: 24px; overflow: hidden; background: var(--blue); color: #fff; font-size: 11px; }
.network-bar__inner { height: 24px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
.network-menu, .network-menu ul { width: 100%; }
.network-menu ul { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; list-style: none; overflow: hidden; }
.network-menu a { color: rgba(255,255,255,.78); }
.network-menu a:hover { color: #fff; }
.header-main { background: var(--bg-second); }
.header-row { min-height: 56px; gap: 24px; }
.header-brand { flex: 0 0 var(--logo-width); }
.custom-logo-link { width: var(--logo-width); height: var(--logo-height); }
.custom-logo { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; object-position: left center; }
.brand-text { max-width: var(--logo-width); min-height: var(--logo-height); display: inline-flex; align-items: center; overflow: hidden; font-size: clamp(18px, 1.8vw, 25px); font-weight: 800; letter-spacing: -.7px; white-space: nowrap; }
.brand-text i { width: 0; height: 0; margin-right: 4px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid var(--accent); }
.brand-text span { overflow: hidden; color: var(--accent); text-overflow: ellipsis; }
.brand-text b { color: var(--blue); font-weight: 800; }
.header-search { width: min(520px, 48vw); margin: 0; }
.search-form { height: 40px; }
.search-field { padding-left: 16px; padding-right: 45px; border-color: var(--line); border-radius: 0; box-shadow: none; }
.search-field:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(76,132,255,.12); }
.search-submit { width: 42px; height: 40px; color: var(--blue); }
.header-actions { flex: 1 1 auto; gap: 16px; }
.account-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); white-space: nowrap; }
.account-link--accent { color: var(--accent); }
.account-link .mg-icon { width: 16px; height: 16px; }
.search-toggle, .menu-toggle { display: none; }
.header-subrow { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.reference-nav, .reference-nav__menu { display: flex; align-items: center; min-width: 0; }
.reference-nav__menu { gap: 0; margin: 0; padding: 0; list-style: none; }
.reference-nav > a, .reference-nav__menu > li > a { display: flex; align-items: center; min-height: 40px; margin-right: 22px; color: var(--text); font-size: 13px; white-space: nowrap; }
.reference-nav__menu .sub-menu { position: absolute; z-index: 10; display: none; min-width: 190px; margin: 0; padding: 8px; border: 1px solid var(--line); background: var(--bg-second); box-shadow: 0 8px 24px rgba(25,35,59,.12); list-style: none; }
.reference-nav__menu li { position: relative; }
.reference-nav__menu li:hover > .sub-menu, .reference-nav__menu li:focus-within > .sub-menu { display: block; }
.reference-nav__menu .sub-menu a { display: block; padding: 8px 10px; }
.upload-link { display: inline-flex; align-items: center; gap: 7px; color: var(--text); white-space: nowrap; }
.upload-link .mg-icon { width: 18px; height: 18px; color: var(--text-muted); }
.mobile-panel { display: none; }

.main-layout { grid-template-columns: var(--sidebar-width) minmax(0, 1fr); gap: 0; }
.main-column { min-width: 0; padding-bottom: 42px; }
body:not(.has-sidebar) .main-layout { grid-template-columns: minmax(0,1fr); }
body:not(.has-sidebar) .main-column { grid-column: 1; }
.site-sidebar { width: var(--sidebar-width); padding: 15px 16px 40px 0; }
.sidebar-sticky { top: 14px; }
.sidebar-nav { gap: 11px; padding: 0 0 22px; border: 0; }
.sidebar-nav__menu { gap: 11px; }
.sidebar-nav a { gap: 12px; color: #5e6576; font-size: 13px; }
.sidebar-nav a:hover { color: var(--blue); }
.sidebar-nav .mg-icon { width: 16px; height: 16px; }
.sidebar-section { padding-top: 0; }
.sidebar-section h3 { margin: 16px 0 10px; padding: 0; font-size: 13px; font-weight: 500; text-transform: none; }
.sidebar-category-filter { display: block; }
.sidebar-category-filter input { width: 100%; height: 36px; padding: 0 11px; border: 1px solid var(--line); background: var(--bg-input); color: var(--text); }
.sidebar-categories { gap: 4px; }
.sidebar-categories a { min-height: 26px; color: #5e6576; font-size: 12px; }
.sidebar-categories a[hidden] { display: none; }
.sidebar-categories small { padding: 0; background: transparent; color: #babdc4; }
.sidebar-categories__menu { gap: 4px; }

.section-heading { min-height: 40px; margin-top: 13px; padding: 0 0 8px; }
.section-heading h1, .section-heading h2 { font-size: 18px; font-weight: 500; }
.more-link { color: #babdc4; }
.more-link .mg-icon { transform: none; }
.more-link span { width: 0; overflow: hidden; opacity: 0; transition: width .2s, opacity .2s; }
.more-link:hover { color: var(--text-muted); }
.more-link:hover span { width: 85px; opacity: 1; }
.video-grid { gap: 10px 8px; }
.video-card__media { border-radius: 0; box-shadow: none; }
.video-card__media:hover img { transform: none; filter: brightness(.86); }
.video-card__play { width: 42px; height: 42px; background: rgba(76,132,255,.9); }
.video-card__quality { top: auto; right: auto; bottom: 2px; left: 2px; padding: 1px 4px; border-radius: 0; background: var(--accent); font-size: 10px; }
.video-card__duration { right: 2px; bottom: 2px; padding: 0 4px; border-radius: 0; font-size: 10px; line-height: 16px; }
.video-card__duration .mg-icon { display: none; }
.video-card__title { min-height: 20px; margin-top: 4px; color: var(--text); font-size: 13px; font-weight: 500; line-height: 20px; }
.video-card__stats { gap: 11px; margin-top: 1px; color: #5e6576; font-size: 11px; line-height: 18px; }
.video-card__stats .mg-icon { width: 11px; height: 11px; color: #babdc4; }
.video-card__stats time { color: var(--text-muted); }
.home-video-section { margin-bottom: 9px; }
.pagination { margin: 24px 0; }
.pagination > .page-numbers { gap: 0; }
.pagination a, .pagination span { min-width: 40px; width: 40px; height: 40px; margin: 0 4px; padding: 0; border-radius: 0; background: transparent; font-weight: 400; }
.pagination .prev, .pagination .next { min-width: 40px; width: auto; padding: 0 12px; background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination .current { background: #8c919d; border-color: #8c919d; }
.seo-box { margin: 28px 0; padding: 20px 0; border: 0; border-radius: 0; background: transparent; color: #5e6576; text-align: left; font-size: 12px; }

.mg-ad { margin: 16px auto 24px; }
.mg-ad__label { margin-bottom: 6px; color: var(--text-muted); font-size: 10px; text-transform: none; letter-spacing: 0; }
.mg-ad__content { display: flex; justify-content: center; }
.mg-ad__content > * { max-width: 100%; }
.header-desktop-slot { max-width: var(--wrap); }
.reference-ad-row { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); max-width: var(--wrap); gap: 8px; }
.reference-ad-cell { max-width: none; }

.single-wrap { padding-top: 14px; padding-bottom: 0; }
.single-video { margin: 0; }
.single-header { margin: 12px 0 8px; align-items: center; }
.single-header h1 { font-size: 18px; font-weight: 500; }
.single-header--mobile { display: none; }
.single-header time { font-size: 12px; }
.player-layout.has-player-ad { max-width: var(--wrap); grid-template-columns: minmax(0, 1fr) var(--player-ad-width); gap: 10px; align-items: start; }
.video-player { aspect-ratio: var(--player-ratio); }
.player-ad-column { min-height: 100%; display: block; border: 0; background: transparent; }
.player-ad-column .mg-ad { margin: 0 0 8px; }
.player-ad-column .mg-ad__label { display: none; }
.player-ad-column .mg-ad__content { width: 100%; }
.player-ad-column .mg-ad__content iframe, .player-ad-column .mg-ad__content img { width: 100% !important; height: auto; }
.player-ad-placeholder { min-height: 250px; background: rgba(255,255,255,.5); }
.video-actions { min-height: 50px; padding: 0; border-bottom-color: var(--line); }
.video-metrics { gap: 18px; color: var(--text-muted); font-size: 13px; }
.video-action-buttons { display: flex; align-items: center; gap: 4px; }
.reaction-button { min-height: 40px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border: 0; background: transparent; color: var(--text-muted); }
.reaction-button:hover, .reaction-button.is-liked { color: var(--blue); }
.reaction-button--dislike .mg-icon { transform: rotate(180deg); }
.reaction-button .mg-icon { width: 15px; height: 15px; }
.tag-list { gap: 7px; margin: 10px 0; }
.tag-list a { padding: 5px 10px; border: 0; border-radius: 0; background: var(--bg-second); font-size: 11px; }
.single-video .entry-content { max-width: 900px; margin: 12px 0 20px; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.related-section { margin-top: 24px; }
.related-grid .video-card__media { aspect-ratio: var(--mg-thumb-ratio); }
.suggested-more-button { width: min(285px, calc(100% - 24px)); border-radius: 2px; background: var(--accent); }
.suggested-more-button:hover { background: var(--accent-dark); }

.comments-area { width: 100%; max-width: none; margin: 52px 0 0; padding: 24px 0 42px; border: 0; border-radius: 0; background: transparent; }
.comments-header { margin: 0 0 20px; }
.comments-header h2 { font-size: 15px; font-weight: 500; }
.comments-title-icon { background: var(--bg-second); color: var(--blue); }
.comment-respond { width: 100%; max-width: none; }
.comment-form { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comment-form > p { margin: 0; }
.comment-form .comment-form-intro, .comment-form .comment-form-comment, .comment-form .comment-form-cookies-consent, .comment-form .form-submit, .comment-form .logged-in-as { grid-column: 1 / -1; }
.comment-form input:not([type="checkbox"]), .comment-form textarea { width: 100%; border-color: var(--line); border-radius: 0; background: var(--bg-second); color: var(--text); }
.comment-form textarea { min-height: 140px; }
.comment-submit { border-radius: 0; background: var(--blue); }

.categories-page { padding: 10px 0 52px; }
.categories-heading { align-items: center; }
.category-filter input { width: 210px; height: 36px; padding: 0 12px; border: 1px solid var(--line); background: var(--bg-input); color: var(--text); }
.category-card-grid { display: grid; grid-template-columns: repeat(var(--mg-cols-desktop,5), minmax(0,1fr)); gap: 18px 8px; }
.category-card[hidden] { display: none; }
.category-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: var(--mg-thumb-ratio,16/9); background: var(--bg-second); }
.category-card__media img { width: 100%; height: 100%; object-fit: cover; }
.category-card__media > span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue); font-size: 34px; font-weight: 800; }
.category-card__body { margin-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.category-card__body h2 { margin: 0; overflow: hidden; font-size: 13px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.category-card__body > span { display: flex; align-items: center; gap: 3px; color: var(--text-muted); font-size: 11px; }
.category-card__body .mg-icon { width: 12px; height: 12px; }
.all-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 34px 0 0; }
.all-tags a { padding: 5px 9px; border: 1px solid var(--line); background: var(--bg-second); color: var(--text-muted); font-size: 11px; }
.all-tags small { color: #babdc4; }

.account-page { min-height: 575px; padding: 72px 0; background: #19233b; }
.account-shell { display: flex; align-items: center; justify-content: center; gap: 80px; }
.account-page--signup .account-shell { justify-content: space-between; }
.account-benefits { max-width: 590px; color: #fff; }
.account-benefits h1 { margin-bottom: 22px; font-size: 32px; }
.account-benefits > p { color: rgba(255,255,255,.82); }
.account-benefits ul { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 80px; margin: 48px 0 0; padding: 0; list-style: none; }
.account-benefits li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.account-benefits .mg-icon { color: var(--accent); }
.account-card { width: 100%; max-width: 420px; padding: 28px; background: #fff; color: #19233b; box-shadow: 0 15px 45px rgba(0,0,0,.18); }
.account-card > h1 { margin-bottom: 20px; font-size: 24px; text-align: center; }
.account-form { display: flex; flex-direction: column; gap: 12px; }
.account-form label > span { display: block; margin-bottom: 5px; color: #5e6576; font-size: 12px; }
.account-form input:not([type="checkbox"]), .account-form textarea, .account-form select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid rgba(25,35,59,.15); border-radius: 0; background: #fff; color: #19233b; }
.account-form textarea { min-height: 110px; resize: vertical; }
.account-form input[type="file"] { height: auto; }
.account-form .button { width: 100%; min-height: 46px; border-radius: 0; }
.account-check { color: #5e6576; font-size: 12px; }
.account-honeypot { position: absolute !important; left: -9999px !important; }
.account-terms { margin: 15px 0 0; color: #8c919d; font-size: 11px; text-align: center; }
.account-card__footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(25,35,59,.1); color: #8c919d; font-size: 12px; }
.account-card a { color: var(--blue); }
.form-notice { margin-bottom: 16px; padding: 10px 12px; font-size: 12px; }
.form-notice p:last-child { margin-bottom: 0; }
.form-notice--error { background: #fff0f1; color: #a32631; }
.form-notice--success { background: #edf9f2; color: #187942; }
.route-account .account-card, .route-upload .account-card { max-width: 1000px; }
.account-profile { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.account-profile > div { display: flex; align-items: center; gap: 14px; }
.account-profile img { border-radius: 50%; }
.account-profile h1, .account-profile p { margin: 0; }
.account-profile p { color: #8c919d; }
.account-dashboard-actions { margin: 24px 0; }
.account-dashboard-actions .button { gap: 8px; }
.account-dashboard-actions .mg-icon { width: 17px; height: 17px; }
.account-video-section { margin-top: 30px; }
.account-empty { padding: 20px; background: #f5f6fa; color: #8c919d; }

.not-found-wrap { max-width: none; padding: 50px max(20px, calc((100% - var(--wrap)) / 2)); background: #19233b; color: #fff; }
.not-found { max-width: var(--wrap); display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: 70px; text-align: left; }
.not-found strong { grid-row: 1 / span 4; font-size: clamp(150px, 22vw, 330px); line-height: .85; }
.not-found .search-form { display: none; }
.not-found .button { width: fit-content; min-width: 180px; border-radius: 0; }
.not-found-wrap .related-section { max-width: var(--wrap); margin: 60px auto 0; }
.not-found-wrap .video-card__title { color: #fff; }
.not-found-wrap .video-card__stats { color: rgba(255,255,255,.55); }

.page-wrap { padding-top: 30px; }
.page-card { border: 0; border-radius: 0; box-shadow: var(--shadow); }
.site-footer { background: var(--bg-second); border: 0; box-shadow: 0 -4px 20px rgba(25,35,59,.03); }
.footer-grid { padding-top: 48px; padding-bottom: 58px; }
.footer-brand { max-width: 470px; }
.footer-brand p, .footer-menu a, .footer-copy { color: var(--text-muted); }
.footer-rating-badge { display: none; }

@media (max-width: 1366px) {
  .wrap { padding-right: 20px; padding-left: 20px; }
  .header-subrow { padding-right: 20px; padding-left: 20px; }
}

@media (max-width: 1024px) {
  .network-bar, .header-subrow, .header-actions { display: none; }
  .site-header { position: sticky; top: 0; }
  .header-row { min-height: 52px; padding: 0 10px; gap: 6px; }
  .header-brand { flex: 1 1 auto; }
  .brand-text { font-size: 20px; }
  .header-search { position: fixed; z-index: 115; top: 52px; right: 0; left: 0; display: none; width: 100%; padding: 10px; background: var(--bg-second); box-shadow: var(--shadow); }
  .header-search.is-open { display: block; }
  .search-toggle, .menu-toggle { display: grid; width: 40px; height: 40px; border: 0; background: transparent; color: var(--blue); }
  .mobile-panel { position: fixed; z-index: 114; top: 52px; right: 0; bottom: 0; display: block; width: min(300px, 86vw); padding: 0; background: var(--bg-second); box-shadow: -12px 0 35px rgba(25,35,59,.2); transform: translateX(110%); transition: transform .25s ease; }
  .mobile-panel.is-open { transform: translateX(0); }
  .mobile-panel__inner { padding: 20px; }
  .mobile-account-links { display: flex; gap: 8px; margin-bottom: 12px; }
  .mobile-account-links a { flex: 1; padding: 9px; background: var(--bg-main); text-align: center; }
  .mobile-menu ul { margin: 0; padding: 0; list-style: none; }
  .mobile-menu a { display: block; padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .mobile-upload { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 18px; padding: 11px; background: var(--accent); color: #fff; }
  .main-layout { grid-template-columns: minmax(0,1fr); }
  .main-column { grid-column: 1; }
  .site-sidebar { display: none; }
  .video-grid { grid-template-columns: repeat(var(--mg-cols-tablet,4), minmax(0,1fr)); }
  .category-card-grid { grid-template-columns: repeat(var(--mg-cols-tablet,4), minmax(0,1fr)); }
  .player-layout.has-player-ad { grid-template-columns: minmax(0,1fr); }
  .player-ad-column { display: flex; gap: 8px; overflow-x: auto; }
  .player-ad-column .mg-ad { flex: 0 0 min(300px, 80vw); }
  .single-header--desktop { display: none; }
  .single-header--mobile { display: flex; }
  .account-page { padding: 44px 0; }
  .account-shell { gap: 35px; }
  .account-benefits { max-width: 480px; }
  .account-benefits ul { gap: 18px 30px; }
  .footer-grid { padding-right: 20px; padding-left: 20px; }
}

@media (max-width: 650px) {
  .wrap { padding-right: 8px; padding-left: 8px; }
  .section-heading { padding-bottom: 8px; }
  .section-heading h1, .section-heading h2 { font-size: 16px; }
  .more-link span { display: none; }
  .video-grid { grid-template-columns: repeat(var(--mg-cols-mobile,2), minmax(0,1fr)); gap: 15px 8px; }
  .category-card-grid { grid-template-columns: repeat(var(--mg-cols-mobile,2), minmax(0,1fr)); gap: 16px 8px; }
  .video-card__title { font-size: 12px; }
  .video-card__stats time { display: none; }
  .single-wrap { padding-right: 0; padding-left: 0; }
  .single-header, .single-video > .tag-list, .single-video > .entry-content, .video-actions { margin-right: 8px; margin-left: 8px; }
  .single-header h1 { font-size: 14px; }
  .single-header time, .single-header .eyebrow { display: none; }
  .video-actions { align-items: flex-start; flex-direction: column; padding: 8px 0; }
  .video-action-buttons { width: 100%; justify-content: space-between; overflow-x: auto; }
  .reaction-button { flex: 0 0 auto; padding: 0 5px; font-size: 11px; }
  .reaction-button span { display: none; }
  .related-section { padding-right: 8px; padding-left: 8px; }
  .comments-area { padding-right: 8px; padding-left: 8px; }
  .comment-form { grid-template-columns: 1fr; }
  .comment-form > p { grid-column: 1; }
  .reference-ad-row { display: flex; justify-content: flex-start; padding: 0 8px; overflow-x: auto; }
  .reference-ad-cell { flex: 0 0 min(300px, 84vw); }
  .category-filter input { width: 145px; }
  .account-shell { display: block; padding: 0 14px; }
  .account-benefits { margin-bottom: 26px; }
  .account-benefits h1 { font-size: 26px; }
  .account-benefits ul { grid-template-columns: 1fr; margin-top: 24px; }
  .account-card { max-width: none; padding: 22px 18px; }
  .account-card__footer { flex-direction: column; }
  .account-profile { align-items: flex-start; flex-direction: column; }
  .not-found-wrap { padding: 40px 8px; }
  .not-found { grid-template-columns: 1fr; text-align: center; }
  .not-found strong { grid-row: auto; font-size: 150px; }
  .not-found .button { margin: 0 auto; }
  .footer-links-wrapper { grid-template-columns: 1fr; }
  .footer-link-column { text-align: center; }
}
