* {
  padding: 0;
  margin: 0;
}

body {
  padding: 0;
  margin: 0;
  font-family: "Mali", cursive;
  font-weight: 400;
  font-style: normal;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  line-height: 25px;
}

p {
  margin-bottom: 10px;
}

a {
  color: #5295b3;
  text-decoration: none;
}

.mali-extralight {
  font-family: "Mali", cursive;
  font-weight: 200;
  font-style: normal;
}

.mali-light {
  font-family: "Mali", cursive;
  font-weight: 300;
  font-style: normal;
}

.mali-regular {
  font-family: "Mali", cursive;
  font-weight: 400;
  font-style: normal;
}

.mali-medium {
  font-family: "Mali", cursive;
  font-weight: 500;
  font-style: normal;
}

.mali-semibold {
  font-family: "Mali", cursive;
  font-weight: 600;
  font-style: normal;
}

.mali-bold {
  font-family: "Mali", cursive;
  font-weight: 700;
  font-style: normal;
}

.mali-extralight-italic {
  font-family: "Mali", cursive;
  font-weight: 200;
  font-style: italic;
}

.mali-light-italic {
  font-family: "Mali", cursive;
  font-weight: 300;
  font-style: italic;
}

.mali-regular-italic {
  font-family: "Mali", cursive;
  font-weight: 400;
  font-style: italic;
}

.mali-medium-italic {
  font-family: "Mali", cursive;
  font-weight: 500;
  font-style: italic;
}

.mali-semibold-italic {
  font-family: "Mali", cursive;
  font-weight: 600;
  font-style: italic;
}

.mali-bold-italic {
  font-family: "Mali", cursive;
  font-weight: 700;
  font-style: italic;
}

.container {
  background: white;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.header {
  background: linear-gradient(135deg, #8cc387 0%, #4b7947 100%);
  color: white;
  text-align: center;
  padding: 20px;
  margin: 0;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header .subtitle {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 5px;
}

.header .logo a {
  text-decoration: none;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header #menu {
  display: flex;
  gap: 18px;
}

#menu li {
  list-style: none;
}

#menu li a {
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

#menu li a:hover {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: #edd7bd;
}

.content-wrapper {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  max-width: 1110px;
  margin: 0 auto;
}

.status {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status.listening {
  background: linear-gradient(135deg, #a8e6cf 0%, #88d8a3 100%);
  color: #2d5016;
  border: none;
}

.status.ready {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  color: white;
  border: none;
}

.loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 14px;
}

.loading::before {
  content: "⏳";
  display: block;
  font-size: 24px;
  margin-bottom: 10px;
}

.main-content {
  display: none;
}

.section {
  margin-bottom: 24px;
  border: none;
  border-radius: 10px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-title {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #ddd;
  padding-bottom: 8px;
}

.section-title .icon {
  margin-right: 8px;
}

.s-title {
  font-weight: 600;
  color: #2d3436;
  font-size: 16px;
}

.s-subtitle {
  font-size: 14px;
  color: #88a586;
}

.select-all {
  font-size: 12px;
  color: #0984e3;
  cursor: pointer;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(116, 185, 255, 0.1);
  transition: all 0.2s ease;
}

.select-all:hover {
  background: rgba(116, 185, 255, 0.2);
  color: #0056b3;
}

.list-container {
  border: none;
  border-radius: 12px;
  background: white;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.list-container::-webkit-scrollbar {
  width: 6px;
}

.list-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.list-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.list-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Kids accounts - keep list style */
.kids-list {
  max-height: 180px;
  overflow-y: auto;
}

.list-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f8f9fa;
  display: flex;
  align-items: center;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.list-item input[type="checkbox"] {
  margin-right: 12px;
  width: 16px;
  height: 16px;
  accent-color: #0984e3;
}

.list-item label {
  cursor: pointer;
  flex: 1;
  font-weight: 700;
  font-size: 16px;
  color: #dd7979;
}

/* Channels grid layout */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  max-height: calc(100vh - 350px);
}

.channel-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.channel-card:hover {
  border-color: #97c4e7;
  box-shadow: 0 4px 12px rgba(9, 132, 227, 0.15);
  transform: translateY(-2px);
}

.channel-card.selected {
  border-color: #97c4e7;
  background: linear-gradient(135deg, #e3f2fd 0%, #f8f9ff 100%);
}

.channel-card-box {
  border-color: rgb(211 186 186);
  background: linear-gradient(
    135deg,
    rgb(231 221 221) 0%,
    rgb(211 186 186) 100%
  );
  border-radius: 12px;
  padding: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.channel-card-box:hover {
  box-shadow: rgb(190 57 57 / 23%) 0px 4px 12px;
  transform: translateY(-2px);
  border-color: rgb(157 89 89);
}

.channel-checkbox {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  accent-color: #0984e3;
}

.channel-name {
  font-weight: 600;
  font-size: 14px;
  color: rgb(76 64 64);
  line-height: 1.3;
  text-align: center;
}

.channel-url {
  font-size: 11px;
  color: #74b9ff;
  font-style: italic;
}

.channel-url a {
  color: #74b9ff;
}

.channel-id {
  font-size: 10px;
  color: #999;
  margin-top: 4px;
  font-family: monospace;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  gap: 12px;
  flex-shrink: 0;
}

.pagination-btn {
  background: #0984e3;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination-btn:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.pagination-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.pagination-info {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  min-width: 120px;
  text-align: center;
}

.page-input {
  width: 50px;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  font-size: 12px;
}

.page-input:focus {
  outline: none;
  border-color: #0984e3;
}

/* Section specific styles */
.section.channels-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.section.channels-section .list-container {
  flex: 1;
  min-height: 0;
}

/* Loading and empty states */
.loading-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: #666;
  font-size: 14px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: #666;
  font-size: 14px;
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.submit-section {
  text-align: center;
  border-radius: 16px;
  flex: 1;
}

.submit-btn {
  background: linear-gradient(135deg, #d67575 0%, #be5252 100%);
  color: white;
  border: none;
  padding: 16px 16px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.submit-btn:disabled {
  background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.reload-section {
  text-align: center;
  padding: 40px 20px;
}

.reload-btn {
  background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(253, 203, 110, 0.3);
  transition: all 0.2s ease;
}

.reload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(253, 203, 110, 0.4);
}

.instructions {
  background: linear-gradient(135deg, #f7f0df 0%, #faeeca 100%);
  padding: 20px;
  border-radius: 12px;
  color: #674e04;
  margin-bottom: 40px;
  border: none;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.instructions strong {
  color: #533f03;
}

.instructions h1,
.instructions h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
}

.progress {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-radius: 12px;
  font-size: 13px;
  color: #155724;
  display: none;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.error {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border-radius: 12px;
  font-size: 13px;
  color: #721c24;
  display: none;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.summary {
  font-size: 13px;
  color: #6c757d;
  margin-top: 12px;
  text-align: center;
  font-weight: 500;
  padding: 8px;
  background: rgba(108, 117, 125, 0.1);
  border-radius: 8px;
  display: none !important;
}

.icon-badge {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  border-radius: 50%;
  color: white;
  text-align: center;
  line-height: 20px;
  font-size: 10px;
  margin-right: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.stat-card {
  background: white;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 18px;
  font-weight: 600;
  color: #0984e3;
}

.stat-label {
  font-size: 11px;
  color: #6c757d;
  margin-top: 4px;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  text-align: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.modal-body {
  padding: 30px;
}

.progress-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 25px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  border-left: 4px solid #0984e3;
}

.stat-label {
  font-weight: 600;
  color: #495057;
  font-size: 14px;
}

.stat-value {
  font-weight: 700;
  color: #0984e3;
  font-size: 14px;
}

.progress-bar-container {
  margin-bottom: 20px;
  display: none !important;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #e9ecef;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 6px;
}

.progress-percentage {
  text-align: center;
  margin-top: 8px;
  font-weight: 600;
  color: #495057;
  font-size: 14px;
}

.progress-message {
  text-align: center;
  padding: 15px;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-radius: 10px;
  color: #856404;
  font-weight: 500;
  font-size: 14px;
  border-left: 4px solid #ffc107;
}

.progress-result {
  text-align: center;
  padding: 20px;
}

.result-message {
  font-size: 20px;
  font-weight: 600;
  color: #28a745;
  margin-bottom: 10px;
}

.result-details {
  color: #6c757d;
  font-size: 14px;
  line-height: 1.5;
}

.modal-footer {
  padding: 20px;
  text-align: center;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
  display: flex;
  justify-content: end;
}

.modal-btn {
  background: linear-gradient(135deg, #0984e3 0%, #0056b3 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(9, 132, 227, 0.3);
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(9, 132, 227, 0.4);
}

/* Block All Button */
.block-all-btn {
  background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
  box-shadow: 0 4px 15px rgba(225, 112, 85, 0.3);
}

.block-all-btn:hover {
  box-shadow: 0 6px 20px rgba(225, 112, 85, 0.4);
}

.block-all-btn:disabled {
  background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
  box-shadow: none;
}

/* Confirmation Modal */
.confirmation-modal .modal-header {
  background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
}

.confirmation-info {
  margin-bottom: 25px;
}

.confirmation-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 1px solid #ffc107;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  color: #856404;
  font-size: 14px;
  line-height: 1.5;
}

.confirmation-warning .icon {
  font-size: 20px;
  margin-right: 8px;
}

.confirmation-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.confirmation-stat {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  border-left: 4px solid #0984e3;
}

.confirmation-stat-number {
  font-size: 24px;
  font-weight: 700;
  color: #0984e3;
  margin-bottom: 5px;
}

.confirmation-stat-label {
  font-size: 12px;
  color: #6c757d;
  font-weight: 600;
}

.confirmation-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.confirm-btn {
  background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(225, 112, 85, 0.3);
}

.confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(225, 112, 85, 0.4);
}

.cancel-btn {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.cancel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
}

/* Account Select Styles */
.account-select-container {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 25px;
  align-items: center;
}

.account-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  background: white;
  color: #495057;
  transition: all 0.2s ease;
  cursor: pointer;
}

.account-select:focus {
  outline: none;
  border-color: #0984e3;
  box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.1);
}

.account-select option {
  padding: 8px;
  font-weight: 500;
}

.account-info {
  margin-top: 16px;
  padding: 12px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border-left: 4px solid #0984e3;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  font-weight: 600;
  color: #495057;
  font-size: 13px;
}

.info-value {
  font-weight: 700;
  color: #0984e3;
  font-size: 13px;
}

#resetBtn {
  cursor: pointer;
  color: #0984e3;
  font-size: 14px;
  font-weight: 500;
}

#loadingChannels {
  display: none;
  height: calc(100vh - 350px);
}

#loadingChannelsText {
  display: flex;
  text-align: center;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-section {
  display: flex;
  gap: 40px;
}
.video-item {
  flex: 1;
  text-align: center;
}
.video-item h3 {
  text-align: center;
  font-size: 21px;
  margin-bottom: 20px;
}

.video-item iframe {
  border-radius: 10px;
  margin-bottom: 20px;
}

#toxicChannelsSection {
  margin: 40px 0;
}

#toxicChannelsSection h3 {
  text-align: center;
  margin-bottom: 20px;
}

/* Search Form Styles */
.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.search-input {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  background: white;
  color: #495057;
  transition: all 0.2s ease;
  outline: none;
}

.search-input:focus {
  border-color: #0984e3;
  box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.1);
}

.search-input::placeholder {
  color: #adb5bd;
  font-style: italic;
}

.search-btn {
  background: linear-gradient(135deg, #0984e3 0%, #0056b3 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(9, 132, 227, 0.3);
  white-space: nowrap;
}

.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(9, 132, 227, 0.4);
}

.clear-btn {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
  white-space: nowrap;
}

.clear-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

/* Responsive design for search form */
@media (max-width: 768px) {
  .search-form {
    flex-direction: column;
    gap: 8px;
  }

  .search-input {
    width: 100%;
  }

  .search-btn,
  .clear-btn {
    width: 100%;
    padding: 12px 20px;
  }
}

#footer {
  display: flex;
  justify-content: space-between;
}

#footer > div {
}

#footer a {
  font-size: 12px;
}
