File size: 3,149 Bytes
01c8b05
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/* ========== MOBILE-FIRST LAYOUT & BACKGROUND ========== */

/* Force background on body AND gradio root */
body,
body.dark,
body.light,
.gradio-container,
.gradio-container.gradio-container-4-40-0,
.main {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #0d47a1 100%) !important;
    background-attachment: fixed !important;
}

/* Page background */
body {
    margin: 0 !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    min-height: 100vh !important;
}

/* Main Gradio container on top of background */
.gradio-container {
    max-width: 100% !important;
    padding: 12px !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-height: 100vh !important;
}

/* Ensure inner blocks don't bring back white panels */
.gradio-container .block,
.gradio-container .gr-panel {
    background: transparent !important;
    box-shadow: none !important;
}

/* Override any white backgrounds in Gradio's wrapper divs */
.contain,
.wrap,
#root,
gradio-app {
    background: transparent !important;
}

/* ========== NEWS TRANSCRIPT ========== */

/* Target the main container and all child elements */
.news-transcript,
.news-transcript>*,
.news-transcript .wrap,
.news-transcript .block,
.news-transcript>label,
.news-transcript>div,
.news-transcript * {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37) !important;
}

/* Specific padding for the outer container only */
.news-transcript {
    padding: 18px !important;
}

/* Remove duplicate borders/shadows from inner elements */
.news-transcript * {
    border: none !important;
    box-shadow: none !important;
}

/* Restore main container border and shadow */
.news-transcript {
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37) !important;
}

/* Target the textarea and input elements */
.news-transcript textarea,
.news-transcript .gr-text-input,
.news-transcript input[type="text"] {
    background: transparent !important;
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* Force all text to be dark for readability */
.news-transcript label,
.news-transcript .label,
.news-transcript span,
.news-transcript p,
.news-transcript textarea {
    color: #1f2937 !important;
}

/* ========== AUDIO PLAYER (LISTEN TO NEWS) ========== */

audio {
    width: 100% !important;
    margin-top: 4px;
    margin-bottom: 10px;
}

/* If you used elem_id="listen-audio" you can uncomment to make it even slimmer */
/*
#listen-audio audio {
    height: 32px;
}
*/

/* ========== RESPONSIVE TWEAKS ========== */

@media (min-width: 768px) {
    .gradio-container {
        max-width: 480px !important;
        margin: 20px auto;
    }
}

/* ========== HIDE DEFAULT GRADIO FOOTER ========== */

footer,
.footer {
    display: none !important;
}