index.css 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. /* =========
  2. Dark TV Dashboard Theme (TV-safe)
  3. Copy/paste into <style>...</style>
  4. ========= */
  5. :root{
  6. /* Core palette */
  7. --bg: #0b0f16;
  8. --surface: rgba(255,255,255,0.06);
  9. --surface-2: rgba(255,255,255,0.09);
  10. --border: rgba(255,255,255,0.10);
  11. --text: rgba(255,255,255,0.92);
  12. --muted: rgba(255,255,255,0.68);
  13. --faint: rgba(255,255,255,0.52);
  14. /* Accents */
  15. --accent: #4cc9f0; /* cool cyan */
  16. --accent-2: #a78bfa; /* soft purple */
  17. --good: #34d399;
  18. --warn: #fbbf24;
  19. /* Layout */
  20. --radius: 18px;
  21. --radius-sm: 12px;
  22. --pad: 18px;
  23. --gap: 16px;
  24. /* Type */
  25. --font: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, sans-serif;
  26. }
  27. *{ box-sizing:border-box; }
  28. html, body{ height:100%; width:100%; }
  29. body{
  30. margin:0;
  31. font-family: var(--font);
  32. color: var(--text);
  33. background:
  34. radial-gradient(1200px 600px at 20% 10%, rgba(76,201,240,0.12), transparent 60%),
  35. radial-gradient(900px 500px at 85% 20%, rgba(167,139,250,0.10), transparent 55%),
  36. radial-gradient(800px 600px at 50% 100%, rgba(255,255,255,0.06), transparent 55%),
  37. var(--bg);
  38. overflow:hidden; /* TV: never scroll */
  39. -webkit-font-smoothing: antialiased;
  40. text-rendering: geometricPrecision;
  41. }
  42. /* =========
  43. Layout: flex fallback + grid when supported
  44. ========= */
  45. /* Fallback first (works even on weak TV browsers) */
  46. .grid{
  47. height:100vh;
  48. width:100vw;
  49. padding: 18px;
  50. display:flex;
  51. flex-wrap:wrap;
  52. gap: var(--gap);
  53. filter: brightness(0.98);
  54. }
  55. /* 2x2 tiles using flex fallback */
  56. .grid > .topLeft,
  57. .grid > .topRight,
  58. .grid > .bottomLeft,
  59. .grid > .bottomRight{
  60. position:relative;
  61. min-height: 0;
  62. border-radius: var(--radius);
  63. background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  64. border: 1px solid var(--border);
  65. box-shadow:
  66. 0 10px 30px rgba(0,0,0,0.35),
  67. inset 0 1px 0 rgba(255,255,255,0.06);
  68. overflow:hidden;
  69. flex: 1 1 calc(50% - (var(--gap) / 2));
  70. height: calc(50vh - (18px + (var(--gap) / 2)));
  71. min-width: 520px;
  72. }
  73. /* Prefer CSS Grid if supported */
  74. @supports (display: grid){
  75. .grid{
  76. display:grid;
  77. grid-template-columns: 1.1fr 1.4fr;
  78. grid-template-rows: 1fr 1fr;
  79. gap: var(--gap);
  80. }
  81. .grid > .topLeft,
  82. .grid > .topRight,
  83. .grid > .bottomLeft,
  84. .grid > .bottomRight{
  85. height: auto;
  86. min-width: 0;
  87. }
  88. }
  89. /* Only stack on truly small screens (avoid TVs triggering this) */
  90. @media (max-width: 720px){
  91. .grid{
  92. display:flex;
  93. flex-direction:column;
  94. flex-wrap:nowrap;
  95. }
  96. .grid > .topLeft,
  97. .grid > .topRight,
  98. .grid > .bottomLeft,
  99. .grid > .bottomRight{
  100. flex: 0 0 auto;
  101. height: auto;
  102. min-width: 0;
  103. }
  104. }
  105. /* =========
  106. Top Left: Date/Time + Current Weather
  107. ========= */
  108. .topLeft{
  109. display:flex;
  110. flex-direction:column;
  111. padding: var(--pad);
  112. gap: 14px;
  113. }
  114. /* Date/Time card */
  115. .dateTime{
  116. display:flex;
  117. flex-direction:column;
  118. gap: 6px;
  119. padding: 14px 16px;
  120. border-radius: var(--radius-sm);
  121. background: rgba(0,0,0,0.22);
  122. border: 1px solid rgba(255,255,255,0.08);
  123. }
  124. #date{
  125. margin:0;
  126. font-size: 22px;
  127. letter-spacing: 0.4px;
  128. color: var(--muted);
  129. }
  130. #time{
  131. margin:0;
  132. font-size: 56px;
  133. font-weight: 700;
  134. letter-spacing: 1.2px;
  135. line-height: 1.05;
  136. color: var(--text);
  137. }
  138. @media (max-width: 720px){
  139. #time{ font-size: 48px; }
  140. }
  141. /* Weather block */
  142. .weather{
  143. flex: 1;
  144. min-height: 0;
  145. display:flex;
  146. }
  147. .weatherBlock{
  148. flex: 1;
  149. min-height: 0;
  150. padding: 16px;
  151. border-radius: var(--radius-sm);
  152. background:
  153. radial-gradient(600px 240px at 20% 10%, rgba(76,201,240,0.10), transparent 60%),
  154. rgba(0,0,0,0.18);
  155. border: 1px solid rgba(255,255,255,0.08);
  156. display:flex;
  157. flex-direction:column;
  158. gap: 12px;
  159. }
  160. .weatherBlock h2{
  161. margin:0;
  162. font-size: 18px;
  163. font-weight: 700;
  164. letter-spacing: 0.5px;
  165. color: var(--text);
  166. display:flex;
  167. align-items:center;
  168. gap: 10px;
  169. }
  170. .weatherBlock h2::before{
  171. content:"";
  172. width: 10px;
  173. height: 10px;
  174. border-radius: 50%;
  175. background: linear-gradient(135deg, var(--accent), var(--accent-2));
  176. box-shadow: 0 0 18px rgba(76,201,240,0.35);
  177. }
  178. /* Condition row: icon + text */
  179. .condition{
  180. display:flex;
  181. align-items:center;
  182. gap: 12px;
  183. padding: 10px 12px;
  184. border-radius: 14px;
  185. background: rgba(255,255,255,0.04);
  186. border: 1px solid rgba(255,255,255,0.06);
  187. }
  188. .condition img{
  189. width: 54px;
  190. height: 54px;
  191. object-fit: contain;
  192. filter: drop-shadow(0 6px 10px rgba(0,0,0,0.45));
  193. }
  194. .conditionText{
  195. margin:0;
  196. font-size: 22px;
  197. font-weight: 650;
  198. letter-spacing: 0.2px;
  199. color: var(--text);
  200. }
  201. /* Weather info list */
  202. .weatherInfo{
  203. display:grid;
  204. grid-template-columns: 1fr 1fr;
  205. gap: 10px 12px;
  206. margin-top: 2px;
  207. }
  208. @media (max-width: 720px){
  209. .weatherInfo{ grid-template-columns: 1fr; }
  210. }
  211. .weatherInfo p{
  212. margin:0;
  213. padding: 10px 12px;
  214. border-radius: 14px;
  215. background: rgba(255,255,255,0.035);
  216. border: 1px solid rgba(255,255,255,0.06);
  217. font-size: 18px;
  218. color: var(--muted);
  219. display:flex;
  220. align-items:center;
  221. justify-content:space-between;
  222. }
  223. .weatherInfo p strong{
  224. color: var(--text);
  225. }
  226. /* If you don't wrap labels/values in <strong>, still make the numbers pop a bit */
  227. #temp, #feels, #wind, #humidity{ color: var(--text); }
  228. #temp{ font-size: 20px; font-weight: 650; }
  229. #feels, #wind, #humidity{ font-weight: 550; }
  230. /* =========
  231. Top Right: Radar Image
  232. ========= */
  233. .topRight{
  234. padding: 12px;
  235. display:flex;
  236. align-items:center;
  237. justify-content:center;
  238. background:
  239. radial-gradient(800px 520px at 70% 10%, rgba(167,139,250,0.09), transparent 55%),
  240. rgba(0,0,0,0.10);
  241. }
  242. #radar{
  243. width:100%;
  244. height:100%;
  245. object-fit: cover;
  246. border-radius: calc(var(--radius) - 6px);
  247. border: 1px solid rgba(255,255,255,0.08);
  248. box-shadow: 0 14px 40px rgba(0,0,0,0.45);
  249. filter: contrast(1.04) saturate(1.05);
  250. }
  251. .topRight::after{
  252. content:"Radar";
  253. position:absolute;
  254. top: 12px;
  255. left: 14px;
  256. padding: 6px 10px;
  257. font-size: 14px;
  258. letter-spacing: 0.6px;
  259. text-transform: uppercase;
  260. color: rgba(255,255,255,0.72);
  261. background: rgba(0,0,0,0.40);
  262. border: 1px solid rgba(255,255,255,0.08);
  263. border-radius: 999px;
  264. backdrop-filter: blur(8px);
  265. }
  266. /* =========
  267. Bottom Left: Forecast Table
  268. ========= */
  269. .bottomLeft{
  270. padding: 12px;
  271. display:flex;
  272. }
  273. table{
  274. width:100%;
  275. height:100%;
  276. border-collapse: separate;
  277. border-spacing: 0;
  278. overflow:hidden;
  279. border-radius: calc(var(--radius) - 6px);
  280. background: rgba(0,0,0,0.18);
  281. border: 1px solid rgba(255,255,255,0.08);
  282. }
  283. /* Head row */
  284. thead th{
  285. padding: 12px 10px;
  286. font-size: 15px;
  287. color: rgba(255,255,255,0.80);
  288. letter-spacing: 0.4px;
  289. text-transform: uppercase;
  290. background:
  291. linear-gradient(90deg, rgba(76,201,240,0.10), rgba(167,139,250,0.08));
  292. border-bottom: 1px solid rgba(255,255,255,0.10);
  293. }
  294. tbody td{
  295. padding: 12px 10px;
  296. font-size: 16px;
  297. color: var(--muted);
  298. border-bottom: 1px solid rgba(255,255,255,0.06);
  299. }
  300. /* Left column labels */
  301. tbody td:first-child{
  302. width: 38%;
  303. color: rgba(255,255,255,0.86);
  304. font-weight: 650;
  305. letter-spacing: 0.2px;
  306. background: rgba(255,255,255,0.03);
  307. border-right: 1px solid rgba(255,255,255,0.06);
  308. }
  309. /* Center the forecast values */
  310. tbody td:not(:first-child),
  311. thead th:not(:first-child){
  312. text-align:center;
  313. }
  314. /* Zebra rows */
  315. tbody tr:nth-child(odd) td{ background: rgba(255,255,255,0.018); }
  316. tbody tr:nth-child(even) td{ background: rgba(255,255,255,0.028); }
  317. tbody tr:nth-child(odd) td:first-child{ background: rgba(255,255,255,0.040); }
  318. tbody tr:nth-child(even) td:first-child{ background: rgba(255,255,255,0.055); }
  319. tbody tr:last-child td{ border-bottom: none; }
  320. /* =========
  321. Bottom Right: YouTube iframe
  322. ========= */
  323. .bottomRight{
  324. padding: 10px;
  325. background:
  326. radial-gradient(900px 600px at 20% 20%, rgba(76,201,240,0.08), transparent 55%),
  327. rgba(0,0,0,0.10);
  328. }
  329. .bottomRight iframe{
  330. width:100%;
  331. height:100%;
  332. border: 1px solid rgba(255,255,255,0.10);
  333. border-radius: calc(var(--radius) - 6px);
  334. box-shadow: 0 18px 50px rgba(0,0,0,0.55);
  335. background: #000;
  336. }
  337. /* =========
  338. Focus styling (TV remotes / keyboards)
  339. ========= */
  340. :focus{
  341. outline: 2px solid rgba(76,201,240,0.55);
  342. outline-offset: 2px;
  343. }