:root[data-theme="dark"] { --bg-primary: #0d1117; --bg-secondary: #161b22; --bg-tertiary: #1f2937; --bg-card: rgba(22, 27, 34, 0.95); --bg-card-hover: rgba(31, 38, 49, 0.95); --bg-input: rgba(22, 27, 34, 0.85); --bg-stat: rgba(31, 38, 49, 0.75); --border-primary: #30363d; --border-secondary: #444c56; --border-accent: #58a6ff; --text-primary: #c9d1d9; --text-secondary: #8b949e; --text-muted: #6e7681; --text-accent: #58a6ff; --accent-blue: #58a6ff; --accent-purple: #a371f7; --accent-green: #3fb950; --accent-red: #f85149; --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3); --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3); } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg-primary); color: var(--text-primary); min-height: 100vh; line-height: 1.6; } .container { max-width: 1200px; margin: 0 auto; padding: 2rem; } header { text-align: center; margin-bottom: 2rem; } h1 { font-size: 3rem; font-weight: 700; color: var(--accent-blue); margin-bottom: 1rem; } .search-container { max-width: 400px; margin: 0 auto; } .search-input { width: 100%; padding: 0.75rem 1rem; font-size: 1rem; border: 2px solid var(--border-primary); border-radius: 0.5rem; background: var(--bg-input); color: var(--text-primary); backdrop-filter: blur(10px); transition: all 0.3s ease; } .search-input:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } .search-input::placeholder { color: var(--text-secondary); } .stats { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; } .stat-item { background: var(--bg-stat); padding: 1rem 2rem; border-radius: 0.5rem; border: 1px solid var(--border-primary); backdrop-filter: blur(10px); } .stat-label { color: var(--text-secondary); font-size: 0.875rem; } .stat-value { color: var(--text-accent); font-size: 1.25rem; font-weight: 600; margin-left: 0.5rem; } .loading { text-align: center; padding: 3rem; } .spinner { width: 40px; height: 40px; border: 4px solid var(--border-primary); border-top: 4px solid var(--accent-blue); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 1rem; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .error-state { text-align: center; padding: 3rem; } .error-state p { color: var(--accent-red); margin-bottom: 1rem; } .retry-btn { background: var(--accent-blue); color: var(--text-primary); border: none; padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; } .retry-btn:hover { background: #2563eb; transform: translateY(-1px); box-shadow: var(--shadow-md); } .streams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; } .stream-card { background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: 0.75rem; padding: 1.5rem; backdrop-filter: blur(15px); transition: all 0.3s ease; position: relative; overflow: hidden; } .stream-card:hover { transform: translateY(-4px); background: var(--bg-card-hover); box-shadow: var(--shadow-xl); border-color: var(--border-accent); } .stream-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; } .stream-header-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; margin-left: 1rem; } .watch-btn { display: flex; align-items: center; justify-content: center; width: 32px; height: 24px; background: var(--accent-green); border: 1px solid rgba(34, 197, 94, 0.3); border-radius: 0.375rem; color: white; text-decoration: none; transition: all 0.2s ease; opacity: 0.9; } .watch-btn:hover { opacity: 1; background: #16a34a; transform: translateY(-1px); box-shadow: var(--shadow-sm); } .stream-name { font-size: 1.125rem; font-weight: 600; color: var(--text-primary); margin: 0; word-break: break-word; } .stream-info { display: grid; gap: 0.5rem; margin-bottom: 1rem; } .info-row { display: flex; justify-content: space-between; align-items: center; } .info-label { color: var(--text-secondary); font-size: 0.875rem; } .info-value { color: var(--text-primary); font-size: 0.875rem; font-weight: 500; text-align: right; word-break: break-all; } .stream-url { background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.2); border-radius: 0.375rem; padding: 0.5rem; font-family: "SF Mono", "Monaco", "Menlo", "Ubuntu Mono", monospace; font-size: 0.75rem; color: #93c5fd; word-break: break-all; cursor: pointer; transition: all 0.2s ease; position: relative; } .stream-watch-link { text-decoration: none; color: inherit; text-align: center; } .stream-url:hover { background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.4); transform: translateY(-1px); } .stream-url:active { transform: translateY(0); } .no-results { text-align: center; padding: 3rem; color: var(--text-secondary); } @media (max-width: 768px) { .container { padding: 1rem; } h1 { font-size: 2rem; } .stats { flex-direction: column; align-items: center; gap: 1rem; } .streams-grid { grid-template-columns: 1fr; } .stream-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; } .stream-header-actions { margin-left: 0; align-self: flex-end; } }