:root {
  --accent: #e94652;
  --accent-dark: #c93441;
  --bg-main: #282a37;
  --bg-second: #1d1e2b;
  --bg-soft: #323542;
  --bg-input: #282a37;
  --text: #ffffff;
  --text-muted: #9e9fa4;
  --line: #3a3c49;
  --shadow: 0 12px 36px rgba(0, 0, 0, .2);
  --radius: 5px;
  --wrap: 1600px;
}

body.mode-light {
  --bg-main: #f6f8fa;
  --bg-second: #ffffff;
  --bg-soft: #eef1f4;
  --bg-input: #fafafa;
  --text: #16171b;
  --text-muted: #666b77;
  --line: #e5e7eb;
  --shadow: 0 12px 36px rgba(25, 35, 50, .1);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea { box-sizing: border-box; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(23px, 2vw, 32px); line-height: 1.18; }
h2 { font-size: clamp(20px, 1.6vw, 26px); line-height: 1.2; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 10px; padding-right: 10px; box-sizing: border-box; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1 0 auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus, .skip-link:focus { top: 6px; left: 6px; z-index: 99999; width: auto; height: auto; padding: 12px 16px; clip: auto; background: var(--bg-second); color: var(--text); }
.mg-icon { width: 20px; height: 20px; flex: 0 0 auto; }

/* Header */
.site-header { position: relative; z-index: 100; background: var(--bg-second); border-bottom: 1px solid var(--line); }
.header-row { min-height: 78px; display: flex; align-items: center; gap: 20px; }
.header-brand { flex: 0 0 220px; min-width: 0; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { display: block; width: auto; max-width: 210px; max-height: 58px; }
.brand-text { display: inline-block; color: var(--text); font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -1.4px; }
.brand-text span { color: var(--accent); }
.header-search { width: min(620px, 52vw); margin: 0 auto; }
.search-form { position: relative; display: flex; width: 100%; height: 48px; }
.search-field { width: 100%; height: 100%; padding: 0 52px 0 18px; border: 1px solid var(--line); border-radius: var(--radius); outline: 0; background: var(--bg-input); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.search-field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 78%); }
.search-submit { position: absolute; top: 0; right: 0; width: 48px; height: 48px; border: 0; background: transparent; color: var(--text-muted); display: grid; place-items: center; }
.search-submit:hover { color: var(--accent); }
.header-actions { flex: 0 0 220px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-input); color: var(--text-muted); }
.icon-button:hover { border-color: var(--accent); color: var(--accent); }
.mode-toggle .mode-sun, body.mode-light .mode-toggle .mode-moon { display: none; }
body.mode-light .mode-toggle .mode-sun { display: block; }
.menu-toggle { display: none; }
.menu-close-icon { display: none; }
.menu-toggle.is-open .menu-open-icon { display: none; }
.menu-toggle.is-open .menu-close-icon { display: block; }
.category-rail-wrap { position: relative; }
.category-rail { display: flex; align-items: center; gap: 5px; padding: 0 0 15px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.category-rail::-webkit-scrollbar { display: none; }
.category-rail__menu { display: flex; align-items: center; gap: 5px; margin: 0; padding: 0; list-style: none; }
.category-rail__menu > li { flex: 0 0 auto; }
.category-chip { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; min-height: 35px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-second); color: var(--text-muted); white-space: nowrap; }
.category-rail__menu > li > a { display: inline-flex; align-items: center; min-height: 35px; padding: 6px 11px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-second); color: var(--text-muted); white-space: nowrap; }
.category-chip .mg-icon { width: 16px; height: 16px; }
.category-chip:hover, .category-chip.is-active, .category-rail__menu > li > a:hover, .category-rail__menu > .current-menu-item > a, .category-rail__menu > .current-menu-ancestor > a { background: var(--accent); border-color: var(--accent); color: #fff; }
.rail-fade { position: absolute; right: 10px; bottom: 15px; width: 42px; height: 35px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--bg-second)); }
.mobile-panel { display: none; }

/* Main layout and sidebar */
.main-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 10px; align-items: start; }
.main-column { min-width: 0; grid-column: 2; }
.site-sidebar { grid-column: 1; grid-row: 1; width: 220px; padding: 20px 10px 20px 0; box-sizing: border-box; }
.sidebar-sticky { position: sticky; top: 20px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 15px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.sidebar-nav__menu { display: flex; flex-direction: column; gap: 15px; margin: 0; padding: 0; list-style: none; }
.sidebar-nav a { display: flex; align-items: center; gap: 11px; color: var(--text-muted); }
.sidebar-nav a:hover, .sidebar-nav .current-menu-item > a, .sidebar-nav .current-menu-ancestor > a { color: var(--accent); }
.sidebar-nav .mg-icon { width: 18px; height: 18px; }
.sidebar-section { padding-top: 22px; }
.sidebar-section h3, .widget-title { margin-bottom: 13px; font-size: 14px; text-transform: uppercase; color: var(--text); letter-spacing: .5px; }
.sidebar-categories { display: flex; flex-direction: column; gap: 5px; }
.sidebar-categories__menu { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; list-style: none; }
.sidebar-categories a { display: flex; align-items: center; justify-content: space-between; min-height: 32px; color: var(--text-muted); }
.sidebar-categories a:hover, .sidebar-categories .current-menu-item > a { color: var(--accent); }
.sidebar-categories small { padding: 2px 7px; border-radius: 20px; background: var(--bg-second); color: var(--text-muted); }
.sidebar-widgets { margin-top: 24px; }
.widget { margin-bottom: 24px; color: var(--text-muted); }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { margin: 8px 0; }

/* Headings and grids */
.section-heading { min-height: 44px; margin-top: 16px; padding: 0 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading h1, .section-heading h2 { margin: 0; }
.section-heading h2 { font-size: 22px; }
.section-heading .mg-icon { width: 17px; height: 17px; }
.more-link { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); white-space: nowrap; }
.more-link:hover { color: var(--accent-dark); }
.result-count { color: var(--text-muted); }
.video-grid { display: grid; grid-template-columns: repeat(var(--mg-cols-desktop, 5), minmax(0, 1fr)); gap: 20px 8px; }
.video-card { position: relative; min-width: 0; }
.video-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: var(--mg-thumb-ratio, 16/9); border-radius: 4px; background: rgba(0, 0, 0, .13); }
.video-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.video-card__media:hover img { transform: scale(1.035); filter: brightness(.76); }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--bg-soft), var(--bg-second)); color: var(--accent); }
.video-placeholder span { font-size: 44px; font-weight: 900; opacity: .7; }
.video-card__play { position: absolute; inset: 50% auto auto 50%; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(233, 70, 82, .9); color: #fff; transform: translate(-50%, -42%) scale(.85); opacity: 0; transition: opacity .25s, transform .25s; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.video-card__play .mg-icon { width: 23px; height: 23px; margin-left: 2px; }
.video-card__media:hover .video-card__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-card__duration, .video-card__quality { position: absolute; z-index: 2; display: inline-flex; align-items: center; border-radius: 3px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 12px; font-weight: 700; }
.video-card__duration { right: 6px; bottom: 6px; gap: 4px; padding: 3px 6px; }
.video-card__duration .mg-icon { width: 12px; height: 12px; }
.video-card__quality { top: 6px; left: 6px; padding: 3px 7px; background: var(--accent); }
.video-card__body { min-width: 0; }
.video-card__title { margin: 10px 0 0; min-height: 21px; font-size: 16px; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.video-card__title a:hover { color: var(--accent); }
.video-card__stats { display: flex; align-items: center; gap: 12px; min-width: 0; margin-top: 5px; color: var(--text-muted); font-size: 13px; }
.video-card__stats span { display: inline-flex; align-items: center; gap: 4px; }
.video-card__stats .mg-icon { width: 13px; height: 13px; }
.video-card__stats time { margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-wide-ad { grid-column: 1 / -1; }
.grid-ad-card__media { cursor: default; }
.grid-ad-card .mg-ad { position: absolute; inset: 0; height: 100%; margin: 0; }
.grid-ad-card .mg-ad__label { position: absolute; right: 6px; bottom: 6px; z-index: 2; margin: 0; padding: 3px 6px; border-radius: 3px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 11px; letter-spacing: 0; }
.grid-ad-card .mg-ad__content { width: 100%; height: 100%; }
.grid-ad-card .mg-ad__content > *, .grid-ad-card .mg-ad__content iframe, .grid-ad-card .mg-ad__content img { width: 100% !important; height: 100% !important; max-width: none; border: 0; object-fit: cover; }

/* Ads */
.mg-ad { width: 100%; margin: 14px auto 20px; text-align: center; overflow: hidden; }
.mg-ad__label { margin-bottom: 6px; color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .9px; }
.mg-ad__content { max-width: 100%; overflow: hidden; }
.mg-ad__content img, .mg-ad__content iframe { max-width: 100%; }
.mg-ad--header_desktop { margin: 0; }
.mg-ad--header_desktop .mg-ad__label { display: none; }
.header-desktop-slot { max-width: 970px; padding: 0 10px 12px; }
.header-mobile-slot { display: none; max-width: 760px; padding: 0 10px; }
.footer-ad-zone { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-top: 24px; padding-bottom: 24px; }
.footer-ad-cell .mg-ad { margin: 0; }
.mg-ad--mobile { display: none; }
.reference-ad-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 300px)); justify-content: center; gap: 10px; margin: 28px 0; }
.reference-ad-cell { width: 100%; max-width: 300px; min-width: 0; margin: 0 auto; overflow: hidden; }
.reference-ad-cell .mg-ad { margin: 0; }
.reference-ad-cell .mg-ad__content { width: 100%; overflow: hidden; }
.reference-ad-cell .mg-ad__content iframe, .reference-ad-cell .mg-ad__content img { max-width: 100%; }
.sticky-ad-shell { position: fixed; right: 50%; bottom: 10px; z-index: 1200; width: min(760px, calc(100% - 24px)); transform: translateX(50%); padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-second); box-shadow: 0 10px 35px rgba(0, 0, 0, .45); }
.sticky-ad-shell[hidden] { display: none !important; }
.sticky-ad-shell .mg-ad { margin: 0; }
.sticky-ad-shell .mg-ad__label { display: none; }
.sticky-ad-close { position: absolute; top: -13px; right: -9px; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg-second); color: var(--text); box-shadow: var(--shadow); }
.sticky-ad-close .mg-icon { width: 15px; height: 15px; }
.sticky-ad-shell--mobile { display: none; }

/* Pagination and content */
.pagination { margin: 26px 0; }
.pagination > .page-numbers { margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; list-style: none; }
.pagination a, .pagination span { min-width: 46px; height: 46px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-second); color: var(--text-muted); }
.pagination .prev, .pagination .next { min-width: 112px; padding-left: 15px; padding-right: 15px; font-weight: 700; }
.pagination a:hover, .pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }
.seo-box, .page-card { margin: 26px 0; padding: clamp(20px, 3vw, 42px); border: 1px solid var(--line); border-radius: 7px; background: var(--bg-second); color: var(--text-muted); }
.seo-box { text-align: center; }
.seo-box > :last-child, .entry-content > :last-child { margin-bottom: 0; }
.entry-content { font-size: 16px; line-height: 1.7; color: var(--text-muted); }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; color: var(--text); }
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content iframe { max-width: 100%; }
.entry-content pre { overflow-x: auto; }
.page-wrap { max-width: 1100px; padding-top: 28px; padding-bottom: 36px; }
.page-header h1 { margin-bottom: 26px; color: var(--text); }
.empty-state { margin: 40px auto 70px; padding: 44px 20px; max-width: 650px; text-align: center; }
.empty-state__icon { width: 80px; height: 80px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-second); color: var(--accent); }
.empty-state__icon .mg-icon { width: 34px; height: 34px; }
.empty-state p { color: var(--text-muted); }
.button { min-height: 42px; padding: 10px 17px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 4px; font-weight: 700; }
.button-accent { background: var(--accent); color: #fff; }
.button-accent:hover { background: var(--accent-dark); color: #fff; }
.button-muted { background: var(--bg-soft); color: var(--text); }

/* Single video */
.single-wrap { padding-top: 18px; padding-bottom: 38px; }
.single-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.single-header h1 { margin: 5px 0 0; }
.single-header time { color: var(--text-muted); white-space: nowrap; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .55px; font-size: 12px; }
.player-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: stretch; margin-left: auto; margin-right: auto; }
.player-layout:not(.has-player-ad) { width: 100%; max-width: 1156px; }
.player-layout.has-player-ad { width: 100%; max-width: 1460px; grid-template-columns: minmax(0, 1fr) minmax(250px, 310px); }
.player-column { min-width: 0; }
.video-player { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.video-player > iframe, .video-player > video, .video-player > .wp-video, .video-player > .wp-video-shortcode { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; }
.video-player > div:not(.video-player-empty), .video-player > p { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.video-player iframe, .video-player video { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; border: 0; }
.video-player .fluid-width-video-wrapper, .video-player .wp-block-embed__wrapper { width: 100% !important; height: 100% !important; padding: 0 !important; }
.video-poster { position: absolute; inset: 0; }
.video-poster img { width: 100%; height: 100%; object-fit: contain; opacity: .8; }
.video-poster > span { position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; transform: translate(-50%, -50%); box-shadow: var(--shadow); }
.video-poster .mg-icon { width: 34px; height: 34px; }
.video-player-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #888; }
.video-player-empty .mg-icon { width: 56px; height: 56px; }
.player-ad-column { min-width: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-second), transparent 25%); }
.player-ad-column.has-ad { border: 0; background: transparent; }
.player-ad-column .mg-ad { margin: 0; }
.player-ad-placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: var(--text-muted); text-align: center; text-transform: uppercase; letter-spacing: 1px; }
.player-ad-placeholder::before { content: "AD"; width: 58px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; color: var(--text); font-size: 17px; font-weight: 800; }
.player-ad-placeholder small { color: var(--text-muted); font-size: 11px; letter-spacing: .5px; }
.video-actions { min-height: 64px; padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.video-metrics { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; color: var(--text-muted); }
.video-metrics span { display: inline-flex; align-items: center; gap: 6px; }
.video-metrics .mg-icon { width: 18px; height: 18px; }
.quality-pill { padding: 3px 8px; border-radius: 3px; background: var(--accent); color: #fff; font-weight: 800; }
.like-button { min-height: 42px; padding: 8px 14px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-second); color: var(--text); }
.like-button:hover, .like-button.is-liked { background: var(--accent); border-color: var(--accent); color: #fff; }
.like-button:disabled { cursor: default; opacity: .85; }
.like-button .mg-icon { width: 18px; height: 18px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 17px 0; }
.tag-list a { padding: 6px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-second); color: var(--text-muted); }
.tag-list a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.single-video .entry-content { max-width: 1100px; margin: 22px 0; }
.single-video .entry-content img, .single-video .entry-content figure.wp-block-image, .single-video .entry-content .wp-block-gallery { display: none !important; }
.related-section { margin-top: 24px; }
.suggested-extra-card[hidden] { display: none !important; }
.suggested-more-button { width: min(285px, calc(100% - 24px)); min-height: 44px; margin: 25px auto 0; padding: 0 20px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 3px; background: var(--accent); color: #fff; box-shadow: none; font-size: 12px; font-weight: 700; }
.suggested-more-button__text { overflow: hidden; color: #fff; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.suggested-more-button .mg-icon { width: 15px; height: 15px; flex: 0 0 auto; color: #fff; transform: rotate(90deg); transition: transform .2s; }
.suggested-more-button:hover { background: var(--accent-dark); color: #fff; }
.suggested-more-button.is-open .mg-icon { transform: rotate(-90deg); }

/* Comments */
.comments-area { width: 100%; max-width: none; margin: 46px 0 34px; }
.comment-list, .comment-respond { width: 100%; box-sizing: border-box; }
.comments-header { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.comments-header h2 { margin: 0 0 3px; font-size: 23px; }
.comments-header p { margin: 0; color: var(--text-muted); }
.comments-title-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: color-mix(in srgb, var(--accent), transparent 84%); color: var(--accent); }
.comments-title-icon .mg-icon { width: 23px; height: 23px; }
.comment-list { margin: 0 0 28px; padding: 0; list-style: none; }
.comment-list .children { margin: 0; padding-left: 36px; list-style: none; }
.comment-body { position: relative; margin: 12px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg-second); box-shadow: 0 4px 15px rgba(0, 0, 0, .05); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { color: var(--text-muted); font-weight: 400; }
.comment-metadata { margin: 4px 0 9px 58px; color: var(--text-muted); font-size: 12px; }
.comment-metadata a { color: var(--text-muted); }
.comment-content { margin-left: 58px; color: var(--text-muted); font-size: 15px; line-height: 1.65; }
.comment-content > :last-child { margin-bottom: 0; }
.comment-body .reply { margin: 12px 0 0 58px; }
.comment-reply-link { display: inline-flex; padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--accent); font-size: 12px; font-weight: 700; }
.comment-navigation { margin: 18px 0; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 12px; }
.comment-respond { margin-top: 24px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: 9px; background: var(--bg-second); box-shadow: var(--shadow); }
.comment-reply-title { margin: 0 0 7px; font-size: 23px; }
#cancel-comment-reply-link { margin-left: 8px; color: var(--accent); font-size: 12px; }
.comment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.comment-form p { margin: 0; }
.comment-form-intro, .comment-form-comment, .comment-form-cookies-consent, .logged-in-as, .must-log-in, .form-submit { grid-column: 1 / -1; }
.comment-form-intro, .logged-in-as, .must-log-in { color: var(--text-muted); }
.comment-form label { display: block; margin-bottom: 7px; color: var(--text); font-weight: 700; }
.comment-form .required { color: var(--accent); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 5px; outline: 0; background: var(--bg-input); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.comment-form textarea { min-height: 155px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 80%); }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 9px; color: var(--text-muted); }
.comment-form-cookies-consent input { margin-top: 4px; }
.comment-form-cookies-consent label { margin: 0; color: var(--text-muted); font-weight: 400; }
.comment-form .submit { min-height: 44px; padding: 9px 20px; border: 0; border-radius: 5px; background: var(--accent); color: #fff; font-weight: 800; transition: background .2s, transform .2s; }
.comment-form .submit:hover { background: var(--accent-dark); transform: translateY(-1px); }
.no-comments { padding: 14px 16px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg-second); color: var(--text-muted); }

/* 404 */
.not-found-wrap { padding-top: 50px; padding-bottom: 50px; }
.not-found { max-width: 680px; margin: 0 auto 55px; text-align: center; }
.not-found > strong { display: block; margin-bottom: -14px; color: var(--accent); font-size: clamp(86px, 14vw, 170px); line-height: 1; opacity: .16; }
.not-found p { color: var(--text-muted); }
.not-found .search-form { max-width: 520px; margin: 22px auto 14px; }

/* Footer */
.site-footer { flex: 0 0 auto; margin-top: 34px; padding: 28px 0; border-top: 1px solid var(--line); background: var(--bg-second); }
.footer-grid { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(420px, 2fr) minmax(150px, 1fr); gap: 24px; align-items: start; }
.footer-brand p { max-width: 320px; margin-top: 13px; color: var(--text-muted); }
.footer-links-wrapper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-link-column h3 { margin-bottom: 12px; font-size: 14px; text-transform: none; }
.footer-menu ul { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { color: var(--text-muted); }
.footer-menu a:hover { color: var(--accent); }
.footer-copy { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; color: var(--text-muted); text-align: right; }
.footer-rating-badge { width: 58px; height: 32px; display: grid; place-items: center; border: 2px solid var(--text-muted); border-radius: 4px; color: var(--text); font-size: 17px; font-weight: 900; }

/* Notices */
.cookie-notice { position: fixed; left: 50%; bottom: 16px; z-index: 1000; width: min(720px, calc(100% - 24px)); padding: 13px 15px; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-second); color: var(--text); box-shadow: var(--shadow); }
.cookie-notice[hidden], .age-gate[hidden] { display: none !important; }
.cookie-notice p { margin: 0; color: var(--text-muted); }
.age-gate { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px; background: rgba(12, 13, 19, .88); backdrop-filter: blur(9px); }
.age-gate__dialog { width: min(520px, 100%); padding: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-second); text-align: center; box-shadow: var(--shadow); }
.age-mark { width: 84px; height: 84px; margin: 0 auto 18px; display: grid; place-items: center; border: 3px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 27px; font-weight: 900; }
.age-gate__dialog p { color: var(--text-muted); }
.age-gate__actions { display: flex; justify-content: center; gap: 10px; }

@media (max-width: 1366px) {
  .header-actions, .header-brand { flex-basis: 200px; }
}

@media (max-width: 1024px) {
  .header-row { min-height: 68px; gap: 12px; }
  .header-brand { flex: 1 1 auto; }
  .header-search { width: min(560px, 58vw); }
  .header-actions { flex: 0 0 auto; }
  .main-layout { display: block; }
  .main-column { display: block; }
  .site-sidebar { display: none; }
  .video-grid { grid-template-columns: repeat(var(--mg-cols-tablet, 4), minmax(0, 1fr)); }
  .section-heading { margin-top: 12px; padding-bottom: 11px; }
  .footer-ad-zone { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-layout.has-player-ad { grid-template-columns: minmax(0, 1fr) 220px; }
  .footer-grid { grid-template-columns: minmax(170px, .8fr) minmax(0, 2fr); }
  .footer-copy { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
}

@media (max-width: 768px) {
  .header-row { min-height: 62px; }
  .custom-logo { max-width: 165px; max-height: 46px; }
  .brand-text { font-size: 25px; }
  .menu-toggle { display: grid; order: -1; }
  .header-search { display: none; }
  .header-actions { margin-left: auto; }
  .mobile-panel { display: block; max-height: 0; overflow: hidden; border-top: 0 solid var(--line); transition: max-height .3s ease, border-width .3s; }
  .mobile-panel.is-open { max-height: 620px; border-top-width: 1px; }
  .mobile-panel__inner { padding-top: 12px; padding-bottom: 16px; }
  .mobile-search { margin-bottom: 12px; }
  .mobile-menu ul { margin: 0; padding: 0; list-style: none; }
  .mobile-menu > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .mobile-menu a { display: block; padding: 9px 11px; border: 1px solid var(--line); border-radius: 4px; color: var(--text-muted); }
  .mobile-menu .sub-menu { display: none; }
  .category-rail { padding-bottom: 11px; }
  .rail-fade { bottom: 11px; }
  .header-mobile-slot { display: block; }
  .header-desktop-slot { display: none; }
  .mg-ad--desktop { display: none !important; }
  .mg-ad--mobile { display: block; }
	.sticky-ad-shell--desktop { display: none; }
	.sticky-ad-shell--mobile { display: block; }
	.sticky-ad-shell { width: min(340px, calc(100% - 18px)); }
  .video-card__title { font-size: 15px; }
  .video-card__stats time { display: none; }
  .single-header { align-items: flex-start; flex-direction: column; gap: 4px; }
  .single-header time { font-size: 12px; }
  .player-layout.has-player-ad { grid-template-columns: 1fr; }
  .player-ad-column.has-ad { min-height: 150px; }
  .player-ad-column.is-empty, .player-ad-column.ad-device-desktop { display: none; }
  .video-actions { align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-copy { grid-column: auto; }
}

@media (max-width: 650px) {
  .video-grid { grid-template-columns: repeat(var(--mg-cols-mobile, 2), minmax(0, 1fr)); row-gap: 18px; }
  .video-card__play { display: none; }
  .footer-ad-zone { grid-template-columns: 1fr; }
  .video-actions { align-items: stretch; flex-direction: column; }
  .like-button { align-self: flex-start; }
  .pagination .page-numbers { gap: 4px; }
  .pagination a, .pagination span { min-width: 40px; height: 40px; }
  .pagination .prev, .pagination .next { min-width: 98px; }
  .cookie-notice { align-items: stretch; flex-direction: column; }
  .comments-header { align-items: flex-start; }
  .comment-list .children { padding-left: 16px; }
  .comment-metadata, .comment-content, .comment-body .reply { margin-left: 0; }
  .comment-form { grid-template-columns: 1fr; }
  .comment-form-author, .comment-form-email { grid-column: 1 / -1; }
  .comment-form .submit { width: 100%; }
  .comments-area { margin-top: 34px; }
  .comment-respond { padding: 18px 16px; }
  .comment-body { padding: 15px; }
}

@media (max-width: 428px) {
  .wrap { padding-left: 8px; padding-right: 8px; }
  .header-row { gap: 8px; }
  .icon-button { width: 40px; height: 40px; }
  .header-brand { min-width: 0; }
  .brand-text { max-width: 190px; overflow: hidden; font-size: 22px; text-overflow: ellipsis; white-space: nowrap; }
  .video-card__title { -webkit-line-clamp: 2; }
  .video-card__stats time { display: block; }
  .section-heading h1, .section-heading h2 { font-size: 19px; }
  .result-count { display: none; }
  .more-link { font-size: 12px; }
  .footer-links-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-link-column:last-child { grid-column: 1 / -1; }
  .comments-header p { font-size: 13px; }
  .comments-title-icon { width: 42px; height: 42px; }
  .suggested-more-button { padding-left: 13px; padding-right: 13px; font-size: 11.5px; }
  .age-gate__dialog { padding: 26px 18px; }
  .age-gate__actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
