:root {
  --window-bg: #242424;
  --sidebar-bg: #303030;
  --card-bg: #383838;
  --accent: #3584e4;
  --accent-two: #323232;
  --text-main: #ffffff;
  --text-dim: #b0b0b0;
  --border: rgba(0, 0, 0, 0.3);
  --edge-highlight: rgba(255, 255, 255, 0.05);
}

button:hover {
    background: rgba(255,255,255,0.05) !important;
    transform: translateY(-1px) !important;
}

body {
  background: radial-gradient(circle at center, #2c2c2e 0%, #1a1a1b 100%);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  margin: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.adwaita-window {
  width: 100vw;
  height: 100vh;
  background: transparent; 
  display: flex;
  flex-direction: column;
}

.titlebar {
  height: 48px;
  background: linear-gradient(to bottom, #3a3a3a, #242424);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.9vw;
  border-bottom: 1px solid #000;
  box-shadow: inset 0 1px 0 var(--edge-highlight);
}

.version {
    position: absolute;
    font-weight: 700;
    font-size: 15px;
    right: 2vw;
}

.window-body {
     display: flex;
     flex: 1; 
}

.sidebar {
  width: 240px;
  background: var(--sidebar-bg);
  border-right: 1px solid #1a1a1a;
  padding: 0.7vw 0;
  text-align: left;
  box-shadow: inset -1px 0 0 var(--edge-highlight);
}

.nav-list {
    border-spacing: 0; 
}

.nav-item td {
  padding: 0.7vw 1.5vw;
  font-size: 14px;
  cursor: default;
}

.nav-item.active td {
    background: linear-gradient(to bottom, #3a8df1, #2b6ec0);
    color: #fff; 
    font-weight: 600;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.2),
                0 2px 4px rgba(0,0,0,0.3);
}

.view { 
    flex: 1;
    padding: 2.4vw;
    overflow-y: auto; 
}

.latest-broadcast,
.next-competition h4,
.alert h4,
.view > div {
    border: 1px solid #1a1a1a !important;
    box-shadow: inset 0 1px 0 var(--edge-highlight),
                0 10px 30px rgba(0, 0, 0, 0.5);
}

.latest-broadcast h2 {
    position: static;
    margin: 0;
    padding: 1.5vw 1.8vw;
    font-size: 20px;
    font-weight: 700;
    color: white;
    background: linear-gradient(to bottom, #4a9eff, #2b6ec0);
    border-bottom: 1px solid #1a1a1a;
    letter-spacing: 0.5px;
}

#broadcasts {
    position: static;
    background-color: transparent;
    padding: 1.5vw 1.8vw;
    margin: 0;
    width: auto;
    height: auto;
    line-height: 1.6;
    color: var(--text-dim);
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.latest-broadcast form button[type="submit"] {
    background: linear-gradient(to bottom, #4a9eff, #3584e4);
    color: white;
    border: 1px solid #1a5fb4;
    border-radius: 6px;
    padding: 0.7vw 1.2vw;
    font-weight: 600;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3),
                0 2px 4px rgba(0,0,0,0.4);
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.latest-broadcast form button[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

.latest-broadcast { 
    position: absolute;
    right: 1vw;
    top: 8vh;
    width: 25vw;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
}

.next-competition {
    position: absolute;
    bottom: 0vw;
    right: 1vw;
}

.alert {
    position: absolute;
    left: 13vw;
    bottom: -0.7vh;
}

.sidebar button {
    background-color: var(--sidebar-bg);
    color: white;
    border: none;
    transition: transform .3s ease-in-out;
    cursor: pointer;
}

.sidebar button:hover {
    transform: scale(1.05);
}

html {
  transform-origin: top left;
}

@media (min-width: 1px) {
  html {
    transform: scale(
      min(
        calc(100vw / 1920),
        calc(100vh / 1080)
      )
    );
  }
}
