/* DDM News app – install banner, guide and Get the App page */
html.ddm-app-installed .ddm-install-pwa,
html.ddm-app-installed .ddm-app-box,
html.ddm-app-installed .app-banner,
html.ddm-app-installed .ddmc-pwa-banner,
html.ddm-app-installed .ddmc-app-cta { display: none !important; }
.ddmc-app-installed-msg { display: none; color: #17692c; font-weight: 700; }
html.ddm-app-installed .ddmc-app-installed-msg { display: block; }

.ddmc-pwa-banner {
	position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 99990;
	display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 0 auto;
	background: var(--ddm-primary, #0b2545); color: #fff; padding: 12px 12px 12px 14px;
	border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
	transform: translateY(140%); transition: transform .3s ease;
	padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.ddmc-pwa-banner.is-visible { transform: none; }
.ddmc-pwa-banner[hidden] { display: none; }
.ddmc-pwa-banner img { width: 48px; height: 48px; border-radius: 11px; flex-shrink: 0; background: #fff; }
.ddmc-pwa-text { flex: 1; min-width: 0; line-height: 1.3; }
.ddmc-pwa-text strong { display: block; font-size: 15px; }
.ddmc-pwa-text span { display: block; font-size: 12px; color: #c9d4e1; margin-top: 2px; }
.ddmc-pwa-install { background: var(--ddm-accent, #d7263d); color: #fff; border: 0; border-radius: 20px; padding: 9px 18px; font-weight: 800; font-size: 14px; cursor: pointer; flex-shrink: 0; }
.ddmc-pwa-close { background: none; border: 0; color: #c9d4e1; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; flex-shrink: 0; }
html.ddmc-banner-open .back-to-top { bottom: 96px; }

.ddmc-pwa-modal { position: fixed; inset: 0; z-index: 99995; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; }
.ddmc-pwa-modal[hidden] { display: none; }
.ddmc-pwa-sheet {
	position: relative; background: var(--ddm-card, #fff); color: var(--ddm-text, #1b1f24);
	width: 100%; max-width: 480px; border-radius: 18px 18px 0 0; padding: 26px 22px calc(22px + env(safe-area-inset-bottom, 0px));
	text-align: center; max-height: 90vh; overflow: auto; animation: ddmc-up .25s ease;
}
@media (min-width: 700px) { .ddmc-pwa-modal { align-items: center; } .ddmc-pwa-sheet { border-radius: 18px; } }
@keyframes ddmc-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.ddmc-pwa-icon { border-radius: 16px; margin: 0 auto 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.ddmc-pwa-sheet h2 { font-size: 21px; margin: 0 0 16px; }
.ddmc-pwa-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 28px; line-height: 1; color: var(--ddm-muted, #5d6673); cursor: pointer; }
.ddmc-steps { text-align: left; margin: 0 0 12px; padding: 0; list-style: none; counter-reset: s; }
.ddmc-steps li { counter-increment: s; position: relative; padding: 10px 0 10px 40px; border-bottom: 1px solid var(--ddm-border, #e3e7ec); font-size: 15px; line-height: 1.5; }
.ddmc-steps li::before { content: counter(s); position: absolute; left: 0; top: 9px; width: 26px; height: 26px; border-radius: 50%; background: var(--ddm-accent, #d7263d); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.ddmc-ico { display: inline-flex; vertical-align: middle; color: #0a84ff; margin: 0 2px; }
.ddmc-steps-note { text-align: left; font-size: 14px; background: var(--ddm-bg-alt, #f4f6f9); padding: 10px 12px; border-radius: 8px; color: var(--ddm-muted, #5d6673); }
.ddmc-pwa-ok { margin-top: 8px; width: 100%; background: var(--ddm-accent, #d7263d); color: #fff; border: 0; border-radius: 8px; padding: 12px; font-weight: 800; font-size: 16px; cursor: pointer; }

/* Get the App page */
.ddmc-app-hero { display: flex; gap: 22px; align-items: center; background: var(--ddm-bg-alt, #f4f6f9); border-radius: 12px; padding: 24px; margin: 0 0 24px; }
.ddmc-app-hero img { border-radius: 22px; box-shadow: 0 4px 16px rgba(0, 0, 0, .12); flex-shrink: 0; }
.ddmc-app-hero h2 { margin: 0 0 8px; font-size: 26px; }
.ddmc-app-hero p { margin: 0 0 12px; }
.ddmc-app-perks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.ddmc-app-perks li { padding-left: 28px; position: relative; }
.ddmc-app-perks li::before { content: "\2713"; position: absolute; left: 0; color: var(--ddm-accent, #d7263d); font-weight: 900; }
.ddmc-app-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ddmc-app-cols section { border: 1px solid var(--ddm-border, #e3e7ec); border-radius: 10px; padding: 18px 20px; }
.ddmc-app-cols h3 { margin: 0 0 10px; }
.ddmc-app-cols ol { margin: 0; padding-left: 20px; }
@media (max-width: 640px) { .ddmc-app-hero { flex-direction: column; text-align: center; } .ddmc-app-cols { grid-template-columns: 1fr; } }

/* Inside the installed app: hide things that make no sense there */
html.ddm-in-app .watch-tv .tv-long { display: none; }
html.ddm-in-app .watch-tv .tv-short { display: inline; }
