/* =========================
   CSS optimisé pour Live Sport
   ========================= */

/* Conteneur principal */
.protected-box {
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 950px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
}

/* Boutons généraux */
.protected-box button {
    background-color: #18745B;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}

.protected-box button:hover {
    background-color: #145a47;
}

/* Catégories (1er menu) */
.protected-box .cat {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
    gap: 5px;
}

.protected-box .cat button.active {
    background-color: #0f3f32;
}

/* Onglets / chaînes (2ème menu) */
.protected-box .tab {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}


.protected-box .tab button.tablinks {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid transparent;
}

.protected-box .tab button.tablinks.active {
    border: 2px solid #ff0000;
    background: rgba(255,0,0,0.1);
}

/* Providers / 3ème menu */
.providers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
    gap: 5px;
}

.providers button {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 4px;
    background-color: #333;
}

.providers button:hover {
    background-color: #555;
}

/* Conteneur vidéo */
.video-wrapper {
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.video-wrapper iframe {
    width: 100%;
    max-width: 820px;
    height: 460px;
    border: 2px solid #ccc;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Responsive : petits écrans */
@media (max-width: 600px) {
    .cat button,
    .tab button.tablinks,
    .providers button {
        padding: 5px 8px;
        font-size: 12px;
    }

    .video-wrapper iframe {
        height: 220px;
    }
}

/* Responsive : tablettes */
@media (min-width: 601px) and (max-width: 1024px) {
    .video-wrapper iframe {
        height: 340px;
    }
}


.tab {
  overflow: hidden;
  border: 3px solid #ccc;
  border-radius: 5px;
  display: block ruby;
  margin-bottom: 20px;
}
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 8px 8px;
  transition: 0.3s;
}
.tab button:hover {
  background-color: #ddd;
}
.tab button.active {
  background-color: #ccc;
}
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: none;
  width: 18%;
  float: left;
} 
.btn-group-sm > .btn, .btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
}
.btn-success {
  color: #fff;
  background-color: #1b5e2c;
  border-color: #4cae4c;
}
.btn {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-image: none;
  border: 1px solid transparent;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
  border-radius: 4px;
}
table {
  border-collapse: separate;
  border-spacing: 0;
  border-width: 1px;
  margin: 0 0 1.5em;
  width: 100%;
}