html {
    min-height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100%;
    background: #061d33;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    margin: 0;
}

.no-js-message {
    color: white;
    position: absolute;
    width: 100%;
    padding: 50px;
    background: #000000e0;
    border-radius: 10px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

p {
    font-weight: 600;
}

ul {
    text-align: left;
    margin-top: 20px;
    padding: 0 20px;
}

li > button {
    font-weight: 800; 
    background: none;
    border: none;
    float: right;
    color: #ffffff94;
}

.flex-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.page-title {
    padding: 50px 0;
    font-weight: bold;
}

.page-title h1 {
    color: #fff;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0;
    font-family: 'Adamina', 'Georgia', serif;
    letter-spacing: 5px;
    font-size: 30px;
}

.input-group {
	margin-bottom: 5px;
}
.social-share-buttons a {
  text-decoration: none;
}

.share-tool-section {
	text-align: center;
}

.share-tool-section .social-share-buttons {
    padding: 10px 20px;
    background: none;
}

.share-tool-section .social-share-buttons a {
    color: #ffffff99;
    padding: 8px;
}

.share-tool-section .social-share-buttons a i {
    border: 1px solid #ffffff21;
    padding: 10px;
    border-radius: 6px;
}


/* App styles */

.youtube-listing-preview-app {
    margin-bottom: 40px;
}

.app-container {
    max-width: 500px;
    margin-right: auto;
	margin-left: auto;
    background: white;
    text-align: center;
    overflow: hidden;
    padding: 35px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


/* TubeView Form */
.tubeview-form {
  margin-bottom: 30px;
  text-align: left;
  max-width: 100%;
}

.tubeview-form label {
  display: block;
  margin-bottom: 20px;
  font-weight: 700;
  color: #061d33;
  font-size: 16px;
}

.tubeview-form input[type="text"],
.tubeview-form input[type="file"] {
	width: 100%;
	padding: 12px 15px;
	font-size: 16px;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
	margin-top: 6px;
	font-family: 'Open Sans', sans-serif;
	background-color: #f9f9f9;
	color: #333;
}

.tubeview-form input[type="text"]:focus,
.tubeview-form input[type="file"]:focus {
  outline: none;
  border-color: #ff9901; /* match your highlight color */
}

.tubeview-form small {
  display: inline-block;
  margin-top: 5px;
  font-weight: 600;
  color: #999;
}

/* Preview Tabs */
.preview-tabs {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.preview-tabs .tab {
  background: #eee;
  border: none;
  padding: 8px 18px;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease;
  color: #061d33;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  user-select: none;
}

.preview-tabs .tab:hover:not(.active) {
  background: #ffd480;
}

.preview-tabs .tab.active {
  background: #ff9901;
  color: #fff;
  box-shadow: 0 4px 8px rgba(255, 153, 1, 0.5);
}

/* Preview Cards Container */


.tubeview-previews {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

/* Hide inactive preview cards */
.preview-card {
  display: none;
  background: #fefefe;
  padding: 15px 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.08);
  font-family: 'Open Sans', sans-serif;
  color: #061d33;
}

/* Show active */
.preview-card.active {
  display: flex;
  gap: 15px;
}


.preview-card .thumbnail-container {
  max-width: 100%;
  aspect-ratio: 16 / 9; 
  display: flex;
  justify-content: center;
  overflow: hidden; 
}

.preview-card .thumbnail-container img {
  width: 100%;
  height: auto;
  object-fit: cover; 
  border-radius: 6px;
  box-shadow: 0 1px 5px rgb(0 0 0 / 0.1);
  flex-shrink: 0;
}


/* Search View */


.search-view img.thumb {
  width: 168px;
  height: 94px;
}

.search-info {
  max-width: 280px;
  margin-left: 10px;
}

.search-info .video-title {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* clamp to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-info .video-channel-name, .sidebar-info .video-channel-name, .home-info .video-channel-name {
  margin-bottom: 7px;
  margin-top: 0px;
}

.search-info .video-meta, .search-info .video-channel-name, .sidebar-info .video-channel-name, .home-info .video-channel-name {
  font-weight: 500;
  font-size: 13px;
  color: #555;
}

.search-info .video-meta {
  margin: 0;
}

/* Channel View */
.channel-view {
  flex-direction: column;
  align-items: flex-start;
}


.channel-view .video-title {
  font-weight: 700;
  font-size: 16px;
  margin: 0;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* clamp 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-view .video-meta {
  font-weight: 500;
  font-size: 14px;
  color: #555;
  margin: 0;
}

.channel-view .thumbnail-container {
	width: 100%;
}

/* Home View */
.home-view {
  flex-direction: column;
  align-items: flex-start;
}


.home-view .home-info {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
}

.home-view .home-info-channel-thumbnail {
	margin-right: 15px;
}

.home-view .thumbnail-container {
	width: 100%;
}

.home-view .video-title {
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 6px 0;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-view .video-meta {
  font-weight: 500;
  font-size: 13px;
  color: #555;
  margin: 0;
}

.home-info-text {
  margin-top: 2px;
}

/* Sidebar View */


.sidebar-view img.thumb {
  width: 168px;
  height: 94px;
}

.sidebar-info {
  max-width: 280px;
  margin-left: 10px;
  margin-top: 6px;
}

.sidebar-info .video-title {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 7px 0;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #061d33;
}

.sidebar-info .video-meta {
  font-weight: 500;
  font-size: 12px;
  color: #555;
  margin: 0;
}

/* Responsive */
@media (max-width: 540px) {
  .app-container {
    max-width: 95%;
    padding: 25px 20px;
  }
  .preview-tabs {
    flex-wrap: wrap;
    gap: 8px;
  }
  .preview-tabs .tab {
    flex: 1 1 45%;
    font-size: 13px;
    padding: 8px 12px;
  }
  .channel-view img.thumb {
    width: 100%;
    height: auto;
  }
  .home-view img.thumb {
    width: 100%;
    height: auto;
  }
  .search-view,
  .sidebar-view {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-view img.thumb,
  .sidebar-view img.thumb {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  .search-info,
  .sidebar-info {
    max-width: 100%;
  }
}


/* End App styles */


footer {
    padding: 15px 20px;
    color: #ffffff6e;
    font-family: sans-serif;
    text-align: center;
    font-size: 15px;
    letter-spacing: .2px;
}

footer a {
    color: #ff9901;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

footer .made-by {
    color: white;
}

footer .footer-copyright {
    font-size: 14px;
    line-height: 1.4;
    font-weight: lighter;
}
