/*
Theme Name: JAWHARATI V3
Theme URI: https://rifsky.com
Author: MOHAMED JAWHARATI — RIFSKY WEB SOLUTIONS
Author URI: https://rifsky.com
Developer Email: mrjawharati@gmail.com
Developer WhatsApp: +212656585154
Description: قالب أخبار عربي سريع ومهيأ لمحركات البحث، يدعم RTL وLTR والوضع الليلي، ومتوافق مع Polylang وLiteSpeed Cache وYoast وRank Math. A fast, SEO-ready Arabic news theme with RTL/LTR, dark mode and Polylang, LiteSpeed Cache, Yoast and Rank Math support.
Version: 26
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jawharati
Tags: news, blog, rtl-language-support, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===== Fonts (self-hosted Almarai, SIL OFL) ===== */
@font-face{font-family:Almarai;font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/almarai-arabic-400-normal.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:Almarai;font-style:normal;font-weight:700;font-display:swap;src:url(assets/fonts/almarai-arabic-700-normal.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:Almarai;font-style:normal;font-weight:800;font-display:swap;src:url(assets/fonts/almarai-arabic-800-normal.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:Almarai;font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/almarai-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Almarai;font-style:normal;font-weight:700;font-display:swap;src:url(assets/fonts/almarai-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Almarai;font-style:normal;font-weight:800;font-display:swap;src:url(assets/fonts/almarai-latin-800-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ===== Variables ===== */
:root{
  --tmg-red:#c8102e;--tmg-red-d:#9e0c24;--tmg-green:#006233;
  --tmg-ink:#1f2328;--tmg-muted:#5f6672;--tmg-page:#fff;--tmg-soft:#f5f5f6;--tmg-line:#e7e7ea;--tmg-bg:#eceef1;
  --tmg-gap:14px;--tmg-r:12px;--tmg-r2:18px;--tmg-w:1100px;--tmg-canvas:#f3f4f6;
}
html.tmg-night{--tmg-ink:#eceef1;--tmg-muted:#9aa3ae;--tmg-page:#16181c;--tmg-soft:#1f2227;--tmg-line:#2c3037;--tmg-bg:#0e0f12;--tmg-canvas:#0e0f12;color-scheme:dark}

/* ===== Base ===== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:70px}
body{margin:0;font-family:var(--tmg-font,Almarai,system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif);font-size:15px;line-height:1.65;color:var(--tmg-ink);background:var(--tmg-page);text-rendering:optimizeLegibility}
body.tmg-boxed{background:var(--tmg-bg)}
h1,h2,h3,h4,h5,h6,.tmg-title,.tmg-entry-title,.tmg-page-title,.tmg-shead,.tmg-menu>li>a{font-family:var(--tmg-font-h,inherit)}
button,input,select,textarea{font-family:inherit}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
h1,h2,h3,h4,p,figure{margin:0}
ul,ol{margin:0;padding:0;list-style:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
:focus-visible{outline:2px solid var(--tmg-red);outline-offset:2px}
.tmg-ico{width:18px;height:18px;fill:currentColor;flex:none}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tmg-skip:focus{position:fixed!important;top:8px;inset-inline-start:8px;width:auto;height:auto;clip:auto;background:var(--tmg-page);padding:8px 14px;z-index:999;border-radius:8px}
.tmg-page{max-width:calc(var(--tmg-w) + 40px);margin:0 auto;background:var(--tmg-page)}
.tmg-boxed .tmg-page{box-shadow:0 0 30px #0000000d}
.tmg-wrap{padding-inline:20px}
.tmg-main{padding:14px 0 6px}

/* ===== Top bar ===== */
.tmg-topbar{background:var(--tmg-green);color:#fff;font-size:13px}
.tmg-topbar-in{display:flex;justify-content:space-between;align-items:center;min-height:36px;gap:10px}
.tmg-toplinks-menu{display:flex;flex-wrap:wrap;gap:2px}
.tmg-toplinks-menu a{display:block;padding:4px 10px;border-radius:5px;font-weight:700}
.tmg-toplinks-menu a:hover{background:#ffffff1f}
.tmg-soc{display:flex;gap:5px;flex-wrap:wrap}
.tmg-soc a{width:26px;height:26px;border-radius:50%;display:grid;place-items:center}
.tmg-soc .tmg-ico{width:13px;height:13px}
.tmg-topbar-soc a{background:#ffffff1f}
.tmg-topbar-soc a:hover{background:var(--tmg-red)}

/* ===== Header ===== */
.tmg-header{background:var(--tmg-page)}
.tmg-header-in{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:110px}
.tmg-logo{display:inline-flex;align-items:center}
.tmg-logo img{display:block;height:88px;width:auto;max-width:300px;object-fit:contain}
.tmg-logo-dark,html.tmg-night .tmg-logo-light{display:none!important}
html.tmg-night .tmg-logo-dark{display:block!important}
.tmg-sitename{font-size:2.2rem;font-weight:800;color:var(--tmg-green)}
.tmg-header-ad{flex:0 1 728px;max-width:728px;text-align:center}
.tmg-ad{overflow:hidden;text-align:center}
.tmg-ad img{display:inline-block}

/* ===== Navigation ===== */
.tmg-nav{position:sticky;top:0;z-index:40;background:var(--tmg-red);color:#fff;box-shadow:0 2px 8px #0002}
.admin-bar .tmg-nav,.admin-bar .tmg-mbar{top:32px}
.tmg-nav-in{display:flex;align-items:center;gap:4px;min-height:48px}
.tmg-burger{display:flex;padding:8px}
.tmg-burger .tmg-ico{width:22px;height:22px}
.tmg-menu{display:flex;flex:1;overflow-x:auto;scrollbar-width:none;white-space:nowrap}
.tmg-menu::-webkit-scrollbar{display:none}
.tmg-menu a{display:block;padding:13px 11px;font-weight:700;font-size:14.5px}
.tmg-menu .current-menu-item>a,.tmg-menu a:hover{box-shadow:inset 0 -3px 0 #fff}
.tmg-menu .sub-menu{display:none}
.tmg-tools,.tmg-mtools{display:flex;gap:6px;align-items:center;margin-inline-start:auto}
.tmg-night-toggle{width:34px;height:34px;display:grid;place-items:center;color:inherit;border-radius:50%;transition:background .2s}
.tmg-night-toggle:hover{background:#ffffff1f}
.tmg-night-toggle .tmg-ico{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tmg-sun{display:none}
html.tmg-night .tmg-sun{display:block}
html.tmg-night .tmg-moon{display:none}

/* Language switcher (Polylang) */
.tmg-lang{position:relative}
.tmg-lang-link{min-width:30px;height:27px;padding:0 6px;border-radius:9px;border:1.5px solid currentColor;display:inline-grid;place-items:center;font-size:11.5px;font-weight:700;letter-spacing:.6px;line-height:1;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:inherit;opacity:.92;transition:background .2s,opacity .2s}
.tmg-lang-link:hover,.tmg-lang-link:focus-visible{opacity:1;background:#ffffff1f}
.tmg-lang-list{position:absolute;top:calc(100% + 8px);inset-inline-end:-8px;min-width:150px;padding:6px;background:var(--tmg-page);color:var(--tmg-ink);border-radius:10px;box-shadow:0 10px 24px #0003;opacity:0;visibility:hidden;transform:translateY(-4px);transition:.18s;z-index:60}
.tmg-lang.is-open .tmg-lang-list{opacity:1;visibility:visible;transform:none}
.tmg-lang-list a{display:block;padding:7px 10px;border-radius:6px;font-weight:700;font-size:14px}
.tmg-lang-list a:hover{background:var(--tmg-soft)}
.tmg-lang-list a[lang^=fr],.tmg-lang-list a[lang^=en]{direction:ltr;text-align:left}

/* ===== Mobile header ===== */
.tmg-mbar,.tmg-mcats{display:none}
.tmg-ad-top{width:100%}

/* ===== Drawer ===== */
.tmg-shade{position:fixed;inset:0;background:#0008;z-index:90;animation:tmg-fade .2s}
@keyframes tmg-fade{from{opacity:0}}
.tmg-drawer{position:fixed;top:0;bottom:0;inset-inline-start:0;width:min(340px,88vw);background:var(--tmg-page);z-index:100;transform:translateX(105%);transition:transform .3s ease;display:flex;flex-direction:column;visibility:hidden}
[dir=ltr] .tmg-drawer{transform:translateX(-105%)}
.tmg-drawer-open .tmg-drawer{transform:none;visibility:visible}
.tmg-drawer-open{overflow:hidden}
.tmg-drawer-head{display:flex;justify-content:space-between;align-items:center;background:var(--tmg-red);color:#fff;padding:10px 14px;min-height:52px}
.tmg-drawer-head>button{display:flex;padding:4px}
.tmg-drawer-soc a{background:#fff;color:var(--tmg-red)}
.tmg-drawer-body{padding:14px;overflow-y:auto}
.tmg-drawer-title{font-weight:800;padding-bottom:8px;border-bottom:2px solid var(--tmg-line);margin:14px 0 4px}
.tmg-drawer-menu a{display:block;padding:9px 0;border-bottom:1px dashed var(--tmg-line);font-weight:700}
.tmg-drawer-menu .sub-menu{padding-inline-start:14px}
.tmg-drawer-menu .sub-menu a{font-weight:400}

/* Search form */
.tmg-searchform{display:flex;gap:6px}
.tmg-searchform input{flex:1;min-width:0;padding:10px 12px;border:1px solid var(--tmg-line);border-radius:8px;background:var(--tmg-soft)}
.tmg-searchform input:focus{outline:none;border-color:var(--tmg-red)}
.tmg-searchform button{width:44px;border-radius:8px;background:var(--tmg-red);color:#fff;display:grid;place-items:center}

/* ===== News ticker ===== */
.tmg-ticker{display:flex;align-items:center;margin-top:12px;border:1px solid var(--tmg-line);border-radius:10px;overflow:hidden;background:var(--tmg-soft);height:42px}
.tmg-ticker-label{background:var(--tmg-red);color:#fff;height:100%;display:flex;align-items:center;gap:8px;padding:0 14px;white-space:nowrap;font-size:14px;font-weight:800;flex:none}
.tmg-live{width:8px;height:8px;border-radius:50%;background:#fff;animation:tmg-pulse 1.2s infinite}
@keyframes tmg-pulse{50%{opacity:.25}}
.tmg-ticker-track{flex:1;overflow:hidden}
.tmg-ticker-move{display:flex;align-items:center;gap:16px;width:max-content;animation:tmg-tick 60s linear infinite;font-weight:700;font-size:14px;white-space:nowrap}
.tmg-ticker-dup{display:flex;align-items:center;gap:16px}
.tmg-ticker:hover .tmg-ticker-move,.tmg-ticker:focus-within .tmg-ticker-move{animation-play-state:paused}
@keyframes tmg-tick{from{transform:translateX(0)}to{transform:translateX(50%)}}
[dir=ltr] .tmg-ticker-move{animation-name:tmg-tick-ltr}
@keyframes tmg-tick-ltr{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.tmg-tdot{width:10px;height:10px;border-radius:50%;background:var(--tmg-red);display:inline-block;flex:none}

/* ===== Boxes, section heads, cards ===== */
.tmg-box{background:var(--tmg-page);border:1px solid var(--tmg-line);border-radius:var(--tmg-r);padding:0 10px 10px;box-shadow:0 2px 6px #0000000a;min-width:0}
.tmg-shead{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--tmg-red);color:#fff;margin:0 -10px 10px;padding:9px 14px;border-radius:var(--tmg-r) var(--tmg-r) 0 0}
.tmg-shead h2,.tmg-shead .widget-title{font-size:1.08rem;font-weight:800;line-height:1.4;margin:0}
.tmg-dots{display:flex;gap:4px;padding:6px}
.tmg-dots i{width:6px;height:6px;border-radius:50%;background:#fff}
.tmg-media{position:relative;overflow:hidden;border-radius:8px;aspect-ratio:16/9;background:#0c0d10 url(assets/img/placeholder.svg) center/cover no-repeat}
.tmg-media img{width:100%;height:100%;object-fit:contain;display:block;transition:transform .4s}
.tmg-media.is-ld,.tmg-entry-thumb img.is-ld{background-image:none}
.tmg-card:hover .tmg-media img,.tmg-row:hover .tmg-media img{transform:scale(1.04)}
.tmg-noimg{display:block;width:100%;height:100%}
.tmg-badge{position:absolute;top:10px;inset-inline-start:10px;background:var(--tmg-red);color:#fff;font-size:12px;font-weight:700;padding:2px 10px;border-radius:6px;z-index:2}
.tmg-play{position:absolute;bottom:8px;inset-inline-start:8px;width:38px;height:38px;border-radius:50%;border:2px solid #fff;background:#0007;color:#fff;display:grid;place-items:center;z-index:2}
.tmg-play .tmg-ico{width:16px;height:16px}
.tmg-card{position:relative;min-width:0}
.tmg-card .tmg-title{font-size:14.5px;font-weight:700;line-height:1.55;margin-top:8px}
.tmg-card .tmg-title a::after{content:"";position:absolute;inset:0;z-index:1}
.tmg-meta{position:relative;z-index:2;font-size:12px;color:var(--tmg-muted);display:flex;flex-wrap:wrap;gap:5px;margin-top:4px}
.tmg-meta .tmg-cat{color:var(--tmg-red);font-weight:700}
.tmg-excerpt{font-size:13.5px;color:var(--tmg-muted);margin-top:4px}
.tmg-card--big .tmg-media{aspect-ratio:16/9}
.tmg-card--big .tmg-title{font-size:1.15rem;font-weight:800;margin-top:10px}
.tmg-card--video .tmg-title{font-size:13.5px}
.tmg-row{position:relative;display:flex;gap:10px;align-items:flex-start}
.tmg-row .tmg-media{width:120px;flex:none}
.tmg-row .tmg-title{font-size:13.5px;font-weight:700;line-height:1.55}
.tmg-row .tmg-title a::after{content:"";position:absolute;inset:0;z-index:1}
.tmg-grid{display:grid;gap:12px;grid-template-columns:1fr}
@media(min-width:640px){.tmg-g2,.tmg-g3,.tmg-g4{grid-template-columns:repeat(2,1fr)}.tmg-g3{grid-template-columns:repeat(3,1fr)}}
@media(min-width:992px){.tmg-g4{grid-template-columns:repeat(4,1fr)}}
.tmg-mt{margin-top:12px}
.tmg-stack,.tmg-vlist{display:grid;gap:12px}
.tmg-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--tmg-red);color:#fff;padding:9px 18px;border-radius:999px;font-weight:700}
.tmg-btn:hover{background:var(--tmg-red-d)}
.tmg-btn .tmg-ico{width:16px;height:16px}

/* ===== Home: hero (24h | slider | video, picks under 24h + slider) ===== */
.tmg-hero{display:grid;gap:var(--tmg-gap);grid-template-columns:minmax(0,1fr)}
.tmg-hero>*{min-width:0}
.tmg-hs{order:0}.tmg-hpicks{order:1}.tmg-latest{order:2}.tmg-hvid{order:4}
@media(min-width:992px){
  .tmg-hero{grid-template-columns:305px minmax(0,1fr) 195px;grid-template-rows:auto 1fr}
  .tmg-latest{grid-column:1;grid-row:1;display:flex;flex-direction:column}
  .tmg-latest .tmg-timeline{flex:1 1 0;min-height:0;max-height:none}
  .tmg-hs{grid-column:2;grid-row:1}
  .tmg-hvid{grid-column:3;grid-row:1/3}
  .tmg-hpicks{grid-column:1/3;grid-row:2}
  .tmg-hvid .tmg-vlist{grid-template-columns:1fr;gap:0}
  .tmg-hvid .tmg-card+.tmg-card{margin-top:12px;padding-top:12px;border-top:1px solid var(--tmg-line)}
  .tmg-hpicks .tmg-media{aspect-ratio:16/9}
  .tmg-hpicks .tmg-title{font-size:14px}
}
/* Video cards: image, outlined play button in the corner, title under the image */
.tmg-hvid .tmg-media,.tmg-tnd .tmg-media{border-radius:14px;aspect-ratio:16/9}
.tmg-hvid .tmg-play,.tmg-tnd .tmg-play{inset-inline-start:auto;inset-inline-end:10px;bottom:10px;width:42px;height:42px;background:#00000026;border:2px solid #fff;box-shadow:0 2px 10px #0000004d;transition:background .2s,border-color .2s,transform .2s}
.tmg-hvid .tmg-play .tmg-ico,.tmg-tnd .tmg-play .tmg-ico{width:16px;height:16px}
.tmg-hvid .tmg-card:hover .tmg-play,.tmg-tnd .tmg-card:hover .tmg-play{background:var(--tmg-red);border-color:var(--tmg-red);transform:scale(1.06)}
.tmg-hvid .tmg-title,.tmg-tnd .tmg-title{font-size:13.5px;font-weight:800;line-height:1.6;margin-top:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tmg-tnd .tmg-badge{top:8px;inset-inline-start:auto;inset-inline-end:auto;right:8px;left:auto;bottom:auto;border-radius:999px;font-size:11px;background:var(--tmg-green);color:#fff;padding:2px 10px}

@media(max-width:767px){.tmg-hvid .tmg-play{width:34px;height:34px;bottom:8px;inset-inline-end:8px}.tmg-hvid .tmg-play .tmg-ico{width:13px;height:13px}.tmg-hvid .tmg-title{font-size:12.5px}.tmg-tnd{padding:14px}.tmg-tnd-head h2{font-size:1.3rem}}

/* Dark media band */
.tmg-tnd{background:radial-gradient(circle at 85% 0,#0f6e3a 0,transparent 58%),linear-gradient(160deg,#0f6e3a,#052e16);color:#fff;border-radius:var(--tmg-r2);padding:18px;box-shadow:0 10px 26px #0000002e}
.tmg-tnd-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #ffffff1a}
.tmg-tnd-kicker{display:inline-block;background:var(--tmg-red);color:#fff;font-size:12px;font-weight:800;padding:3px 11px;border-radius:999px}
.tmg-tnd-head h2{font-size:1.6rem;font-weight:800;margin-top:6px;color:#fff}
.tmg-tnd-all{flex:none;font-size:12.5px;font-weight:700;color:#ffffffcc;background:#ffffff14;padding:5px 12px;border-radius:999px;white-space:nowrap}
.tmg-tnd-all:hover{background:#ffffff26;color:#fff}
.tmg-tnd .tmg-title a{color:#fff}

/* Square sidebar ad (stays in view while scrolling) */
.tmg-side{align-self:stretch}
.tmg-sad{text-align:center}
.tmg-sad-label{display:block;font-size:11px;color:var(--tmg-muted);margin-bottom:8px;letter-spacing:.3px}
.tmg-sad-in{width:100%;max-width:300px;margin-inline:auto;overflow:hidden}
.tmg-sad img,.tmg-sad iframe{display:block;max-width:100%;height:auto;margin-inline:auto;border-radius:0}
.tmg-sad-empty{aspect-ratio:1/1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:repeating-linear-gradient(45deg,var(--tmg-soft) 0 12px,var(--tmg-line) 12px 24px);color:var(--tmg-muted);font-weight:800;font-size:1.2rem;direction:ltr}
.tmg-sad-empty small{font-size:11px;font-weight:700;direction:rtl;padding:0 12px;line-height:1.6}
@media(min-width:992px){.tmg-sad{position:sticky;top:76px}}

/* 24 hours: vertical timeline */
.tmg-timeline{position:relative;max-height:380px;overflow-y:auto;padding-inline-start:18px;scrollbar-width:thin;scrollbar-color:var(--tmg-line) transparent}
.tmg-timeline::before{content:"";position:absolute;top:10px;bottom:10px;inset-inline-start:4px;width:2px;background:var(--tmg-line)}
.tmg-timeline li{position:relative;padding:2px 0;margin:0;font-size:13.5px;font-weight:700;line-height:1.4}
.tmg-timeline li::before{content:"";position:absolute;inset-inline-start:-18px;top:6px;width:10px;height:10px;border-radius:50%;background:var(--tmg-page);border:2px solid var(--tmg-red);box-sizing:border-box}
.tmg-timeline li:first-child::before{background:var(--tmg-red)}
.tmg-timeline time{display:block;color:var(--tmg-red);font-weight:800;font-size:12px;line-height:1.2;margin:0;direction:ltr;text-align:start}
[dir=rtl] .tmg-timeline time{text-align:right}

/* Slider: one slide at a time (transform based, never shows a piece of the next slide) */
.tmg-slider{position:relative;border-radius:var(--tmg-r2);overflow:hidden;background:#111;isolation:isolate}
.tmg-slides{display:flex;transition:transform .55s cubic-bezier(.4,0,.2,1);will-change:transform;touch-action:pan-y}
.tmg-slide{position:relative;flex:0 0 100%;min-width:0;overflow:hidden;background:#0c0d10}
/* 16:9 frame = same ratio as the site's images (1200x675, 650x366…), so the whole image shows, no crop. */
.tmg-slide .tmg-media{border-radius:0;aspect-ratio:16/9;background-color:#0c0d10}
.tmg-slide .tmg-media img{object-fit:contain}
.tmg-slide:hover .tmg-media img{transform:none}
.tmg-hero{align-items:start}
@media(min-width:992px){.tmg-latest{align-self:stretch}.tmg-hvid{align-self:stretch}.tmg-hpicks{align-self:stretch}}
.tmg-cap{position:absolute;inset:auto 0 0 0;padding:50px 20px 36px;background:linear-gradient(transparent,#000000c7 60%);color:#fff}
.tmg-cap .tmg-badge{position:static;display:inline-block;border-radius:999px}
.tmg-cap time{display:block;font-size:12px;opacity:.8;margin-top:6px}
.tmg-cap .tmg-title{font-size:1.15rem;font-weight:800;line-height:1.5;margin-top:6px;text-shadow:0 1px 8px #00000080;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tmg-cap .tmg-title a::after{content:"";position:absolute;inset:0}
.tmg-sdots{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;z-index:3}
.tmg-sdots button{width:10px;height:10px;padding:0;border-radius:50%;background:#ffffff73;border:1.5px solid #ffffffcc;transition:transform .25s,background .25s,border-color .25s}
.tmg-sdots button.is-on{background:var(--tmg-red);border-color:var(--tmg-red);transform:scale(1.25)}

/* Mobile feed (phones only) */
.tmg-mfeed{display:none}
.tmg-mcard{position:relative;border-radius:var(--tmg-r);overflow:hidden;background:#111}
.tmg-mcard .tmg-media{border-radius:0;aspect-ratio:16/9;background-color:#0c0d10}
.tmg-mcard .tmg-media img{object-fit:contain}
.tmg-mcard-cap{position:absolute;inset:auto 0 0 0;padding:34px 12px 10px;background:linear-gradient(180deg,transparent 0,#0000008c 40%,#000000cc 100%);color:#fff}
.tmg-mcard time{display:block;font-size:11px;opacity:.85;margin-bottom:2px}
.tmg-mcard .tmg-title{font-size:.9rem;font-weight:800;line-height:1.55;text-shadow:0 1px 6px #00000080}
.tmg-mcard .tmg-title a::after{content:"";position:absolute;inset:0;z-index:1}

/* ===== Home: featured program ===== */
.tmg-program{margin:18px 0;background:radial-gradient(circle at 85% 0,#3a0a12 0,#120507 55%),#120507;color:#fff;padding:26px 0;position:relative;overflow:hidden}
.tmg-program::before,.tmg-flag{content:"";display:block;height:4px;background:linear-gradient(90deg,var(--tmg-red) 50%,var(--tmg-green) 50%)}
.tmg-program::before{position:absolute;inset:0 0 auto 0}
.tmg-pg-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:18px;flex-wrap:wrap}
.tmg-pg-kicker{display:inline-block;background:var(--tmg-green);font-size:12px;font-weight:700;padding:2px 10px;border-radius:999px;margin-bottom:6px}
.tmg-pg-head h2{font-size:2rem;font-weight:800;line-height:1.3}
.tmg-pg-head p{opacity:.75;font-size:14px;margin-top:4px;max-width:640px}
.tmg-pg-all{border:1px solid #ffffff55;padding:8px 16px;border-radius:999px;font-weight:700;white-space:nowrap}
.tmg-pg-all:hover{background:#fff;color:#120507}
.tmg-pg-grid{display:grid;gap:16px;grid-template-columns:1fr}
@media(min-width:992px){.tmg-pg-grid{grid-template-columns:1.25fr 1fr}}
.tmg-ep{position:relative}
.tmg-ep .tmg-media{border:1px solid #ffffff1f;background-color:#ffffff0d}
.tmg-ep .tmg-title{font-size:14px;font-weight:700;margin-top:8px;line-height:1.55}
.tmg-ep .tmg-title a::after{content:"";position:absolute;inset:0;z-index:1}
.tmg-ep-no,.tmg-ep-time,.tmg-ep-live{position:absolute;top:8px;font-size:12px;font-weight:800;padding:2px 9px;border-radius:5px;z-index:2}
.tmg-ep-no{inset-inline-start:8px;background:var(--tmg-red)}
.tmg-ep-time,.tmg-ep-live{inset-inline-end:8px;background:#000a}
.tmg-ep-live{background:var(--tmg-green);border-radius:999px;padding:3px 11px}
.tmg-ep .tmg-ep-live{inset-inline-end:auto;inset-inline-start:auto;right:8px;left:auto}
.tmg-ep--big .tmg-media{aspect-ratio:16/9}
.tmg-ep--big .tmg-play{width:64px;height:64px;inset:50% auto auto 50%;transform:translate(-50%,-50%);background:var(--tmg-red);border:0;box-shadow:0 0 0 8px #c8102e44}
.tmg-ep--big .tmg-play .tmg-ico{width:26px;height:26px}
.tmg-ep--big .tmg-title{font-size:1.25rem;font-weight:800;margin:12px 0 14px}
.tmg-ep--big .tmg-btn{position:relative;z-index:2}
.tmg-ep-list{display:grid;gap:14px;grid-template-columns:1fr 1fr;align-content:start}

/* ===== Home: main + side ===== */
.tmg-hero+.tmg-wrap{margin-top:var(--tmg-gap)}
.tmg-layout{display:grid;gap:var(--tmg-gap);grid-template-columns:1fr}
@media(min-width:992px){.tmg-layout{grid-template-columns:minmax(0,1fr) 320px;align-items:start}}
.tmg-mainc,.tmg-side{display:grid;gap:var(--tmg-gap);min-width:0;align-content:start}
.tmg-split{display:grid;gap:12px}
@media(min-width:640px){.tmg-split{grid-template-columns:1.1fr 1fr}}
.tmg-duo{gap:var(--tmg-gap)}
.tmg-most li{display:flex;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--tmg-line);font-size:14px;font-weight:700;line-height:1.5}
.tmg-most li:last-child{border:0}
.tmg-most b{flex:none;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--tmg-soft);color:var(--tmg-red);font-size:1.05rem;border:2px solid var(--tmg-red)}
.tmg-most li:first-child b{background:var(--tmg-red);color:#fff}

/* Rising / falling */
.tmg-ud-list{display:grid;gap:14px;padding-top:4px}
.tmg-ud{position:relative;display:flex;gap:12px;align-items:center}
.tmg-ud-img{position:relative;flex:none;width:72px;height:72px}
.tmg-ud-img img,.tmg-ud-img .tmg-noimg{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block;background:var(--tmg-soft)}
.tmg-ud-img i{position:absolute;bottom:-4px;left:50%;transform:translateX(-50%);width:24px;height:24px;border-radius:50%;display:grid;place-items:center;color:#fff;background:#16a34a;border:2px solid var(--tmg-page)}
.tmg-ud-img i .tmg-ico{width:14px;height:14px}
.tmg-ud--down .tmg-ud-img i{background:#e11d48}
.tmg-ud--down .tmg-ud-img i .tmg-ico{transform:rotate(180deg)}
.tmg-ud .tmg-title{font-size:14px;font-weight:800;line-height:1.5}
.tmg-ud .tmg-title a::after{content:"";position:absolute;inset:0}
.tmg-ud p{font-size:12.5px;color:var(--tmg-muted);line-height:1.6;margin-top:2px}
.tmg-hint{font-size:13px;color:var(--tmg-muted);padding:4px 2px}

/* ===== Opinion (above footer) ===== */
.tmg-opinion{background:var(--tmg-soft);padding:28px 0 34px;margin-top:18px;position:relative}
.tmg-opinion::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 10% 0,#c8102e14,transparent 45%),radial-gradient(circle at 90% 100%,#00623314,transparent 45%);pointer-events:none}
.tmg-op-head{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:18px;position:relative}
.tmg-op-kicker{display:inline-block;color:var(--tmg-green);font-weight:800;font-size:13px}
.tmg-op-kicker::before{content:"";display:inline-block;width:22px;height:3px;background:var(--tmg-red);vertical-align:middle;margin-inline-end:8px;border-radius:2px}
.tmg-op-head h2{font-size:1.8rem;font-weight:800}
.tmg-op-all{font-weight:700;color:var(--tmg-red);border-bottom:2px solid var(--tmg-red);padding-bottom:2px}
.tmg-op-grid{display:grid;gap:16px;grid-template-columns:1fr;position:relative}
@media(min-width:640px){.tmg-op-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:992px){.tmg-op-grid{grid-template-columns:repeat(4,1fr)}}
.tmg-opc{position:relative;background:var(--tmg-page);border-radius:14px;padding:18px 16px 14px;border:1px solid var(--tmg-line);border-bottom:4px solid var(--tmg-red);display:flex;flex-direction:column;gap:8px;transition:transform .25s,box-shadow .25s;overflow:hidden}
.tmg-opc:nth-child(even){border-bottom-color:var(--tmg-green)}
.tmg-opc:hover{transform:translateY(-4px);box-shadow:0 12px 24px #0000001a}
.tmg-opc-top{position:relative;margin:-18px -16px 6px}
.tmg-opc-top .tmg-media{border-radius:0;aspect-ratio:16/9}
.tmg-opc-q{position:absolute;bottom:-20px;inset-inline-start:16px;width:44px;height:44px;border-radius:50%;background:var(--tmg-red);color:#fff;display:grid;place-items:center;font-family:Georgia,serif;font-size:2.4rem;line-height:1;padding-top:14px;border:3px solid var(--tmg-page);z-index:2}
.tmg-opc:nth-child(even) .tmg-opc-q{background:var(--tmg-green)}
.tmg-opc .tmg-title{font-size:1.02rem;font-weight:800;line-height:1.55;margin-top:10px}
.tmg-opc .tmg-title a::after{content:"";position:absolute;inset:0;z-index:1}
.tmg-opc p{font-size:13px;color:var(--tmg-muted);line-height:1.7;flex:1}
.tmg-opc-foot{display:flex;justify-content:space-between;align-items:center;border-top:1px dashed var(--tmg-line);padding-top:8px;font-size:12px}
.tmg-opc-foot time{color:var(--tmg-muted)}
.tmg-opc-foot a{color:var(--tmg-red);font-weight:800}
.tmg-opc:nth-child(even) .tmg-opc-foot a{color:var(--tmg-green)}

/* ===== Footer ===== */
.tmg-foot{background:#141414;color:#e5e5e5;margin-top:18px}
.tmg-opinion+.tmg-foot{margin-top:0}
.tmg-foot-in{display:flex;flex-wrap:wrap;gap:28px;padding-block:30px}
.tmg-foot-in>div{flex:1 1 180px}
.tmg-foot-in>.tmg-foot-about{flex:1.5 1 260px}
.tmg-flogo{display:inline-block;background:#fff;border-radius:10px;padding:8px 12px}
.tmg-flogo img{display:block;height:58px;width:auto}
.tmg-flogo .tmg-sitename{font-size:1.6rem}
.tmg-flogo.is-custom{background:none;padding:0}
.tmg-foot-about p{font-size:13.5px;opacity:.78;margin:12px 0}
.tmg-foot-soc a{width:34px;height:34px;background:#ffffff14}
.tmg-foot-soc a:hover{background:var(--tmg-red)}
.tmg-foot-soc .tmg-ico{width:16px;height:16px}
.tmg-foot-title{display:inline-block;font-weight:800;margin-bottom:10px;padding-bottom:8px;border-bottom:2px solid var(--tmg-red)}
.tmg-foot-menu a{display:inline-block;padding:3px 0;font-size:14px;opacity:.85;transition:transform .2s}
.tmg-foot-menu a:hover{transform:translateX(-4px)}
[dir=ltr] .tmg-foot-menu a:hover{transform:translateX(4px)}
.tmg-foot-latest li{padding:8px 0;border-bottom:1px solid #ffffff1a}
.tmg-foot-latest li:last-child{border:0}
.tmg-foot-latest a{display:block;font-size:13.5px;font-weight:700;line-height:1.5}
.tmg-foot-latest time{font-size:11.5px;opacity:.6}
.tmg-copy{background:#0a0a0a;font-size:13px}
.tmg-copy-in{display:flex;justify-content:center;text-align:center;padding-block:12px;opacity:.85}
.tmg-copy-menu{display:flex;gap:14px;flex-wrap:wrap}
.tmg-mfoot{display:none}
.tmg-totop{position:fixed;bottom:16px;inset-inline-end:16px;width:44px;height:44px;border-radius:10px;background:var(--tmg-red);color:#fff;display:grid;place-items:center;z-index:50;opacity:0;visibility:hidden;transition:.25s}
.tmg-totop.is-visible{opacity:1;visibility:visible}

/* ===== Single, pages, archives ===== */
.tmg-single{display:grid;gap:var(--tmg-gap);grid-template-columns:1fr}
@media(min-width:992px){.tmg-single{grid-template-columns:minmax(0,1fr) 320px;align-items:start}.tmg-aside{position:sticky;top:64px}}
.tmg-single-col,.tmg-aside{display:grid;gap:var(--tmg-gap);min-width:0;align-content:start}
.tmg-article{padding:18px 20px 20px}
.tmg-crumbs{display:flex;flex-wrap:wrap;gap:6px;font-size:13px;color:var(--tmg-muted);margin-bottom:8px}
.tmg-crumbs a{color:var(--tmg-red);font-weight:700}
.tmg-entry-title{font-size:1.75rem;font-weight:800;line-height:1.45;margin-bottom:14px}
.tmg-entry-thumb{margin:0 -20px 14px;overflow:hidden}
.tmg-entry-thumb img{width:100%;height:auto;display:block;background:#0c0d10 url(assets/img/placeholder.svg) center/cover no-repeat}
.tmg-entry-thumb figcaption{background:var(--tmg-soft);padding:8px 20px;font-size:13px;color:var(--tmg-muted)}
.tmg-byline{display:flex;flex-direction:column;gap:4px;margin:16px 0 18px;padding:0;border:0}
.tmg-byline>a,.tmg-byline-name{color:var(--tmg-red);font-weight:800;font-size:1.35rem;line-height:1.3}
.tmg-byline-date{display:flex;align-items:center;flex-wrap:wrap;gap:6px;color:var(--tmg-muted);font-size:14px}
.tmg-byline-date .tmg-ico{width:16px;height:16px}
/* Text size control (articles) */
.tmg-byline-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:16px 0 18px}
.tmg-byline-row .tmg-byline{margin:0}
.tmg-fsz{display:inline-flex;align-items:center;gap:2px;flex-shrink:0;padding:3px;border:1px solid var(--tmg-line);border-radius:999px;background:var(--tmg-page);box-shadow:0 1px 2px rgba(0,0,0,.04)}
.tmg-fsz-btn{display:inline-flex;align-items:center;justify-content:center;gap:1px;width:38px;height:32px;border:0;border-radius:999px;background:transparent;color:var(--tmg-ink);font:inherit;font-weight:800;line-height:1;cursor:pointer;transition:background .2s,color .2s}
.tmg-fsz-btn span:last-child{font-size:13px;color:var(--tmg-red)}
.tmg-fsz-a{font-size:19px}.tmg-fsz-a.is-s{font-size:14px}
@media(hover:hover){.tmg-fsz-btn:hover:not(:disabled){background:var(--tmg-red);color:#fff}.tmg-fsz-btn:hover:not(:disabled) span{color:#fff}}
.tmg-fsz-btn:active:not(:disabled){background:var(--tmg-red);color:#fff}.tmg-fsz-btn:active:not(:disabled) span{color:#fff}
.tmg-fsz-btn:focus-visible{outline:2px solid var(--tmg-red);outline-offset:2px}
.tmg-fsz-btn:disabled{opacity:.35;cursor:default}
.tmg-fsz-bar{display:inline-flex;align-items:flex-end;gap:3px;padding:0 6px;height:16px}
.tmg-fsz-bar i{width:4px;border-radius:2px;background:var(--tmg-line);transition:background .2s}
.tmg-fsz-bar i:nth-child(-n+2){background:var(--tmg-red)}
.tmg-fsz-bar i:nth-child(1){height:6px}.tmg-fsz-bar i:nth-child(2){height:8px}.tmg-fsz-bar i:nth-child(3){height:10px}.tmg-fsz-bar i:nth-child(4){height:13px}.tmg-fsz-bar i:nth-child(5){height:16px}
@media print{.tmg-fsz{display:none}}

.tmg-share{display:flex;flex-wrap:wrap;gap:6px}
.tmg-share a,.tmg-share button{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:#fff}
.tmg-share .tmg-ico{width:16px;height:16px}
.tmg-share button{background:var(--tmg-green)}
.tmg-share .tmg-print{background:var(--tmg-red)}
.tmg-share .is-done{background:#16a34a}
.tmg-share a:hover,.tmg-share button:hover{opacity:.85}
.tmg-entry-content{font-size:calc(1.07rem * var(--tmg-fs,1));line-height:1.95;overflow-wrap:break-word}
.tmg-entry-content :is(span,strong,b,em,i,u,a,font)[style*="font"],.tmg-entry-content font{font-family:inherit!important;font-size:inherit!important;line-height:inherit!important}
.tmg-entry-content>*+*{margin-top:1.1em}
.tmg-entry-content a{color:var(--tmg-red);font-weight:700;text-decoration:none}
.tmg-entry-content a:hover,.tmg-entry-content a:focus-visible{text-decoration:underline;text-underline-offset:3px}
.tmg-entry-content h2,.tmg-entry-content h3,.tmg-entry-content h4{font-weight:800;line-height:1.5;margin-top:1.5em}
.tmg-entry-content h2{font-size:1.35rem;padding-inline-start:12px;border-inline-start:4px solid var(--tmg-red)}
.tmg-entry-content h3{font-size:1.15rem}
.tmg-entry-content ul,.tmg-entry-content ol{padding-inline-start:1.5em}
.tmg-entry-content ul{list-style:disc}.tmg-entry-content ol{list-style:decimal}
.tmg-entry-content li+li{margin-top:.35em}
.tmg-entry-content img{border-radius:8px}
.tmg-entry-content figcaption,.tmg-entry-content .wp-caption-text{font-size:13px;color:var(--tmg-muted);text-align:center;margin-top:6px}
.tmg-entry-content iframe,.tmg-entry-content video{max-width:100%;border:0;border-radius:8px}
.tmg-entry-content .wp-block-embed iframe{width:100%;aspect-ratio:16/9;height:auto}
.tmg-entry-content blockquote{position:relative;margin-inline:0;padding:16px 56px 16px 18px;background:var(--tmg-soft);border-radius:10px;font-weight:700}
[dir=ltr] .tmg-entry-content blockquote{padding:16px 18px 16px 56px}
.tmg-entry-content blockquote::before{content:"”";position:absolute;inset-inline-start:14px;top:2px;font-family:Georgia,serif;font-size:3.4rem;line-height:1;color:var(--tmg-red)}
.tmg-entry-content table{width:100%;border-collapse:collapse;font-size:.95rem}
.tmg-entry-content .wp-block-table{overflow-x:auto}
.tmg-entry-content th,.tmg-entry-content td{border:1px solid var(--tmg-line);padding:8px;text-align:start}
.tmg-entry-content th{background:var(--tmg-soft)}
.tmg-entry-content pre,.tmg-entry-content code{direction:ltr;text-align:left;font-family:ui-monospace,Consolas,monospace;font-size:.88rem}
.tmg-entry-content pre{background:var(--tmg-soft);padding:14px;border-radius:8px;overflow-x:auto}
.tmg-entry-content .alignleft{float:left;margin:0 1rem 1rem 0}
.tmg-entry-content .alignright{float:right;margin:0 0 1rem 1rem}
.tmg-entry-content .aligncenter{margin-inline:auto;display:block}
.tmg-ad-box{display:block;margin:20px 0;text-align:center;clear:both}
.tmg-ad-label{display:block;font-size:11px;color:var(--tmg-muted);margin-bottom:8px;letter-spacing:.3px}
.tmg-ad-in{max-width:100%;overflow:hidden;margin-inline:auto}
.tmg-ad-in img,.tmg-ad-in iframe{display:inline-block;max-width:100%;height:auto}
.tmg-ad-after_related{margin:var(--tmg-gap) 0}
.tmg-entry-tags{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:26px;padding-top:18px;border-top:1px dashed var(--tmg-line)}
.tmg-tags-label{display:inline-flex;align-items:center;gap:6px;font-weight:800;margin-inline-end:4px}
.tmg-tags-label .tmg-ico{width:16px;height:16px;color:var(--tmg-red)}
.tmg-entry-tags a{display:inline-flex;align-items:center;gap:2px;background:var(--tmg-soft);border:1px solid var(--tmg-line);padding:5px 14px;border-radius:999px;font-size:13.5px;font-weight:700;transition:background .2s,color .2s,border-color .2s}
.tmg-entry-tags a span,.tmg-hash{color:var(--tmg-red)}
.tmg-entry-tags a:hover{background:var(--tmg-red);border-color:var(--tmg-red);color:#fff}
.tmg-entry-tags a:hover span{color:#fff}
@media(max-width:639px){.tmg-entry-tags{gap:6px;margin-top:20px;padding-top:14px}.tmg-tags-label{font-size:13px;width:100%;margin-bottom:2px}.tmg-entry-tags a{font-size:12px;padding:4px 10px;line-height:1.5}}

/* Share row (end of article) */
.tmg-sharebox{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;margin-top:18px;padding-top:18px;border-top:1px dashed var(--tmg-line)}
.tmg-sharebox-title{display:flex;align-items:center;gap:8px;font-size:1.05rem;font-weight:800;flex:none}
.tmg-sharebox-title::before{content:"";width:5px;height:20px;border-radius:3px;background:linear-gradient(var(--tmg-red) 50%,var(--tmg-green) 50%)}
.tmg-sharebox-btns{display:flex;flex-wrap:wrap;gap:8px}
.tmg-sb{display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 16px;border-radius:999px;color:#fff;font-weight:700;font-size:14px;white-space:nowrap;transition:transform .15s,filter .15s}
.tmg-sb:hover{transform:translateY(-1px);filter:brightness(1.08);color:#fff}
.tmg-sb .tmg-ico{width:17px;height:17px}
.tmg-sb--fb{background:#1464d8}
.tmg-sb--x{background:#111}
.tmg-sb--wa{background:#128043}
.tmg-sb--copy{background:var(--tmg-soft);color:var(--tmg-ink);border:1px solid var(--tmg-line)}
.tmg-sb--copy:hover{color:var(--tmg-ink)}
.tmg-sb--copy.is-done{background:var(--tmg-green);border-color:var(--tmg-green);color:#fff}
html.tmg-night .tmg-sb--x{border:1px solid #ffffff33}
.tmg-pages{margin-top:14px;font-weight:700}
.tmg-page-full{max-width:960px;margin-inline:auto;padding-block:10px 20px}
.tmg-page-full .tmg-article{background:var(--tmg-page);padding:28px 32px 34px}
.tmg-page-full .tmg-entry-head{text-align:center;margin-bottom:18px}
.tmg-page-full .tmg-entry-title{font-size:1.75rem;margin:0}
.tmg-page-full .tmg-entry-thumb{margin:0 0 20px;border-radius:10px}
.tmg-page-full .tmg-entry-content{font-size:1.02rem;line-height:1.9}
.tmg-page-full .tmg-entry-content h2{border:0;padding:0;font-size:1.22rem;margin-top:1.5em}
.tmg-page-full .tmg-entry-content h3{font-size:1.08rem}
.tmg-page-full .tmg-entry-content h4{font-size:1rem}
.tmg-archive-head{margin-bottom:14px}
.tmg-card-dt{display:none}
.tmg-page-title{font-size:1.7rem;font-weight:800;line-height:1.4;padding-bottom:10px;border-bottom:3px solid var(--tmg-line);position:relative}
.tmg-page-title::after{content:"";position:absolute;bottom:-3px;inset-inline-start:0;width:70px;height:3px;background:var(--tmg-red)}
.tmg-term-desc{color:var(--tmg-muted);margin-top:10px}
.tmg-archive-grid .tmg-card{background:var(--tmg-page);border:1px solid var(--tmg-line);border-radius:var(--tmg-r);padding:8px 8px 12px}
.tmg-pager{margin-top:22px}
.tmg-pager .nav-links{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.tmg-pager .page-numbers{min-width:40px;height:40px;padding:0 12px;display:grid;place-items:center;border-radius:8px;background:var(--tmg-soft);border:1px solid var(--tmg-line);font-weight:700}
.tmg-pager .page-numbers.current{background:var(--tmg-red);border-color:var(--tmg-red);color:#fff}
.tmg-pager .screen-reader-text{position:absolute!important}
.tmg-empty{padding:20px}
.tmg-empty .tmg-searchform{margin-top:12px;max-width:520px}
.tmg-related{background:var(--tmg-page);border:1px solid var(--tmg-line);border-radius:var(--tmg-r);padding:16px}
.tmg-related-title{display:flex;align-items:center;gap:10px;font-size:1.25rem;font-weight:800;margin-bottom:14px}
.tmg-related-title::before{content:"";width:6px;height:22px;border-radius:3px;background:linear-gradient(var(--tmg-red) 50%,var(--tmg-green) 50%)}
.tmg-related-grid{display:grid;gap:12px;grid-template-columns:1fr}
@media(min-width:640px){.tmg-related-grid{grid-template-columns:repeat(2,1fr)}}
.tmg-rcard{position:relative;border-radius:10px;overflow:hidden;background:#111}
.tmg-rcard .tmg-media{border-radius:0;aspect-ratio:16/9}
.tmg-rcard:hover .tmg-media img{transform:scale(1.05)}
.tmg-rcard-cap{position:absolute;inset:auto 0 0 0;padding:56px 14px 12px;background:linear-gradient(180deg,transparent 0,#000000a6 45%,#000000e6 100%);color:#fff}
.tmg-rcard .tmg-title{font-size:15px;font-weight:800;line-height:1.55}
.tmg-rcard .tmg-title a::after{content:"";position:absolute;inset:0;z-index:1}
.tmg-rcard time{display:block;font-size:12px;opacity:.8;margin-top:4px}

/* Comment rules */
.tmg-rules{display:flex;gap:10px;align-items:flex-start;background:#fff8e6;border:1px solid #f3d27a;border-inline-start:4px solid #e0a800;color:#5c4400;border-radius:8px;padding:10px 12px;margin-bottom:12px;font-size:13.5px;line-height:1.75}
.tmg-rules .tmg-ico{width:18px;height:18px;margin-top:3px;color:#c08b00}
html.tmg-night .tmg-rules{background:#2a2210;border-color:#5c4a17;color:#f1dfa8}
.tmg-widget ul li{padding:8px 0;border-bottom:1px dashed var(--tmg-line);line-height:1.55}
.tmg-widget ul li:last-child{border:0}
.tmg-widget .wp-block-group{margin:0}
.tmg-widget .wp-block-heading:first-child,.tmg-widget .wp-block-search__label{display:block;background:var(--tmg-red);color:#fff;margin:0 -10px 10px;padding:9px 14px;border-radius:var(--tmg-r) var(--tmg-r) 0 0;font-size:1.08rem;font-weight:800;line-height:1.4}
.tmg-widget .wp-block-search__inside-wrapper{display:flex;gap:6px}
.tmg-widget .wp-block-search__input{flex:1;min-width:0;padding:10px 12px;border:1px solid var(--tmg-line);border-radius:8px;background:var(--tmg-soft)}
.tmg-widget .wp-block-search__button{border-radius:8px;background:var(--tmg-red);color:#fff;padding:0 14px;font-weight:700}
.tmg-widget .wp-block-latest-comments{padding:0;margin:0}
.tmg-widget a:hover{color:var(--tmg-red)}

/* ===== 404 ===== */
.tmg-404{padding-block:14px 10px}
.tmg-404-hero{text-align:center;background:var(--tmg-page);border:1px solid var(--tmg-line);border-radius:var(--tmg-r);padding:36px 20px 30px;margin-bottom:var(--tmg-gap)}
.tmg-404-code{font-size:6rem;font-weight:800;line-height:1;letter-spacing:4px;color:var(--tmg-red)}
.tmg-404-title{font-size:1.6rem;font-weight:800;margin-top:10px}
.tmg-404-text{color:var(--tmg-muted);max-width:520px;margin:8px auto 22px;line-height:1.8}
.tmg-404-search{max-width:560px;margin:0 auto 18px}
.tmg-404-search .tmg-searchform input{height:52px;font-size:1rem;padding-inline:18px;border-radius:12px}
.tmg-404-search .tmg-searchform button{width:56px;border-radius:12px}
.tmg-404-search .tmg-searchform button .tmg-ico{width:20px;height:20px}
.tmg-404-home{gap:8px}
.tmg-404-home .tmg-ico{width:16px;height:16px}
[dir=rtl] .tmg-404-home .tmg-ico{transform:scaleX(-1)}
.tmg-404-cats{margin-top:26px;padding-top:20px;border-top:1px dashed var(--tmg-line)}
.tmg-404-cats p{font-size:14px;color:var(--tmg-muted);margin-bottom:10px}
.tmg-404-menu{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.tmg-404-menu a{display:block;padding:6px 14px;border-radius:999px;background:var(--tmg-soft);border:1px solid var(--tmg-line);font-size:13.5px;font-weight:700;transition:border-color .2s}
.tmg-404-menu a:hover{border-color:var(--tmg-red)}
.tmg-404-menu .sub-menu{display:none}
html.tmg-night .tmg-404-code{color:#e8eaed}
@media(max-width:767px){.tmg-404-hero{padding:26px 14px 22px}.tmg-404-code{font-size:4.4rem}.tmg-404-title{font-size:1.3rem}}

/* ===== Comments ===== */
.tmg-comments{padding-bottom:16px}
.comment-form{display:grid;gap:10px}
.comment-form p{margin:0}
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url],.comment-form textarea{width:100%;padding:11px 14px;border:1px solid var(--tmg-line);border-radius:8px;background:var(--tmg-soft)}
.comment-form input:focus,.comment-form textarea:focus{outline:none;border-color:var(--tmg-red)}
.comment-form ::placeholder{color:var(--tmg-red);opacity:.75}
.tmg-count{display:block;font-size:12px;color:var(--tmg-muted);margin-top:4px}
.comment-form-cookies-consent{font-size:13px;color:var(--tmg-muted);display:flex;gap:6px;align-items:flex-start}
.form-submit .tmg-btn{border-radius:8px}
.tmg-cmt-top{display:flex;align-items:center;justify-content:space-between;margin:24px 0 8px}
.tmg-cmt-top h2{font-size:1.3rem;font-weight:800}
.tmg-cmt-num{display:flex;align-items:center;gap:5px;font-weight:700}
.tmg-cmt-sort{display:flex;flex-direction:column;align-items:center;gap:6px;margin-bottom:14px;font-size:13px;color:var(--tmg-muted)}
.tmg-cmt-sort select{min-width:220px;max-width:100%;padding:8px 10px;border:1px solid var(--tmg-line);border-radius:8px;background:var(--tmg-soft)}
.tmg-comment-list .children{padding-inline-start:22px}
.tmg-cmt{background:var(--tmg-soft);border-radius:var(--tmg-r);padding:12px 14px;margin-bottom:10px}
.tmg-cmt-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin-bottom:4px}
.tmg-cmt-head b{color:var(--tmg-red)}
.tmg-cmt-head time{font-size:12px;color:var(--tmg-muted)}
.tmg-cmt-text p{margin:0 0 6px;font-size:14.5px}
.tmg-cmt-foot{display:flex;align-items:center;justify-content:space-between;font-size:13px}
.tmg-cmt-foot .comment-reply-link{color:var(--tmg-red);font-weight:800}
.tmg-votes{display:flex;gap:12px}
.tmg-votes button{display:flex;align-items:center;gap:4px;color:var(--tmg-muted);font-size:13px}
.tmg-votes .tmg-ico{width:17px;height:17px;color:#3b82f6}
.tmg-votes .tmg-dislike .tmg-ico{transform:rotate(180deg);color:var(--tmg-muted)}
.tmg-votes.is-voted button{cursor:default;opacity:.7}
.tmg-more-cmts{display:flex;margin:14px auto 0;min-width:260px;background:var(--tmg-soft);color:var(--tmg-red);border:1px solid var(--tmg-red)}
.tmg-more-cmts:hover{background:var(--tmg-red);color:#fff}
.tmg-more-cmts:disabled{opacity:.6;cursor:wait}

/* ===== WordPress core classes ===== */
.alignnone{margin:0}
.wp-caption{max-width:100%}
.bypostauthor>.tmg-cmt-head b::after{content:" ✓";color:var(--tmg-green)}

/* ===== Bento design layer (v1.9) ===== */
/* Boxes and section heads */
.tmg-box{border:1px solid transparent;border-radius:var(--tmg-r2);padding:16px;box-shadow:0 2px 12px #0000000b}
.tmg-shead{background:none;color:var(--tmg-ink);margin:0 0 12px;padding:0 0 10px;border-radius:0;border-bottom:1px solid var(--tmg-line)}
.tmg-shead h2,.tmg-shead .widget-title{display:flex;align-items:center;gap:8px;font-size:1.12rem}
.tmg-shead h2::before,.tmg-shead .widget-title::before{content:"";flex:none;width:5px;height:20px;border-radius:3px;background:var(--tmg-red)}
.tmg-more{flex:none;font-size:12.5px;font-weight:700;color:#4b5260;display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:999px;background:var(--tmg-soft);transition:background .2s}
.tmg-more:hover{background:var(--tmg-line)}
/* Category label in cards: soft pill */
.tmg-meta{align-items:center}
.tmg-meta .tmg-cat{background:#c8102e14;padding:1px 9px;border-radius:999px}
.tmg-meta .tmg-cat+span{display:none}
.tmg-card .tmg-media,.tmg-row .tmg-media{border-radius:12px}
.tmg-badge{border-radius:999px}
/* Most read */
.tmg-most b{border:0;background:#c8102e14}
.tmg-most li:first-child b{background:var(--tmg-red)}
@media(min-width:768px){
  body.home .tmg-page{background:var(--tmg-canvas)}
  /* Navigation: white bar with a red line */
  .tmg-nav{background:var(--tmg-page);color:var(--tmg-ink);box-shadow:0 6px 18px #0000000f;border-bottom:3px solid var(--tmg-red)}
  .tmg-menu .current-menu-item>a,.tmg-menu .current-menu-ancestor>a{color:var(--tmg-red);box-shadow:inset 0 -3px 0 var(--tmg-red)}
  .tmg-menu a:hover{box-shadow:none;color:var(--tmg-red)}
  /* News ticker: rounded white strip */
  .tmg-ticker{background:var(--tmg-page);border-color:transparent;border-radius:14px;box-shadow:0 2px 10px #0000000a}
  .tmg-ticker-label{border-radius:14px}
  .tmg-nav .tmg-night-toggle:hover,.tmg-nav .tmg-lang-link:hover{background:var(--tmg-soft)}
}
/* Opinion cards: lift on hover */
.tmg-opc{border-radius:var(--tmg-r2)}

/* ===== Mobile ===== */
@media(max-width:767px){
  .tmg-topbar,.tmg-header,.tmg-nav{display:none}

  .tmg-mbar{display:flex;align-items:center;justify-content:space-between;gap:6px;position:sticky;top:0;z-index:40;background:var(--tmg-page);padding:6px 10px;box-shadow:0 2px 8px #0000001a;border-bottom:3px solid var(--tmg-red)}
  .tmg-mburger{color:var(--tmg-red);padding:6px}
  html.tmg-night .tmg-mburger{color:#fff}
  .tmg-mlogo img{height:46px;max-width:170px}
  .tmg-mlogo .tmg-sitename{font-size:1.5rem}
  .tmg-mtools{margin:0}
  .tmg-mtools{gap:8px;color:var(--tmg-ink)}
  .tmg-mtools .tmg-lang-link{height:26px;font-size:11px}
  .tmg-mtools .tmg-lang-link:hover{background:var(--tmg-soft)}
  .tmg-mtools .tmg-night-toggle:hover{background:var(--tmg-soft)}
  .tmg-mtools .tmg-lang-list{inset-inline-end:auto;inset-inline-start:0}
  [dir=rtl] .tmg-mtools .tmg-lang-list{inset-inline-start:auto;left:0}
  .tmg-mcats{display:block;background:var(--tmg-page);border-bottom:1px solid var(--tmg-line)}
  .tmg-mcats-menu{display:flex;gap:20px;overflow-x:auto;scrollbar-width:none;white-space:nowrap;padding:0 16px;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 36px,#000 100%);mask-image:linear-gradient(to right,transparent 0,#000 36px,#000 100%)}
  .tmg-mcats-menu::-webkit-scrollbar{display:none}
  .tmg-mcats-menu li{flex:none;scroll-snap-align:start}
  .tmg-mcats-menu li:last-child{padding-inline-end:28px}
  .tmg-mcats-menu a{position:relative;display:block;padding:11px 0 10px;font-weight:800;font-size:14px;color:var(--tmg-ink)}
  .tmg-mcats-menu .current-menu-item>a,.tmg-mcats-menu .current-cat>a{color:var(--tmg-red)}
  .tmg-mcats-menu .current-menu-item>a::after,.tmg-mcats-menu .current-cat>a::after{content:"";position:absolute;inset:auto 0 0 0;height:3px;border-radius:3px 3px 0 0;background:var(--tmg-red)}
  .tmg-mcats-menu .sub-menu{display:none}
  .tmg-wrap{padding-inline:12px}
  .tmg-ticker,.tmg-wrap:has(>.tmg-ticker),.tmg-slider{display:none}
  .tmg-mfeed{display:grid;gap:12px;margin-bottom:var(--tmg-gap)}
  .tmg-vlist,.tmg-g4{grid-template-columns:1fr 1fr}
  .tmg-cap .tmg-title{font-size:1.05rem}
  .tmg-pg-head h2,.tmg-op-head h2{font-size:1.45rem}
  .tmg-ep-list{gap:12px 10px}
  /* Archives (categories, tags, search) on phones: full-width image cards like the home page */
  .tmg-page-title{font-size:1.2rem;padding-bottom:8px}
  .tmg-page-title::after{width:50px}
  .tmg-term-desc{font-size:13px}
  .tmg-archive-grid{grid-template-columns:1fr;gap:12px}
  .tmg-archive-grid .tmg-card{position:relative;padding:0;border:0;border-radius:var(--tmg-r);overflow:hidden;background:#111}
  .tmg-archive-grid .tmg-media{border-radius:0}
  .tmg-archive-grid .tmg-body{position:absolute;inset:auto 0 0 0;padding:34px 12px 10px;background:linear-gradient(180deg,transparent 0,#0000008c 40%,#000000cc 100%);color:#fff}
  .tmg-archive-grid .tmg-card-dt{display:block;font-size:11px;opacity:.85;margin-bottom:2px}
  .tmg-archive-grid .tmg-title{font-size:.9rem;font-weight:800;line-height:1.55;margin:0;text-shadow:0 1px 6px #00000080}
  .tmg-archive-grid .tmg-title a{color:#fff}
  .tmg-archive-grid .tmg-title a::after{content:"";position:absolute;inset:0;z-index:1}
  .tmg-archive-grid .tmg-meta,.tmg-archive-grid .tmg-excerpt{display:none}
  .tmg-archive-grid .tmg-card:hover .tmg-media img{transform:none}
  .tmg-program{padding:20px 0;margin:14px 0}
  .tmg-pg-head{flex-wrap:nowrap;align-items:flex-start;gap:10px;margin-bottom:14px}
  .tmg-pg-head h2{font-size:1.3rem}
  .tmg-pg-head p{font-size:12.5px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .tmg-pg-kicker{font-size:11px}
  .tmg-pg-all{flex:none;font-size:12px;padding:5px 11px;margin-top:2px}
  .tmg-ep--big .tmg-play{width:50px;height:50px;box-shadow:0 0 0 6px #c8102e44}
  .tmg-ep--big .tmg-play .tmg-ico{width:20px;height:20px}
  .tmg-ep--big .tmg-title{font-size:1.05rem;margin:10px 0 12px}
  .tmg-ep--big .tmg-btn{font-size:13px;padding:8px 16px}
  .tmg-ep-list .tmg-title{font-size:12.5px;margin-top:6px}
  .tmg-ep-list .tmg-play{width:30px;height:30px;bottom:6px;inset-inline-end:6px}
  .tmg-ep-list .tmg-play .tmg-ico{width:12px;height:12px}
  .tmg-ep-live{font-size:11px}
  .tmg-entry-title{font-size:1.2rem;line-height:1.55;margin-bottom:10px}
  .tmg-entry-content{font-size:calc(.97rem * var(--tmg-fs,1));line-height:1.9}
  .tmg-byline-row{margin:12px 0 14px}
  .tmg-fsz{padding:2px;gap:0}
  .tmg-fsz-btn{width:28px;height:26px}
  .tmg-fsz-a{font-size:15px}.tmg-fsz-a.is-s{font-size:12px}
  .tmg-fsz-btn span:last-child{font-size:11px}
  .tmg-fsz-bar{gap:2px;padding:0 3px;height:12px}
  .tmg-fsz-bar i{width:3px}
  .tmg-fsz-bar i:nth-child(1){height:4px}.tmg-fsz-bar i:nth-child(2){height:6px}.tmg-fsz-bar i:nth-child(3){height:8px}.tmg-fsz-bar i:nth-child(4){height:10px}.tmg-fsz-bar i:nth-child(5){height:12px}
  .tmg-byline-row{align-items:center}
  .tmg-entry-content>*+*{margin-top:1em}
  .tmg-entry-content h2{font-size:1.1rem;padding-inline-start:10px;border-inline-start-width:3px}
  .tmg-entry-content h3{font-size:1.02rem}
  .tmg-entry-content blockquote{font-size:.95rem;padding:14px 46px 14px 14px}
  [dir=ltr] .tmg-entry-content blockquote{padding:14px 14px 14px 46px}
  .tmg-entry-content blockquote::before{font-size:2.8rem}
  .tmg-entry-content table{font-size:.85rem}
  .tmg-byline{margin:12px 0 14px}
  .tmg-byline-row .tmg-byline{margin:0}
  .tmg-byline-date{font-size:12.5px}
  .tmg-crumbs{font-size:12.5px}
  .tmg-related-title{font-size:1.08rem}
  .tmg-rcard .tmg-title{font-size:13.5px}
  .tmg-cmt-top h2{font-size:1.1rem}
  .tmg-cmt-text p{font-size:14px}
  .tmg-article{padding:14px}
  .tmg-entry-thumb{margin-inline:-14px}
  .tmg-page-full .tmg-article{padding:18px 4px 24px}
  .tmg-page-full .tmg-entry-title{font-size:1.4rem}
  .tmg-page-full .tmg-entry-content h2{font-size:1.1rem}
  .tmg-page-full .tmg-entry-content{font-size:1rem}
  .tmg-sharebox{flex-direction:column;align-items:stretch}
  .tmg-sharebox-btns{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
  .tmg-sb{justify-content:center;height:44px;padding:0;border-radius:12px}
  .tmg-sb span{display:none}
  .tmg-sb .tmg-ico{width:20px;height:20px}
  .tmg-byline>a,.tmg-byline-name{font-size:1.18rem}
  .tmg-foot-in{display:none}
  .tmg-mfoot{display:flex;flex-direction:column;align-items:center;text-align:center;gap:22px;padding:32px 20px 26px}
  .tmg-mfoot-logo img{display:block;height:58px;width:auto;max-width:210px}
  .tmg-mfoot-logo:not(.is-custom){background:#fff;border-radius:10px;padding:8px 12px}
  .tmg-mfoot-logo .tmg-sitename{font-size:1.7rem;color:#fff}
  .tmg-mfoot-soc{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
  .tmg-mfoot-soc a{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:#fff;border:1px solid #ffffff33;transition:background .2s,border-color .2s}
  .tmg-mfoot-soc a:hover,.tmg-mfoot-soc a:focus-visible{background:var(--tmg-red);border-color:var(--tmg-red)}
  .tmg-mfoot-soc .tmg-ico{width:16px;height:16px}
  .tmg-mfoot nav{width:100%;max-width:300px;padding-top:18px;border-top:1px solid #ffffff1a}
  .tmg-mfoot-menu{display:grid;gap:4px}
  .tmg-mfoot-menu a{display:block;padding:5px 0;font-size:.95rem;font-weight:400;letter-spacing:.2px;color:#ffffffd9}
  .tmg-mfoot-menu a:hover{color:#fff}
  .tmg-copy{background:#f2f2f2;color:#666;font-size:12.5px}
  html.tmg-night .tmg-copy{background:#0a0a0a;color:#bbb}
  .tmg-copy-in{justify-content:center;text-align:center;opacity:1}
}
@media(max-width:782px){.admin-bar .tmg-mbar{top:46px}}
@media(max-width:600px){.admin-bar .tmg-mbar{top:0}}
@media(min-width:768px) and (max-width:991px){.tmg-vlist{grid-template-columns:repeat(4,1fr)}}

/* ===== Motion & print ===== */
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{
  .tmg-topbar,.tmg-header,.tmg-nav,.tmg-mbar,.tmg-mcats,.tmg-ticker,.tmg-aside,.tmg-share,.tmg-related,.tmg-comments,.tmg-opinion,.tmg-foot,.tmg-totop,.tmg-ad{display:none!important}
  .tmg-single{display:block}.tmg-box{border:0;box-shadow:none}
}
@media(max-width:767px){.tmg-entry-content table{display:block;overflow-x:auto;white-space:nowrap}}

/* ===== Night mode: neutral dark palette (no red / green) ===== */
html.tmg-night{--tmg-red:#2b3038;--tmg-red-d:#353b45;--tmg-green:#22262d}
html.tmg-night .tmg-nav,html.tmg-night .tmg-topbar{background:#1d2026}
html.tmg-night .tmg-mbar{border-bottom-color:#2b3038}
html.tmg-night .tmg-program{background:#101216}
html.tmg-night .tmg-opinion::before{background:none}
html.tmg-night .tmg-ep--big .tmg-play{box-shadow:0 0 0 8px #ffffff1a}
html.tmg-night .tmg-sdots button.is-on{background:#fff}
html.tmg-night .tmg-tdot,html.tmg-night .tmg-live{background:#9aa3ae}
html.tmg-night .tmg-ticker-label .tmg-live{background:#fff}
html.tmg-night .tmg-lang-link:hover,html.tmg-night .tmg-mtools .tmg-lang-link:hover{background:#ffffff14}
html.tmg-night .bypostauthor>.tmg-cmt-head b::after,
html.tmg-night .comment-form ::placeholder,
html.tmg-night html.tmg-night .tmg-box{box-shadow:none;border-color:var(--tmg-line)}
html.tmg-night .tmg-shead h2::before,html.tmg-night .tmg-shead .widget-title::before{background:#9aa3ae}
html.tmg-night .tmg-meta .tmg-cat{background:#ffffff12;color:var(--tmg-ink)}
html.tmg-night .tmg-most b{background:#ffffff12;color:var(--tmg-ink)}
html.tmg-night .tmg-most li:first-child b{background:#9aa3ae;color:#0e0f12}
html.tmg-night .tmg-timeline li::before{border-color:#9aa3ae}
html.tmg-night .tmg-timeline li:first-child::before{background:#9aa3ae}
html.tmg-night .tmg-timeline time{color:#cbd5e1}
@media(min-width:768px){html.tmg-night .tmg-nav{border-bottom-color:#2b3038}html.tmg-night .tmg-menu .current-menu-item>a,html.tmg-night .tmg-menu a:hover{color:#fff;box-shadow:inset 0 -3px 0 #9aa3ae}}
html.tmg-night .tmg-tnd{background:radial-gradient(circle at 85% 0,#0f6e3a 0,transparent 60%),linear-gradient(160deg,#0f6e3a,#052e16);box-shadow:none;border:1px solid var(--tmg-line)}
html.tmg-night .tmg-tnd-kicker{background:#2b3038}
html.tmg-night .tmg-hvid .tmg-card:hover .tmg-play,html.tmg-night .tmg-tnd .tmg-card:hover .tmg-play{background:#ffffff33;border-color:#fff}
@media(min-width:992px){.tmg-hvid .tmg-play{width:34px;height:34px;bottom:8px;inset-inline-end:8px}.tmg-hvid .tmg-play .tmg-ico{width:13px;height:13px}}
@media(max-width:991px){.tmg-hpicks .tmg-g4{grid-template-columns:1fr}}@media(min-width:640px) and (max-width:991px){.tmg-hpicks .tmg-g4{grid-template-columns:repeat(2,1fr)}}
.tmg-ep-live,.tmg-tnd .tmg-badge{box-shadow:0 0 0 1.5px #ffffffb3,0 2px 8px #00000059}
html.tmg-night .tmg-more{color:#c9cfd8}
.tmg-logo-img{object-fit:contain}
/* ===== Ads: device control, wide ad under the ticker, fixed side ads ===== */
@media(max-width:767px){.tmg-ad--desk{display:none!important}}
@media(min-width:768px){.tmg-ad--mob{display:none!important}}
.tmg-ad-wide{display:flex;justify-content:center;margin-top:var(--tmg-gap);margin-bottom:0}
@media(min-width:768px){.tmg-ad-wide{min-height:90px;align-items:center}}
.tmg-ad-side{display:none;position:fixed;top:120px;z-index:4;width:160px;max-height:calc(100vh - 140px);overflow:hidden}
.tmg-ad-side.is-right{right:8px}
.tmg-ad-side.is-left{left:8px}
html.tmg-gutters .tmg-ad-side{display:block}
.tmg-ad-side img{display:block;max-width:100%;height:auto}
/* ===== Videos in articles (Add media / YouTube link / video block): full width, 16:9 ===== */
.tmg-entry-content .tmg-embed,.tmg-entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper,.tmg-entry-content .wp-video,.tmg-entry-content .wp-block-video{position:relative;width:100%!important;max-width:100%!important;margin:1.6em 0;border-radius:var(--tmg-r2);overflow:hidden;background:#0c0d10;box-shadow:0 10px 26px #00000026}
.tmg-entry-content .tmg-embed,.tmg-entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper{aspect-ratio:16/9}
.tmg-entry-content .wp-block-embed.is-type-video{margin:1.6em 0}
.tmg-entry-content .wp-block-embed.is-type-video .tmg-embed{margin:0;box-shadow:none;border-radius:0}
.tmg-entry-content .wp-block-embed__wrapper::before{display:none}
.tmg-entry-content .tmg-embed iframe,.tmg-entry-content .wp-block-embed.is-type-video iframe{position:absolute;inset:0;width:100%!important;height:100%!important;border:0}
.tmg-entry-content .wp-video video,.tmg-entry-content .wp-block-video video,.tmg-entry-content video{display:block;width:100%!important;height:auto!important;max-height:80vh;background:#000;border-radius:var(--tmg-r2)}
.tmg-entry-content .wp-video .mejs-container{width:100%!important;height:auto!important;aspect-ratio:16/9;border-radius:var(--tmg-r2)}
.tmg-entry-content .wp-block-embed figcaption,.tmg-entry-content .wp-block-video figcaption{font-size:13px;color:var(--tmg-muted);text-align:center;margin-top:8px}
@media(max-width:767px){.tmg-entry-content .tmg-embed,.tmg-entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper,.tmg-entry-content .wp-video,.tmg-entry-content .wp-block-video,.tmg-entry-content video{border-radius:10px}}
/* Titles in cards and lists: 2 lines max with "…" so cards line up (not 24h, slider, video) */
.tmg-card .tmg-title,.tmg-row .tmg-title,.tmg-opc .tmg-title,.tmg-rcard .tmg-title,.tmg-ud .tmg-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tmg-card--big .tmg-title{-webkit-line-clamp:3}
.tmg-opc-foot{justify-content:flex-end}
html.tmg-night .tmg-hash{color:#9aa3ae}
/* ===== Soft cards («خارج الحدود», «أنشطة ملكية») ===== */
.tmg-soft .tmg-card{position:relative;display:flex;flex-direction:column;background:var(--tmg-soft);border-radius:16px;padding:8px 8px 14px;transition:transform .25s,box-shadow .25s,background .25s}
.tmg-soft .tmg-card:hover{transform:translateY(-3px);background:var(--tmg-page);box-shadow:0 12px 24px #00000014}
.tmg-soft .tmg-media{border-radius:12px;aspect-ratio:16/9}
.tmg-soft .tmg-card:hover .tmg-media img{transform:none}
.tmg-soft .tmg-body{display:flex;flex-direction:column;gap:8px;padding:12px 6px 0}
.tmg-soft .tmg-card-dt{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--tmg-muted);margin:0}
.tmg-soft .tmg-card-dt .tmg-ico{width:14px;height:14px;flex:none}
.tmg-soft .tmg-title{margin:0;font-size:15px;line-height:1.6}
.tmg-soft .tmg-title a::after{content:"";position:absolute;inset:0}
.tmg-soft .tmg-card:hover .tmg-title a{color:var(--tmg-red)}
.tmg-card-dt .tmg-ico{width:12px;height:12px;vertical-align:-1px;margin-inline-end:4px}
html.tmg-night .tmg-soft .tmg-card:hover{box-shadow:none;background:#22262d}
html.tmg-night .tmg-soft .tmg-card:hover .tmg-title a{color:#fff}
/* Footer «برامجنا» */
.tmg-foot-progs{display:grid;gap:12px}
.tmg-fprog{display:flex;gap:10px;align-items:center}
.tmg-fprog-img{position:relative;flex:none;width:96px;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#000}
.tmg-fprog-img .tmg-media,.tmg-fprog-img img{width:100%;height:100%;object-fit:cover;display:block}
.tmg-fprog-play{position:absolute;inset:0;margin:auto;width:26px;height:26px;border-radius:50%;background:var(--tmg-red);color:#fff;display:grid;place-items:center}
.tmg-fprog-play .tmg-ico{width:11px;height:11px;fill:currentColor}
.tmg-fprog div{min-width:0;display:flex;flex-direction:column;gap:2px}
.tmg-fprog-name{font-weight:800;font-size:14px;color:#fff}
.tmg-fprog-ep{font-size:12.5px;opacity:.8;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tmg-fprog-ep:hover,.tmg-fprog-name:hover{opacity:1;text-decoration:underline}
html.tmg-night .tmg-fprog-play{background:#2b3038}

.tmg-hvid-foot{margin-top:12px;padding-top:10px;border-top:1px solid var(--tmg-line);text-align:center}.tmg-hvid-foot .tmg-more{width:100%;justify-content:center;padding:6px 12px}
