/* Center the entire player container horizontally and vertically */
#playerContainer {
 background: #ffffff;
 border-radius: 16px;
 box-shadow: 0 6px 24px rgba(192, 132, 252, 0.18);
 max-width: 700px;
 width: 100%;
 padding: 28px 32px;
 animation: fadeIn 0.6s ease-in-out;
 text-align: center;
 color: #3d0066;
 font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

 /* Center horizontally & vertically */
 margin: 40px auto;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
}

/* Player styling */
#player {
 width: 100%;
 height: 360px;
 background: black;
 border-radius: 12px;
 margin-bottom: 25px;
 box-shadow: 0 0 20px rgba(192, 132, 252, 0.25);
}

/* Controls container */
.controls {
 display: flex;
 align-items: center;
 justify-content: center;
 flex-direction: column;
 gap: 18px;
 font-weight: 600;
 width: 100%;
 text-align: center;
}

/* Labels for sliders */
.controls label {
 font-size: 16px;
 color: #5a0079;
 display: flex;
 align-items: center;
 gap: 15px;
 width: 100%;
}

/* Range sliders */
.controls input[type="range"] {
 flex-grow: 1;
 -webkit-appearance: none;
 height: 8px;
 border-radius: 6px;
 background: linear-gradient(90deg, #ff80b5, #c084fc);
 outline: none;
 cursor: pointer;
 transition: background 0.3s ease;
}

.controls input[type="range"]::-webkit-slider-thumb {
 -webkit-appearance: none;
 appearance: none;
 width: 22px;
 height: 22px;
 border-radius: 50%;
 background: #c45fa0;
 border: 2px solid #a0387a;
 cursor: pointer;
 transition: background-color 0.3s ease;
}

.controls input[type="range"]::-webkit-slider-thumb:hover {
 background-color: #a0387a;
}

.controls input[type="range"]::-moz-range-thumb {
 width: 22px;
 height: 22px;
 border-radius: 50%;
 background: #c45fa0;
 border: 2px solid #a0387a;
 cursor: pointer;
 transition: background-color 0.3s ease;
}

.controls input[type="range"]::-moz-range-thumb:hover {
 background-color: #a0387a;
}

/* Numeric time next to sliders */
.time-value {
 width: 35px;
 text-align: center;
 font-size: 15px;
 color: #ff80b5;
 font-weight: 700;
 user-select: none;
}

/* Play trimmed clip button */
#playTrimmedBtn {
 margin-top: 20px;
 padding: 14px 35px;
 background-color: #c45fa0;
 /* pink */
 color: white;
 font-weight: 700;
 font-size: 18px;
 border: none;
 border-radius: 50px;
 cursor: pointer;
 box-shadow: 0 6px 20px rgba(192, 132, 252, 0.3);
 transition: background-color 0.3s ease, all 0.3s ease-in-out;
 align-self: center;
 position: relative;
 /* for top movement */
}

/* On hover: move button up and change color to purple */
#playTrimmedBtn:hover {
 background-color: #4a5699;
 /* deep purple */
}

/* On active press */
#playTrimmedBtn:active {
 background-color: #4a0072;
}

/* Fade in animation */
@keyframes fadeIn {
 from {
  opacity: 0;
  transform: translateY(20px);
 }

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

/* Responsive adjustments */
@media (max-width: 768px) {
 #playerContainer {
  padding: 20px 24px;
 }

 #player {
  height: 240px;
 }

 .controls label {
  font-size: 14px;
 }

 #playTrimmedBtn {
  font-size: 16px;
  padding: 12px 30px;
 }
}

/* trimmer copy/embed code css */


#playerContainer.hidden {
    display: none;
}

.controls {
    margin-top: 20px;
}

.controls label {
    display: block;
    margin-bottom: 10px;
}

.controls input[type="range"] {
    width: 100%;
    margin-top: 5px;
}

.time-value {
    display: inline-block;
    margin-left: 10px;
    font-weight: bold;
}

button {
    padding: 10px 20px;
    background-color: #C45FA0;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

.output-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    margin-top: 30px;
    border-radius: 8px;
}

.output-group {
    position: relative;
    margin-bottom: 20px;
    right: 3.5%;
}

.output-group input[type="text"] {
    width: calc(100% - 90px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
}

.output-group button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 15px;
    border-radius: 0 6px 6px 0;
    margin-top: 0;
}

.hidden { 
    display: none; 
}