* {
  box-sizing: border-box;
}

body {
  background: #0f1923;
  color: #e1e8ef;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  min-height: 100vh;
}

.page-header {
  background: #1a2634;
  border-bottom: 1px solid #2a3a4a;
  padding: 24px 0;
}
.page-header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.page-logo {
  height: 40px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: #3b82f6;
  color: #fff;
}

.stats {
  display: flex;
  gap: 24px;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.stat-value.active {
  color: #22c55e;
}
.stat-value.inactive {
  color: #7a8a9a;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #7a8a9a;
  margin-top: 4px;
}

.content {
  padding: 32px 40px;
}

.tv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 20px;
}

.tv-card {
  display: block;
  background: #1a2634;
  border: 1px solid #2a3a4a;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: #e1e8ef;
  cursor: pointer;
}
.tv-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  color: #e1e8ef;
  text-decoration: none;
}
.tv-card.disabled {
  cursor: default;
}
.tv-card.disabled:hover {
  border-color: #2a3a4a;
  transform: none;
  box-shadow: none;
}

.tv-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #2a3a4a;
}

.tv-number {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tv-number-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #3b82f6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.tv-name {
  font-size: 16px;
  font-weight: 600;
}

.tv-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tv-status.online {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}
.tv-status.offline {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.tv-card-body {
  padding: 20px;
}

.tv-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px 0;
}

.tv-info-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #7a8a9a;
  flex-shrink: 0;
}

.tv-info-value {
  font-size: 14px;
  text-align: right;
  color: #e1e8ef;
}

.no-screen-label {
  color: #ef4444;
  font-size: 13px;
  font-style: italic;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-state-icon {
  font-size: 64px;
  color: #2a3a4a;
  margin-bottom: 24px;
}

.empty-state-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-state-text {
  color: #7a8a9a;
  font-size: 15px;
  max-width: 400px;
  margin: 0 auto;
}

.track-flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 4px;
}
